CN105786685A - Mobile terminal online debugging and diagnosis method and terminal - Google Patents

Mobile terminal online debugging and diagnosis method and terminal Download PDF

Info

Publication number
CN105786685A
CN105786685A CN201410795474.XA CN201410795474A CN105786685A CN 105786685 A CN105786685 A CN 105786685A CN 201410795474 A CN201410795474 A CN 201410795474A CN 105786685 A CN105786685 A CN 105786685A
Authority
CN
China
Prior art keywords
register section
mobile terminal
information
debugging
debugged
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.)
Granted
Application number
CN201410795474.XA
Other languages
Chinese (zh)
Other versions
CN105786685B (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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201410795474.XA priority Critical patent/CN105786685B/en
Publication of CN105786685A publication Critical patent/CN105786685A/en
Application granted granted Critical
Publication of CN105786685B publication Critical patent/CN105786685B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention provides a mobile terminal online debugging and diagnosis method and a terminal, relates to the field of mobile terminal debugging, and solves the problem that the debugging efficiency is low due to repeat compiling, burning, and power-on authentication during mobile terminal module debugging in the prior art. The technical scheme includes that: a mobile terminal receives register segment information of a register in a terminal module to be debugged which is sent by a PC, and stores the register segment information into an internal storage of the mobile terminal; and then, the mobile terminal receives command information sent by the PC, and obtains data of the register segment needing to be debugged from the register segment information in the internal storage of the mobile terminal according to an identification of the register segment needing to be debugged; and the mobile terminal successively writes data of the register segment needing to be debugged into the register segment corresponding to the terminal module to be debugged to obtain a debugging effect of the terminal module to be debugged, and it can be determined if debugging is performed again according to the debugging effect. The method is used for mobile terminal debugging.

Description

A kind of method of mobile terminal on-line debugging and diagnosis and terminal
Technical field
The present invention relates to mobile terminal debugging field, particularly relate to method and the terminal of a kind of mobile terminal on-line debugging and diagnosis.
Background technology
Along with the development of science and technology, people require more and more higher for the Consumer's Experience of mobile terminal, pursue more perfect audiovisual experience.This needs relevant technical staff that mobile terminal component is carried out finer debugging.And the numerical value essentially by the depositor that component each on mobile terminal is corresponding of debugging of mobile terminal component is carried out realization of debugging.
At present, although each equipment vendors generally all can provide some reference values of depositor, but the difference due to the hardware used and assembly, frequently can lead to the performance of mobile terminal component (such as: the display effect of display screen, the taking pictures and preview effect etc. of photographic head) and do not reach expected effect, it is impossible to meet the demand of user.Therefore, in order to meet the demand of user, in prior art, the debugging of mobile terminal component is all by technical staff's experience according to self, adjust the numerical value of related register, then the parameter of adjustment is derived and is incorporated in the source code of software, then recompilate and burning mobile terminal, finally start shooting and debugging effect is verified, repeated multiple times, until debugging out most suitable parameter.
But, inventor have found that, in above-mentioned mobile terminal component debugging process, may there is multiple depositor in each mobile terminal component, and debug every time and be able to validate only one of them parameter, and also need to after parameter modification source code is recompilated, burning checking of starting shooting, this is a very loaded down with trivial details time-consuming process, cause plenty of time consumption, result in debugging efficiency low, indirectly add manpower and materials cost.
Summary of the invention
Embodiments of the invention provide method and the terminal of a kind of mobile terminal on-line debugging and diagnosis, solve and need compiling, burning repeatedly in prior art when mobile terminal module debug and start shooting and verify the problem that the debugging efficiency caused is low.
For reaching above-mentioned purpose, embodiments of the invention adopt the following technical scheme that
First aspect, it is provided that a kind of mobile terminal on-line debugging method, described method includes:
Mobile terminal receives the register section information of depositor in the terminal module to be debugged that PC host side sends, and described register section information is stored in the internal memory of described mobile terminal, wherein, described register section information includes the mark of register section and the data of corresponding register section;
Receive the described PC command information sent;Described command information includes the mark of the register section of needs debugging;
Mark according to the described register section needing debugging, in the described register section information from described mobile terminal internal memory, obtains needing the data of the register section of debugging;
Successively the data of the described register section needing debugging being write in the described corresponding register section of terminal module to be debugged, obtaining the debugging effect of described terminal module to be debugged, thus determining whether to re-start debugging according to described debugging effect.
Optionally, the data of described register section include register address and corresponding numerical value;
The described data of the described register section needing debugging write in the described corresponding register section of terminal module to be debugged successively specifically includes:
According to the register address that the described register section needing to debug is corresponding, numerical value corresponding for described register address is write in the corresponding register section of terminal module to be debugged.
Optionally, the terminal module information to be debugged that mobile terminal reception PC sends specifically includes:
Receive the described PC terminal module information described to be debugged sent by the communication interface between described mobile terminal and described PC;Or, receive the described PC terminal module information described to be debugged sent by the communication protocol between described mobile terminal and PC.
Second aspect, it is provided that a kind of mobile terminal inline diagnosis method, described method includes:
Mobile terminal receives PC host side and sends command information, the register section information that wherein said command information treats depositor in diagnosis terminal module for indicating described mobile terminal to read;
The register section information of depositor in diagnosis terminal module is treated according to the acquisition of described command information;
The described register section information treating depositor in diagnosis terminal module is sent to described PC, by described, described PC treats that the register section information of depositor in diagnosis terminal module and the described original registers segment information treating depositor in diagnosis terminal module are compared, so that it is determined that go out abnormal register section occurs.
Optionally, described register section information includes the mark of register section and the data of described register section;Described command information includes the mark of the register section of needs diagnosis;
Described according to described command information obtain described in treat that the register section information of depositor in diagnosis terminal module includes: obtain, according to the mark of the register section of described needs diagnosis, the data of register section that described needs diagnose.
Optionally, described mobile terminal reception PC host side transmission command information specifically includes:
Receive the described PC described command information sent by the communication interface between described mobile terminal and described PC;Or, receive the described PC described command information sent by the communication protocol between described mobile terminal and described PC.
The third aspect, it is provided that a kind of mobile terminal, described mobile terminal includes:
First receives unit, for receiving the register section information of depositor in the terminal module to be debugged that PC host side sends, and described register section information is stored in internal memory, wherein, described register section information includes the mark of register section and the data of corresponding register section;
Second receives unit, for receiving the described PC command information sent;Described command information includes the mark of the register section of needs debugging;
Resolution unit, for the mark according to the described register section needing debugging, in the described register section information from described mobile terminal internal memory, obtains needing the data of the register section of debugging;
Writing unit, for the data of the described register section needing debugging being write in the described corresponding register section of terminal module to be debugged successively, obtains the debugging effect of described terminal module to be debugged, thus determining whether to re-start debugging according to described debugging effect.
Optionally, the data of described register section include register address and corresponding numerical value;
Described when successively the data of the described register section needing debugging being write in the described corresponding register section of terminal module to be debugged, said write unit specifically for:
According to the register address that the described register section needing to debug is corresponding, numerical value corresponding for described register address is write in the corresponding register section of terminal module to be debugged.
Optionally, first receive unit specifically for:
Receive the described PC terminal module information described to be debugged sent by the communication interface between described mobile terminal and described PC;Or, receive the described PC terminal module information described to be debugged sent by the communication protocol between described mobile terminal and PC.
Fourth aspect, it is provided that a kind of mobile terminal, described mobile terminal includes:
Receive unit, be used for receiving PC host side and send command information, the register section information that wherein said command information treats depositor in diagnosis terminal module for indicating described mobile terminal to read;
Acquiring unit, for treating the register section information of depositor in diagnosis terminal module according to the acquisition of described command information;
Transmitting element, for the described register section information treating depositor in diagnosis terminal module is sent to described PC, by described, described PC treats that the register section information of depositor in diagnosis terminal module and the described original registers segment information treating depositor in diagnosis terminal module are compared, so that it is determined that go out abnormal register section occurs.
Optionally, described register section information includes the mark of register section and the data of described register section;Described command information includes the mark of the register section of needs diagnosis;
Described acquiring unit specifically for:
Mark according to the described register section needing diagnosis obtains the data of the described register section needing diagnosis.
Optionally, described reception unit specifically for:
Receive the described PC described command information sent by the communication interface between described mobile terminal and described PC;Or, receive the described PC described command information sent by the communication protocol between described mobile terminal and described PC.
Mobile terminal on-line debugging that the embodiment of the present invention provides and the method for diagnosis and terminal, mobile terminal receives the register section information of depositor in the PC terminal module to be debugged sent, and register section information is stored in the internal memory of mobile terminal, then, mobile terminal receives the PC command information sent the mark of register section debugged as required, in register section information from mobile terminal internal memory, obtain needing the data of the register section of debugging, then, the data needing the register section of debugging are write in the corresponding register section of terminal module to be debugged by mobile terminal successively, obtain the debugging effect of terminal module to be debugged, thus determining whether to re-start debugging according to debugging effect;And mobile terminal receives the PC command information sent and obtains the register section information treating depositor in diagnosis terminal module according to command information, the register section information treating depositor in diagnosis terminal module is sent to PC by mobile terminal, the register section information treating depositor in diagnosis terminal module is compared by PC with the original registers segment information treating depositor in diagnosis terminal module, so that it is determined that go out abnormal register section occurs.So carry out adjustment method online according to above-mentioned, the present invention generates and burning operation without firmware program carries out compiling repeatedly, commissioning staff only need to monitor debugging result and debugging effect, simultaneously, it is possible to check the buffer status of mobile terminal module at any time, the even now sex chromosome mosaicism of instant solution, reproduction fault is gone without again adding code, saving the substantial amounts of time, thus substantially increasing debugging efficiency, having reduced debugging cost.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, the accompanying drawing used required in embodiment or description of the prior art will be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
A kind of mobile terminal on-line debugging method flow diagram that Fig. 1 provides for embodiments of the invention;
A kind of mobile terminal inline diagnosis method flow diagram that Fig. 2 provides for embodiments of the invention;
The structural representation of a kind of mobile terminal that Fig. 3 provides for embodiments of the invention;
The structural representation of the another kind of mobile terminal that Fig. 4 provides for embodiments of the invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention.
Embodiment one
Embodiments of the invention provide a kind of mobile terminal on-line debugging method, as it is shown in figure 1, the method specifically includes following steps:
101, mobile terminal receives the register section information of depositor in the PC terminal module to be debugged sent, and register section information is stored in the internal memory of mobile terminal.
Wherein, above-mentioned mobile terminal can be the electronic equipment of portable, pocket or hand-held.Such as, smart mobile phone, panel computer and personal digital assistant etc..Above-mentioned terminal module refer to constitute this mobile terminal each component (component is the most basic ingredient directly constituting finished product, it can be part, can also be the finished product of semi-finished product or other company), this terminal module includes but not limited to that photographic head is (English: the camera) component such as module, display screen module, radio module and gravity sensor module, above-mentioned terminal module to be debugged includes at least one terminal module.
Concrete, in above-mentioned terminal module to be debugged, the register section information of depositor can be the register section information of depositor in a terminal module, it is possible to is the register section information of depositor in multiple terminal module.Wherein, above-mentioned register section information includes register address and corresponding numerical value.It should be noted that the register section information of depositor is that mobile terminal is deposited in the internal memory of mobile terminal after receiving above-mentioned register section information according to certain form storage in above-mentioned terminal module to be debugged.
Exemplary, mobile terminal receives PC and sends the register section information A.txt of depositor in certain terminal module to be debugged, and the register section information in this A.txt can store according to lower column format:
Regs_init_setting:
REG=0 × 03, VAL=0 × 01,
REG=0 × 04, VAL=0 × 03,
REG=0 × 05, VAL=0 × 02.
Svga_settings:
REG=0x03, VAL=0x20,
REG=0x10, VAL=0x1c,
REG=0x03, VAL=0x22,
REG=0x10, VAL=0x69.
Wherein, first row refers to that register address, secondary series are this register value.Above-mentioned A.txt comprises two register sections, the mark " Regs_init_setting " of register section, between the mark " svga_settings " of next register section being a register section, is another register section after the mark " svga_settings " of register section.
Mobile terminal receives in above-mentioned terminal module to be debugged and is stored in the internal memory of this mobile terminal after the register section information of depositor, becomes B.txt.
Optionally, the terminal module information to be debugged that the reception of the mobile terminal in step 101 PC sends specifically includes:
Mobile terminal receives the PC terminal module information to be debugged sent by the communication interface between mobile terminal and PC;Or, mobile terminal receives the PC module information sent by the communication protocol between mobile terminal and PC.
Exemplary, when certain module is debugged by needs, PC can call debugfs, and (debugfs is a kind of Virtual File System for kernel tailoring, communication interface can be set up between host side and mobile terminal) file system create a communication interface register section information of depositor in terminal module to be debugged is sent to mobile terminal, can also pass through to debug bridge (English: AndroidDebugBridge, to be called for short ADB) agreement and the register section information of depositor in terminal module to be debugged is sent to mobile terminal.
102, mobile terminal receives the PC command information sent.
Wherein, above-mentioned command information includes the mark of the register section of needs debugging, for indicating the register section of the mark correspondence of the register section of the mobile terminal needs debugging to comprising in this command information to resolve.
Exemplary, for B.txt, when above-mentioned command information is " Regs_init_setting0 ", for indicating this mobile terminal that the register section (i.e. the mark " Regs_init_setting " of the register section in B.txt to the register section between the mark " svga_settings " of next register section) indicated by the mark " Regs_init_setting " of register section in B.txt file is resolved, obtain register address corresponding to corresponding register section and need to be stored in the numerical value of depositor, the numerical value write mobile terminal obtained will be resolved;When above-mentioned command information is " Regs_init_setting0 " and " svga_settings0 ", for indicating this mobile terminal that the mark " Regs_init_setting " of register section in B.txt file and the register section (i.e. all register sections in B.txt) indicated by " svga_settings " are resolved, obtain register address corresponding to corresponding register section and need to be stored in the numerical value of depositor, the numerical value write mobile terminal obtained will be resolved.Wherein, above-mentioned in command information 0 is for representing that this mobile terminal needs the numerical value write mobile terminal of the register section representated by the mark " Regs_init_setting " of register section or " svga_settings ".
103, the mark of the register section that mobile terminal is debugged as required, in the register section information from mobile terminal internal memory, obtains needing the data of the register section of debugging.
Exemplary, register section indicated by the mark " Regs_init_setting " of register section in B.txt file is resolved by mobile terminal according to command information " Regs_init_setting0 ", obtain similar { 0 × 03, the file of 0 × 01} form, wherein, 0 × 03 is register address, and 0 × 01 is the numerical value needing to be stored in this depositor.
104, the data needing the register section of debugging are write in the corresponding register section of terminal module to be debugged by mobile terminal successively, obtain the debugging effect of terminal module to be debugged, thus determining whether to re-start debugging according to debugging effect.
Optionally, in step 104, the data needing the register section of debugging are write in the corresponding register section of terminal module to be debugged and specifically include following steps by mobile terminal successively:
The register address that register section that 104a, mobile terminal are debugged as required is corresponding, treats numerical value write corresponding for register address in the corresponding register section of terminal module to be debugged.
Concrete, the register address that register section that mobile terminal is debugged as required is corresponding, find the corresponding register section of terminal module to be debugged, and numerical value corresponding for register address is write in the corresponding register section of terminal module to be debugged, just the debugging effect of this terminal module to be debugged can be obtained, if debugging effect reaches satisfied degree, then not needing to continue debugging, the register section information debugged by these needs is integrated in code;If debugging effect does not reach satisfied degree, then revise the register section information of these needs debugging, repeat the process of above-mentioned step 101-step 104, until debugging effect reaches satisfied degree.
Exemplary, if after the register section information in mobile terminal internal memory is resolved by mobile terminal according to command information, obtain similar { 0 × 03, the file of 0 × 01} form, then this mobile terminal finds the corresponding register section of terminal module to be debugged according to above-mentioned register address 0 × 03, corresponding numerical value 0 × 01 is write in the corresponding register section of terminal module to be debugged by I2C interface, obtain the debugging effect of this terminal module to be debugged, if this effect reaches satisfaction, then above-mentioned register section information is integrated in code.
If this effect does not reach satisfied degree, then continue to write this register section information, and repeat above-mentioned operation, until the debugging effect of this terminal module to be debugged reaches satisfied degree, the register section information that debugging effect reaches satisfaction is integrated in code.
Exemplary, it is specifically described for photographic head module at this:
Mobile terminal is received the register section information A.txt of depositor in the PC photographic head module sent by ADB agreement and this register section information is stored in internal memory.Mobile terminal is after receiving PC " Regs_init_setting0 " instruction sent, register section in register section information indicated by the mark " Regs_init_setting " of register section is resolved, draws register address that this register section is corresponding and need to be stored in the numerical value of this depositor:
Regs_init_setting:{
0 × 03,0 × 01};
0 × 04,0 × 03};
0 × 05,0 × 02};
}
Mobile terminal is according to register address 0 × 03 corresponding to register section, 0 × 04,0 × 05, find corresponding register section in photographic head module, by corresponding numerical value 0 × 01,0 × 03,0 × 02 by, in corresponding register section in I2C interface write photographic head module, obtaining the debugging effect of this photographic head, observe whether effect of taking pictures reaches requirement, if being not reaching to satisfied degree, then A.txt is changed into:
Regs_preview_setting:
REG=0 × 03, VAL=0 × 01,
REG=0 × 04, VAL=0 × 03,
REG=0 × 05, VAL=0 × 01.
During mobile terminal receives the register section information of the depositor in photographic head module and is stored in the internal memory of this mobile terminal, then, after mobile terminal receives the PC command information Regs_preview_setting0 sent, register section in register section information indicated by the mark " Regs_preview_setting " of register section is resolved, obtains register address corresponding to this register section and need to be stored in the numerical value of this depositor:
Regs_preview_setting:{
0 × 03,0 × 01};
0 × 04,0 × 03};
0 × 05,0 × 01};
}
Mobile terminal finds corresponding register section in photographic head module according to the register address that register section is corresponding, and by the numerical value corresponding to register address corresponding for register section by corresponding register section in I2C interface write photographic head module, observe the effect of taking pictures of photographic head, reach satisfied degree, then complete debugging, current register section information is integrated in code.
nullThe mobile terminal on-line debugging method that the embodiment of the present invention provides,Mobile terminal receives the register section information of depositor in the PC terminal module to be debugged sent,And register section information is stored in the internal memory of mobile terminal,Then,Mobile terminal receives the PC command information sent the mark of register section debugged as required,In register section information from mobile terminal internal memory,Obtain needing the data of the register section of debugging,Then,The data needing the register section of debugging are write in the corresponding register section of terminal module to be debugged by mobile terminal successively,Obtain the debugging effect of terminal module to be debugged,Thus determining whether to re-start debugging according to debugging effect,Debugging process carries out online,Generate and burning operation without firmware program being carried out compiling repeatedly,Commissioning staff only need to monitor debugging result and debugging effect,Substantially increase debugging efficiency,Reduce debugging cost.
Embodiment two
Embodiments of the invention provide another kind of mobile terminal inline diagnosis method, when mobile terminal appearance effect exception, the method of technical staff's just inline diagnosis that the available present invention proposes, mobile terminal is connected with PC, thus detecting whether the register data of this mobile terminal module changes.Concrete, as in figure 2 it is shown, the method specifically includes following steps:
201, mobile terminal receives the PC command information sent.
Wherein, the register section information that above-mentioned command information treats depositor in diagnosis terminal module for indicating mobile terminal to read, this command information includes the mark of the register section of needs diagnosis.
Optionally, step 201 specifically includes:
201a, mobile terminal receive the PC command information sent by the communication interface between mobile terminal and PC;Or, mobile terminal receives the PC command information sent by the communication protocol between mobile terminal and PC.
Exemplary, PC can call one communication interface of debugfs file system establishment and command information is sent to mobile terminal, it is also possible to by ADB agreement, command information is sent to mobile terminal.
202, mobile terminal obtains the register section information treating depositor in diagnosis terminal module according to command information.
Optionally, step 202 specifically includes following steps:
The mark of the register section that 202a, mobile terminal diagnose as required obtains the data of the register section needing diagnosis.
Exemplary, after mobile terminal receives PC " Regs_init_setting1 " instruction sent, obtain this treat being similar to of depositor in diagnosis terminal module 0 × 03, the register section information of 0 × 01}, wherein 0 × 03 is register address, and 0 × 01 is the numerical value that this depositor is corresponding.Wherein, above-mentioned in command information 1 is for indicating this mobile terminal to need from mobile terminal, the numerical value corresponding to depositor corresponding for the register section representated by the mark " Regs_init_setting " of register section is read PC.
203, the register section information treating depositor in diagnosis terminal module is sent to PC by mobile terminal, the register section information treating depositor in diagnosis terminal module is compared by PC with the original registers segment information treating depositor in diagnosis terminal module, so that it is determined that go out abnormal register section occurs.
Concrete, the register section information treating depositor in diagnosis terminal module is sent to PC by mobile terminal, PC by treat the register section information of depositor in diagnosis terminal module with prestore treat that the numerical value that in diagnosis terminal module, in register section information, the register address of each is corresponding contrasts, it is determined that go out abnormal register section occurs.
Exemplary, it is specifically described for photographic head module at this:
When the photographic head that the user discover that mobile terminal take pictures the partially green needs of color keep in repair time, if technical staff is it needs to be determined that whether the data in corresponding registers section change, this mobile terminal is connected PC by communication interface, after mobile terminal receives PC " Regs_init_setting1 " instruction sent, obtain the register section information of depositor in photographic head module:
Regs_init_setting:{
0 × 03,0 × 01};
0 × 04,0 × 03};
0 × 05,0 × 02};
}
This register section information is sent to PC by mobile terminal, the original registers segment information of depositor in PC and the PC photographic head module prestored
Regs_init_setting:{
0 × 03,0 × 01};
0 × 04,0 × 03};
0 × 05,0 × 01};
}
Compare, it is possible to find the numerical value in the register address 0 × 05 that register section is corresponding is become 0 × 02 from 0 × 01, so that it is determined that having gone out photographic head is changed by the numerical value in register address 0 × 05 to cause extremely.
The mobile terminal inline diagnosis method that the embodiment of the present invention provides, mobile terminal receives the PC command information sent and obtains the register section information treating depositor in diagnosis terminal module according to command information, the register section information treating depositor in diagnosis terminal module is sent to PC by mobile terminal, the register section information treating depositor in diagnosis terminal module is compared by PC with the original registers segment information treating depositor in diagnosis terminal module, so that it is determined that go out abnormal register section occurs, compared to prior art, the buffer status of mobile terminal module can be checked at any time, the even now sex chromosome mosaicism of instant solution, reproduction fault is gone without again adding code, thus improve the solution speed of fault, reduce cost.
Embodiment three
Embodiments of the invention provide a kind of mobile terminal 3, as it is shown on figure 3, this mobile terminal 3 includes: first receives unit 301, second receives unit 302, resolution unit 303, writing unit 304 and memory element 305, wherein:
First receives unit 301, for receiving the register section information of depositor in the terminal module to be debugged that PC host side sends, and register section information is stored in memory element 305, wherein, above-mentioned register section information includes the mark of register section and the data of corresponding register section.
Second receives unit 302, for receiving the PC command information sent;Above-mentioned command information includes the mark of the register section of needs debugging.
Resolution unit 303, the mark of the register section for debugging as required, in the register section information from the memory element 305 of above-mentioned mobile terminal, obtain needing the register section information of the register section of debugging.
Writing unit 304, for the data of the above-mentioned register section needing debugging being write in the corresponding register section of terminal module to be debugged successively, obtains the debugging effect of terminal module to be debugged, thus determining whether to re-start debugging according to debugging effect.
Optionally, the data of above-mentioned register section include register address and corresponding numerical value.
When the data needing the register section of debugging are write in the corresponding register section of terminal module to be debugged by writing unit 304 successively, specifically for:
The register address that the register section debugged as required is corresponding, writes numerical value corresponding for this register address in the corresponding register section of terminal module to be debugged.
Optionally, first receive unit 301 specifically for:
Receive the PC terminal module information to be debugged sent by the communication interface between mobile terminal and PC;Or, receive the PC terminal module information to be debugged sent by the communication protocol between mobile terminal and PC.
nullThe mobile terminal that the embodiment of the present invention provides,This mobile terminal receives the register section information of depositor in the PC terminal module to be debugged sent,And register section information is stored in the internal memory of mobile terminal,Then,Mobile terminal receives the PC command information sent the mark of register section debugged as required,In register section information from mobile terminal internal memory,Obtain needing the data of the register section of debugging,Then,The data needing the register section of debugging are write in the corresponding register section of terminal module to be debugged by mobile terminal successively,Obtain the debugging effect of terminal module to be debugged,Thus determining whether to re-start debugging according to debugging effect,Debugging process carries out online,Generate and burning operation without firmware program being carried out compiling repeatedly,Commissioning staff only need to monitor debugging result and debugging effect,Substantially increase debugging efficiency,Reduce debugging cost.
Embodiment four
Embodiments of the invention provide a kind of mobile terminal 4, and as shown in Figure 4, this mobile terminal includes: receive unit 401, acquiring unit 402 and transmitting element 403, wherein:
Receive unit 401, be used for receiving PC host side and send command information, the register section information that wherein above-mentioned command information treats depositor in diagnosis terminal module for indicating mobile terminal 4 to read.
Acquiring unit 402, obtains, for the command information received according to reception unit 401, the register section information treating depositor in diagnosis terminal module.
Transmitting element 403, for the above-mentioned register section information treating depositor in diagnosis terminal module is sent to PC, the register section information treating depositor in diagnosis terminal module is compared by PC with the original registers segment information treating depositor in diagnosis terminal module, so that it is determined that go out abnormal register section occurs.
Optionally, above-mentioned register section information includes the mark of register section and the data of register section;Above-mentioned command information includes the mark of the register section of needs diagnosis.
Above-mentioned acquiring unit 402 specifically for:
The mark of the register section diagnosed as required obtains the data of the register section needing diagnosis.
Optionally, receive unit 401 specifically for:
Receive the PC command information sent by the communication interface between mobile terminal 4 and PC;Or, receive the PC command information sent by the communication protocol between mobile terminal 4 and PC.
The mobile terminal that the embodiment of the present invention provides, this mobile terminal receives the PC command information sent and obtains the register section information treating depositor in diagnosis terminal module according to command information, the register section information treating depositor in diagnosis terminal module is sent to PC by mobile terminal, the register section information treating depositor in diagnosis terminal module is compared by PC with the original registers segment information treating depositor in diagnosis terminal module, so that it is determined that go out abnormal register section occurs, compared to prior art, the buffer status of mobile terminal module can be checked at any time, the even now sex chromosome mosaicism of instant solution, reproduction fault is gone without again adding code, thus improve the solution speed of fault, reduce cost.
Those skilled in the art is it can be understood that arrive, for convenience and simplicity of description, only it is illustrated with the division of above-mentioned each functional unit, in practical application, as desired above-mentioned functions distribution can be completed by different functional units, it is divided into different functional units, to complete all or part of function described above by the internal structure of device.The device of foregoing description and the specific works process of unit, it is possible to reference to the corresponding process in preceding method embodiment, do not repeat them here.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, it is possible to realize by another way.Such as, device embodiment described above is merely schematic, such as, the division of described unit, being only a kind of logic function to divide, actual can have other dividing mode when realizing, for instance multiple unit or assembly can in conjunction with or be desirably integrated into another system, or some features can ignore, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be through INDIRECT COUPLING or the communication connection of some interfaces, device or unit.
It addition, each functional unit in each embodiment of the application can be integrated in a processing unit, it is also possible to be that unit is individually physically present, it is also possible to two or more unit are integrated in a unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, it would however also be possible to employ the form of SFU software functional unit realizes.
The above, above example only in order to the technical scheme of the application to be described, is not intended to limit;Although with reference to previous embodiment to present application has been detailed description, it will be understood by those within the art that: the technical scheme described in foregoing embodiments still can be modified by it, or wherein portion of techniques feature is carried out equivalent replacement;And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of each embodiment technical scheme of the application.

