CN103458312A - Terminal debugging method and device - Google Patents

Terminal debugging method and device Download PDF

Info

Publication number
CN103458312A
CN103458312A CN2013103702529A CN201310370252A CN103458312A CN 103458312 A CN103458312 A CN 103458312A CN 2013103702529 A CN2013103702529 A CN 2013103702529A CN 201310370252 A CN201310370252 A CN 201310370252A CN 103458312 A CN103458312 A CN 103458312A
Authority
CN
China
Prior art keywords
debug
item
terminal
debugged
debugging
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.)
Pending
Application number
CN2013103702529A
Other languages
Chinese (zh)
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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN2013103702529A priority Critical patent/CN103458312A/en
Publication of CN103458312A publication Critical patent/CN103458312A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention relates to a terminal debugging method and device. Before debugging is conducted, debugging items of terminals to be debugged in the same series are stored in a debugging system in advance; when the terminals are debugged, the debugging items of the terminals are imported first, and the debugging items are sequentially matched with the debugging items which are stored in advance; if the matching is successful, matching identifications are added to the debugging items of the terminals to be debugged; when a debugging instruction is received, whether the matching identification for the debugging item corresponding to the debugging instruction is available in the debugging items of the terminals to be debugged is judged; if the matching identification for the debugging item is available, a debugging program of the debugging item is called and operated, as a result, when the terminals in the same series are debugged, the debugging program can be directly called from the system, and corresponding debugging programs do not need to be imported before each time of debugging. Therefore, debugging efficiency is high, and debugging cost is reduced.

Description

