WO2021004343A1 - Switching analysis method for signal source - Google Patents
Switching analysis method for signal source Download PDFInfo
- Publication number
- WO2021004343A1 WO2021004343A1 PCT/CN2020/099547 CN2020099547W WO2021004343A1 WO 2021004343 A1 WO2021004343 A1 WO 2021004343A1 CN 2020099547 W CN2020099547 W CN 2020099547W WO 2021004343 A1 WO2021004343 A1 WO 2021004343A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- signal source
- data
- source interface
- interface
- analysis method
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
- H04N5/262—Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
- H04N5/268—Signal distribution or switching
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
- H04N5/765—Interface circuits between an apparatus for recording and another apparatus
Definitions
- the present invention relates to the technical field of signal processing, in particular to a switching analysis method of a signal source.
- TVs usually support the input of multiple signal source interfaces, such as ATV (analog TV signal), DTV (digital TV signal), HDMI (audio image signal), AV (analog video signal), etc.
- ATV analog TV signal
- DTV digital TV signal
- HDMI audio image signal
- AV analog video signal
- users often connect multiple input devices, such as connecting ATV signal lines to watch analog TV, connecting to PS4 to play games, and connecting to DVDs to watch movies.
- the code logic of signal source interface switching is a very complicated process. Taking the TV with logic chip as an example, the switching process from the ATV signal source interface to the HDMI signal source interface is shown in Figure 1. From Figure 1, we can see that this process is relatively long, and involves the java layer, c++ layer, and driver layer. , And even the hardware level, and the R&D personnel involved are at least four people (usually one person is responsible for one module). If we want to optimize the switching speed of the signal source interface, we need to figure out which module needs to be optimized, and even which piece of code needs to be optimized.
- a signal source switching analysis method wherein a hardware interface and a hardware driver are provided, the hardware driver starts the hardware interface, and the switching analysis method specifically includes:
- Step S1 Provide at least one signal source interface, and the hardware driver activates the signal source interface;
- Step S2 Add a print mark to the signal source interface
- Step S3 Switch the signal source interface, generate, record and save the debugging print report of the signal source interface
- Step S4 Export the debugging print report, and analyze the debugging print report to count the average value of the data at each stage and output the result.
- the print mark includes the currently switched signal source interface and/or the current sub-stage executed by the signal source interface and/or the current execution time of the sub-stage.
- the debugging print report is exported in the form of text
- the average value of each stage data is statistically output in the form of a table.
- an analysis tool is used to analyze the debugging print report.
- the analysis tool is written in shell and/or phython and/or java and/or c++ language to analyze the debugging print report.
- the specific steps of parsing the debugging print report include:
- Step 40 Scan the debugging print report in a bottom-up order
- Step S41 Determine whether it is the first scan of the print mark of the currently switched signal source interface
- step S42 If yes, go to step S42;
- Step S42 Create a new data data array, in which data of each stage of each data element of the signal source interface currently switched will be saved;
- the print marks of the current sub-stage executed by the signal source interface and the execution time of the current sub-stage are scanned, they will correspond to the current sub-stage executed by the signal source interface.
- the data of and the data corresponding to the execution time of the current sub-phase are stored in the data data array according to the scanning order.
- the method further includes:
- Step S43 Determine whether it is the second scan of the print mark of the currently switched signal source interface
- Step S44 Determine whether the currently switched signal source interface is the same type of signal source interface switching operation
- Step 45 Add one to the number of operations of the variable array, and respectively update the data corresponding to the current sub-stage executed by the signal source interface and the data corresponding to the current execution time of the sub-stage into the data data array ;
- Step S46 It is judged whether the scanning of the debugging print report is finished
- step S47 If yes, go to step S47;
- Step S47 Divide the data corresponding to the execution time of the current sub-phase in each data element in the data data array by the number of operations corresponding to each variable element in the variable array to obtain statistics The average value of each stage data of each data element in each data data array is output.
- the signal source interface includes at least an analog TV signal interface and/or a digital TV signal interface and/or an analog video signal interface and/or an audio image signal interface.
- the technical solution of the present invention has the beneficial effects of providing a signal source switching analysis method to realize the automatic statistical work of signal source interface interface switching data.
- the signal source interface switching data can be provided quickly and accurately, which greatly improves data statistics. Efficiency, which in turn improves R&D efficiency
- Figure 1 is a flow chart of the steps of switching from an ATV signal source interface to an HDMI signal source interface in the prior art
- FIG. 2 is a flowchart of steps of a signal source switching analysis method according to an embodiment of the present invention
- FIG. 3 is a step flowchart 1 of the specific steps of analyzing, debugging, and printing a report according to an embodiment of the present invention
- FIG. 4 is a second step flowchart of the specific steps of analyzing, debugging and printing a report according to an embodiment of the present invention.
- the present invention includes a signal source switching analysis method, wherein a hardware interface and a hardware driver are provided, the hardware driver activates the hardware interface, and the switching analysis method specifically includes:
- Step S1 Provide at least one signal source interface, and the hardware driver activates the signal source interface;
- Step S2 Add a print mark to the signal source interface
- Step S3 switch the signal source interface, generate, record and save the debugging print report of the signal source interface
- Step S4 Export the debugging print report, and analyze the debugging print report to count the average value of the data at each stage and output the result.
- a hardware interface and a hardware driver activates the hardware interface, that is, switches the signal source signal by switching the interface, wherein the signal source
- the interface includes at least an analog television signal interface ATV and/or a digital television signal interface DTV and/or an analog video signal interface AV and/or an audio image signal interface HDMI.
- each module is in accordance with a unified printing mark.
- debugging printing is added, and a debugging printing report is generated.
- an automated tool is used to calculate statistics based on the printing mark and output the result as text .
- the debugging print report is exported in the form of text; the average value of the data of each stage is statistically output in the form of a table.
- the signal source interface switching data can be provided quickly and accurately, which greatly improves the efficiency of data statistics, thereby improving the efficiency of research and development.
- step S2 the printing mark includes the currently switched signal source interface and/or the sub-phase executed by the current signal source interface and/or the execution time of the current sub-phase.
- the currently switched signal source interface refers to the “Operation” keyword that records which signal source interface is currently switched to;
- the sub-stage executed by the current signal source interface refers to the “Step” keyword that records the current code flow execution to the operation Which sub-phase;
- the execution time of the current sub-phase refers to when the “Time” keyword records the execution of the sub-phase.
- the user can switch the signal source interface while at the same time through the serial port or output the debug print with a fixed mark.
- all serial tools such as SecureCRT have automatic saving.
- the printing function is saved in the form of text.
- step S4 an analysis tool is used to analyze and debug the printed report.
- the analysis tool adopts the tv_profile_tool tool
- the tv_profile_tool adopts the shell and/or phython and/or java and/or c++ language to write to analyze and debug the print report.
- the specific steps of parsing and debugging the print report include:
- Step 40 Scan, debug and print the report in the order from bottom to top;
- Step S41 Judge whether it is the first time to scan the print mark of the currently switched signal source interface
- step S42 If yes, go to step S42;
- Step S42 Create a new data data array, and save the data of each data element of each data element of the currently switched signal source interface in the data data array;
- variable array the number of operations of each variable element of the currently switched signal source interface will be recorded, and each time a scan is performed, the data element corresponds to the variable element one by one.
- step S40 when the print marks of the sub-stage executed by the current signal source interface and the execution time of the current sub-stage are scanned, the data corresponding to the sub-stage executed by the current signal source interface and the data corresponding to the current sub-stage are respectively scanned.
- the data of the execution time of the stage is saved in the data group according to the scanning order.
- step S42 the method further includes:
- Step S43 Determine whether it is the second scan of the print mark of the currently switched signal source interface
- Step S44 Determine whether the currently switched signal source interface is the same type of signal source interface switching operation
- Step 45 Add one to the number of operations of the variable array, and respectively update the data corresponding to the sub-stage executed by the current signal source interface and the data corresponding to the execution time of the current sub-stage into the data array;
- Step S46 It is judged whether the scanning of the debugging print report is finished
- step S47 If yes, go to step S47;
- Step S47 Divide the data corresponding to the execution time of the current sub-stage in each data array by the number of operations of the corresponding variable array to obtain statistics and output the average value of the data in each stage in each data array.
- the content of the HashMap data array scanned for the first time is:
- the above calculation method is: the data of each stage minus the data of the previous stage, and then divided by the number of times corresponding to count.
- the final text output result can be sorted into a table with excel, so that you can intuitively see how much time is spent in each stage of each signal source interface operation.
- this analysis tool does not limit the switching times of a certain signal source interface of a test plan, and can be combined in any combination.
- ATV switches HDMI 20 times
- HDMI switches DTV 15 times
- DTV switches AV 16 times
- AV does not switch ATV. According to probability, the more switching times, the more accurate the statistical results.
- the work of automatic statistics of signal source interface switching data is realized, and the signal source interface switching data can be provided quickly and accurately, which greatly improves the efficiency of data statistics, thereby improving the efficiency of research and development.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Debugging And Monitoring (AREA)
Abstract
The present invention relates to the technical field of signal processing, and particularly relates to a switching analysis method for a signal source. A hardware interface and a hardware driver are provided, and the hardware driver starts the hardware interface. The switching analysis method specifically comprises: step S1, providing at least one signal source interface, and starting the signal source interface by the hardware driver; step S2, adding a printing mark to the signal source interface; step S3, switching the signal source interface, and generating, recording, and saving the debugging and printing report of the signal source interface; and step S4, exporting the debugging and printing report, and parsing the debugging and printing report to collect statistics about the average value output result of each stage of data. The technical solution of the present invention has the following beneficial effects: automatically collecting statistics about the interface switching data of the signal source interface, being capable of fast and accurately providing the signal source interface switching data, and greatly improving the efficiency of data statistics, thereby improving research and development efficiency.
Description
本发明涉及信号处理技术领域,尤其涉及一种信号源的切换分析方法。The present invention relates to the technical field of signal processing, in particular to a switching analysis method of a signal source.
现有技术中,电视通常会支持多种信号源接口的输入,比如ATV(模拟电视信号),DTV(数字电视信号),HDMI(音频影像信号),AV(模拟视频信号)等。用户在使用电视的时候,时常会接多种输入设备,比如接ATV信号线看模拟电视,接PS4玩游戏,接DVD看电影。In the prior art, TVs usually support the input of multiple signal source interfaces, such as ATV (analog TV signal), DTV (digital TV signal), HDMI (audio image signal), AV (analog video signal), etc. When using a TV, users often connect multiple input devices, such as connecting ATV signal lines to watch analog TV, connecting to PS4 to play games, and connecting to DVDs to watch movies.
当用户看完模拟电视,想要玩一下PS4的游戏的时候,就需要在电视上把ATV信号源接口切换成HDMI信号源接口。此时,如果切到HDMI信号源接口的速度很慢的话,会让用户体验比较差,从而觉得这个电视性能不行。When the user finishes watching the analog TV and wants to play a PS4 game, he needs to switch the ATV signal source interface to the HDMI signal source interface on the TV. At this time, if the speed of switching to the HDMI signal source interface is very slow, the user experience will be poor, and the performance of this TV will be considered poor.
因此,信号源接口的切换性能也是电视研发的一个重要指标。信号源接口切换的代码逻辑是一个很复杂的过程。以逻辑芯片的电视为例,ATV信号源接口切换到HDMI信号源接口的切换流程如图1所示,从图1中我们看到这个流程比较长,而且涉及到java层,c++层,驱动层,乃至硬件层面,并且涉及的研发人员至少是四个人(通常一个人负责一个模块)。如果我们想要去优化信号源接口的切换速度,那就需要搞清楚哪一个模块需要优化,甚至是哪一段代码需要优化。Therefore, the switching performance of the signal source interface is also an important indicator of TV research and development. The code logic of signal source interface switching is a very complicated process. Taking the TV with logic chip as an example, the switching process from the ATV signal source interface to the HDMI signal source interface is shown in Figure 1. From Figure 1, we can see that this process is relatively long, and involves the java layer, c++ layer, and driver layer. , And even the hardware level, and the R&D personnel involved are at least four people (usually one person is responsible for one module). If we want to optimize the switching speed of the signal source interface, we need to figure out which module needs to be optimized, and even which piece of code needs to be optimized.
目前,大家是通过打印去统计每一段消耗的时间,然后把每个数据统计到表格里面,计算出某一段流程消耗的时间。以ATV信号源接口切换HDMI1信号源接口的部分调试打印为例,从按下HDMI1信号源接口的按钮,到java层电视服务启动HDMI播放,总共消耗了一段时间,例如为0.436秒(109.025s减去108.589s,得到0.436s)。只是ATV信号源接口切换HDMI1信号源接口的流程的一小部分,并非完整流程的打印,我们就已经看到有7个数据,并且需要这些数据减去起始播放的时间108.589s,才能得到直观的流程消耗时间。At present, everyone counts the time consumed by each segment by printing, and then counts each data into a table to calculate the time consumed by a certain process. Take the partial debugging and printing of the HDMI1 signal source interface switching from the ATV signal source interface as an example. From pressing the button of the HDMI1 signal source interface to the java layer TV service starting HDMI playback, it takes a total of time, for example, 0.436 seconds (109.025s minus Go to 108.589s and get 0.436s). It's just a small part of the process of switching between the ATV signal source interface and the HDMI1 signal source interface. It is not a complete process of printing. We have already seen that there are 7 data, and we need these data minus the initial playback time 108.589s to get the intuitive The process consumes time.
甚至可怕的是,以支持1个ATV信号源接口,1个DTV信号源接口,3个HDMI信号源接口,1个AV信号源接口的电视为例,总共有12组信号源接口通道的切换组合。并且,为了数据的准确性,我们通常要测试5遍,然后取平均值得到最终的信号源接口切换性能结果。因此,一次完整的测试,需要切换信号源接口通道至少60次,然后统计打印数据上千次。如果想知道信号源接口切换的时间消耗在哪些代码段,或者想知道一个代码改动对信号源接口切换性能有没有优化,有没有副作用。如果通过之前手动统计调试打印的方式,一次完整的数据统计,可能要花费一个工程师大约1周的时间。这对人力资源安排是个极大的考验,同时信号源接口性能相关的研发也会进展十分缓慢。Even scary is that, taking a TV that supports 1 ATV signal source interface, 1 DTV signal source interface, 3 HDMI signal source interfaces, and 1 AV signal source interface as an example, there are a total of 12 signal source interface channel switching combinations. . And, for the accuracy of the data, we usually have to test 5 times, and then take the average value to get the final signal source interface switching performance result. Therefore, a complete test needs to switch the signal source interface channel at least 60 times, and then count and print the data thousands of times. If you want to know which code segments the signal source interface switching time consumes, or want to know whether a code change optimizes the signal source interface switching performance, and whether there are side effects. If you use the previous manual statistics, debugging and printing methods, a complete data statistics may take an engineer about 1 week. This is a great test for human resources arrangements, and at the same time, research and development related to the performance of signal source interfaces will progress very slowly.
发明内容Summary of the invention
针对现有技术中存在的上述问题,现提供一种信号源的切换分析方法。In view of the above-mentioned problems in the prior art, a signal source switching analysis method is now provided.
具体技术方案如下:The specific technical solutions are as follows:
一种信号源的切换分析方法,其中,提供一硬件接口与一硬件驱动,所 述硬件驱动启动所述硬件接口,所述切换分析方法具体包括:A signal source switching analysis method, wherein a hardware interface and a hardware driver are provided, the hardware driver starts the hardware interface, and the switching analysis method specifically includes:
步骤S1、提供至少一个信号源接口,所述硬件驱动启动所述信号源接口;Step S1: Provide at least one signal source interface, and the hardware driver activates the signal source interface;
步骤S2、对所述信号源接口添加打印标记;Step S2: Add a print mark to the signal source interface;
步骤S3、切换所述信号源接口,生成并记录保存所述信号源接口的调试打印报告;Step S3: Switch the signal source interface, generate, record and save the debugging print report of the signal source interface;
步骤S4、导出所述调试打印报告,并解析所述调试打印报告以统计各个阶段数据的平均值输出结果。Step S4: Export the debugging print report, and analyze the debugging print report to count the average value of the data at each stage and output the result.
优选的,于所述步骤S2中,所述打印标记包括当前切换的信号源接口和/或当前所述信号源接口执行的子阶段和/或当前所述子阶段的执行时间。Preferably, in the step S2, the print mark includes the currently switched signal source interface and/or the current sub-stage executed by the signal source interface and/or the current execution time of the sub-stage.
优选的,于所述步骤S4中,所述调试打印报告以文本的形式导出;Preferably, in the step S4, the debugging print report is exported in the form of text;
各个阶段数据的平均值以表格的形式统计输出。The average value of each stage data is statistically output in the form of a table.
优选的,于所述步骤S4中,采用一解析工具解析所述调试打印报告。Preferably, in the step S4, an analysis tool is used to analyze the debugging print report.
优选的,所述解析工具采用shell和/或phython和/或java和/或c++语言进行编写,以解析所述调试打印报告。Preferably, the analysis tool is written in shell and/or phython and/or java and/or c++ language to analyze the debugging print report.
优选的,于所述步骤S4中,解析所述调试打印报告具体步骤包括:Preferably, in the step S4, the specific steps of parsing the debugging print report include:
步骤40、按照从下至上的顺序扫描所述调试打印报告;Step 40: Scan the debugging print report in a bottom-up order;
步骤S41、判断是否是第一次扫描当前切换的所述信号源接口的所述打印标记;Step S41: Determine whether it is the first scan of the print mark of the currently switched signal source interface;
若是,则转向步骤S42;If yes, go to step S42;
若否,则继续扫描;If not, continue scanning;
步骤S42、新建一数据数据数组,于所述数据数据数组中将保存当前切换的所述信号源接口的每个数据元素的各个阶段的数据;Step S42: Create a new data data array, in which data of each stage of each data element of the signal source interface currently switched will be saved;
新建一变量数组,于所述变量数组中将记录当前切换的所述信号源接口的每个变量元素的操作次数,且每进行一次扫描,所述数据元素与所述变量元素一一对应。Create a new variable array, and record the number of operations of each variable element of the signal source interface currently switched in the variable array, and each scan is performed, the data element corresponds to the variable element one-to-one.
优选的,于所述步骤S40中,当扫描到当前所述信号源接口执行的子阶 段与当前所述子阶段的执行时间的打印标记时,分别将对应当前所述信号源接口执行的子阶段的数据与对应当前所述子阶段的执行时间的数据按照扫描顺序保存至所述数据数据数组中。Preferably, in the step S40, when the print marks of the current sub-stage executed by the signal source interface and the execution time of the current sub-stage are scanned, they will correspond to the current sub-stage executed by the signal source interface. The data of and the data corresponding to the execution time of the current sub-phase are stored in the data data array according to the scanning order.
优选的,于所述步骤S42之后还包括:Preferably, after the step S42, the method further includes:
步骤S43、判断是否是第二次扫描当前切换的所述信号源接口的所述打印标记;Step S43: Determine whether it is the second scan of the print mark of the currently switched signal source interface;
若是,则转向步骤S44;If yes, go to step S44;
若否,则继续扫描;If not, continue scanning;
步骤S44、判断当前切换的所述信号源接口是否是同类型的所述信号源接口切换操作;Step S44: Determine whether the currently switched signal source interface is the same type of signal source interface switching operation;
若是,则转向步骤45;If yes, go to step 45;
若否,则返回所述步骤S41;If not, return to the step S41;
步骤45、将所述变量数组的操作次数加一,并且分别将对应当前所述信号源接口执行的子阶段的数据与对应当前所述子阶段的执行时间的数据更新至所述数据数据数组中;Step 45: Add one to the number of operations of the variable array, and respectively update the data corresponding to the current sub-stage executed by the signal source interface and the data corresponding to the current execution time of the sub-stage into the data data array ;
步骤S46、判断所述调试打印报告是否扫描结束;Step S46: It is judged whether the scanning of the debugging print report is finished;
若是,则转向步骤S47;If yes, go to step S47;
若否,则返回所述步骤S43;If not, return to the step S43;
步骤S47、将所述数据数据数组中每个所述数据元素对应当前所述子阶段的执行时间的数据,分别除以所述变量数组中每个所述变量元素对应的操作次数,以统计得到每个所述数据数据数组中每个所述数据元素的各个阶段数据的平均值并输出。Step S47: Divide the data corresponding to the execution time of the current sub-phase in each data element in the data data array by the number of operations corresponding to each variable element in the variable array to obtain statistics The average value of each stage data of each data element in each data data array is output.
优选的,所述信号源接口至少包括模拟电视信号接口和/或数字电视信号接口和/或模拟视频信号接口和/或音频影像信号接口。Preferably, the signal source interface includes at least an analog TV signal interface and/or a digital TV signal interface and/or an analog video signal interface and/or an audio image signal interface.
本发明的技术方案有益效果在于:提供一种信号源的切换分析方法,实 现自动化统计信号源接口接口切换数据的工作,信号源接口切换数据能够又快又准确地提供出来,大大提升数据统计的效率,进而提高研发效率。The technical solution of the present invention has the beneficial effects of providing a signal source switching analysis method to realize the automatic statistical work of signal source interface interface switching data. The signal source interface switching data can be provided quickly and accurately, which greatly improves data statistics. Efficiency, which in turn improves R&D efficiency
参考所附附图,以更加充分的描述本发明的实施例。然而,所附附图仅用于说明和阐述,并不构成对本发明范围的限制。With reference to the attached drawings, the embodiments of the present invention are described more fully. However, the attached drawings are only for illustration and illustration, and do not constitute a limitation on the scope of the present invention.
图1为现有技术中,ATV信号源接口切换到HDMI信号源接口的切换的步骤流程图;Figure 1 is a flow chart of the steps of switching from an ATV signal source interface to an HDMI signal source interface in the prior art;
图2为本发明的实施例的信号源的切换分析方法的步骤流程图;2 is a flowchart of steps of a signal source switching analysis method according to an embodiment of the present invention;
图3为本发明的实施例的解析调试打印报告具体步骤的步骤流程图一;FIG. 3 is a step flowchart 1 of the specific steps of analyzing, debugging, and printing a report according to an embodiment of the present invention;
图4为本发明的实施例的解析调试打印报告具体步骤的步骤流程图二。FIG. 4 is a second step flowchart of the specific steps of analyzing, debugging and printing a report according to an embodiment of the present invention.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
需要说明的是,在不冲突的情况下,本发明中的实施例及实施例中的特征可以相互组合。It should be noted that the embodiments of the present invention and the features in the embodiments can be combined with each other if there is no conflict.
下面结合附图和具体实施例对本发明作进一步说明,但不作为本发明的限定。The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments, but it is not a limitation of the present invention.
本发明包括一种信号源的切换分析方法,其中提供一硬件接口与一硬件驱动,所述硬件驱动启动所述硬件接口,切换分析方法具体包括:The present invention includes a signal source switching analysis method, wherein a hardware interface and a hardware driver are provided, the hardware driver activates the hardware interface, and the switching analysis method specifically includes:
步骤S1、提供至少一个信号源接口,所述硬件驱动启动所述信号源接口;Step S1: Provide at least one signal source interface, and the hardware driver activates the signal source interface;
步骤S2、对信号源接口添加打印标记;Step S2: Add a print mark to the signal source interface;
步骤S3、切换信号源接口,生成并记录保存信号源接口的调试打印报告;Step S3, switch the signal source interface, generate, record and save the debugging print report of the signal source interface;
步骤S4、导出调试打印报告,并解析调试打印报告以统计各个阶段数据的平均值输出结果。Step S4: Export the debugging print report, and analyze the debugging print report to count the average value of the data at each stage and output the result.
通过上述信号源的切换分析方法的技术方案,如图2所示,提供一硬件接口与一硬件驱动,所述硬件驱动启动所述硬件接口,即通过切换接口而切换信号源信号,其中信号源接口至少包括模拟电视信号接口ATV和/或数字电视信号接口DTV和/或模拟视频信号接口AV和/或音频影像信号接口HDMI。在电视系统的代码中,各个模块按照统一的打印标记,在每个代码执行流程阶段,添加调试打印,生成调试打印报告,然后通过自动化工具根据该打印标记来统计数据,并把结果输出成文本,其中,调试打印报告以文本的形式导出;各个阶段数据的平均值以表格的形式统计输出。Through the above-mentioned technical solution of the signal source switching analysis method, as shown in FIG. 2, a hardware interface and a hardware driver are provided. The hardware driver activates the hardware interface, that is, switches the signal source signal by switching the interface, wherein the signal source The interface includes at least an analog television signal interface ATV and/or a digital television signal interface DTV and/or an analog video signal interface AV and/or an audio image signal interface HDMI. In the code of the TV system, each module is in accordance with a unified printing mark. At each stage of the code execution process, debugging printing is added, and a debugging printing report is generated. Then, an automated tool is used to calculate statistics based on the printing mark and output the result as text , Among them, the debugging print report is exported in the form of text; the average value of the data of each stage is statistically output in the form of a table.
进一步地,实现自动化统计信号源接口切换数据的工作,信号源接口切换数据能够又快又准确地提供出来,大大提升数据统计的效率,进而提高研发效率。Further, to realize the automatic statistics of the signal source interface switching data, the signal source interface switching data can be provided quickly and accurately, which greatly improves the efficiency of data statistics, thereby improving the efficiency of research and development.
上述技术方案中,于步骤S2中,打印标记包括当前切换的信号源接口和/或当前信号源接口执行的子阶段和/或当前子阶段的执行时间。In the above technical solution, in step S2, the printing mark includes the currently switched signal source interface and/or the sub-phase executed by the current signal source interface and/or the execution time of the current sub-phase.
例如,当前切换的信号源接口指“Operation”关键字记录的是当前切换到哪个信号源接口;当前信号源接口执行的子阶段指“Step”关键字记录的是当前代码流执行到了该操作的哪个子阶段;当前子阶段的执行时间指“Time”关键字记录的是该子阶段在什么时候执行。For example, the currently switched signal source interface refers to the “Operation” keyword that records which signal source interface is currently switched to; the sub-stage executed by the current signal source interface refers to the “Step” keyword that records the current code flow execution to the operation Which sub-phase; the execution time of the current sub-phase refers to when the “Time” keyword records the execution of the sub-phase.
进一步地,在电视系统的运行代码里加好了这些调试打印后,用户一边切换信号源接口,同时可以一边通过串口或者输出加了固定标记的调试打印,其中,SecureCRT等所有串口工具均具备自动保存打印的功能,以文本的形式保存。Furthermore, after adding these debugging prints to the running code of the TV system, the user can switch the signal source interface while at the same time through the serial port or output the debug print with a fixed mark. Among them, all serial tools such as SecureCRT have automatic saving. The printing function is saved in the form of text.
上述技术方案中,于步骤S4中,采用一解析工具解析调试打印报告。In the above technical solution, in step S4, an analysis tool is used to analyze and debug the printed report.
例如,解析工具采用tv_profile_tool工具,tv_profile_tool采用shell和/或phython和/或java和/或c++语言进行编写,以解析调试打印报告。For example, the analysis tool adopts the tv_profile_tool tool, and the tv_profile_tool adopts the shell and/or phython and/or java and/or c++ language to write to analyze and debug the print report.
进一步地,如图3所示,解析调试打印报告具体步骤包括:Further, as shown in Figure 3, the specific steps of parsing and debugging the print report include:
步骤40、按照从下至上的顺序扫描调试打印报告;Step 40: Scan, debug and print the report in the order from bottom to top;
步骤S41、判断是否是第一次扫描当前切换的信号源接口的打印标记;Step S41: Judge whether it is the first time to scan the print mark of the currently switched signal source interface;
若是,则转向步骤S42;If yes, go to step S42;
若否,则继续扫描;If not, continue scanning;
步骤S42、新建一数据数据数组,于数据数据数组中将保存当前切换的信号源接口的每个数据元素的各个阶段的数据;Step S42: Create a new data data array, and save the data of each data element of each data element of the currently switched signal source interface in the data data array;
新建一变量数组,于变量数组中将记录当前切换的信号源接口的每个变量元素的操作次数,且每进行一次扫描,数据元素与变量元素一一对应。Create a new variable array. In the variable array, the number of operations of each variable element of the currently switched signal source interface will be recorded, and each time a scan is performed, the data element corresponds to the variable element one by one.
上述技术方案中,于步骤S40中,当扫描到当前信号源接口执行的子阶段与当前子阶段的执行时间的打印标记时,分别将对应当前信号源接口执行的子阶段的数据与对应当前子阶段的执行时间的数据按照扫描顺序保存至数据组中。In the above technical solution, in step S40, when the print marks of the sub-stage executed by the current signal source interface and the execution time of the current sub-stage are scanned, the data corresponding to the sub-stage executed by the current signal source interface and the data corresponding to the current sub-stage are respectively scanned. The data of the execution time of the stage is saved in the data group according to the scanning order.
进一步地,如图4所示,于步骤S42之后还包括:Further, as shown in FIG. 4, after step S42, the method further includes:
步骤S43、判断是否是第二次扫描当前切换的信号源接口的打印标记;Step S43: Determine whether it is the second scan of the print mark of the currently switched signal source interface;
若是,则转向步骤S44;If yes, go to step S44;
若否,则继续扫描;If not, continue scanning;
步骤S44、判断当前切换的信号源接口是否是同类型的信号源接口切换操作;Step S44: Determine whether the currently switched signal source interface is the same type of signal source interface switching operation;
若是,则转向步骤45;If yes, go to step 45;
若否,则返回步骤S41;If not, return to step S41;
步骤45、将变量数组的操作次数加一,并且分别将对应当前信号源接口执行的子阶段的数据与对应当前子阶段的执行时间的数据更新至数据数组 中;Step 45: Add one to the number of operations of the variable array, and respectively update the data corresponding to the sub-stage executed by the current signal source interface and the data corresponding to the execution time of the current sub-stage into the data array;
步骤S46、判断调试打印报告是否扫描结束;Step S46: It is judged whether the scanning of the debugging print report is finished;
若是,则转向步骤S47;If yes, go to step S47;
若否,则返回步骤S43;If not, return to step S43;
步骤S47、将每个数据数组中的对应当前子阶段的执行时间的数据,分别除以对应的变量数组的操作次数,以统计得到每个数据数组中的各个阶段数据的平均值并输出。Step S47: Divide the data corresponding to the execution time of the current sub-stage in each data array by the number of operations of the corresponding variable array to obtain statistics and output the average value of the data in each stage in each data array.
上述技术方案中,作为较优实施例,以ATV切HDMI1音频影像信号接口为例,第1次扫描的HashMap数据数组内容为:In the above technical solution, as a preferred embodiment, taking the ATV cut HDMI1 audio image signal interface as an example, the content of the HashMap data array scanned for the first time is:
OperationOperation | ATV->HDMI1ATV->HDMI1 |
count(计数器)count (counter) | 11 |
TvSourceFragment pressed UI buttonTvSourceFragment pressed UI button | 108.589108.589 |
stop TV play startstop TV play start | 108.636635108.636635 |
tvserver stop TV play endtvserver stop TV play end | 108.712952s108.712952s |
DroidLogicTvInputService start tuning sourceDroidLogicTvInputService start tuning source | 109.025109.025 |
(更多后续流程)(More follow-up processes) | (更多后续数据)(More follow-up data) |
(2)第2次扫描的HashMap数据数组内容为:(2) The content of the HashMap data array of the second scan is:
计算前:Before calculation:
计算后:After calculation:
(3)假设总共只做了2次ATV切HDMI1音频影像信号接口,那么等调试打印解析完后,最终经过平均值计算后的HashMap数据数组为:(3) Assuming that ATV cut HDMI1 audio image signal interface is only done twice, then after debugging, printing and parsing, the final HashMap data array after average calculation is:
其中,上述计算方式为:每个阶段的数据减去前一个阶段的数据,再除以count对应的次数。Among them, the above calculation method is: the data of each stage minus the data of the previous stage, and then divided by the number of times corresponding to count.
(4)最后的文本输出结果,可以用excel整理为表格,这样就可以很直观第看到每个信号源接口操作的每个阶段消耗了多少时间。(4) The final text output result can be sorted into a table with excel, so that you can intuitively see how much time is spent in each stage of each signal source interface operation.
可拓展地,此解析工具对一次测试计划的某个信号源接口的切换次数没有限制,可以任意组合。例如,ATV切HDMI20次,HDMI切换DTV 15次,DTV切换AV 16次,AV没有切换ATV等情况。根据概率学,切换次数越多,统计结果越精确。Extensibly, this analysis tool does not limit the switching times of a certain signal source interface of a test plan, and can be combined in any combination. For example, ATV switches HDMI 20 times, HDMI switches DTV 15 times, DTV switches AV 16 times, and AV does not switch ATV. According to probability, the more switching times, the more accurate the statistical results.
进一步地,实现自动化统计信号源接口切换数据的工作,信号源接口切换数据能够又快又准确地提供出来,大大提升数据统计的效率,进而提高研发效率。Further, the work of automatic statistics of signal source interface switching data is realized, and the signal source interface switching data can be provided quickly and accurately, which greatly improves the efficiency of data statistics, thereby improving the efficiency of research and development.
以上所述仅为本发明较佳的实施例,并非因此限制本发明的实施方式及保护范围,对于本领域技术人员而言,应当能够意识到凡运用本发明说明书 及图示内容所作出的等同替换和显而易见的变化所得到的方案,均应当包含在本发明的保护范围内。The above descriptions are only preferred embodiments of the present invention, and do not limit the implementation and protection scope of the present invention. For those skilled in the art, they should be able to realize that all equivalents made by using the description and illustrations of the present invention The solutions obtained by substitutions and obvious changes should all be included in the protection scope of the present invention.
Claims (9)
- 一种信号源的切换分析方法,其特征在于,提供一硬件接口与一硬件驱动,所述硬件驱动启动所述硬件接口,所述切换分析方法具体包括:A signal source switching analysis method, characterized in that a hardware interface and a hardware driver are provided, the hardware driver activates the hardware interface, and the switching analysis method specifically includes:步骤S1、提供至少一个信号源接口,所述硬件驱动启动所述信号源接口;Step S1: Provide at least one signal source interface, and the hardware driver activates the signal source interface;步骤S2、对所述信号源接口添加打印标记;Step S2: Add a print mark to the signal source interface;步骤S3、切换所述信号源接口,生成并记录保存所述信号源接口的调试打印报告;Step S3: Switch the signal source interface, generate, record and save the debugging print report of the signal source interface;步骤S4、导出所述调试打印报告,并解析所述调试打印报告以统计各个阶段数据的平均值输出结果。Step S4: Export the debugging print report, and analyze the debugging print report to count the average value of the data at each stage and output the result.
- 根据权利要求1所述的信号源的切换分析方法,其特征在于,于所述步骤S2中,所述打印标记包括当前切换的信号源接口和/或当前所述信号源接口执行的子阶段和/或当前所述子阶段的执行时间。The signal source switching analysis method according to claim 1, wherein in the step S2, the printing mark includes the signal source interface currently switched and/or the current sub-stage executed by the signal source interface and / Or the execution time of the current sub-phase.
- 根据权利要求1所述的信号源的切换分析方法,其特征在于,于所述步骤S4中,所述调试打印报告以文本的形式导出;The signal source switching analysis method according to claim 1, wherein in the step S4, the debugging print report is exported in the form of text;各个阶段数据的平均值以表格的形式统计输出。The average value of each stage data is statistically output in the form of a table.
- 根据权利要求1所述的信号源的切换分析方法,其特征在于,于所述步骤S4中,采用一解析工具解析所述调试打印报告。4. The signal source switching analysis method according to claim 1, wherein in the step S4, an analysis tool is used to analyze the debugging print report.
- 根据权利要求4所述的信号源的切换分析方法,其特征在于,所述解析工具采用shell和/或phython和/或java和/或c++语言进行编写,以解析所述调试打印报告。The signal source switching analysis method according to claim 4, wherein the analysis tool is written in shell and/or phython and/or java and/or c++ language to analyze the debugging print report.
- 根据权利要求2所述的信号源的切换分析方法,其特征在于,于所述步骤S4中,解析所述调试打印报告具体步骤包括:The signal source switching analysis method according to claim 2, wherein in the step S4, the specific step of parsing the debugging print report comprises:步骤40、按照从下至上的顺序扫描所述调试打印报告;Step 40: Scan the debugging print report in a bottom-up order;步骤S41、判断是否是第一次扫描当前切换的所述信号源接口的所述打印标记;Step S41: Determine whether it is the first scan of the print mark of the currently switched signal source interface;若是,则转向步骤S42;If yes, go to step S42;若否,则继续扫描;If not, continue scanning;步骤S42、新建一数据数组,于所述数据数组中将保存当前切换的所述信号源接口的每个数据元素的各个阶段的数据;Step S42: Create a new data array, and save the data of each stage of each data element of the signal source interface currently switched in the data array;新建一变量数组,于所述变量数组中将记录当前切换的所述信号源接口的每个变量元素的操作次数,且每进行一次扫描,所述数据元素与所述变量元素一一对应。Create a new variable array, and record the number of operations of each variable element of the signal source interface currently switched in the variable array, and each scan is performed, the data element corresponds to the variable element one-to-one.
- 根据权利要求6所述的信号源的切换分析方法,其特征在于,于所述步骤S40中,当扫描到当前所述信号源接口执行的子阶段与当前所述子阶段的执行时间的打印标记时,分别将对应当前所述信号源接口执行的子阶段的数据与对应当前所述子阶段的执行时间的数据按照扫描顺序保存至所述数据数组中。The signal source switching analysis method according to claim 6, characterized in that, in the step S40, when the current sub-stage executed by the signal source interface and the current execution time of the sub-stage are scanned At the time, the data corresponding to the sub-phase currently executed by the signal source interface and the data corresponding to the execution time of the current sub-phase are respectively saved in the data array in the scanning order.
- 根据权利要求6所述的信号源的切换分析方法,其特征在于,于所述步骤S42之后还包括:The signal source switching analysis method according to claim 6, characterized in that, after the step S42, it further comprises:步骤S43、判断是否是第二次扫描当前切换的所述信号源接口的所述打印标记;Step S43: Determine whether it is the second scan of the print mark of the currently switched signal source interface;若是,则转向步骤S44;If yes, go to step S44;若否,则继续扫描;If not, continue scanning;步骤S44、判断当前切换的所述信号源接口是否是同类型的所述信号源接口切换操作;Step S44: Determine whether the currently switched signal source interface is the same type of signal source interface switching operation;若是,则转向步骤45;If yes, go to step 45;若否,则返回所述步骤S41;If not, return to the step S41;步骤45、将所述变量数组的操作次数加一,并且分别将对应当前所述信号源接口执行的子阶段的数据与对应当前所述子阶段的执行时间的数据更新至所述数据数组中;Step 45: Add one to the number of operations of the variable array, and respectively update the data corresponding to the sub-phase currently executed by the signal source interface and the data corresponding to the current execution time of the sub-phase into the data array;步骤S46、判断所述调试打印报告是否扫描结束;Step S46: It is judged whether the scanning of the debugging print report is finished;若是,则转向步骤S47;If yes, go to step S47;若否,则返回所述步骤S43;If not, return to the step S43;步骤S47、将所述数据数组中每个所述数据元素对应当前所述子阶段的执行时间的数据,分别除以所述变量数组中每个所述变量元素对应的操作次数,以统计得到每个所述数据数组中每个所述数据元素的各个阶段数据的平均值并输出。Step S47: Divide each data element in the data array corresponding to the current execution time of the sub-phase data by the number of operations corresponding to each variable element in the variable array to obtain statistics for each And output the average value of each stage data of each data element in the data array.
- 根据权利要求1所述的信号源的切换分析方法,其特征在于,所述信号源接口至少包括模拟电视信号接口和/或数字电视信号接口和/或模拟视频信号接口和/或音频影像信号接口。The signal source switching analysis method according to claim 1, wherein the signal source interface includes at least an analog TV signal interface and/or a digital TV signal interface and/or an analog video signal interface and/or an audio image signal interface .
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910606005.1 | 2019-07-05 | ||
CN201910606005.1A CN110351496B (en) | 2019-07-05 | 2019-07-05 | Switching analysis method of signal source |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021004343A1 true WO2021004343A1 (en) | 2021-01-14 |
Family
ID=68177828
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/099547 WO2021004343A1 (en) | 2019-07-05 | 2020-06-30 | Switching analysis method for signal source |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110351496B (en) |
WO (1) | WO2021004343A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110351496B (en) * | 2019-07-05 | 2021-11-26 | 晶晨半导体(上海)股份有限公司 | Switching analysis method of signal source |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5815689A (en) * | 1997-04-04 | 1998-09-29 | Microsoft Corporation | Method and computer program product for synchronizing the processing of multiple data streams and matching disparate processing rates using a standardized clock mechanism |
CN1376959A (en) * | 2002-04-28 | 2002-10-30 | 上海市广播科学研究所 | PCMCIA MPEG code stream analyzing method and equipment |
CN101082877A (en) * | 2006-05-30 | 2007-12-05 | 上海科泰世纪科技有限公司 | Automatically testing interface of graphical user interface program and automatically testing method thereof |
CN101901187A (en) * | 2010-07-09 | 2010-12-01 | 北京红旗胜利科技发展有限责任公司 | Decoding program test method and system |
CN110351496A (en) * | 2019-07-05 | 2019-10-18 | 晶晨半导体(上海)股份有限公司 | A kind of analysis of shift method of signal source |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101435841B (en) * | 2007-11-16 | 2013-08-28 | 鸿富锦精密工业(深圳)有限公司 | Test system and method |
US9124853B2 (en) * | 2010-11-30 | 2015-09-01 | Verizon Patent And Licensing Inc. | HDMI device and interoperability testing systems and methods |
CN105653410A (en) * | 2015-12-29 | 2016-06-08 | 湖南长城银河科技有限公司 | Device and method based on printing and outputting of debugging information of Phytium platform, and computer |
-
2019
- 2019-07-05 CN CN201910606005.1A patent/CN110351496B/en active Active
-
2020
- 2020-06-30 WO PCT/CN2020/099547 patent/WO2021004343A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5815689A (en) * | 1997-04-04 | 1998-09-29 | Microsoft Corporation | Method and computer program product for synchronizing the processing of multiple data streams and matching disparate processing rates using a standardized clock mechanism |
CN1376959A (en) * | 2002-04-28 | 2002-10-30 | 上海市广播科学研究所 | PCMCIA MPEG code stream analyzing method and equipment |
CN101082877A (en) * | 2006-05-30 | 2007-12-05 | 上海科泰世纪科技有限公司 | Automatically testing interface of graphical user interface program and automatically testing method thereof |
CN101901187A (en) * | 2010-07-09 | 2010-12-01 | 北京红旗胜利科技发展有限责任公司 | Decoding program test method and system |
CN110351496A (en) * | 2019-07-05 | 2019-10-18 | 晶晨半导体(上海)股份有限公司 | A kind of analysis of shift method of signal source |
Also Published As
Publication number | Publication date |
---|---|
CN110351496A (en) | 2019-10-18 |
CN110351496B (en) | 2021-11-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9990101B2 (en) | Managing GUI control auto-advancing | |
WO2019109643A1 (en) | Video recommendation method and apparatus, and computer device and storage medium | |
US20070025701A1 (en) | Information-processing apparatus, content reproduction apparatus, information-processing method, event-log creation method and computer programs | |
US11250066B2 (en) | Method for processing information, electronic device and storage medium | |
CN108447509B (en) | Method and device for generating multimedia file | |
WO2017181597A1 (en) | Method and device for video playback | |
WO2021051589A1 (en) | Data storage method and apparatus, electronic device, and storage medium | |
RU2646532C2 (en) | Method for presentation of digital multimedia content and device | |
WO2021004343A1 (en) | Switching analysis method for signal source | |
US20220391058A1 (en) | Interaction information processing method and apparatus, electronic device and storage medium | |
US20130231973A1 (en) | Business analysis design support device, business analysis design support method and non-transitory computer-readable medium containing business analysis design support program | |
US20180146157A1 (en) | Correlating ui with cpu stacks for profiling sessions | |
CN112801130B (en) | Image clustering quality evaluation method, system, medium, and apparatus | |
CN113010473B (en) | Method and equipment for editing YAML file | |
US20110305432A1 (en) | Information processing apparatus, sameness determination system, sameness determination method, and computer program | |
CN109189523B (en) | Method and system for judging idle virtual machine and method for closing virtual machine | |
CN104021215A (en) | Method and device for sorting images | |
CN102194152A (en) | Permission control method and device in audit service process | |
CN109389999B (en) | High-performance audio and video automatic sentence-breaking method and system | |
JP5910216B2 (en) | Information processing apparatus and information processing program | |
WO2022170731A1 (en) | Video display method and system for driving recorder, and computer storage medium | |
EP4181476A1 (en) | Network data analysis method, network data analysis functional network element and communication system | |
KR101170478B1 (en) | Method for analysing log data | |
US9983699B2 (en) | Input device adaptable to use habit and adapting method therefor | |
WO2021142607A1 (en) | Vehicle diagnosis process playback method, apparatus, and readable storage medium |
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: 20836310 Country of ref document: EP Kind code of ref document: A1 |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20836310 Country of ref document: EP Kind code of ref document: A1 |