Claims (12)

1. a mobile terminal on-line debugging method, it is characterised in that described method includes:
Mobile terminal receives the register section information of depositor in the terminal module to be debugged that PC host side sends, and described register section information is stored in the internal memory of described mobile terminal, wherein, described register section information includes the mark of register section and the data of corresponding register section;
Receive the described PC command information sent;Described command information includes the mark of the register section of needs debugging;
Mark according to the described register section needing debugging, in the described register section information from described mobile terminal internal memory, obtains needing the data of the register section of debugging;
Successively the data of the described register section needing debugging being write in the described corresponding register section of terminal module to be debugged, obtaining the debugging effect of described terminal module to be debugged, thus determining whether to re-start debugging according to described debugging effect.
2. method according to claim 1, it is characterised in that the data of described register section include register address and corresponding numerical value;
The described data of the described register section needing debugging write in the described corresponding register section of terminal module to be debugged successively specifically includes:
According to the register address that the described register section needing to debug is corresponding, numerical value corresponding for described register address is write in the corresponding register section of terminal module to be debugged.
3. method according to claim 1, it is characterised in that mobile terminal receives the PC terminal module information to be debugged sent and specifically includes:
Receive the described PC terminal module information described to be debugged sent by the communication interface between described mobile terminal and described PC;Or, receive the described PC terminal module information described to be debugged sent by the communication protocol between described mobile terminal and PC.
4. a mobile terminal inline diagnosis method, it is characterised in that described method includes:
Mobile terminal receives PC host side and sends command information, the register section information that wherein said command information treats depositor in diagnosis terminal module for indicating described mobile terminal to read;
The register section information of depositor in diagnosis terminal module is treated according to the acquisition of described command information;
The described register section information treating depositor in diagnosis terminal module is sent to described PC, by described, described PC treats that the register section information of depositor in diagnosis terminal module and the described original registers segment information treating depositor in diagnosis terminal module are compared, so that it is determined that go out abnormal register section occurs.
5. method according to claim 4, it is characterised in that described register section information includes the mark of register section and the data of described register section;Described command information includes the mark of the register section of needs diagnosis;
Described according to described command information obtain described in treat that the register section information of depositor in diagnosis terminal module includes: obtain, according to the mark of the register section of described needs diagnosis, the data of register section that described needs diagnose.
6. method according to claim 4, it is characterised in that described mobile terminal receives PC host side transmission command information and specifically includes:
Receive the described PC described command information sent by the communication interface between described mobile terminal and described PC;Or, receive the described PC described command information sent by the communication protocol between described mobile terminal and described PC.
7. a mobile terminal, it is characterised in that described mobile terminal includes:
First receives unit, for receiving the register section information of depositor in the terminal module to be debugged that PC host side sends, and described register section information is stored in internal memory, wherein, described register section information includes the mark of register section and the data of corresponding register section;
Second receives unit, for receiving the described PC command information sent;Described command information includes the mark of the register section of needs debugging;
Resolution unit, for the mark according to the described register section needing debugging, in the described register section information from described mobile terminal internal memory, obtains needing the data of the register section of debugging;
Writing unit, for the data of the described register section needing debugging being write in the described corresponding register section of terminal module to be debugged successively, obtains the debugging effect of described terminal module to be debugged, thus determining whether to re-start debugging according to described debugging effect.
8. mobile terminal according to claim 7, it is characterised in that the data of described register section include register address and corresponding numerical value;
Described when successively the data of the described register section needing debugging being write in the described corresponding register section of terminal module to be debugged, said write unit specifically for:
According to the register address that the described register section needing to debug is corresponding, numerical value corresponding for described register address is write in the corresponding register section of terminal module to be debugged.
9. mobile terminal according to claim 7, it is characterised in that first receive unit specifically for:
Receive the described PC terminal module information described to be debugged sent by the communication interface between described mobile terminal and described PC;Or, receive the described PC terminal module information described to be debugged sent by the communication protocol between described mobile terminal and PC.
10. a mobile terminal, it is characterised in that described mobile terminal includes:
Receive unit, be used for receiving PC host side and send command information, the register section information that wherein said command information treats depositor in diagnosis terminal module for indicating described mobile terminal to read;
Acquiring unit, for treating the register section information of depositor in diagnosis terminal module according to the acquisition of described command information;
Transmitting element, for the described register section information treating depositor in diagnosis terminal module is sent to described PC, by described, described PC treats that the register section information of depositor in diagnosis terminal module and the described original registers segment information treating depositor in diagnosis terminal module are compared, so that it is determined that go out abnormal register section occurs.
11. mobile terminal according to claim 10, it is characterised in that described register section information includes the mark of register section and the data of described register section;Described command information includes the mark of the register section of needs diagnosis;
Described acquiring unit specifically for:
Mark according to the described register section needing diagnosis obtains the data of the described register section needing diagnosis.
12. mobile terminal according to claim 10, it is characterised in that described reception unit specifically for:
Receive the described PC described command information sent by the communication interface between described mobile terminal and described PC;Or, receive the described PC described command information sent by the communication protocol between described mobile terminal and described PC.
CN201410795474.XA 2014-12-18 2014-12-18 A kind of mobile terminal on-line debugging and the method and terminal of diagnosis Active CN105786685B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410795474.XA CN105786685B (en) 2014-12-18 2014-12-18 A kind of mobile terminal on-line debugging and the method and terminal of diagnosis

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410795474.XA CN105786685B (en) 2014-12-18 2014-12-18 A kind of mobile terminal on-line debugging and the method and terminal of diagnosis