A kind of terminal debugging method and device
Technical field
The present invention relates to terminal debugging technique field, relate in particular to a kind of terminal debugging method and device.
Background technology
For example, along with the update of scientific and technological development intelligent terminal (intelligent television) is day by day frequent, when terminal is dispatched from the factory debugging, needed debug-item is more and more, when debugging, multiple debug-item need to be set for the hardware and software platform of terminal, the type different debugging routine that need to prestore of debugging different model, and the debug-item difference of the terminal of same type is less, the debugging routine of different terminals if all prestore before each debugging, efficiency is lower and cost is higher.
Summary of the invention
Main purpose of the present invention is to provide a kind of terminal debugging method and device, is intended to improve the efficiency that the terminal of different model is debugged and saves debugging cost.
The present invention proposes a kind of terminal debugging method, comprising:
Obtain the debug-item of the terminal to be debugged received, the debug-item of the terminal to be debugged of reception is mated with the debug-item prestored successively;
Debug-item to the described terminal to be debugged with the described debug-item coupling prestored adds matching identification;
While detecting debug command, resolve and obtain the debug-item in debug command;
If the debug-item got has matching identification in the debug-item of terminal to be debugged, transfer and move the corresponding debugging routine of the debug-item got.
Preferably, if when the debug-item got does not have matching identification in the debug-item of terminal to be debugged, the prompting user is debugging failed.
Preferably, the described debug-item by the terminal to be debugged that receives also comprises before being mated step with the debug-item prestored successively:
The sign of the debug-item of initialization terminal to be debugged, add not matching identification to the debug-item of terminal to be debugged.
Preferably, the step that the described debug-item to the described terminal to be debugged with the described debug-item coupling prestored adds matching identification replaces with:
The not matching identification of the debug-item of the described terminal to be debugged that will mate with the described debug-item prestored is updated to matching identification.
Preferably, when the system of described terminal to be debugged is the Android system, the method comprises:
Obtain and resolve the debug-item file of the terminal to be debugged received, generate the Boolean Model array, comprise the corresponding system call number of debug-item in described Boolean Model array;
By the numerical value assignment of described system call correspondence, be 0;
The debug-item file that parsing prestores obtains corresponding system call number, and the system call number corresponding numerical value in the Boolean Model array of the system call that will obtain with parsing number coupling is revised as 1;
While detecting debug command, resolve and obtain the debug-item in debug command, and, according to the mapping relations of default debug-item and system call number, determine the corresponding system call number of debug-item got;
Determine corresponding routine call interface according to the mapping relations between default system call number and described routine call interface, and according to definite corresponding debugging routine of routine call interface interchange.
The present invention also proposes a kind of terminal debugging apparatus, comprising:
Acquisition module, for obtaining the debug-item of the terminal to be debugged received;
Matching module, mated with the debug-item prestored successively for the debug-item of the terminal to be debugged by receiving;
Identification module, for the debug-item interpolation matching identification of the described terminal to be debugged to the described debug-item coupling prestored;
Parsing module, when detecting debug command, resolve and obtain the debug-item in debug command;
Calling module, if at the debug-item of terminal to be debugged, matching identification is arranged for the debug-item got, transfer and move the corresponding debugging routine of the debug-item got.
Preferably, this device also comprises:
Reminding module, if for the debug-item that gets when the debug-item of terminal to be debugged does not have matching identification, the prompting user is debugging failed.
Preferably, described identification module is also for the sign of the debug-item of initialization terminal to be debugged, to the debug-item of terminal to be debugged, adds not matching identification.
Preferably, described identification module also is updated to matching identification for the not matching identification of the debug-item of the described terminal to be debugged of the debug-item coupling that will prestore with described.
Preferably, when the system of described terminal to be debugged is the Android system, this debugging apparatus comprises:
Administrative unit, for obtaining and resolve the debug-item file of the terminal to be debugged received, generate the Boolean Model array, comprise the corresponding system call number of debug-item in described Boolean Model array, and be 0 by the numerical value assignment of described system call correspondence, and resolve the debug-item file prestore and obtain corresponding system call number, the system call number corresponding numerical value in the Boolean Model array of the system call that will obtain with parsing number coupling is revised as 1;
Receiving element, when detecting debug command, resolve and obtain the debug-item in debug command, and, according to the mapping relations of default debug-item and system call number, determine the corresponding system call number of debug-item got;
Call unit, determine corresponding routine call interface for the mapping relations between the system call according to default number and described routine call interface, and according to definite corresponding debugging routine of routine call interface interchange.
Terminal debugging method and device that the present invention proposes, before being debugged, the debug-item of isonomic terminal to be debugged is pre-stored in debug system, first import the debug-item of this terminal when debug terminal, and this debug-item and the debug-item prestored are mated successively, if treating the debug-item of debug terminal, coupling adds matching identification, when receiving debug command, judge whether debug-item corresponding to debug command has matching identification in the debug-item of terminal to be debugged, if being arranged, matching identification calls and moves the debugging routine of this debug-item, make when the isonomic terminal of debugging, can directly in system, call debugging routine gets final product, and import corresponding debugging routine before noting be used in each debugging, debugging efficiency is high and save debugging cost.
The accompanying drawing explanation
The schematic flow sheet that Fig. 1 is terminal debugging method the first embodiment of the present invention;
The schematic flow sheet that Fig. 2 is terminal debugging method the second embodiment of the present invention;
The schematic flow sheet that Fig. 3 is terminal debugging method of the present invention the 3rd embodiment;
The schematic flow sheet that Fig. 4 is terminal debugging method of the present invention the 4th embodiment;
The idiographic flow schematic diagram of terminal debugging method of the present invention when Fig. 5 is the Android system when the system of described terminal to be debugged;
The structural representation that Fig. 6 is terminal debugging apparatus the first embodiment of the present invention;
The structural representation that Fig. 7 is terminal debugging apparatus the second embodiment of the present invention;
The structural representation that Fig. 8 is terminal debugging apparatus the 3rd embodiment of the present invention;
Fig. 9 is this terminal debugging apparatus concrete structure schematic diagram of the present invention when the system of described terminal to be debugged is the Android system;
Figure 10 is the debug system Organization Chart that the terminal of Android system is installed.
The realization of the object of the invention, functional characteristics and advantage, in connection with embodiment, are described further with reference to accompanying drawing.
Embodiment
Below in conjunction with drawings and the specific embodiments, with regard to technical scheme of the present invention, be described further.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
With reference to Fig. 1, the schematic flow sheet that Fig. 1 is terminal debugging method the first embodiment of the present invention.
The terminal debugging method that the present embodiment proposes comprises:
Step S10, obtain the debug-item of the terminal to be debugged received;
Step S20, mated the debug-item of the terminal to be debugged of reception successively with the debug-item prestored;
Step S30, to the debug-item interpolation matching identification of the described terminal to be debugged with the described debug-item coupling prestored;
The debug-item of terminal has multiple, and in a plurality of model terminals of a series, debug-item difference is less, the corresponding debugging routine of the debug-item of the terminal of a series can be kept in system so that the debugging different model terminal the time called.For example the debug-item of certain a series of intelligent television comprises white balance, nonlinear distortion, geometric distortion, the debug-items such as colour sensitivity and solution code error, the debug-item of the television set of model to be debugged comprises white balance, nonlinear distortion, geometric distortion, colour converges and colour sensitivity, the debug-item that will receive terminal to be debugged is mated with the debug-item prestored, white balance in the debug-item of the television set of model to be debugged, nonlinear distortion, geometric distortion and colour sensitivity can match in the debug-item prestored, to white balance, nonlinear distortion, geometric distortion and colour sensitivity are added matching identification, and debug-item does not match as colour converges in the debug-item prestored, can be left intact or point out the information such as debugging failed to the user.
In the present embodiment, the debug-item of terminal to be debugged can be in table or other file as forms such as boards with the debug-item prestored, preferably be stored in XML(extensible markup language, extend markup language) in file, the XML file is for transmission and storage data, and simple in structure being easy to reads and writes data in any application program.
Step S40, while detecting debug command, resolve and obtain the debug-item in debug command;
When detecting debug command, obtain the debug-item in debug command, this debug command can directly send debug command to terminal by the button of remote controller, the control command that the remote controller that terminal parses receives sends, and obtain correspondingly debug-item according to the key assignments information of the remote controller key be resolved to and the mapping relations of debug-item; Being provided with display screen in terminal is the project that also can need to debug in the demonstration screen display of terminal, and the user can select corresponding debug-item by touch-screen or remote controller, when receiving user's selection instruction, determines and selects the corresponding debug-item of cursor; Perhaps other control terminal realizes treating the debugging of debug terminal by serial ports as PC, after receiving the sign on of control terminal, treats the debug-item of debug terminal by default order and is debugged successively.
Step S50, whether the debug-item that judgement gets has matching identification in the debug-item of terminal to be debugged;
Step S60, if the debug-item got has matching identification in the debug-item of terminal to be debugged, transfer and move the corresponding debugging routine of the debug-item got.
Take television set as example, and for example the debug-item in debug command is white balance, and in the debug-item of terminal to be debugged, white balance has matching identification, calls and move the corresponding debugging routine of the white balance prestored, and completes the debugging to the white balance of television set.
In the present embodiment, also can directly the debug-item with a series of terminal be pre-stored in debug system, when receiving debug command, obtain the debug-item in debug command, and the debug-item got and the debug-item prestored are mated one by one, call and move the corresponding debugging routine of this debug-item if match.Mapping relations between predeterminable debug-item and corresponding debugging routine api interface, when calling debugging routine, call corresponding api interface according to the mapping relations between debug-item and api interface and obtain debugging routine, each debug-item is to there being one or more api interfaces.
The terminal debugging method that the present invention proposes, before being debugged, the debug-item of isonomic terminal to be debugged is pre-stored in debug system, first import the debug-item of this terminal when debug terminal, and this debug-item and the debug-item prestored are mated successively, if treating the debug-item of debug terminal, coupling adds matching identification, when receiving debug command, judge whether debug-item corresponding to debug command has matching identification in the debug-item of terminal to be debugged, if being arranged, matching identification calls and moves the debugging routine of this debug-item, make when the isonomic terminal of debugging, can directly in system, call debugging routine gets final product, and import corresponding debugging routine before noting be used in each debugging, debugging efficiency is high and save debugging cost.
With reference to Fig. 2, the schematic flow sheet that Fig. 2 is terminal debugging method the second embodiment of the present invention.
Propose the second embodiment of terminal debugging method of the present invention based on the first embodiment, in the present embodiment, also comprise after step S50:
Step S70, if when the debug-item got does not have matching identification in the debug-item of terminal to be debugged, the prompting user is debugging failed.
Take television set as example, and for example debug-item does not have matching identification as colour converges, and now points out the user debugging failed.While can in the debug-item of the corresponding debug-item of debug command in terminal to be debugged, there is no matching identification, the debugging failed information in the demonstration screen display of terminal, after confirming, the user returns to debugging pictures, the prompting user that also can roll on the display screen of terminal is debugging failed, or after the Preset Time interval, debugging failed hint image is switched to normal debugging pictures; When the user is debugged by default order the debug-item of terminal by serial ports, can record the debug-item that there is no matching identification, after finishing, all debug-item debugging show all debugging failed debug-item information.Also can point out the user by modes such as auditory tone cueses in the terminal that is not provided with the demonstration frequency.
The user is when receiving debugging failed information, obtain debugging failed project, the corresponding debugging routine of debugging failed project is stored in debug system, and upgrade the debug-item file prestore, and again mate the project of terminal to be debugged and the debug-item prestored, and, in the matching identification of the project matched, according to matching identification, call corresponding debugging routine; Directly debugging failed debug-item is added to matching identification after perhaps in the corresponding debugging routine of the project by debugging failed is stored to debug system, and again this project is debugged, call the corresponding debugging routine of this project.
With reference to Fig. 3, the schematic flow sheet that Fig. 3 is terminal debugging method of the present invention the 3rd embodiment.
Propose the 3rd embodiment of terminal debugging method of the present invention based on the second embodiment, in the present embodiment, also comprise before step S20:
Step S80, the sign of the debug-item of initialization terminal to be debugged, add not matching identification to the debug-item of terminal to be debugged.
Before the debug-item of the terminal to be debugged by receiving is mated with the debug-item prestored successively, the sign of the debug-item of initialization terminal to be debugged, the sign of the debug-item of terminal to be debugged all is set to not matching identification, and after the match is successful, matching identification is not updated to matching identification.For example, before coupling, the sign of the debug-item of terminal to be debugged is initialized as to 0, if the debug-item of terminal to be debugged can be mixed with the debug-item prestored, the sign of the project on coupling in the debug-item of terminal to be debugged is updated to 1 by 0.
For example, when the storage file of the debug-item of terminal to be debugged is an XML file, the corresponding storage file of the debug-item prestored is the 2nd XML file, resolve an XML file generated debug-item array, and the sign of the debug-item in this array all is initialized as to false, then resolve the 2nd XML file, debug-item in the 2nd XML file and the debug-item in the debug-item array are mated, in the debug-item array with the 2nd XML file in the identification renewal of debug-item of debug-item coupling be true, when detecting debug command, obtain the debug-item in debug command and obtain the sign of this debug-item in the debug-item array, if be designated true, call and move the debugging routine of this debug-item.
With reference to Fig. 4, the schematic flow sheet that Fig. 4 is terminal debugging method of the present invention the 4th embodiment.
Propose the 4th embodiment of terminal debugging method of the present invention based on the 3rd embodiment, in the present embodiment, step S30 replaces with:
Step S90, the not matching identification of the debug-item of the described terminal to be debugged that will mate with the described debug-item prestored is updated to matching identification.
Due to before the debug-item of the terminal to be debugged by receiving mated with the debug-item prestored successively, the sign of the debug-item of initialization terminal to be debugged, the sign of the debug-item of terminal to be debugged all is set to not matching identification, when the debug-item of the terminal to be debugged by receiving is mated with the debug-item prestored successively, the not matching identification of the debug-item of the described terminal to be debugged that will mate with the described debug-item prestored is updated to matching identification, can improve efficiency and the accuracy rate of change matching identification, matching identification and matching identification can not be set by the user, for example matching identification is not 0, matching identification is 1.
With reference to Fig. 5, the idiographic flow schematic diagram of terminal debugging method of the present invention when Fig. 5 is the Android system when the system of described terminal to be debugged.
When the system of described terminal to be debugged is the Android system, terminal debugging method of the present invention specifically comprises:
Step S100, obtain and resolve the debug-item file of the terminal to be debugged received, and generates the Boolean Model array, comprises the corresponding system call number of debug-item in described Boolean Model array;
Step S110 is 0 by the numerical value assignment of described system call correspondence;
Step S120, resolve the debug-item file prestored and obtain corresponding system call number, and the system call number corresponding numerical value in the Boolean Model array of the system call that will obtain with parsing number coupling is revised as 1;
Step S130, while detecting debug command, resolve and obtain the debug-item in debug command, and, according to the mapping relations of default debug-item and system call number, determine the corresponding system call number of debug-item got;
Step S140, determine corresponding routine call interface according to the mapping relations between default system call number and described routine call interface, and according to definite corresponding debugging routine of routine call interface interchange.
Mapping relations between predeterminable system call number and debug-item are determined the corresponding system call number of debug-item, and determine corresponding routine call interface according to the mapping relations between default system call number and routine call interface, according to definite corresponding debugging routine of routine call interface interchange.Each system call number can corresponding one or more routine call interfaces, make calling of application programs convenient.
With reference to Figure 10, take the debugging of terminal that the Android system is installed is described as example:
The debug-item file ProductConfing.xml that the terminal to be debugged received is resolved in XMLManager unit (administrative unit 1) generates Boolean Model array SystemCallIDTable[N], comprise the corresponding system debug numbering of debug-item in this Boolean Model array, can correspondingly get the system debug project according to default system debug numbering with the mapping relations of debug-item, and the system debug number corresponding numerical value in this Boolean Model array of initialization is 0, then administrative unit is resolved the debug-item file ProductConfing.xml prestored, obtain corresponding system call number, and to Boolean Model array SystemCallIDTable[N] in system call number corresponding value carry out assignment, by Boolean Model array SystemCallIDTable[N] corresponding system call number is 1 with the numerical value assignment that the system call number in the debug-item file ProductConfing.xml prestored is mated, identifying this debug function comes into force.
When needs are debugged, by the interface display subelement 21[On Screen Display Module in receiving element 2], Long-distance Control subelement 22[Remote Control] and serial ports subelement 23[Serial Module] project that the user will debug received, for example in terminal, being provided with display screen is the project that also can need to debug in the demonstration screen display of terminal, the user can select corresponding debug-item by touch-screen or remote controller, the project that now interface display subelement 21 locking users will debug, according to the mapping relations between wanted debug-item and system call number, obtain the corresponding system call number of debug-item of locking, and identify this system call number corresponding numerical value, if numerical value is 1, system call unit 3 according to default system call number the mapping relations with api interface, call in api interface unit 4 corresponding api interface (each system call number can corresponding one or more api interfaces), the operation of calling corresponding api interface in api interface unit 4 is carried out in the instruction that system call performance element 5 sends according to system call unit 3, this api interface calls corresponding debugging routine terminal is debugged, the user also can directly send debug command to terminal by the button of remote controller, Long-distance Control subelement 22 is resolved the control command of the remote controller transmission received, and obtain correspondingly debug-item according to the key assignments information of the remote controller key be resolved to and the mapping relations of debug-item, according to the mapping relations between wanted debug-item and system call number, obtain the corresponding system call number of debug-item of locking, and identify this system call number corresponding numerical value, if numerical value is 1, system call unit 3 according to default system call number the mapping relations with api interface, call in api interface unit 4 corresponding api interface (each system call number can corresponding one or more api interfaces), the operation of calling corresponding api interface in api interface unit 4 is carried out in the instruction that system call performance element 5 sends according to system call unit 3, this api interface calls corresponding debugging routine terminal is debugged, the user also can realize treating by other control terminal the debugging of debug terminal through serial ports as PC, serial ports subelement 23 is after receiving the sign on of control terminal, obtain successively the debug-item of terminal to be debugged by default order, according to the mapping relations between wanted debug-item and system call number, obtain the corresponding system call number of debug-item of locking, and identify this system call number corresponding numerical value, if numerical value is 1, system call unit 4 according to default system call number the mapping relations with api interface, call in api interface unit 4 corresponding api interface (each system call number can corresponding one or more api interfaces), the operation of calling corresponding api interface in api interface unit 4 is carried out in the instruction that system call performance element 4 sends according to system call unit 3, this api interface calls corresponding debugging routine terminal is debugged.Api interface unit 4 is provided with three groups of api interfaces in the present embodiment, be respectively ThirdParty Java api interface, customizationJava api interface and Android System api interface, the calling interface that wherein ThirdParty Java api interface provides for supplier, the customizationJava api interface is for certainly realizing interface, and Android System api interface is the Android system interface.
With reference to Fig. 6, the structural representation that Fig. 6 is terminal debugging apparatus the first embodiment of the present invention.
The present embodiment proposes a kind of terminal debugging apparatus, comprising:
Acquisition module 10, for obtaining the debug-item of the terminal to be debugged received;
Matching module 20, mated with the debug-item prestored successively for the debug-item of the terminal to be debugged by receiving;
Identification module 30, for the debug-item interpolation matching identification of the described terminal to be debugged to the described debug-item coupling prestored;
The debug-item of terminal has multiple, and in a plurality of model terminals of a series, debug-item difference is less, the corresponding debugging routine of the debug-item of the terminal of a series can be kept in system so that the debugging different model terminal the time called.For example the debug-item of certain a series of intelligent television comprises white balance, nonlinear distortion, geometric distortion, the debug-items such as colour sensitivity and solution code error, the debug-item of the television set of model to be debugged comprises white balance, nonlinear distortion, geometric distortion, colour converges and colour sensitivity, the debug-item that will receive terminal to be debugged is mated with the debug-item prestored, white balance in the debug-item of the television set of model to be debugged, nonlinear distortion, geometric distortion and colour sensitivity can match in the debug-item prestored, to white balance, nonlinear distortion, geometric distortion and colour sensitivity are added matching identification, and debug-item does not match as colour converges in the debug-item prestored, can be left intact or point out the information such as debugging failed to the user.
Mapping relations between predeterminable debug-item and corresponding debugging routine api interface, when calling debugging routine, call corresponding api interface according to the mapping relations between debug-item and api interface and obtain debugging routine, each debug-item is to there being one or more api interfaces.
In the present embodiment, the debug-item of terminal to be debugged can be in table or other file as forms such as boards with the debug-item prestored, preferably be stored in XML(extensible markup language, extend markup language) in file, the XML file is for transmission and storage data, and simple in structure being easy to reads and writes data in any application program.
Parsing module 40, when detecting debug command, resolve and obtain the debug-item in debug command;
When detecting debug command, obtain the debug-item in debug command, this debug command can directly send debug command to terminal by the button of remote controller, the control command that the remote controller that terminal parses receives sends, and obtain correspondingly debug-item according to the key assignments information of the remote controller key be resolved to and the mapping relations of debug-item; Being provided with display screen in terminal is the project that also can need to debug in the demonstration screen display of terminal, and the user can select corresponding debug-item by touch-screen or remote controller, when receiving user's selection instruction, determines and selects the corresponding debug-item of cursor; Perhaps other control terminal realizes treating the debugging of debug terminal by serial ports as PC, after receiving the sign on of control terminal, treats the debug-item of debug terminal by default order and is debugged successively.
Calling module 50, if at the debug-item of terminal to be debugged, matching identification is arranged for the debug-item got, transfer and move the corresponding debugging routine of the debug-item got.
Take television set as example, and for example the debug-item in debug command is white balance, and in the debug-item of terminal to be debugged, white balance has matching identification, calls and move the corresponding debugging routine of the white balance prestored, and completes the debugging to the white balance of television set.
In the present embodiment, also can directly the debug-item with a series of terminal be pre-stored in debug system, when receiving debug command, obtain the debug-item in debug command, and the debug-item got and the debug-item prestored are mated one by one, call and move the corresponding debugging routine of this debug-item if match.
The terminal debugging apparatus that the present invention proposes, before being debugged, the debug-item of isonomic terminal to be debugged is pre-stored in debug system, first import the debug-item of this terminal when debug terminal, and this debug-item and the debug-item prestored are mated successively, if treating the debug-item of debug terminal, coupling adds matching identification, when receiving debug command, judge whether debug-item corresponding to debug command has matching identification in the debug-item of terminal to be debugged, if being arranged, matching identification calls and moves the debugging routine of this debug-item, make when the isonomic terminal of debugging, can directly in system, call debugging routine gets final product, and import corresponding debugging routine before noting be used in each debugging, debugging efficiency is high and save debugging cost.
With reference to Fig. 7, the structural representation that Fig. 7 is terminal debugging apparatus the second embodiment of the present invention.
Propose terminal debugging apparatus the second embodiment of the present invention based on the first embodiment, this device also comprises in the present embodiment:
Reminding module 60, if for the debug-item that gets when the debug-item of terminal to be debugged does not have matching identification, the prompting user is debugging failed.
Take television set as example, and for example debug-item does not have matching identification as colour converges, and now points out the user debugging failed.While can in the debug-item of the corresponding debug-item of debug command in terminal to be debugged, there is no matching identification, the debugging failed information in the demonstration screen display of terminal, after confirming, the user returns to debugging pictures, the prompting user that also can roll on the display screen of terminal is debugging failed, or after the Preset Time interval, debugging failed hint image is switched to normal debugging pictures; When the user is debugged by default order the debug-item of terminal by serial ports, can record the debug-item that there is no matching identification, after finishing, all debug-item debugging show all debugging failed debug-item information.Also can point out the user by modes such as auditory tone cueses in the terminal that is not provided with the demonstration frequency.
The user is when receiving debugging failed information, obtain debugging failed project, the corresponding debugging routine of debugging failed project is stored in debug system, and upgrade the debug-item file prestore, and again mate the project of terminal to be debugged and the debug-item prestored, and, in the matching identification of the project matched, according to matching identification, call corresponding debugging routine; Directly debugging failed debug-item is added to matching identification after perhaps in the corresponding debugging routine of the project by debugging failed is stored to debug system, and again this project is debugged, call the corresponding debugging routine of this project.
With reference to Fig. 8, the structural representation that Fig. 8 is terminal debugging apparatus the 3rd embodiment of the present invention.
The 3rd embodiment of terminal debugging apparatus of the present invention is proposed based on the first embodiment and the second embodiment, in the present embodiment, identification module 30 is also for the sign of the debug-item of initialization terminal to be debugged, to the debug-item of terminal to be debugged, adds not matching identification.
Before the debug-item of the terminal to be debugged by receiving is mated with the debug-item prestored successively, the sign of the debug-item of initialization terminal to be debugged, the sign of the debug-item of terminal to be debugged all is set to not matching identification, and after the match is successful, matching identification is not updated to matching identification.For example, before coupling, the sign of the debug-item of terminal to be debugged is initialized as to 0, if the debug-item of terminal to be debugged can be mixed with the debug-item prestored, the sign of the project on coupling in the debug-item of terminal to be debugged is updated to 1 by 0.
For example, when the storage file of the debug-item of terminal to be debugged is an XML file, the corresponding storage file of the debug-item prestored is the 2nd XML file, resolve an XML file generated debug-item array, and the sign of the debug-item in this array all is initialized as to false, then resolve the 2nd XML file, debug-item in the 2nd XML file and the debug-item in the debug-item array are mated, in the debug-item array with the 2nd XML file in the identification renewal of debug-item of debug-item coupling be true, when detecting debug command, obtain the debug-item in debug command and obtain the sign of this debug-item in the debug-item array, if be designated true, call and move the debugging routine of this debug-item.
In the 3rd embodiment, identification module 30 also is updated to matching identification for the not matching identification of the debug-item of the described terminal to be debugged of the debug-item coupling that will prestore with described.
Due to before the debug-item of the terminal to be debugged by receiving mated with the debug-item prestored successively, the sign of the debug-item of initialization terminal to be debugged, the sign of the debug-item of terminal to be debugged all is set to not matching identification, when the debug-item of the terminal to be debugged by receiving is mated with the debug-item prestored successively, the not matching identification of the debug-item of the described terminal to be debugged that will mate with the described debug-item prestored is updated to matching identification, can improve efficiency and the accuracy rate of change matching identification, matching identification and matching identification can not be set by the user, for example matching identification is not 0, matching identification is 1.
With reference to Fig. 9, Fig. 9 is this terminal debugging apparatus concrete structure schematic diagram of the present invention when the system of described terminal to be debugged is the Android system.
When the system of described terminal to be debugged is the Android system, this terminal debugging apparatus of the present invention comprises:
Administrative unit 1, for obtaining and resolve the debug-item file of the terminal to be debugged received, generate the Boolean Model array, comprise the corresponding system call number of debug-item in described Boolean Model array, and be 0 by the numerical value assignment of described system call correspondence, and resolve the debug-item file prestore and obtain corresponding system call number, the system call number corresponding numerical value in the Boolean Model array of the system call that will obtain with parsing number coupling is revised as 1;
Receiving element 2, when detecting debug command, resolve and obtain the debug-item in debug command, and, according to the mapping relations of default debug-item and system call number, determine the corresponding system call number of debug-item got;
Call unit 3, determine corresponding routine call interface for the mapping relations between the system call according to default number and described routine call interface, and according to definite corresponding debugging routine of routine call interface interchange.
With reference to Figure 10, take the debugging of terminal that the Android system is installed is described as example:
The debug-item file ProductConfing.xml that the terminal to be debugged received is resolved in XMLManager unit (administrative unit 1) generates Boolean Model array SystemCallIDTable[N], comprise the corresponding system debug numbering of debug-item in this Boolean Model array, can correspondingly get the system debug project according to default system debug numbering with the mapping relations of debug-item, and the system debug number corresponding numerical value in this Boolean Model array of initialization is 0, then administrative unit is resolved the debug-item file ProductConfing.xml prestored, obtain corresponding system call number, and to Boolean Model array SystemCallIDTable[N] in system call number corresponding value carry out assignment, by Boolean Model array SystemCallIDTable[N] corresponding system call number is 1 with the numerical value assignment that the system call number in the debug-item file ProductConfing.xml prestored is mated, identifying this debug function comes into force.
When needs are debugged, by the interface display subelement 21[On Screen Display Module in receiving element 2], Long-distance Control subelement 22[Remote Control] and serial ports subelement 23[Serial Module] project that the user will debug received, for example in terminal, being provided with display screen is the project that also can need to debug in the demonstration screen display of terminal, the user can select corresponding debug-item by touch-screen or remote controller, the project that now interface display subelement 21 locking users will debug, according to the mapping relations between wanted debug-item and system call number, obtain the corresponding system call number of debug-item of locking, and identify this system call number corresponding numerical value, if numerical value is 1, system call unit 3 according to default system call number the mapping relations with api interface, call in api interface unit 4 corresponding api interface (each system call number can corresponding one or more api interfaces), the operation of calling corresponding api interface in api interface unit 4 is carried out in the instruction that system call performance element 5 sends according to system call unit 3, this api interface calls corresponding debugging routine terminal is debugged, the user also can directly send debug command to terminal by the button of remote controller, Long-distance Control subelement 22 is resolved the control command of the remote controller transmission received, and obtain correspondingly debug-item according to the key assignments information of the remote controller key be resolved to and the mapping relations of debug-item, according to the mapping relations between wanted debug-item and system call number, obtain the corresponding system call number of debug-item of locking, and identify this system call number corresponding numerical value, if numerical value is 1, system call unit 3 according to default system call number the mapping relations with api interface, call in api interface unit 4 corresponding api interface (each system call number can corresponding one or more api interfaces), the operation of calling corresponding api interface in api interface unit 4 is carried out in the instruction that system call performance element 5 sends according to system call unit 3, this api interface calls corresponding debugging routine terminal is debugged, the user also can realize treating by other control terminal the debugging of debug terminal through serial ports as PC, serial ports subelement 23 is after receiving the sign on of control terminal, obtain successively the debug-item of terminal to be debugged by default order, according to the mapping relations between wanted debug-item and system call number, obtain the corresponding system call number of debug-item of locking, and identify this system call number corresponding numerical value, if numerical value is 1, system call unit 3 according to default system call number the mapping relations with api interface, call in api interface unit 4 corresponding api interface (each system call number can corresponding one or more api interfaces), the operation of calling corresponding api interface in api interface unit 4 is carried out in the instruction that system call performance element 4 sends according to system call unit 3, this api interface calls corresponding debugging routine terminal is debugged.Api interface unit 4 is provided with three groups of api interfaces in the present embodiment, be respectively ThirdParty Java api interface, customizationJava api interface and Android System api interface, the calling interface that wherein ThirdParty Java api interface provides for supplier, the customizationJava api interface is for certainly realizing interface, and Android System api interface is the Android system interface.
The foregoing is only the preferred embodiments of the present invention; not thereby limit the scope of the claims of the present invention; every equivalent structure transformation that utilizes specification of the present invention and accompanying drawing content to do; or directly or indirectly be used in other relevant technical fields, all in like manner be included in scope of patent protection of the present invention.

