CN110351496B - Switching analysis method of signal source - Google Patents

Switching analysis method of signal source Download PDF

Info

Publication number
CN110351496B
CN110351496B CN201910606005.1A CN201910606005A CN110351496B CN 110351496 B CN110351496 B CN 110351496B CN 201910606005 A CN201910606005 A CN 201910606005A CN 110351496 B CN110351496 B CN 110351496B
Authority
CN
China
Prior art keywords
signal source
source interface
data
interface
switching
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910606005.1A
Other languages
Chinese (zh)
Other versions
CN110351496A (en
Inventor
钱磊
朱志远
董涛
陈能文
陈公伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Amlogic Shanghai Co Ltd
Original Assignee
Amlogic Shanghai Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Amlogic Shanghai Co Ltd filed Critical Amlogic Shanghai Co Ltd
Priority to CN201910606005.1A priority Critical patent/CN110351496B/en
Publication of CN110351496A publication Critical patent/CN110351496A/en
Priority to PCT/CN2020/099547 priority patent/WO2021004343A1/en
Application granted granted Critical
Publication of CN110351496B publication Critical patent/CN110351496B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio 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/268Signal distribution or switching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/765Interface circuits between an apparatus for recording and another apparatus

Abstract

The invention relates to the technical field of signal processing, in particular to a switching analysis method of a signal source, wherein a hardware interface and a hardware driver are provided, and the hardware driver starts the hardware interface, and the method specifically comprises the following steps of 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 and recording a debugging printing report for storing the signal source interface; and step S4, deriving the debugging printing report, and analyzing the debugging printing report to count the average output result of each stage data. The technical scheme of the invention has the beneficial effects that: the work of automatically counting the switching data of the signal source interface is realized, the switching data of the signal source interface can be quickly and accurately provided, the data counting efficiency is greatly improved, and the research and development efficiency is further improved.

Description

Switching analysis method of signal source
Technical Field
The invention relates to the technical field of signal processing, in particular to a switching analysis method of a signal source.
Background
In the prior art, a television generally supports inputs of various signal source interfaces, such as an ATV (analog television signal), a DTV (digital television signal), an HDMI (audio video signal), an AV (analog video signal), and the like. When using television, users often connect to a variety of input devices, such as ATV signal lines for analog television, PS4 for games, and DVD for movies.
When the user finishes watching the analog television and wants to play a game of PS4, the ATV signal source interface needs to be switched to the HDMI signal source interface on the television. In this case, if the speed of switching to the HDMI source interface is slow, the user experience is poor, and the tv performance is not good.
Therefore, the switching performance of the signal source interface is also an important index for television development. The code logic for switching the signal source interface is a complicated process. Taking a television of a logic chip as an example, a switching process of an ATV signal source interface to an HDMI signal source interface is shown in fig. 1, and as seen from fig. 1, the process is relatively long and involves a java layer, a c + + layer, a driver layer, or even a hardware layer, and the involved developers 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 know which module needs to be optimized, and even which piece of code needs to be optimized.
At present, the time consumed by a certain process is calculated by printing to count the time consumed by each process, and then counting each data into a table. For example, when the ATV signal source interface switches the partial debug print of the HDMI1 signal source interface, a total time, for example, 0.436s (109.025s minus 108.589s, which is 0.436s), is consumed from the time when the button of the HDMI1 signal source interface is pressed to the time when the java layer tv service starts HDMI playback. Only a small part of the process of switching the HDMI1 signal source interface by the ATV signal source interface, rather than printing the complete process, we already see 7 data, and it needs to subtract the starting playing time 108.589s from the data to obtain the time consumed by the intuitive process.
Even worse, taking a tv supporting 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 12 groups of switching combinations of signal source interface channels in total. And for data accuracy, we usually test 5 times, and then average to obtain the final signal source interface switching performance result. Therefore, a complete test requires switching the signal source interface channel at least 60 times, and then counting the print data thousands of times. If the time of switching the signal source interface is required to be known, or whether the performance of switching the signal source interface is optimized by changing a code is required to be known, and side effects exist. If a complete data statistic is taken, it may take an engineer about 1 week if the printing is debugged by a manual statistic. This is a great challenge to human resource arrangement, and the development related to the signal source interface performance will progress very slowly.
Disclosure of Invention
In view of the above problems in the prior art, a method for analyzing switching of a signal source is provided.
The specific technical scheme is as follows:
a switching analysis method of a signal source is provided, wherein a hardware interface and a hardware driver are provided, the hardware driver starts the hardware interface, and the switching analysis method specifically comprises the following steps:
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, generating and recording a debugging printing report for storing the signal source interface;
and step S4, deriving the debugging printing report, and analyzing the debugging printing report to count the average output result of each stage data.
Preferably, in step S2, the print flag includes a currently switched signal source interface and/or a currently executed sub-phase of the signal source interface and/or a currently executed time of the sub-phase.
Preferably, in 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.
Preferably, in step S4, an analysis tool is used to analyze the debug print report.
Preferably, the parsing tool is written in shell and/or phyton and/or java and/or c + + language to parse the debugging print report.
Preferably, in step S4, the specific step of analyzing the debug print report includes:
step 40, scanning the debugging printing report according to the sequence from bottom to top;
step S41, judging whether the current switched printing mark of the signal source interface is scanned for the first time;
if yes, go to step S42;
if not, continuing to scan;
step S42, a data array is newly created, and data of each stage of each data element of the signal source interface switched currently is stored in the data array;
and newly establishing a variable array, recording the operation times of each variable element of the currently switched signal source interface in the variable array, and enabling the data elements to correspond to the variable elements one by one when scanning is performed once.
Preferably, in step S40, when the print marks of the current sub-phase executed by the signal source interface and the current execution time of the sub-phase are scanned, the data corresponding to the current sub-phase executed by the signal source interface and the data corresponding to the current execution time of the sub-phase are respectively stored in the data array according to the scanning order.
Preferably, after the step S42, the method further includes:
step S43, judging whether the current switched signal source interface is scanned for the second time or not;
if yes, go to step S44;
if not, continuing to scan;
step S44, judging whether the signal source interface switched currently is the signal source interface switching operation of the same type;
if yes, go to step 45;
if not, returning to the step S41;
step 45, adding one to the operation times of the variable array, and respectively updating 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 array;
step S46, judging whether the debugging printing report is scanned and finished;
if yes, go to step S47;
if not, returning to the step S43;
step S47, dividing the data of the execution time of the current sub-stage corresponding to each data element in the data array by the operation times corresponding to each variable element in the variable array, so as to obtain an average value of the data of each stage of each data element in each data array through statistics and output the average value.
Preferably, the signal source interface at least comprises an analog television signal interface and/or a digital television signal interface and/or an analog video signal interface and/or an audio video signal interface.
The technical scheme of the invention has the beneficial effects that: the signal source switching analysis method is provided, the work of automatically counting the switching data of the signal source interface is realized, the switching data of the signal source interface can be quickly and accurately provided, the data counting efficiency is greatly improved, and the research and development efficiency is further improved.
Drawings
Embodiments of the present invention will now be described more fully hereinafter with reference to the accompanying drawings. The drawings are, however, to be regarded as illustrative and explanatory only and are not restrictive of the scope of the invention.
FIG. 1 is a flow chart illustrating the steps of switching an ATV signal source interface to an HDMI signal source interface according to the prior art;
FIG. 2 is a flowchart illustrating a method for analyzing handover of a signal source according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a first specific step of parsing a debug print report according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a specific step of parsing a debug print report according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict.
The invention is further described with reference to the following drawings and specific examples, which are not intended to be limiting.
The invention comprises a switching analysis method of a signal source, wherein a hardware interface and a hardware driver are provided, the hardware driver starts the hardware interface, and the switching analysis method specifically comprises the following steps:
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 and recording a debugging printing report for storing the signal source interface;
and step S4, deriving the debugging printing report, and analyzing the debugging printing report to count the average output result of each stage data.
Through the technical scheme of the signal source switching analysis method, as shown in fig. 2, a hardware interface and a hardware driver are provided, the hardware driver starts the hardware interface, that is, the signal source signal is switched through the switching interface, wherein the signal source interface at least includes 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 video signal interface HDMI. In the codes of the television system, each module adds debugging printing at each code execution flow stage according to a uniform printing mark to generate a debugging printing report, then, an automation tool counts data according to the printing mark and outputs the result into a text, wherein the debugging printing report is exported in the form of the text; the average value of each stage data is statistically output in the form of a table.
Furthermore, the work of automatically counting the switching data of the signal source interface is realized, the switching data of the signal source interface can be quickly and accurately provided, the data counting efficiency is greatly improved, and the research and development efficiency is further improved.
In the above technical solution, in step S2, the print flag 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.
For example, the currently switched signal source interface refers to an "Operation" keyword to record which signal source interface is currently switched to; the sub-stage executed by the current signal source interface refers to the sub-stage recorded by the keyword 'Step' to which the current code stream is executed; the execution Time of the current sub-phase refers to the "Time" key that records when the sub-phase is executed.
Furthermore, after the debugging printing is added in the running code of the television system, a user can switch the signal source interface and simultaneously output the debugging printing added with the fixed mark through the serial port or output, wherein all serial port tools such as SecureCRT have the function of automatically storing the printing and store the printing in a text form.
In the above technical solution, in step S4, an analysis tool is used to analyze the debug print report.
For example, the parsing tool is written in the tv _ profile _ tool, which is written in the shell and/or phyton and/or java and/or c + + language, to parse the debugging print report.
Further, as shown in fig. 3, the specific steps of parsing the debug print report include:
step 40, scanning and debugging the printing report according to the sequence from bottom to top;
step S41, judging whether the current switched signal source interface is scanned for the first time or not;
if yes, go to step S42;
if not, continuing to scan;
step S42, a data array is newly created, and data of each stage of each data element of the currently switched signal source interface is stored in the data array;
and newly establishing a variable array, recording the operation times of each variable element of the currently switched signal source interface in the variable array, and enabling the data elements to correspond to the variable elements one by one each time scanning is performed.
In the above technical solution, in step S40, when the print marks of the sub-phase executed by the current signal source interface and the execution time of the current sub-phase are scanned, the data corresponding to the sub-phase executed by the current signal source interface and the data corresponding to the execution time of the current sub-phase are respectively stored in the data group according to the scanning order.
Further, as shown in fig. 4, after step S42, the method further includes:
step S43, judging whether the current switched signal source interface is scanned for the second time or not;
if yes, go to step S44;
if not, continuing to scan;
step S44, judging whether the signal source interface switched currently is the signal source interface switching operation of the same type;
if yes, go to step 45;
if not, returning to the step S41;
step 45, adding one to the operation times of the variable array, and respectively updating the data of the sub-stage corresponding to the current signal source interface execution and the data of the execution time corresponding to the current sub-stage into the data array;
step S46, judging whether the debugging printing report is scanned and finished;
if yes, go to step S47;
if not, returning to the step S43;
and step S47, dividing the data corresponding to the execution time of the current sub-stage in each data array by the operation times of the corresponding variable array, so as to obtain an average value of the data of each stage in each data array through statistics and output the average value.
In the above technical solution, as a preferred embodiment, taking an HDMI-to-HDMI 1 audio video signal interface as an example, the HashMap data array content of the 1 st scan is as follows:
Operation ATV->HDMI1
count (counter) 1
TvSourceFragmentpressedUIbutton 108.589
stopTVplaystart 108.636635
tvserverstopTVplayend 108.712952s
DroidLogicTvInputServicestarttuningsource 109.025
(more subsequent procedures) (more follow-up data)
(2) The HashMap data array content of the 2 nd scan is as follows:
before calculation:
Figure BDA0002120704590000081
Figure BDA0002120704590000091
after calculation:
Figure BDA0002120704590000092
(3) assuming that only 2 times of ATV cutting of an HDMI1 audio and video signal interface is performed, after debugging, printing and analysis are finished, the HashMap data array after average value calculation is:
Figure BDA0002120704590000093
Figure BDA0002120704590000101
wherein, the above-mentioned calculation mode is: and subtracting the data of the previous stage from the data of each stage, and dividing by the corresponding times of the count.
(4) The final text output result can be arranged into a table by excel, so that the time consumed by each stage of the operation of each signal source interface can be visually seen.
The analysis tool has no limit on the switching times of a certain signal source interface of a test plan, and can be combined randomly. For example, the ATV switches HDMI20 times, HDMI switches DTV 15 times, DTV switches AV 16 times, and AV does not switch ATV. According to the probability, the more the switching times, the more accurate the statistical result.
Furthermore, the work of automatically counting the switching data of the signal source interface is realized, the switching data of the signal source interface can be quickly and accurately provided, the data counting efficiency is greatly improved, and the research and development efficiency is further improved.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention.

Claims (8)

1. A switching analysis method of a signal source is characterized in that a hardware interface and a hardware driver are provided, the hardware driver starts the hardware interface, and the switching analysis method specifically comprises the following steps:
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, generating and recording a debugging printing report for storing the signal source interface;
step S4, exporting the debugging printing report, and analyzing the debugging printing report to count the average output result of each stage data;
in step S4, the specific step of analyzing the debug print report includes:
s40, scanning the debugging printing report according to the sequence from bottom to top;
step S41, judging whether the current switched printing mark of the signal source interface is scanned for the first time;
if yes, go to step S42;
if not, continuing to scan;
step S42, a data array is newly established, and the data of each stage of each data element of the signal source interface switched currently is stored in the data array;
and newly establishing a variable array, recording the operation times of each variable element of the currently switched signal source interface in the variable array, and enabling the data elements to correspond to the variable elements one by one when scanning is performed once.
2. The signal source switching analysis method according to claim 1, wherein in the step S2, the print flag includes a currently switched signal source interface and/or a currently executed sub-phase of the signal source interface and/or a currently executed time of the sub-phase.
3. The signal source switching analysis method according to claim 1, wherein in the step S4, the debug print report is derived in a text form;
the average value of each stage data is statistically output in the form of a table.
4. The method for analyzing switching of a signal source of claim 1, wherein in step S4, a parsing tool is used to parse the debugging print report.
5. The signal source switching analysis method according to claim 4, wherein the parsing tool is written in shell and/or phyton and/or java and/or c + + language to parse the debugging print report.
6. The method for analyzing switching of a signal source of claim 1, wherein in step S40, when the print flag of the current sub-phase executed by the signal source interface and the current execution time of the sub-phase is scanned, the data corresponding to the current sub-phase executed by the signal source interface and the data corresponding to the current execution time of the sub-phase are respectively stored in the data array according to the scanning order.
7. The signal source switching analysis method of claim 1, further comprising, after the step S42:
step S43, judging whether the current switched signal source interface is scanned for the second time or not;
if yes, go to step S44;
if not, continuing to scan;
step S44, judging whether the signal source interface switched currently is the signal source interface switching operation of the same type;
if yes, go to step 45;
if not, returning to the step S41;
step 45, adding one to the operation times of the variable array, and respectively updating 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 array;
step S46, judging whether the debugging printing report is scanned and finished;
if yes, go to step S47;
if not, returning to the step S43;
step S47, dividing the data of the execution time of the current sub-stage corresponding to each data element in the data array by the operation times corresponding to each variable element in the variable array, so as to obtain an average value of each stage data of each data element in each data array through statistics and output the average value.
8. The method for analyzing switching of a signal source according to claim 1, wherein the signal source interface comprises at least an analog television signal interface and/or a digital television signal interface and/or an analog video signal interface and/or an audio video signal interface.
CN201910606005.1A 2019-07-05 2019-07-05 Switching analysis method of signal source Active CN110351496B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910606005.1A CN110351496B (en) 2019-07-05 2019-07-05 Switching analysis method of signal source
PCT/CN2020/099547 WO2021004343A1 (en) 2019-07-05 2020-06-30 Switching analysis method for signal source

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910606005.1A CN110351496B (en) 2019-07-05 2019-07-05 Switching analysis method of signal source

Publications (2)

Publication Number Publication Date
CN110351496A CN110351496A (en) 2019-10-18
CN110351496B true CN110351496B (en) 2021-11-26

Family

ID=68177828

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910606005.1A Active CN110351496B (en) 2019-07-05 2019-07-05 Switching analysis method of signal source

Country Status (2)

Country Link
CN (1) CN110351496B (en)
WO (1) WO2021004343A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110351496B (en) * 2019-07-05 2021-11-26 晶晨半导体(上海)股份有限公司 Switching analysis method of signal source

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101082877A (en) * 2006-05-30 2007-12-05 上海科泰世纪科技有限公司 Automatically testing interface of graphical user interface program and automatically testing method thereof
CN101435841A (en) * 2007-11-16 2009-05-20 鸿富锦精密工业(深圳)有限公司 Test system and method
CN105653410A (en) * 2015-12-29 2016-06-08 湖南长城银河科技有限公司 Device and method based on printing and outputting of debugging information of Phytium platform, and computer

Family Cites Families (5)

* Cited by examiner, † Cited by third party
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
CN101901187B (en) * 2010-07-09 2012-09-19 北京红旗胜利科技发展有限责任公司 Decoding program test method and system
US9124853B2 (en) * 2010-11-30 2015-09-01 Verizon Patent And Licensing Inc. HDMI device and interoperability testing systems and methods
CN110351496B (en) * 2019-07-05 2021-11-26 晶晨半导体(上海)股份有限公司 Switching analysis method of signal source

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101082877A (en) * 2006-05-30 2007-12-05 上海科泰世纪科技有限公司 Automatically testing interface of graphical user interface program and automatically testing method thereof
CN101435841A (en) * 2007-11-16 2009-05-20 鸿富锦精密工业(深圳)有限公司 Test system and method
CN105653410A (en) * 2015-12-29 2016-06-08 湖南长城银河科技有限公司 Device and method based on printing and outputting of debugging information of Phytium platform, and computer

Also Published As

Publication number Publication date
WO2021004343A1 (en) 2021-01-14
CN110351496A (en) 2019-10-18

Similar Documents

Publication Publication Date Title
US7889112B1 (en) Dynamic linking of codesets in universal remote control devices
CN104704851A (en) Program recommendation device and program recommendation program
WO2017181597A1 (en) Method and device for video playback
CN104202670A (en) Method for customizing television program channel list in personalized mode
CN106486126A (en) Speech recognition error correction method and device
CN105451068A (en) Electronic program list generation method and device
CN110351496B (en) Switching analysis method of signal source
CN104581389A (en) Children watching behavior control system and method for digital television set top box
WO2021031590A1 (en) Audio and video pushing method, mobile terminal and display terminal
CN107547942A (en) A kind of binary system television system and method
CN104270654A (en) Internet video playing and monitoring method and device
CN112839195A (en) Method and device for consulting meeting record, computer equipment and storage medium
CN109495776B (en) Audio sending and playing method and intelligent terminal
CN107484001B (en) Signal source channels naming method, TV and computer readable storage medium
CN104077384A (en) Mobile terminal as well as method and device for realizing video indexing by using screen splitting function
CN108259986A (en) Audio frequency playing method and device, electronic equipment, the storage medium of multichannel
CN103369388A (en) Remote control device, information processing apparatus, information processing system, and remote control method
CN102737083B (en) Instant competition information editing method and system
CN117033309A (en) Data conversion method and device, electronic equipment and readable storage medium
US20130033641A1 (en) Method for auto-detecting audio language name and television using the same
CN104410873A (en) Method and device of detecting number of television channel users
CN107493512A (en) The focus mask method and device of video
JP4647602B2 (en) Message analyzer and message analysis method
KR100768074B1 (en) System for offering advertisement moving picture and service method thereof
CN109600571B (en) Multimedia resource transmission test system and multimedia resource transmission test method

Legal Events

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