Publications (2)

Publication Number Publication Date
CN105786685A true CN105786685A (en) 2016-07-20
CN105786685B CN105786685B (en) 2018-05-25

Family

ID=56384909

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410795474.XA Active CN105786685B (en) 2014-12-18 2014-12-18 A kind of mobile terminal on-line debugging and the method and terminal of diagnosis

Country Status (1)

Country Link
CN (1) CN105786685B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106227672A (en) * 2016-08-10 2016-12-14 中车株洲电力机车研究所有限公司 A kind of built-in application program fault catches and processing method
CN108170607A (en) * 2018-01-03 2018-06-15 上海传英信息技术有限公司 The control device and control method of OTP switches

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5544311A (en) * 1995-09-11 1996-08-06 Rockwell International Corporation On-chip debug port
CN102063366A (en) * 2009-11-18 2011-05-18 中兴通讯股份有限公司 Method and system for debugging process
CN103034581A (en) * 2011-09-30 2013-04-10 重庆重邮信科通信技术有限公司 Embedded system trace debugging method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5544311A (en) * 1995-09-11 1996-08-06 Rockwell International Corporation On-chip debug port
CN102063366A (en) * 2009-11-18 2011-05-18 中兴通讯股份有限公司 Method and system for debugging process
CN103034581A (en) * 2011-09-30 2013-04-10 重庆重邮信科通信技术有限公司 Embedded system trace debugging method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
常志恒等: "基于JTAG的片上调试器与调试系统的设计实现", 《计算机工程与应用》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106227672A (en) * 2016-08-10 2016-12-14 中车株洲电力机车研究所有限公司 A kind of built-in application program fault catches and processing method
CN106227672B (en) * 2016-08-10 2019-07-09 中车株洲电力机车研究所有限公司 A kind of built-in application program failure captures and processing method
CN108170607A (en) * 2018-01-03 2018-06-15 上海传英信息技术有限公司 The control device and control method of OTP switches
CN108170607B (en) * 2018-01-03 2021-05-18 上海传英信息技术有限公司 Control device and control method of OTP switch