Claims (10)

1. a terminal debugging method, is characterized in that, comprising:
Obtain the debug-item of the terminal to be debugged received, the debug-item of the terminal to be debugged of reception is mated with the debug-item prestored successively;
Debug-item to the described terminal to be debugged with the described debug-item coupling prestored adds matching identification;
While detecting debug command, resolve and obtain the debug-item in debug command;
If the debug-item got has matching identification in the debug-item of terminal to be debugged, transfer and move the corresponding debugging routine of the debug-item got.
2. method according to claim 1, is characterized in that, if when the debug-item got does not have matching identification in the debug-item of terminal to be debugged, the prompting user is debugging failed.
3. method according to claim 1, is characterized in that, the described debug-item by the terminal to be debugged that receives also comprises before being mated step with the debug-item prestored successively:
The sign of the debug-item of initialization terminal to be debugged, add not matching identification to the debug-item of terminal to be debugged.
4. method according to claim 3, is characterized in that, the step that the described debug-item to the described terminal to be debugged with the described debug-item coupling prestored adds matching identification replaces with:
The not matching identification of the debug-item of the described terminal to be debugged that will mate with the described debug-item prestored is updated to matching identification.
5. method according to claim 1, is characterized in that, when the system of described terminal to be debugged is the Android system, the method comprises:
Obtain and resolve the debug-item file of the terminal to be debugged received, generate the Boolean Model array, comprise the corresponding system call number of debug-item in described Boolean Model array;
By the numerical value assignment of described system call correspondence, be 0;
The debug-item file that parsing prestores obtains corresponding system call number, and the system call number corresponding numerical value in the Boolean Model array of the system call that will obtain with parsing number coupling is revised as 1;
While detecting debug command, resolve and obtain the debug-item in debug command, and, according to the mapping relations of default debug-item and system call number, determine the corresponding system call number of debug-item got;
Determine corresponding routine call interface according to the mapping relations between default system call number and described routine call interface, and according to definite corresponding debugging routine of routine call interface interchange.
6. a terminal debugging apparatus, is characterized in that, comprising:
Acquisition module, for obtaining the debug-item of the terminal to be debugged received;
Matching module, mated with the debug-item prestored successively for the debug-item of the terminal to be debugged by receiving;
Identification module, for the debug-item interpolation matching identification of the described terminal to be debugged to the described debug-item coupling prestored;
Parsing module, when detecting debug command, resolve and obtain the debug-item in debug command;
Calling module, if at the debug-item of terminal to be debugged, matching identification is arranged for the debug-item got, transfer and move the corresponding debugging routine of the debug-item got.
7. device according to claim 6, is characterized in that, this device also comprises:
Reminding module, if for the debug-item that gets when the debug-item of terminal to be debugged does not have matching identification, the prompting user is debugging failed.
8. device according to claim 6, is characterized in that, described identification module is also for the sign of the debug-item of initialization terminal to be debugged, to the debug-item of terminal to be debugged, adds not matching identification.
9. device according to claim 8, is characterized in that, described identification module also is updated to matching identification for the not matching identification of the debug-item of the described terminal to be debugged of the debug-item coupling that will prestore with described.
10. device according to claim 6, is characterized in that, when the system of described terminal to be debugged is the Android system, this debugging apparatus comprises:
Administrative unit, for obtaining and resolve the debug-item file of the terminal to be debugged received, generate the Boolean Model array, comprise the corresponding system call number of debug-item in described Boolean Model array, and be 0 by the numerical value assignment of described system call correspondence, and resolve the debug-item file prestore and obtain corresponding system call number, the system call number corresponding numerical value in the Boolean Model array of the system call that will obtain with parsing number coupling is revised as 1;
Receiving element, when detecting debug command, resolve and obtain the debug-item in debug command, and, according to the mapping relations of default debug-item and system call number, determine the corresponding system call number of debug-item got;
Call unit, determine corresponding routine call interface for the mapping relations between the system call according to default number and described routine call interface, and according to definite corresponding debugging routine of routine call interface interchange.
CN2013103702529A 2013-08-22 2013-08-22 Terminal debugging method and device Pending CN103458312A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013103702529A CN103458312A (en) 2013-08-22 2013-08-22 Terminal debugging method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013103702529A CN103458312A (en) 2013-08-22 2013-08-22 Terminal debugging method and device

