WO2017032122A1 - Method and apparatus for detecting digital television set - Google Patents
Method and apparatus for detecting digital television set Download PDFInfo
- Publication number
- WO2017032122A1 WO2017032122A1 PCT/CN2016/084434 CN2016084434W WO2017032122A1 WO 2017032122 A1 WO2017032122 A1 WO 2017032122A1 CN 2016084434 W CN2016084434 W CN 2016084434W WO 2017032122 A1 WO2017032122 A1 WO 2017032122A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- detection
- script
- television
- detecting
- key value
- 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.)
- Ceased
Links
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
Definitions
- the present invention relates to the field of digital television technologies, and in particular, to a digital television detection method and apparatus.
- the software and hardware of the TV are developing in the direction of modularization.
- the existing digital TV is in question detection, it is generally connected to the TV through a serial port tool, and sends key values and operation commands to the TV through manual control. Since different TV systems have different built-in virtual key values, when detecting problems on different TV sets, it is necessary to reset the key values defined by the detecting device, that is, the key values that cannot be uniformly detected, so that the detection efficiency of the television is better. low.
- the invention provides a digital television detecting method and device, the main purpose of which is to adapt digital TV sets of different systems to improve the detection efficiency of the television set.
- the present invention provides a digital television detection method, and the digital television detection method includes:
- the detection log for executing the detection script is output or saved.
- the digital television detection method further includes:
- the recording of the detection log is started until the detection script is completely executed.
- the step of loading the acquired virtual key value into a pre-written detection script and executing the detection script after loading the virtual key value to perform problem detection on the television end comprises:
- the digital television detection method further includes:
- the digital television detection method further includes:
- the detection script is configured to perform a problem detection on the television end.
- the digital television detection method further includes:
- the digital television detecting method further comprises the steps of:
- the present invention further provides a digital television detection method, and the digital television detection method includes:
- the detection log for executing the detection script is output or saved.
- the digital television detection method further includes:
- the recording of the detection log is started until the detection script is completely executed.
- the present invention further provides a digital television detecting apparatus, the digital television detecting apparatus comprising:
- a key value obtaining module configured to acquire a pre-stored virtual key value in the television end after detecting that the television end is successfully turned on;
- a problem detection module configured to load the acquired virtual key value into a pre-written detection script, and execute the detection script after loading the virtual key value to perform problem detection on the television end;
- a log output module configured to output or save a detection log for executing the detection script when an execution result of the detection script is abnormal.
- the problem detection module is further configured to start recording the detection log when the detection script is started to be executed until the detection script is completely executed.
- the problem detection module is further configured to: when the problem is detected in the television end, when the running parameter of the television end does not match the running parameter in the detection script, according to the detection script And sending, to the television end, a modification instruction, where the television terminal modifies the operation parameter to an operation parameter in the detection script based on the received modification instruction.
- the digital television detecting device further comprises:
- a number update module configured to update the execution times of the detection script
- the problem detecting module is further configured to: when the number of executions is less than a preset number of executions, load the acquired virtual key value into a pre-written detection script, and execute the detection script to the television end Perform problem detection.
- the number of times update module is further configured to update the execution times of the detection script when the execution result of the detection script is normal;
- the problem detection module is further configured to: when the execution result of the detection script is normal, load the acquired virtual key value into a pre-written detection script, and execute the detection script to perform the detection on the television end Problem detection.
- the number of times update module is further configured to update the execution times of the detection script when the execution result of the detection script is normal.
- the television detecting device further comprises:
- a level detecting module configured to detect a power level of the television end
- the power-on judging module is configured to determine that the television end is successfully powered on when detecting that the power level of the television end is increased.
- the digital television detecting method and device provided by the present invention automatically acquires a virtual key value pre-stored in the television end system from the established television terminal when the problem of the digital television is detected, so that the pre-written detection script adapts the
- the virtual key value of the system executes a detection script to perform problem detection on the television end.
- the detection log is acquired for the user to analyze the problem of the television end, and the detection method can be applied to different system televisions. The detection of the machine, and the need for manual operation, improves the detection efficiency of the digital television.
- FIG. 1 is a flow chart of a first embodiment of a digital television detecting method according to the present invention
- FIG. 2 is a flow chart of a third embodiment of a digital television detecting method according to the present invention.
- FIG. 3 is a flow chart of a third embodiment of a digital television detecting method according to the present invention.
- FIG. 4 is a schematic diagram of functional modules of a first embodiment of a digital television detecting apparatus according to the present invention.
- FIG. 5 is a schematic diagram of functional modules of a second embodiment of a digital television detecting apparatus according to the present invention.
- FIG. 6 is a schematic diagram of functional modules of a third embodiment of a digital television detecting apparatus according to the present invention.
- the invention provides a digital television detection method.
- FIG. 1 there is shown a flow chart of a first embodiment of a digital television detection method of the present invention.
- the digital television detection method comprises:
- step S10 after detecting that the television end is successfully turned on, the virtual key value pre-stored in the television end is obtained.
- step S20 the obtained virtual key value is loaded into a pre-written detection script, and the detection script after loading the virtual key value is executed to perform problem detection on the television end.
- the virtual key values pre-stored by the digital televisions of different systems are different, the virtual key values pre-stored in the television end are acquired before the detection script is executed, and when the detection script is executed for problem detection, between the detection terminal and the television end is detected.
- the script command can be sent through a standard serial interface connection, and the pre-written test script can be executed on the terminal to detect the TV end.
- the MCU can be connected to the TV end.
- the present invention is further described in detail by taking the analog verification "restart after the TV is restored to the factory setting, setting the sleep video file after ten minutes of sleep standby, and the backlight and the power board waveform abnormality at the standby moment" as an example.
- the detection script can be pre-written according to the actual detection step when detecting different problems. It is also possible to pre-establish a detection script framework and then set different detection data according to different problems.
- the detection script includes a problem detection step, which is written into a file and stored in a “script + key value” manner.
- the detection script is executed to test the television end, the obtained virtual key value is loaded into the pre-written detection. In the script.
- the detection method proposed in this embodiment is described below by detecting the problem "Restart after the TV is restored to the factory setting, after the ten minutes of sleep standby is set, and the video file is looped and the waveform of the power supply board is abnormal at the standby moment".
- the detection script file is as follows:
- Module_system_wait(500) ;//delay function in ms
- Com.setting.system_setting /com.setting.system_setting.SetOSsleepActivity;//Automatically set sleep standby
- the detection log is started to be recorded until the detection script is completely executed.
- the key value is sent in the manner of the virtual key value acquired from the television end.
- the delay function is implemented by the terminal controlling the timer device. According to the command line operation instructions in the detection script, delay, automatic setting of sleep standby, automatic video playback, etc. are implemented to realize problem detection.
- step S30 when the execution result of the detection script is abnormal, the detection log for executing the detection script is output or saved.
- the detection script will be executed, but after the execution is completed, if there is a problem on the TV side, the flag bit of the script execution result will be marked as an abnormal state, and the detection is performed.
- the detection log of the script will reflect the record of the TV abnormal information, so it is necessary to obtain the detection log to analyze the TV.
- the detection log cached in the read-only memory is stored in the read-write memory or otherwise output to the user.
- the digital television detecting method proposed in this embodiment automatically acquires a virtual key value pre-stored in the television end system from the established television terminal during the problem detection of the digital television, so that the pre-written detection script is adaptive to the system.
- the virtual key value is executed and the detection script is executed to perform problem detection on the television end.
- the detection log is acquired for the user to analyze the television end problem, and the detection method can be applied to different system televisions. Detection, and without the need for manual full operation, improve the efficiency of digital TV detection.
- the digital television detecting method further includes:
- Step S40 detecting a power level of the television end
- Step S50 when it is detected that the power level of the television end is increased, it is determined that the television end is successfully powered on.
- whether the television end is turned on can be determined by detecting the power level of the television end, and the level detecting circuit can be implemented by using a general level detecting circuit. It can be understood that, when the TV terminal has not been turned on, it is impossible to establish a connection with the detecting terminal. Therefore, the infrared code can be sent to the television terminal by the control code value generator to realize the power-on, and when the power level is detected to rise. When you can judge the TV is successfully turned on.
- step S20 includes: in the process of performing the problem detection on the television end, when the running parameter of the television end does not match the running parameter in the detection script, according to the detection script to the television end Sending a modification instruction for the television terminal to modify the operation parameter to an operation parameter in the detection script based on the received modification instruction.
- the existing TV function detection method cannot change the operation parameters in the digital TV system.
- the standby time option is five minutes, ten minutes, or fifteen minutes.
- the detection script of the method proposed by the method may send the modification instruction to the television end, so that the television end modifies the operation parameters by modifying the register flag according to the modification instruction, so that the television system adapts to the detection script for problem detection.
- the digital television detecting method proposed in this embodiment can accurately determine whether the television end is powered on by the change of the power level, and can modify the operating parameters of the system according to the detecting script when the operating parameters of the system do not match the operating parameters in the detecting script.
- the television system is adapted to the detection script for problem detection.
- the digital television detection method further includes:
- Step S60 updating the execution times of the detection script
- step S20 is performed.
- the execution result of the detection script When the execution result of the detection script is abnormal, it indicates that there is a problem in the detection process of the television end. Since the digital TV may be in operation, there may be some reasons due to the difference in the length of the booting time, the memory usage rate, the CPU occupancy rate, and the like. Probability problem, in order to enable the user to more accurately know the cause of the TV problem, the problem detection can be performed multiple times according to the user's settings, and the steps of executing the detection script and obtaining the detection log are repeated. It can be understood that the preset execution times can be set by the user according to the detection problem.
- the digital television detection method further includes:
- Step S70 when the execution result of the detection script is normal, update the execution count of the detection script, and execute step S20.
- the TV system Since the TV system is in use, the TV system may have various probabilistic problems due to different memory usage, CPU occupancy, etc., and there may be no problem when executing the detection script. At this time, If the obtained tag information is in a normal state, it indicates that there is no problem in the detection process of the television end. In this case, the step of executing the detection script and obtaining the detection log may be repeated. In other embodiments, the tag information may also be In the normal state, the number of times the detection script is executed is not updated.
- the digital television detecting method of the present embodiment detects the television end by repeatedly performing the detection script repeatedly to enable the user to accurately determine the cause of the problem at the television end according to the detection log obtained by the multiple detection.
- the invention also proposes a digital television detection device.
- FIG. 4 it is a schematic diagram of functional modules of a first embodiment of a digital television detecting apparatus of the present invention.
- the digital television detecting device comprises:
- the key value obtaining module 10 is configured to acquire a virtual key value pre-stored in the television end after detecting that the television end is successfully turned on.
- the problem detection module 20 is configured to load the acquired virtual key value into a pre-written detection script, and execute the detection script after loading the virtual key value to perform problem detection on the television end.
- the key value obtaining module 10 first acquires the virtual key value pre-stored in the television end before executing the detection script, and detects the terminal when performing the detection script to perform the problem detection.
- the sending of the script command can be implemented by the standard serial interface connection with the television end, and the problem detecting module 20 executes the pre-written detection script to detect the television end.
- the present invention is further described in detail by taking the analog verification "restart after the TV is restored to the factory setting, setting the sleep video file after ten minutes of sleep standby, and the backlight and the power board waveform abnormality at the standby moment" as an example.
- the detection script can be pre-written according to the actual detection step when detecting different problems. It is also possible to pre-establish a detection script framework and then set different detection data according to different problems.
- the detection detection step includes a problem detection step, which is written as a file and stored in a “script + key value” manner.
- the problem detection module 20 executes the detection script to test the television end, the problem detection module 20 will acquire the virtual The key values are loaded into a pre-written detection script.
- the detection script file is as follows:
- Module_system_wait(500) ;//delay function in ms
- Com.setting.system_setting /com.setting.system_setting.SetOSsleepActivity;//Automatically set sleep standby
- the detection log is started to be recorded until the detection script is completely executed.
- the key value is sent to the television end in the manner of the virtual key value acquired from the television end.
- the delay function passes through the terminal to the timer device. Control implementation. According to the command line operation instructions in the detection script, delay, automatic setting of sleep standby, automatic video playback, etc. are implemented to realize problem detection.
- the log output module 30 is configured to output or save a detection log for executing the detection script when the execution result of the detection script is abnormal.
- the problem detection module 20 will execute the detection script, but after the execution is completed, if there is a problem on the television end, the flag information of the script execution result is an abnormal state, and the detection is performed at this time.
- the detection log of the script will reflect the record of the TV abnormal information, so it is necessary to obtain the detection log to analyze the TV.
- the log output module 30 stores the detection log cached in the read-only memory into the read-write memory or otherwise outputs it to the user.
- the digital television detecting device of the present embodiment automatically acquires a virtual key value pre-stored in the television end system from the established television terminal during the problem detection of the digital television, so that the pre-written detection script is adaptive to the system.
- the virtual key value is executed and the detection script is executed to detect the problem on the television end of the device.
- the detection log is acquired for the user to analyze the television end problem, and the detection device can be applied to the detection of different system televisions. And without manual operation, the detection efficiency of the digital TV is improved.
- the digital television detecting device further includes:
- a level detecting module 40 configured to detect a power level of the television end
- the power-on judging module 50 is configured to determine that the television end is successfully powered on when detecting that the power level of the television end is increased.
- whether the television end is turned on can be determined by detecting the power level of the television end, and the level detecting circuit can be implemented by using a general level detecting circuit. It can be understood that, when the TV terminal is not turned on, it is impossible to establish a connection with the detecting device. Therefore, the infrared code can be sent to the TV terminal by the control code value generator to realize the booting, and when the level detecting module 40 detects the device power. When the level is raised, the power-on judging module 50 can judge that the television is successfully turned on.
- the problem detecting module 20 is further configured to: when the problem is detected in the television end, when the running parameter of the television end does not match the running parameter in the detecting script, according to the detecting script The television end sends a modification instruction, so that the television end modifies the operation parameter to an operation parameter in the detection script based on the received modification instruction.
- the existing TV function detecting device cannot change the operating parameters in the digital television system.
- the standby time option is five minutes, ten minutes, or fifteen minutes.
- the problem detection module 20 can execute the detection script by sending a modification instruction to the television end, so that the television terminal can modify the operation parameters by modifying the register flag according to the modification instruction, so that the television system adapts to the detection script for problem detection.
- the digital television detecting apparatus proposed in this embodiment can accurately determine whether the television end is powered on by the change of the power level, and can modify the system file according to the detection script when the system running parameter does not match the corresponding information in the detecting script.
- the TV system adapts to the detection script for problem detection.
- the digital television detecting device further includes:
- the number update module 60 is configured to update the execution times of the detection script
- the problem detection module 20 is further configured to: when the number of executions is less than the preset number of executions, load the acquired virtual key value into a pre-written detection script, and perform the detection after loading the virtual key value
- the script performs problem detection on the television end.
- the problem detection may be performed multiple times according to the setting of the user, and the number update module 60 updates the execution times of the detection script.
- the problem detection module 20 repeatedly performs loading the acquired virtual key value to a pre-written detection script, and executes the detection script after loading the virtual key value to perform problem detection on the television end. It can be understood that the preset execution times can be set by the user according to the detection problem.
- the number update module 60 is further configured to update the execution times of the detection script when the execution result of the detection script is normal.
- the problem detection module 20 is further configured to: when the execution result of the detection script is normal, load the acquired virtual key value into a pre-written detection script, and execute the detection script after loading the virtual key value To perform problem detection on the television end.
- the TV system may be in use during use, the TV system may have various probabilistic problems due to different memory usage, CPU occupancy, etc., and there may be no problem when executing the detection script, if the detection script When the execution result is normal, it indicates that there is no problem in the detection process of the television end. At this time, the above execution detection script needs to be repeated and the detection log is output or saved, and the number update module 60 updates the execution count of the detection script. In other embodiments, the update of the number of executions of the detection script may not be performed when the execution result of the detection script is normal.
- the digital television detecting apparatus proposed in this embodiment detects the television end by repeatedly performing the detection script repeatedly to enable the user to accurately determine the cause of the problem in the television end according to the detection log obtained by the multiple detection.
Landscapes
- Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- General Health & Medical Sciences (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
Description
技术领域Technical field
本发明涉及数字电视技术领域,尤其涉及一种数字电视机检测方法及装置。The present invention relates to the field of digital television technologies, and in particular, to a digital television detection method and apparatus.
背景技术Background technique
目前,电视机的软件和硬件都向模块化方向发展,现有的数字电视机在进行问题检测时,一般通过串口工具与电视机连接,通过人工控制的方式向电视发送键值和操作指令,由于不同的电视机系统其内置的虚拟键值不同,当对不同的电视机进行问题检测时,需要重新设置检测装置定义的键值,即无法统一检测的键值,使得电视机的检测效率较低。At present, the software and hardware of the TV are developing in the direction of modularization. When the existing digital TV is in question detection, it is generally connected to the TV through a serial port tool, and sends key values and operation commands to the TV through manual control. Since different TV systems have different built-in virtual key values, when detecting problems on different TV sets, it is necessary to reset the key values defined by the detecting device, that is, the key values that cannot be uniformly detected, so that the detection efficiency of the television is better. low.
发明内容Summary of the invention
本发明提供一种数字电视机检测方法及装置,其主要目的在于自适应不同系统的数字电视机以提高电视机的检测效率。The invention provides a digital television detecting method and device, the main purpose of which is to adapt digital TV sets of different systems to improve the detection efficiency of the television set.
为实现上述目的,本发明提供一种数字电视机检测方法,该数字电视机检测方法包括:To achieve the above object, the present invention provides a digital television detection method, and the digital television detection method includes:
在检测到电视端成功开机后,获取所述电视端中预先存储的虚拟键值;After detecting that the television end is successfully turned on, acquiring a virtual key value pre-stored in the television end;
将获取到的所述虚拟键值加载至预先编写的检测脚本,并执行加载所述虚拟键值后的所述检测脚本以对所述电视端进行问题检测;Loading the obtained virtual key value into a pre-written detection script, and executing the detection script after loading the virtual key value to perform problem detection on the television end;
当所述检测脚本的执行结果异常时,输出或保存执行所述检测脚本的检测日志。When the execution result of the detection script is abnormal, the detection log for executing the detection script is output or saved.
优选地,所述数字电视机检测方法还包括:Preferably, the digital television detection method further includes:
在开始所述执行加载所述虚拟键值后的所述检测脚本以对所述电视端进行问题检测的步骤时,开始记录检测日志,直至检测脚本完全执行完毕。When the detecting script that performs the loading of the virtual key value is started to perform the step of detecting the problem on the television end, the recording of the detection log is started until the detection script is completely executed.
优选地,所述将获取到的所述虚拟键值加载至预先编写的检测脚本,并执行加载所述虚拟键值后的所述检测脚本以对所述电视端进行问题检测的步骤包括:Preferably, the step of loading the acquired virtual key value into a pre-written detection script and executing the detection script after loading the virtual key value to perform problem detection on the television end comprises:
在对所述电视端进行问题检测的过程中,当所述电视端的运行参数与所述检测脚本中的运行参数不匹配时,根据所述检测脚本向所述电视端发送修改指令,以供所述电视端基于接收到的修改指令将所述运行参数修改为所述检测脚本中的运行参数。In the process of performing the problem detection on the television end, when the running parameter of the television end does not match the running parameter in the detection script, sending a modification instruction to the television end according to the detection script to provide a The television terminal modifies the operating parameter to an operating parameter in the detecting script based on the received modification instruction.
优选地,所述当所述检测脚本的执行结果异常时,输出或保存执行所述检测脚本的检测日志的步骤之后,所述数字电视机检测方法还包括:Preferably, after the step of outputting or saving the detection log of the detection script when the execution result of the detection script is abnormal, the digital television detection method further includes:
更新所述检测脚本的执行次数;Updating the number of executions of the detection script;
当所述执行次数小于预设执行次数时,执行将获取到的所述虚拟键值加载至预先编写的检测脚本,并执行加载所述虚拟键值后的所述检测脚本以对所述电视端进行问题检测的步骤。When the number of executions is less than the preset number of executions, performing loading the acquired virtual key value to a pre-written detection script, and executing the detection script after loading the virtual key value to the television end The steps to perform the problem detection.
优选地,所述将获取到的所述虚拟键值加载至预先编写的检测脚本,并执行加载所述虚拟键值后的所述检测脚本以对所述电视端进行问题检测的步骤之后,所述数字电视机检测方法还包括:Preferably, the loading the acquired virtual key value to a pre-written detection script, and executing the detection script after loading the virtual key value to perform a problem detection on the television end, The digital television detection method further includes:
当所述检测脚本的执行结果正常时,更新所述检测脚本的执行次数,并执行将获取到的所述虚拟键值加载至预先编写的检测脚本,并执行加载所述虚拟键值后的所述检测脚本以对所述电视端进行问题检测的步骤。When the execution result of the detection script is normal, update the execution number of the detection script, and execute loading the acquired virtual key value into a pre-written detection script, and execute the loading after the virtual key value is loaded. The detection script is configured to perform a problem detection on the television end.
优选地,所述将获取到的所述虚拟键值加载至预先编写的检测脚本,并执行加载所述虚拟键值后的所述检测脚本以对所述电视端进行问题检测的步骤之后,所述数字电视机检测方法还包括:Preferably, the loading the acquired virtual key value to a pre-written detection script, and executing the detection script after loading the virtual key value to perform a problem detection on the television end, The digital television detection method further includes:
当所述检测脚本的执行结果正常时,更新所述检测脚本的执行次数。When the execution result of the detection script is normal, the number of executions of the detection script is updated.
优选地,所述在检测到电视端成功开机后,获取所述电视端中预先存储的虚拟键值的步骤之前,所述数字电视机检测方法还包括步骤:Preferably, before the step of acquiring the virtual key value pre-stored in the television end after detecting that the television end is successfully turned on, the digital television detecting method further comprises the steps of:
检测所述电视端的电源电平;Detecting a power level of the television terminal;
当检测到所述电视端的电源电平升高时,判断所述电视端成功开机。When it is detected that the power level of the television end is increased, it is determined that the television end is successfully turned on.
此外,为实现上述目的,本发明还提供一种数字电视机检测方法,该数字电视机检测方法包括:In addition, in order to achieve the above object, the present invention further provides a digital television detection method, and the digital television detection method includes:
检测所述电视端的电源电平;Detecting a power level of the television terminal;
当检测到所述电视端的电源电平升高时,判断所述电视端成功开机;When it is detected that the power level of the television end is increased, determining that the television end is successfully turned on;
在检测到电视端成功开机后,获取所述电视端中预先存储的虚拟键值;After detecting that the television end is successfully turned on, acquiring a virtual key value pre-stored in the television end;
将获取到的所述虚拟键值加载至预先编写的检测脚本,并执行加载所述虚拟键值后的所述检测脚本以对所述电视端进行问题检测;Loading the obtained virtual key value into a pre-written detection script, and executing the detection script after loading the virtual key value to perform problem detection on the television end;
其中,在对所述电视端进行问题检测的过程中,当所述电视端的运行参数与所述检测脚本中的运行参数不匹配时,根据所述检测脚本向所述电视端发送修改指令,以供所述电视端基于接收到的修改指令将所述运行参数修改为所述检测脚本中的运行参数;In the process of performing the problem detection on the television end, when the running parameter of the television end does not match the running parameter in the detection script, sending a modification instruction to the television end according to the detection script, And modifying, by the television end, the operating parameter to an operating parameter in the detecting script based on the received modification instruction;
当所述检测脚本的执行结果异常时,输出或保存执行所述检测脚本的检测日志。When the execution result of the detection script is abnormal, the detection log for executing the detection script is output or saved.
优选地,所述数字电视机检测方法还包括:Preferably, the digital television detection method further includes:
在开始所述执行加载所述虚拟键值后的所述检测脚本以对所述电视端进行问题检测的步骤时,开始记录检测日志,直至检测脚本完全执行完毕。When the detecting script that performs the loading of the virtual key value is started to perform the step of detecting the problem on the television end, the recording of the detection log is started until the detection script is completely executed.
此外,为实现上述目的,本发明还提供一种数字电视机检测装置,该数字电视机检测装置包括:In addition, in order to achieve the above object, the present invention further provides a digital television detecting apparatus, the digital television detecting apparatus comprising:
键值获取模块,用于在检测到电视端成功开机后,获取所述电视端中预先存储的虚拟键值;a key value obtaining module, configured to acquire a pre-stored virtual key value in the television end after detecting that the television end is successfully turned on;
问题检测模块,用于将获取到的所述虚拟键值加载至预先编写的检测脚本,并执行加载所述虚拟键值后的所述检测脚本以对所述电视端进行问题检测;a problem detection module, configured to load the acquired virtual key value into a pre-written detection script, and execute the detection script after loading the virtual key value to perform problem detection on the television end;
日志输出模块,用于当所述检测脚本的执行结果异常时,输出或保存执行所述检测脚本的检测日志。And a log output module, configured to output or save a detection log for executing the detection script when an execution result of the detection script is abnormal.
优选地,所述问题检测模块,还用于在开始执行该检测脚本时,开始记录检测日志,直至检测脚本完全执行完毕。Preferably, the problem detection module is further configured to start recording the detection log when the detection script is started to be executed until the detection script is completely executed.
优选地,所述问题检测模块,还用于在对所述电视端进行问题检测的过程中,当所述电视端的运行参数与所述检测脚本中的运行参数不匹配时,根据所述检测脚本向所述电视端发送修改指令,以供所述电视端基于接收到的修改指令将所述运行参数修改为所述检测脚本中的运行参数。Preferably, the problem detection module is further configured to: when the problem is detected in the television end, when the running parameter of the television end does not match the running parameter in the detection script, according to the detection script And sending, to the television end, a modification instruction, where the television terminal modifies the operation parameter to an operation parameter in the detection script based on the received modification instruction.
优选地,所述数字电视机检测装置还包括:Preferably, the digital television detecting device further comprises:
次数更新模块,用于更新所述检测脚本的执行次数;a number update module, configured to update the execution times of the detection script;
所述问题检测模块,还用于当所述执行次数小于预设执行次数时,将获取到的所述虚拟键值加载至预先编写的检测脚本,并执行所述检测脚本以对所述电视端进行问题检测。The problem detecting module is further configured to: when the number of executions is less than a preset number of executions, load the acquired virtual key value into a pre-written detection script, and execute the detection script to the television end Perform problem detection.
优选地,所述次数更新模块,还用于当所述检测脚本的执行结果正常时,更新所述检测脚本的执行次数;Preferably, the number of times update module is further configured to update the execution times of the detection script when the execution result of the detection script is normal;
所述问题检测模块,还用于当所述检测脚本的执行结果正常时,将获取到的所述虚拟键值加载至预先编写的检测脚本,并执行所述检测脚本以对所述电视端进行问题检测。The problem detection module is further configured to: when the execution result of the detection script is normal, load the acquired virtual key value into a pre-written detection script, and execute the detection script to perform the detection on the television end Problem detection.
优选地,所述次数更新模块,还用于当所述检测脚本的执行结果正常时,更新所述检测脚本的执行次数。Preferably, the number of times update module is further configured to update the execution times of the detection script when the execution result of the detection script is normal.
优选地,所述电视机检测装置还包括:Preferably, the television detecting device further comprises:
电平检测模块,用于检测所述电视端的电源电平;a level detecting module, configured to detect a power level of the television end;
开机判断模块,用于当检测到所述电视端的电源电平升高时,判断所述电视端成功开机。The power-on judging module is configured to determine that the television end is successfully powered on when detecting that the power level of the television end is increased.
本发明提出的数字电视机检测方法及装置,在进行数字电视机的问题检测时,自动从建立连接的电视端获取该电视端系统中预存的虚拟键值,使预先编写的检测脚本自适应该系统的虚拟键值并执行检测脚本,以对所述电视端进行问题检测,当脚本的执行结果为异常时,获取检测日志以供用户进行分析电视端的问题,该检测方法能够适用于不同系统电视机的检测,而且无需人工全程操作,提高了数字电视机的检测效率。The digital television detecting method and device provided by the present invention automatically acquires a virtual key value pre-stored in the television end system from the established television terminal when the problem of the digital television is detected, so that the pre-written detection script adapts the The virtual key value of the system executes a detection script to perform problem detection on the television end. When the execution result of the script is abnormal, the detection log is acquired for the user to analyze the problem of the television end, and the detection method can be applied to different system televisions. The detection of the machine, and the need for manual operation, improves the detection efficiency of the digital television.
附图说明DRAWINGS
图1为本发明数字电视机检测方法第一实施例的流程图;1 is a flow chart of a first embodiment of a digital television detecting method according to the present invention;
图2为本发明数字电视机检测方法第三实施例的流程图;2 is a flow chart of a third embodiment of a digital television detecting method according to the present invention;
图3为本发明数字电视机检测方法第三实施例的流程图;3 is a flow chart of a third embodiment of a digital television detecting method according to the present invention;
图4为本发明数字电视机检测装置第一实施例的功能模块示意图;4 is a schematic diagram of functional modules of a first embodiment of a digital television detecting apparatus according to the present invention;
图5为本发明数字电视机检测装置第二实施例的功能模块示意图;5 is a schematic diagram of functional modules of a second embodiment of a digital television detecting apparatus according to the present invention;
图6为本发明数字电视机检测装置第三实施例的功能模块示意图。FIG. 6 is a schematic diagram of functional modules of a third embodiment of a digital television detecting apparatus according to the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明提供一种数字电视机检测方法。The invention provides a digital television detection method.
参照图1所示,为本发明数字电视机检测方法第一实施例的流程图。Referring to Figure 1, there is shown a flow chart of a first embodiment of a digital television detection method of the present invention.
在第一实施例中,该数字电视机检测方法包括:In a first embodiment, the digital television detection method comprises:
步骤S10,在检测到电视端成功开机后,获取所述电视端中预先存储的虚拟键值。In step S10, after detecting that the television end is successfully turned on, the virtual key value pre-stored in the television end is obtained.
步骤S20,将获取到的所述虚拟键值加载至预先编写的检测脚本,并执行加载所述虚拟键值后的所述检测脚本以对所述电视端进行问题检测。In step S20, the obtained virtual key value is loaded into a pre-written detection script, and the detection script after loading the virtual key value is executed to perform problem detection on the television end.
由于不同系统的数字电视机预先存储的虚拟键值不同,因此在执行检测脚本之前先获取该电视端中预先存储的虚拟键值,在执行检测脚本进行问题检测时,检测终端与电视端之间可以通过标准串行接口连接实现脚本命令的发送,在终端上执行预先编写好的检测脚本对电视端进行检测,在其他实施例中也可以通过单片机与电视端连接。Since the virtual key values pre-stored by the digital televisions of different systems are different, the virtual key values pre-stored in the television end are acquired before the detection script is executed, and when the detection script is executed for problem detection, between the detection terminal and the television end is detected. The script command can be sent through a standard serial interface connection, and the pre-written test script can be executed on the terminal to detect the TV end. In other embodiments, the MCU can be connected to the TV end.
本实施例以模拟验证“电视恢复出厂设置后重启,设置十分钟睡眠待机后,循环播放视频文件,在待机瞬间背光与电源板波形异常”问题为例,对本发明进行进一步详细说明。可以理解的是,对于不同的问题进行检测时可以根据实际检测步骤预先编写检测脚本。也可以预先建立一个检测脚本框架,然后根据不同的问题设置不同的检测数据。In this embodiment, the present invention is further described in detail by taking the analog verification "restart after the TV is restored to the factory setting, setting the sleep video file after ten minutes of sleep standby, and the backlight and the power board waveform abnormality at the standby moment" as an example. It can be understood that the detection script can be pre-written according to the actual detection step when detecting different problems. It is also possible to pre-establish a detection script framework and then set different detection data according to different problems.
其中,上述检测脚本中包括问题检测步骤,以“脚本+键值”的方式编写成文件并存储,当执行检测脚本对电视端进行测试时,将获取到的虚拟键值加载到预先编写的检测脚本中。The detection script includes a problem detection step, which is written into a file and stored in a “script + key value” manner. When the detection script is executed to test the television end, the obtained virtual key value is loaded into the pre-written detection. In the script.
以下以检测问题“电视恢复出厂设置后重启,设置十分钟睡眠待机后,循环播放视频文件,在待机瞬间背光与电源板波形异常”为例说明本实施例提出的检测方法,检测脚本文件如下:The detection method proposed in this embodiment is described below by detecting the problem "Restart after the TV is restored to the factory setting, after the ten minutes of sleep standby is set, and the video file is looped and the waveform of the power supply board is abnormal at the standby moment". The detection script file is as follows:
“logcat -c;"logcat -c;
logcat;//打印检测日志 Logcat; / / print detection log
KEY_POWER_ON;//红外模块发送开机键值 KEY_POWER_ON; / / infrared module sends the power button value
module_system_wait(35*1000) ;//延时函数,单位为ms Module_system_wait(35*1000) ;//delay function in ms
am start -n com.factory.view/com.factory.view.MainMenu;//开启工厂 Am start -n Com.factory.view/com.factory.view.MainMenu;//Open the factory
KEY_DPAD_DOWN; KEY_DPAD_DOWN;
module_system_wait(500) ;//延时函数,单位为ms Module_system_wait(500) ;//delay function in ms
KEY_DPAD_CENTER; KEY_DPAD_CENTER;
module_system_wait(500);//延时函数,单位为ms Module_system_wait(500);//delay function in ms
KEY_DPAD_DOWN; KEY_DPAD_DOWN;
module_system_wait(500);//延时函数,单位为ms Module_system_wait(500);//delay function in ms
KEY_DPAD_DOWN; KEY_DPAD_DOWN;
module_system_wait(500);//延时函数,单位为ms Module_system_wait(500);//delay function in ms
KEY_DPAD_LEFT;//执行shop操作 KEY_DPAD_LEFT; / / execute shop operation
module_system_wait(3*1000);//延时函数,单位为ms Module_system_wait(3*1000);//delay function in ms
KEY_POWER_ON;KEY_POWER_ON;
module_system_wait(35*1000);//延时函数,单位为msModule_system_wait(35*1000);//delay function in ms
am start –nAm start –n
com.setting.system_setting/com.setting.system_setting.SetOSsleepActivity;//自动设置睡眠待机Com.setting.system_setting/com.setting.system_setting.SetOSsleepActivity;//Automatically set sleep standby
am start –nAm start –n
com.media.usb_video_play/com.setting.media.usb_video_play;//自动播放视频文件”Com.media.usb_video_play/com.setting.media.usb_video_play;//Autoplay video files"
按照上述检测脚本中的命令行操作指令,在开始执行该检测脚本时,即开始记录检测日志,直至检测脚本完全执行完毕。在执行检测脚本的过程中,键值以从电视端上获取到的虚拟键值的方式发送,在执行检测脚本的过程中,延时函数通过终端对定时器装置的控制实现。根据检测脚本中的命令行操作指令实现延时、自动设置睡眠待机、自动播放视频等操作以实现问题检测。According to the command line operation instruction in the above detection script, when the detection script is started, the detection log is started to be recorded until the detection script is completely executed. In the process of executing the detection script, the key value is sent in the manner of the virtual key value acquired from the television end. In the process of executing the detection script, the delay function is implemented by the terminal controlling the timer device. According to the command line operation instructions in the detection script, delay, automatic setting of sleep standby, automatic video playback, etc. are implemented to realize problem detection.
步骤S30,当所述检测脚本的执行结果异常时,输出或保存执行所述检测脚本的检测日志。In step S30, when the execution result of the detection script is abnormal, the detection log for executing the detection script is output or saved.
无论电视端在检测过程中是否会处出现问题,检测脚本都会执行完毕,只是在执行完毕之后,如果电视端出现问题,脚本执行结果的标记位会标记为异常状态,这时在执行所述检测脚本的检测日志中会体现出电视机异常信息的记录,因此需要获取该检测日志进行分析电视机的问题。此时,将只读存储器中缓存的检测日志存储到读写存储器中或者以其他方式输出给用户。本实施例提出的数字电视机检测方法,在进行数字电视的问题检测时,自动从建立连接的电视端获取该电视端系统中预存的虚拟键值,使预先编写的检测脚本自适应该系统的虚拟键值并执行检测脚本,以对所述电视端进行问题检测,当脚本的执行结果为异常时,获取检测日志以供用户进行分析电视端问题,该检测方法能够适用于不同系统电视机的检测,而且无需人工全程操作,提高了数字电视机检测效率。Regardless of whether the TV terminal will have problems during the detection process, the detection script will be executed, but after the execution is completed, if there is a problem on the TV side, the flag bit of the script execution result will be marked as an abnormal state, and the detection is performed. The detection log of the script will reflect the record of the TV abnormal information, so it is necessary to obtain the detection log to analyze the TV. At this time, the detection log cached in the read-only memory is stored in the read-write memory or otherwise output to the user. The digital television detecting method proposed in this embodiment automatically acquires a virtual key value pre-stored in the television end system from the established television terminal during the problem detection of the digital television, so that the pre-written detection script is adaptive to the system. The virtual key value is executed and the detection script is executed to perform problem detection on the television end. When the execution result of the script is abnormal, the detection log is acquired for the user to analyze the television end problem, and the detection method can be applied to different system televisions. Detection, and without the need for manual full operation, improve the efficiency of digital TV detection.
参照图2所示,基于第一实施例提出本发明数字电视机检测方法的第二实施例。在本实施例中,在步骤S10之前,该数字电视机检测方法还包括:Referring to Fig. 2, a second embodiment of the digital television detecting method of the present invention is proposed based on the first embodiment. In this embodiment, before the step S10, the digital television detecting method further includes:
步骤S40,检测所述电视端的电源电平;Step S40, detecting a power level of the television end;
步骤S50,当检测到所述电视端的电源电平升高时,判断所述电视端成功开机。Step S50, when it is detected that the power level of the television end is increased, it is determined that the television end is successfully powered on.
在本实施例中,可以通过检测电视端的电源电平的方式判断电视端是否开启,关于电平检测电路,可以采用通用的电平检测电路实现。可以理解的是,在电视端还没有开机时,是无法与检测终端建立连接的,因此,可以通过控制码值发生器向电视端发送红外码实现开机,当检测到所述电源电平升高时,可以判断电视机成功开机。In this embodiment, whether the television end is turned on can be determined by detecting the power level of the television end, and the level detecting circuit can be implemented by using a general level detecting circuit. It can be understood that, when the TV terminal has not been turned on, it is impossible to establish a connection with the detecting terminal. Therefore, the infrared code can be sent to the television terminal by the control code value generator to realize the power-on, and when the power level is detected to rise. When you can judge the TV is successfully turned on.
进一步地,步骤S20包括:在对所述电视端进行问题检测的过程中,当所述电视端的运行参数与所述检测脚本中的运行参数不匹配时,根据所述检测脚本向所述电视端发送修改指令,以供所述电视端基于接收到的修改指令将所述运行参数修改为所述检测脚本中的运行参数。Further, the step S20 includes: in the process of performing the problem detection on the television end, when the running parameter of the television end does not match the running parameter in the detection script, according to the detection script to the television end Sending a modification instruction for the television terminal to modify the operation parameter to an operation parameter in the detection script based on the received modification instruction.
现有的电视机功能检测方法无法更改数字电视机系统中的运行参数,例如待机时间的选项为五分钟、十分钟或者十五分钟,在进行检测时,无法进行其他待机时间的选择,本实施例提出的方法的检测脚本可以通过向电视端发送修改指令,以供电视端根据修改指令通过修改寄存器标志位等方式修改这些运行参数,以使电视机系统适应检测脚本进行问题检测。The existing TV function detection method cannot change the operation parameters in the digital TV system. For example, the standby time option is five minutes, ten minutes, or fifteen minutes. When the detection is performed, other standby time cannot be selected. The detection script of the method proposed by the method may send the modification instruction to the television end, so that the television end modifies the operation parameters by modifying the register flag according to the modification instruction, so that the television system adapts to the detection script for problem detection.
本实施例提出的数字电视机检测方法,通过电源电平的变化准确的判断电视端是否开机,并且在系统运行参数与检测脚本中的运行参数不匹配时,能够根据检测脚本修改系统运行参数以使电视机系统适应检测脚本进行问题检测。The digital television detecting method proposed in this embodiment can accurately determine whether the television end is powered on by the change of the power level, and can modify the operating parameters of the system according to the detecting script when the operating parameters of the system do not match the operating parameters in the detecting script. The television system is adapted to the detection script for problem detection.
参照图3所示,基于第一实施例提出本发明数字电视机检测方法的第三实施例。在本实施例中,在步骤S30之后,该数字电视机检测方法还包括:Referring to Fig. 3, a third embodiment of the digital television detecting method of the present invention is proposed based on the first embodiment. In this embodiment, after step S30, the digital television detection method further includes:
步骤S60,更新所述检测脚本的执行次数;Step S60, updating the execution times of the detection script;
当所述执行次数小于预设执行次数时,执行步骤S20。When the number of executions is less than the preset number of executions, step S20 is performed.
当检测脚本的执行结果异常时,说明在电视端的检测过程中出现了问题,由于数字电视在运行过程中可能会由于开机时间的长短、内存使用率、CPU占有率等的不同出现一些原因不定的概率性问题,为了使用户能够更加准确地获知电视出现问题的原因,可以根据用户的设置进行多次问题检测,重复上述执行检测脚本并获取检测日志的步骤。可以理解的是,预设的执行次数可以由用户根据检测问题的不同进行设置。When the execution result of the detection script is abnormal, it indicates that there is a problem in the detection process of the television end. Since the digital TV may be in operation, there may be some reasons due to the difference in the length of the booting time, the memory usage rate, the CPU occupancy rate, and the like. Probability problem, in order to enable the user to more accurately know the cause of the TV problem, the problem detection can be performed multiple times according to the user's settings, and the steps of executing the detection script and obtaining the detection log are repeated. It can be understood that the preset execution times can be set by the user according to the detection problem.
进一步地,在步骤S20之后,该数字电视机检测方法还包括:Further, after step S20, the digital television detection method further includes:
步骤S70,当所述检测脚本的执行结果正常时,更新所述检测脚本的执行次数,并执行步骤S20。Step S70, when the execution result of the detection script is normal, update the execution count of the detection script, and execute step S20.
由于电视端在使用过程中,电视机系统可能会由于内存使用率,CPU占有率等的不同出现各种各样的概率性问题,在执行检测脚本时可能出现没有出现问题的情况,此时,如果获取到的标记信息为正常状态,说明在电视端的检测过程中没有出现问题,此时也需要重复上述执行检测脚本并获取检测日志的步骤,在其他的实施例中,也可以在标记信息为正常状态时,不进行检测脚本执行次数的更新。Since the TV system is in use, the TV system may have various probabilistic problems due to different memory usage, CPU occupancy, etc., and there may be no problem when executing the detection script. At this time, If the obtained tag information is in a normal state, it indicates that there is no problem in the detection process of the television end. In this case, the step of executing the detection script and obtaining the detection log may be repeated. In other embodiments, the tag information may also be In the normal state, the number of times the detection script is executed is not updated.
本实施例提出的数字电视机检测方法,通过在多次重复执行检测脚本对电视端进行检测以使用户能够根据多次检测获得的检测日志准确判断电视端出现问题的原因。The digital television detecting method of the present embodiment detects the television end by repeatedly performing the detection script repeatedly to enable the user to accurately determine the cause of the problem at the television end according to the detection log obtained by the multiple detection.
本发明还提出一种数字电视机检测装置。The invention also proposes a digital television detection device.
参照图4所示,为本发明数字电视机检测装置第一实施例的功能模块示意图。Referring to FIG. 4, it is a schematic diagram of functional modules of a first embodiment of a digital television detecting apparatus of the present invention.
在该实施例中,该数字电视机检测装置包括:In this embodiment, the digital television detecting device comprises:
键值获取模块10,用于在检测到电视端成功开机后,获取所述电视端中预先存储的虚拟键值。The key value obtaining module 10 is configured to acquire a virtual key value pre-stored in the television end after detecting that the television end is successfully turned on.
问题检测模块20,用于将获取到的所述虚拟键值加载至预先编写的检测脚本,并执行加载所述虚拟键值后的所述检测脚本以对所述电视端进行问题检测。The problem detection module 20 is configured to load the acquired virtual key value into a pre-written detection script, and execute the detection script after loading the virtual key value to perform problem detection on the television end.
由于不同系统的电视端其预先存储的虚拟键值不同,因此在执行检测脚本之前键值获取模块10先获取该电视端中预先存储的虚拟键值,在执行检测脚本进行问题检测时,检测终端与电视端之间可以通过标准串行接口连接实现脚本命令的发送,问题检测模块20执行预先编写好的检测脚本对电视端进行检测。Since the pre-stored virtual key values are different on the television end of the different systems, the key value obtaining module 10 first acquires the virtual key value pre-stored in the television end before executing the detection script, and detects the terminal when performing the detection script to perform the problem detection. The sending of the script command can be implemented by the standard serial interface connection with the television end, and the problem detecting module 20 executes the pre-written detection script to detect the television end.
本实施例以模拟验证“电视恢复出厂设置后重启,设置十分钟睡眠待机后,循环播放视频文件,在待机瞬间背光与电源板波形异常”问题为例,对本发明进行进一步详细说明。可以理解的是,对于不同的问题进行检测时可以根据实际检测步骤预先编写检测脚本。也可以预先建立一个检测脚本框架,然后根据不同的问题设置不同的检测数据。In this embodiment, the present invention is further described in detail by taking the analog verification "restart after the TV is restored to the factory setting, setting the sleep video file after ten minutes of sleep standby, and the backlight and the power board waveform abnormality at the standby moment" as an example. It can be understood that the detection script can be pre-written according to the actual detection step when detecting different problems. It is also possible to pre-establish a detection script framework and then set different detection data according to different problems.
其中,上述检测脚本中包括问题检测步骤,以“脚本+键值”的方式编写成文件并存储,当问题检测模块20执行检测脚本对电视端进行测试时,问题检测模块20将获取到的虚拟键值加载到预先编写的检测脚本中。The detection detection step includes a problem detection step, which is written as a file and stored in a “script + key value” manner. When the problem detection module 20 executes the detection script to test the television end, the problem detection module 20 will acquire the virtual The key values are loaded into a pre-written detection script.
以下以检测问题“电视恢复出厂设置后重启,设置十分钟睡眠待机后,循环播放视频文件,在待机瞬间背光与电源板波形异常”为例说明,检测脚本文件如下:The following is a description of the problem: "Reboot after the TV is restored to the factory settings, after 10 minutes of sleep standby is set, the video file is played cyclically, and the backlight and power board waveforms are abnormal at the standby moment". The detection script file is as follows:
“logcat -c;"logcat -c;
logcat;//打印检测日志 Logcat; / / print detection log
KEY_POWER_ON;//红外模块发送开机键值 KEY_POWER_ON; / / infrared module sends the power button value
module_system_wait(35*1000) ;//延时函数,单位为ms Module_system_wait(35*1000) ;//delay function in ms
am start -n com.factory.view/com.factory.view.MainMenu;//开启工厂 Am start -n Com.factory.view/com.factory.view.MainMenu;//Open the factory
KEY_DPAD_DOWN; KEY_DPAD_DOWN;
module_system_wait(500) ;//延时函数,单位为ms Module_system_wait(500) ;//delay function in ms
KEY_DPAD_CENTER; KEY_DPAD_CENTER;
module_system_wait(500);//延时函数,单位为ms Module_system_wait(500);//delay function in ms
KEY_DPAD_DOWN; KEY_DPAD_DOWN;
module_system_wait(500);//延时函数,单位为ms Module_system_wait(500);//delay function in ms
KEY_DPAD_DOWN; KEY_DPAD_DOWN;
module_system_wait(500);//延时函数,单位为ms Module_system_wait(500);//delay function in ms
KEY_DPAD_LEFT;//执行shop操作 KEY_DPAD_LEFT; / / execute shop operation
module_system_wait(3*1000);//延时函数,单位为ms Module_system_wait(3*1000);//delay function in ms
KEY_POWER_ON;KEY_POWER_ON;
module_system_wait(35*1000);//延时函数,单位为msModule_system_wait(35*1000);//delay function in ms
am start –nAm start –n
com.setting.system_setting/com.setting.system_setting.SetOSsleepActivity;//自动设置睡眠待机Com.setting.system_setting/com.setting.system_setting.SetOSsleepActivity;//Automatically set sleep standby
am start –nAm start –n
com.media.usb_video_play/com.setting.media.usb_video_play;//自动播放视频文件”Com.media.usb_video_play/com.setting.media.usb_video_play;//Autoplay video files"
按照上述检测脚本中的命令行操作指令,在问题检测模块20开始执行该检测脚本时,即开始记录检测日志,直至检测脚本完全执行完毕。在问题检测模块20执行检测脚本的过程中,键值以从电视端上获取到的虚拟键值的方式向电视端发送,在执行检测脚本的过程中,延时函数通过终端对定时器装置的控制实现。根据检测脚本中的命令行操作指令实现延时、自动设置睡眠待机、自动播放视频等操作以实现问题检测。According to the command line operation instruction in the above detection script, when the problem detection module 20 starts executing the detection script, the detection log is started to be recorded until the detection script is completely executed. In the process of the detection module 20 executing the detection script, the key value is sent to the television end in the manner of the virtual key value acquired from the television end. In the process of executing the detection script, the delay function passes through the terminal to the timer device. Control implementation. According to the command line operation instructions in the detection script, delay, automatic setting of sleep standby, automatic video playback, etc. are implemented to realize problem detection.
日志输出模块30,用于当所述检测脚本的执行结果异常时,输出或保存执行所述检测脚本的检测日志。The log output module 30 is configured to output or save a detection log for executing the detection script when the execution result of the detection script is abnormal.
无论电视端在检测过程中是否会处出现问题,问题检测模块20都会执行完检测脚本,只是在执行完毕之后,如果电视端出现问题,脚本执行结果的标记信息为异常状态,这时在执行检测脚本的检测日志中会体现出电视机异常信息的记录,因此需要获取该检测日志进行分析电视机的问题。此时,日志输出模块30将只读存储器中缓存的检测日志存储到读写存储器中或者以其他方式输出给用户。Regardless of whether the TV terminal will have a problem during the detection process, the problem detection module 20 will execute the detection script, but after the execution is completed, if there is a problem on the television end, the flag information of the script execution result is an abnormal state, and the detection is performed at this time. The detection log of the script will reflect the record of the TV abnormal information, so it is necessary to obtain the detection log to analyze the TV. At this time, the log output module 30 stores the detection log cached in the read-only memory into the read-write memory or otherwise outputs it to the user.
本实施例提出的数字电视机检测装置,在进行数字电视的问题检测时,自动从建立连接的电视端获取该电视端系统中预存的虚拟键值,使预先编写的检测脚本自适应该系统的虚拟键值并执行检测脚本,以对装置电视端进行问题检测,当脚本的执行结果为异常时,获取检测日志以供用户进行分析电视端问题,该检测装置能够适用于不同系统电视机的检测,而且无需人工全程操作,提高了数字电视机的检测效率。The digital television detecting device of the present embodiment automatically acquires a virtual key value pre-stored in the television end system from the established television terminal during the problem detection of the digital television, so that the pre-written detection script is adaptive to the system. The virtual key value is executed and the detection script is executed to detect the problem on the television end of the device. When the execution result of the script is abnormal, the detection log is acquired for the user to analyze the television end problem, and the detection device can be applied to the detection of different system televisions. And without manual operation, the detection efficiency of the digital TV is improved.
参照图5所示,基于第一实施例提出本发明数字电视机检测装置的第二实施例。在本实施例中,该数字电视机检测装置还包括:Referring to Fig. 5, a second embodiment of the digital television detecting apparatus of the present invention is proposed based on the first embodiment. In this embodiment, the digital television detecting device further includes:
电平检测模块40,用于检测所述电视端的电源电平;a level detecting module 40, configured to detect a power level of the television end;
开机判断模块50,用于当检测到所述电视端的电源电平升高时,判断所述电视端成功开机。The power-on judging module 50 is configured to determine that the television end is successfully powered on when detecting that the power level of the television end is increased.
在本实施例中,可以通过检测电视端的电源电平的方式判断电视端是否开启,关于电平检测电路,可以采用通用的电平检测电路实现。可以理解的是,在电视端还没有开机时,是无法与检测装置建立连接的,因此,可以通过控制码值发生器向电视端发送红外码实现开机,当电平检测模块40检测到装置电源电平升高时,开机判断模块50可以判断电视机成功开机。In this embodiment, whether the television end is turned on can be determined by detecting the power level of the television end, and the level detecting circuit can be implemented by using a general level detecting circuit. It can be understood that, when the TV terminal is not turned on, it is impossible to establish a connection with the detecting device. Therefore, the infrared code can be sent to the TV terminal by the control code value generator to realize the booting, and when the level detecting module 40 detects the device power. When the level is raised, the power-on judging module 50 can judge that the television is successfully turned on.
进一步地,问题检测模块20,还用于在对所述电视端进行问题检测的过程中,当所述电视端的运行参数与所述检测脚本中的运行参数不匹配时,根据所述检测脚本向所述电视端发送修改指令,以供所述电视端基于接收到的修改指令将所述运行参数修改为所述检测脚本中的运行参数。Further, the problem detecting module 20 is further configured to: when the problem is detected in the television end, when the running parameter of the television end does not match the running parameter in the detecting script, according to the detecting script The television end sends a modification instruction, so that the television end modifies the operation parameter to an operation parameter in the detection script based on the received modification instruction.
现有的电视机功能检测装置无法更改数字电视机系统中的运行参数,例如待机时间的选项为五分钟、十分钟或者十五分钟,在进行检测时,无法进行其他待机时间的选择,本实施例的问题检测模块20在执行检测脚本可以通过向电视端发送修改指令,以供电视端根据修改指令通过修改寄存器标志位等方式修改这些运行参数,以使电视机系统适应检测脚本进行问题检测。The existing TV function detecting device cannot change the operating parameters in the digital television system. For example, the standby time option is five minutes, ten minutes, or fifteen minutes. When the detection is performed, other standby time cannot be selected. The problem detection module 20 can execute the detection script by sending a modification instruction to the television end, so that the television terminal can modify the operation parameters by modifying the register flag according to the modification instruction, so that the television system adapts to the detection script for problem detection.
本实施例提出的数字电视机检测装置,通过电源电平的变化准确的判断电视端是否开机,并且在系统运行参数与检测脚本中的相应信息不匹配时,能够根据检测脚本修改系统文件以使电视机系统适应检测脚本进行问题检测。The digital television detecting apparatus proposed in this embodiment can accurately determine whether the television end is powered on by the change of the power level, and can modify the system file according to the detection script when the system running parameter does not match the corresponding information in the detecting script. The TV system adapts to the detection script for problem detection.
参照图6所示,基于第一实施例提出本发明数字电视机检测装置的第三实施例。在本实施例中,该数字电视机检测装置还包括:Referring to Fig. 6, a third embodiment of the digital television detecting apparatus of the present invention is proposed based on the first embodiment. In this embodiment, the digital television detecting device further includes:
次数更新模块60,用于更新所述检测脚本的执行次数;The number update module 60 is configured to update the execution times of the detection script;
问题检测模块20,还用于当所述执行次数小于预设执行次数时,将获取到的所述虚拟键值加载至预先编写的检测脚本,并执行加载所述虚拟键值后的所述检测脚本以对所述电视端进行问题检测。The problem detection module 20 is further configured to: when the number of executions is less than the preset number of executions, load the acquired virtual key value into a pre-written detection script, and perform the detection after loading the virtual key value The script performs problem detection on the television end.
当检测脚本的执行结果异常时,说明在电视端的检测过程中出现了问题,由于数字电视在运行过程中可能会由于开机时间的长短、内存使用率、CPU占有率等的不同出现一些原因不定的概率性问题,为了使用户能够更加准确地获知电视出现问题的原因,可以根据用户的设置进行多次问题检测,次数更新模块60更新检测脚本的执行次数,当执行次数小于预设执行次数时,问题检测模块20重复执行将获取到的所述虚拟键值加载至预先编写的检测脚本,并执行加载所述虚拟键值后的所述检测脚本以对所述电视端进行问题检测。可以理解的是,预设执行次数可以由用户根据检测问题的不同进行设置。When the execution result of the detection script is abnormal, it indicates that there is a problem in the detection process of the television end. Since the digital TV may be in operation, there may be some reasons due to the difference in the length of the booting time, the memory usage rate, the CPU occupancy rate, and the like. Probability problem, in order to enable the user to more accurately know the cause of the problem in the television, the problem detection may be performed multiple times according to the setting of the user, and the number update module 60 updates the execution times of the detection script. When the execution times are less than the preset execution times, The problem detection module 20 repeatedly performs loading the acquired virtual key value to a pre-written detection script, and executes the detection script after loading the virtual key value to perform problem detection on the television end. It can be understood that the preset execution times can be set by the user according to the detection problem.
进一步地,次数更新模块60,还用于当所述检测脚本的执行结果正常时,更新所述检测脚本的执行次数。Further, the number update module 60 is further configured to update the execution times of the detection script when the execution result of the detection script is normal.
问题检测模块20,还用于当所述检测脚本的执行结果正常时,将获取到的所述虚拟键值加载至预先编写的检测脚本,并执行加载所述虚拟键值后的所述检测脚本以对所述电视端进行问题检测。The problem detection module 20 is further configured to: when the execution result of the detection script is normal, load the acquired virtual key value into a pre-written detection script, and execute the detection script after loading the virtual key value To perform problem detection on the television end.
由于电视端在使用过程中,电视机系统可能会由于内存使用率,CPU占有率等的不同出现各种各样的概率性问题,在执行检测脚本时可能出现没有出现问题的情况,如果检测脚本的执行结果正常时,说明在电视端的检测过程中没有出现问题,此时也需要重复上述执行检测脚本并输出或者保存检测日志,次数更新模块60更新检测脚本的执行次数。在其他的实施例中,也可以在检测脚本的执行结果正常时,不进行检测脚本执行次数的更新。Since the TV system may be in use during use, the TV system may have various probabilistic problems due to different memory usage, CPU occupancy, etc., and there may be no problem when executing the detection script, if the detection script When the execution result is normal, it indicates that there is no problem in the detection process of the television end. At this time, the above execution detection script needs to be repeated and the detection log is output or saved, and the number update module 60 updates the execution count of the detection script. In other embodiments, the update of the number of executions of the detection script may not be performed when the execution result of the detection script is normal.
本实施例提出的数字电视机检测装置,通过在多次重复执行检测脚本对电视端进行检测以使用户能够根据多次检测获得的检测日志准确判断电视端出现问题的原因。The digital television detecting apparatus proposed in this embodiment detects the television end by repeatedly performing the detection script repeatedly to enable the user to accurately determine the cause of the problem in the television end according to the detection log obtained by the multiple detection.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.
Claims (16)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510523966.8A CN105120259B (en) | 2015-08-24 | 2015-08-24 | Digital television detection method and device |
| CN201510523966.8 | 2015-08-24 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2017032122A1 true WO2017032122A1 (en) | 2017-03-02 |
Family
ID=54668129
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2016/084434 Ceased WO2017032122A1 (en) | 2015-08-24 | 2016-06-02 | Method and apparatus for detecting digital television set |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN105120259B (en) |
| WO (1) | WO2017032122A1 (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112788332A (en) * | 2021-01-07 | 2021-05-11 | 深圳市康冠科技股份有限公司 | Smart television testing method and related device |
| CN115225889A (en) * | 2022-05-12 | 2022-10-21 | 四川长虹网络科技有限责任公司 | Method for automatically detecting hardware interface of embedded product through serial port |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105120259B (en) * | 2015-08-24 | 2017-12-12 | 深圳Tcl新技术有限公司 | Digital television detection method and device |
| CN108156456A (en) * | 2017-12-25 | 2018-06-12 | 深圳创维-Rgb电子有限公司 | A kind of TV performance test methods, device and storage medium |
| TWI644560B (en) * | 2017-12-27 | 2018-12-11 | 瑞軒科技股份有限公司 | Audio-video device test system |
| CN109120925A (en) * | 2018-10-18 | 2019-01-01 | 深圳Tcl新技术有限公司 | Television set, tv fault localization method and computer readable storage medium |
| CN112203082B (en) * | 2020-09-27 | 2023-06-09 | 深圳创维-Rgb电子有限公司 | Data-driven framework test method for virtual key value, TV and readable storage medium |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20020101920A1 (en) * | 2000-10-26 | 2002-08-01 | Samsung Electronics Co., Ltd | Automatic test data generating apparatus and method |
| JP2007334559A (en) * | 2006-06-14 | 2007-12-27 | Sharp Corp | Maintenance devices, inspection devices, remote inspection systems, digital AV equipment and digital home appliances |
| CN101771894A (en) * | 2008-12-31 | 2010-07-07 | 深圳市同洲电子股份有限公司 | Testing system and method for recording track of remote controller and digital television receiving terminal |
| CN103024439A (en) * | 2012-12-27 | 2013-04-03 | 青岛海信电器股份有限公司 | Detection method and system for smart televisions |
| CN103634592A (en) * | 2013-12-09 | 2014-03-12 | 乐视致新电子科技(天津)有限公司 | Automatic test method and system for intelligent televisions |
| CN105120259A (en) * | 2015-08-24 | 2015-12-02 | 深圳Tcl新技术有限公司 | Detection method and apparatus for digital television |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101478696A (en) * | 2008-12-31 | 2009-07-08 | 深圳市同洲电子股份有限公司 | Automatic test method, system and multimedia device for test cases |
| CN101951529A (en) * | 2010-08-31 | 2011-01-19 | 中山大学 | Method and system for testing functions of set top box |
| CN102291595A (en) * | 2011-07-08 | 2011-12-21 | 深圳创维数字技术股份有限公司 | Testing method and device |
| US9071989B2 (en) * | 2012-02-01 | 2015-06-30 | Dynatrace Llc | System and methods that enable automated testing of mobile devices at a remote monitor site |
| CN103281558B (en) * | 2013-05-30 | 2015-06-10 | 青岛海信宽带多媒体技术有限公司 | Testing method based on set top box and set top box testing system |
-
2015
- 2015-08-24 CN CN201510523966.8A patent/CN105120259B/en active Active
-
2016
- 2016-06-02 WO PCT/CN2016/084434 patent/WO2017032122A1/en not_active Ceased
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20020101920A1 (en) * | 2000-10-26 | 2002-08-01 | Samsung Electronics Co., Ltd | Automatic test data generating apparatus and method |
| JP2007334559A (en) * | 2006-06-14 | 2007-12-27 | Sharp Corp | Maintenance devices, inspection devices, remote inspection systems, digital AV equipment and digital home appliances |
| CN101771894A (en) * | 2008-12-31 | 2010-07-07 | 深圳市同洲电子股份有限公司 | Testing system and method for recording track of remote controller and digital television receiving terminal |
| CN103024439A (en) * | 2012-12-27 | 2013-04-03 | 青岛海信电器股份有限公司 | Detection method and system for smart televisions |
| CN103634592A (en) * | 2013-12-09 | 2014-03-12 | 乐视致新电子科技(天津)有限公司 | Automatic test method and system for intelligent televisions |
| CN105120259A (en) * | 2015-08-24 | 2015-12-02 | 深圳Tcl新技术有限公司 | Detection method and apparatus for digital television |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112788332A (en) * | 2021-01-07 | 2021-05-11 | 深圳市康冠科技股份有限公司 | Smart television testing method and related device |
| CN112788332B (en) * | 2021-01-07 | 2022-08-16 | 深圳市康冠科技股份有限公司 | Smart television testing method and related device |
| CN115225889A (en) * | 2022-05-12 | 2022-10-21 | 四川长虹网络科技有限责任公司 | Method for automatically detecting hardware interface of embedded product through serial port |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105120259B (en) | 2017-12-12 |
| CN105120259A (en) | 2015-12-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2017032122A1 (en) | Method and apparatus for detecting digital television set | |
| WO2018076569A1 (en) | Electronic control unit-based program flashing method and apparatus | |
| WO2017107388A1 (en) | Hdmi version switching method and display device | |
| WO2019114269A1 (en) | Method for resuming playing program, television device, and computer readable storage medium | |
| WO2015007007A1 (en) | Method and device for adc automatic correction | |
| WO2019019374A1 (en) | Method, apparatus, and system for controlling household appliance with intelligent voice device | |
| WO2019051899A1 (en) | Terminal control method and device, and storage medium | |
| WO2018120429A1 (en) | Resource update method, terminal, computer readable storage medium and resource update device | |
| WO2018058919A1 (en) | Identification information generating method, apparatus, device, and computer readable storage medium | |
| WO2018082482A1 (en) | Network sharing method, and method and system for accessing network | |
| WO2018120457A1 (en) | Data processing method, apparatus, device, and computer readable storage medium | |
| WO2017201899A1 (en) | Method and apparatus for connecting to bluetooth device | |
| WO2017084302A1 (en) | Method for playing boot video of a display terminal and display terminal | |
| WO2018233367A1 (en) | Filing method, device, terminal and computer readable storage medium | |
| WO2019051905A1 (en) | Air conditioner control method, air conditioner, and computer readable storage medium | |
| WO2018032679A1 (en) | Setting method and device for timed startup and shutoff of television | |
| WO2017219485A1 (en) | Smart television and control method therefor | |
| WO2018032680A1 (en) | Method and system for playing audio and video | |
| WO2018000856A1 (en) | Method implementing sdn overlay network message forwarding, terminal, apparatus, and computer readable storage medium | |
| WO2018032688A1 (en) | Method and apparatus for controlling boot video playing of terminal device | |
| WO2017045441A1 (en) | Smart television-based audio playback method and apparatus | |
| WO2016187998A1 (en) | Method and device for dynamically adjusting backlight | |
| WO2018153133A1 (en) | Household appliance detection method and system | |
| WO2019000466A1 (en) | Face recognition method and apparatus, storage medium, and electronic device | |
| WO2017161702A1 (en) | Method and system indicating washing machine status |
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: 16838382 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: 16838382 Country of ref document: EP Kind code of ref document: A1 |