Also Published As

Publication number Publication date
CN105786685B (en) 2018-05-25

Similar Documents

Publication Publication Date Title
CN101673202B (en) Program writing method and system, pre-writing device and writing device
JP2010537156A (en) Integrated circuit with self-test mechanism to verify functionality of external interface
CN105320553A (en) Method and system for updating network card firmware based on domestic processor platform
US20220137947A1 (en) Interface device having updatable firmware, mobile device, and firmware update method
CN107295250B (en) Camera adjustment method and its system
KR20160021419A (en) Mobile terminal test system and mobile terminal test method using the system
CN107273249B (en) Mainboard test method, processor and mainboard test system
CN104731678A (en) RAID storage mode test system and method and electronic device
CN109450708A (en) A kind of Nginx Dynamic Configuration and system
CN107679058A (en) Method of data synchronization, device and computer-readable recording medium
CN107817987B (en) Hardware configuration method, system, terminal and server
CN104881357A (en) System And Method For Scan-testing Of Idle Functional Units In Operating Systems
CN104064134A (en) Effect debugging method for display screen
CN105096872A (en) Liquid crystal display starting method
CN105786685A (en) Mobile terminal online debugging and diagnosis method and terminal
CN111459516A (en) Firmware upgrading method and charging base
CN102455965A (en) Electronic device test system and method
CN102880479B (en) A kind of method of remotely modifying BIOS property parameters and device
CN103713922B (en) A kind of method and system of dynamic replacement driver codes of modules of Android device
CN103916498B (en) Serial port camera and parallel port camera compatible method
CN114253781B (en) Test method, device, equipment and storage medium
CN109933471A (en) Method, apparatus, computer readable storage medium are surveyed in Android device and its production
CN1936863A (en) Regulation device of communication terminal
CN104079920A (en) Method and device for verifying image acquisition and processing
CN104808958B (en) A kind of LVDS screen control methods based on Shen prestige notebook

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Country or region after: Zhong Guo

Address before: 266100 No. 151, Zhuzhou Road, Laoshan District, Shandong, Qingdao

Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.

Country or region before: Zhong Guo