Publications (1)

Publication Number Publication Date
CN103458312A true CN103458312A (en) 2013-12-18

Family

ID=49740199

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013103702529A Pending CN103458312A (en) 2013-08-22 2013-08-22 Terminal debugging method and device

Country Status (1)

Country Link
CN (1) CN103458312A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106412639A (en) * 2016-10-14 2017-02-15 深圳Tcl数字技术有限公司 Smart television remote debugging method and smart television remote debugging system
CN106445825A (en) * 2016-09-30 2017-02-22 努比亚技术有限公司 Debugging method and device
CN108153676A (en) * 2017-12-26 2018-06-12 广东欧珀移动通信有限公司 Debugging management method, apparatus, storage medium and terminal device
WO2018233121A1 (en) * 2017-06-21 2018-12-27 广州视源电子科技股份有限公司 Debugging tool configuration method, readable storage medium and debugging tool configuration device
CN109344087A (en) * 2018-12-03 2019-02-15 珠海格力电器股份有限公司 A kind of multiterminal synchronous debugging method, system, storage medium and the processor of equipment
CN109714612A (en) * 2019-03-05 2019-05-03 华数传媒网络有限公司 A kind of heterogeneous network across screen projecting method and device
CN109922369A (en) * 2017-12-12 2019-06-21 深圳Tcl新技术有限公司 A kind of smart television program commending method, system and storage medium
CN110762769A (en) * 2019-11-04 2020-02-07 珠海格力电器股份有限公司 Unit debugging method and device, debugging equipment, medium and air conditioning system
CN115391493A (en) * 2022-10-26 2022-11-25 南方科技大学 Magnetic lens debugging method and device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050172272A1 (en) * 2004-01-30 2005-08-04 International Business Machines Corporation Method of generating and utilizing debug history
CN101236522A (en) * 2008-01-25 2008-08-06 中兴通讯股份有限公司 Hardware module test method and apparatus
CN102708046A (en) * 2012-04-17 2012-10-03 任仲斌 Computer software debugging method
CN102724343A (en) * 2012-05-31 2012-10-10 青岛海信移动通信技术股份有限公司 Mobile phone hardware module test method and test device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050172272A1 (en) * 2004-01-30 2005-08-04 International Business Machines Corporation Method of generating and utilizing debug history
CN101236522A (en) * 2008-01-25 2008-08-06 中兴通讯股份有限公司 Hardware module test method and apparatus
CN102708046A (en) * 2012-04-17 2012-10-03 任仲斌 Computer software debugging method
CN102724343A (en) * 2012-05-31 2012-10-10 青岛海信移动通信技术股份有限公司 Mobile phone hardware module test method and test device

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106445825A (en) * 2016-09-30 2017-02-22 努比亚技术有限公司 Debugging method and device
CN106445825B (en) * 2016-09-30 2020-06-12 南京秦淮紫云创益企业服务有限公司 Debugging method and device
CN106412639A (en) * 2016-10-14 2017-02-15 深圳Tcl数字技术有限公司 Smart television remote debugging method and smart television remote debugging system
WO2018233121A1 (en) * 2017-06-21 2018-12-27 广州视源电子科技股份有限公司 Debugging tool configuration method, readable storage medium and debugging tool configuration device
CN109922369A (en) * 2017-12-12 2019-06-21 深圳Tcl新技术有限公司 A kind of smart television program commending method, system and storage medium
CN108153676A (en) * 2017-12-26 2018-06-12 广东欧珀移动通信有限公司 Debugging management method, apparatus, storage medium and terminal device
CN108153676B (en) * 2017-12-26 2021-08-20 Oppo广东移动通信有限公司 Debugging management method and device, storage medium and terminal equipment
CN109344087A (en) * 2018-12-03 2019-02-15 珠海格力电器股份有限公司 A kind of multiterminal synchronous debugging method, system, storage medium and the processor of equipment
CN109344087B (en) * 2018-12-03 2020-10-20 珠海格力电器股份有限公司 Multi-terminal synchronous debugging method and system of equipment, storage medium and processor
CN109714612A (en) * 2019-03-05 2019-05-03 华数传媒网络有限公司 A kind of heterogeneous network across screen projecting method and device
CN110762769A (en) * 2019-11-04 2020-02-07 珠海格力电器股份有限公司 Unit debugging method and device, debugging equipment, medium and air conditioning system
CN115391493A (en) * 2022-10-26 2022-11-25 南方科技大学 Magnetic lens debugging method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN103458312A (en) Terminal debugging method and device
CN103051693B (en) Apparatus control method and mobile communication terminal
US20140101546A1 (en) Supported apparatus, supporting apparatus, inter-apparatus guide system, recording medium, and integrated circuit
CN103634592A (en) Automatic test method and system for intelligent televisions
CN101287266B (en) Test system and method for mobile phone
CN102316381B (en) Menu option displaying method, apparatus thereof and television set
CN103596021A (en) Account login method, device and system of intelligent television
CN107666406B (en) Intelligent card display method and device
CN105353880A (en) Application program start control system and method based on finger information
CN105847922A (en) Intelligent television control method and intelligent television
CN110287093A (en) Mobile terminal, data-interface test method and storage medium
CN103197945A (en) Personalized content loading method and device for television and personal computer combo
US5335339A (en) Equipment and method for interactive testing and simulating of a specification of a network system
CN112130475A (en) Equipment control method, device, terminal and storage medium
CN111045551A (en) Multi-screen touch system under iOS system
CN104092694A (en) Method and system for allocation of account numbers of mobile game
CN111866557B (en) Configuration method and device of large-screen display equipment, storage medium and electronic equipment
CN112653915A (en) Television-based sensing enabling method and device, television and storage medium
US11223961B2 (en) Configuration method of wireless network system, configuration terminal and configuration system
CN113572671B (en) Equipment control method and device and electronic equipment
CN115951973A (en) Model processing method and device, terminal device and storage medium
CN106406279B (en) Apparatus testing method and device, electronic equipment
CN105812936B (en) Modular electrical regards upgrade method and modularization television-set upgrading apparatus
CN112449227A (en) Interaction method and device for touch screen application compatible with remote controller operation, smart television and storage medium
US8732659B2 (en) Method, apparatus and storage medium for customizing application

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20131218