Embodiment
The embodiment of the present invention provides a kind of method that shows the software loading status of mobile phone, the stress state of cell phone software is obtained in employing, according to this stress state, generate corresponding level controling signal, level controling signal is transferred to display module by USB line, control display module and in predefine mode, show the technical scheme of stress state, the stress state of cell phone software can be shown by display module, solved and cannot show the problem of the software loading status of mobile phone in prior art.The embodiment of the present invention also provides the device of corresponding demonstration the software loading status of mobile phone.Below be elaborated respectively.
The embodiment of the present invention provides a kind of method that shows the software loading status of mobile phone.
The method of the loading mobile phone software that the present embodiment adopts, is first nonvolatile memory to be mounted on the veneer of mobile phone, then by Bootload mode, cell phone software mirror image is loaded in nonvolatile memory
Wherein, Bootload mode can be to utilize SD card (Secure Digital Memory Card, safe digital card), comprises the following steps:
First, the SD card that prestores cell phone software is inserted in the associated socket of mobile phone;
Then, mobile phone is connected with charger by USB line, to obtain power supply;
After powering on, mobile phone starts to carry out load step, the cell phone software prestoring is loaded in the nonvolatile memory of cell phone mainboard in SD card.
In above-mentioned steps, although mobile phone can obtain the stress state of software, due in bare machine state, there is no Presentation Function, can not show that this stress state supplies operating personnel to know.
Please refer to Fig. 1, the method for the demonstration the software loading status of mobile phone that the present embodiment provides comprises:
101, obtain the stress state of cell phone software, according to stress state, generate corresponding level controling signal.
The stress state of cell phone software can simply be divided into three kinds, comprising: load, loading completes, or loads unsuccessfully.Certainly, in actual scene, also can be divided into more kinds of states.In this step, mobile phone, according to the difference of the software loading status of mobile phone obtaining, generates different level controling signals, to control display module in subsequent step, shows in a different manner.For example, for loading, can generate a lasting high level signal; For loading unsuccessfully, can generate a lasting low level signal; For loading, complete, can generate the signal of one-period, for example a square-wave signal.
102, level controling signal is transferred to display module by data wire, control display module and show stress state in predefine mode.
Display module and data wire for example USB (Universal Serial BUS, USB) connect, and can obtain the level controling signal that mobile phone transmits by USB line, and in predefine mode, show stress state under the control of control signal.Predefined mode can comprise: respectively with Chang Liang, periodically light or the mode of often going out shows and loads, loads failure or loading completes three kinds of stress states.
General, USB line by power line 1, positive voltage data (Data+, D+) line 2, negative voltage data (Data-, D-) line 3, ground wire 4 totally four lines form; Wherein D+ line and D-line are difference input lines, for transmitting data, use the voltage of 3.3V; And power and ground can provide 5V voltage to equipment.
In display module as shown in Figure 2, USB line one end connects mobile phone, and one end connecting charger, for powering to mobile phone; Owing to only having used the power and ground of USB line, and these two holding wires of D+ line and D-line leave unused, so the level controling signal that can utilize D+ line or D-line that mobile phone is sent is transferred to display module.
This display module can comprise light-emitting diode (Light Emitting Diode, LED) D1, can be by by described lasting high level signal, periodically level signal or lasting low level signal transfer to display module by data wire, the light-emitting diode of controlling display module is respectively with Chang Liang, periodically light or the mode of often going out shows and loads, loads failure or loading completes three kinds of stress states.
Further, in display module, can also comprise triode Q1, the positive pole of light-emitting diode is connected with the power line of USB line, the negative pole of light-emitting diode is connected with the collector electrode of triode, the emitter of triode is connected with the ground wire of USB line, and a holding wire of the base stage of triode and USB line is connected as D+ line or D-line.In this step, described level controling signal is transferred to display module by data wire be specially: the base stage that positive voltage data wire or the negative voltage data line by level controling signal by USB line transfers to the triode of display module.
Wherein, for triode and the light-emitting diode of display module are operated under more suitable voltage conditions, can be in the emitter branch of triode and base stage branch road respectively series resistance carry out dividing potential drop.For example, the resistance R 1 that is positioned at transistor base branch road can be selected 2K Ohmic resistance, and the resistance R 2 that is positioned at transistor emitter branch road can be selected 200 Ohmic resistances.
It should be noted that, the positive pole of light-emitting diode is not limited to connect the power line of USB line, also can connect other any suitable power supply, comes to power to light-emitting diode.
According to the operating characteristic of triode, can by control, be applied to the size of the level controling signal of transistor base, control the size of the signal of telecommunication in its collector electrode branch road, be applied to the size of the signal of telecommunication on light-emitting diode; When the size of level controling signal surpasses the first value, the size that is applied to the signal of telecommunication on light-emitting diode reaches the operating voltage of light-emitting diode, and light-emitting diode is lit; When the size of level controling signal is during lower than the first value, be applied to the size of the signal of telecommunication on light-emitting diode lower than the operating voltage of light-emitting diode, light-emitting diode extinguishes.
So display module can be at above-mentioned lasting high level signal, level signal periodically, or under the control of lasting low level signal, respectively with Chang Liang, periodically light, or the mode of often going out shows and load, and loads unsuccessfully, or the stress state such as loaded.Wherein, the signal magnitude of lasting high level signal need to be higher than the first value; The signal magnitude that continues low level signal need to lower than the first value, for example, can be 0; Periodically the size of level signal is to change in the cycle, in the different moment, higher or lower than the first value; Can be for example a square-wave signal, front half periodic signal size in each cycle be higher than the first value, and rear half period is lower than the first value or be 0.
In other embodiments, display module can comprise more than two.When display module is two, mobile phone can generate two different level controling signals, and D+ line and the D-line by USB line is applied on two display modules respectively, controls the light-emitting diode of two display modules and lights or extinguish.And different display modules can adopt the light-emitting diode that can send different colours light.
It should be noted that, in the embodiment of the present invention, the mode that the mode of Bootload is not limited to adopt SD card to load, also can adopt alternate manner for example mobile phone connect PC and carry out Bootload; Display module is also not limited to adopt USB line with being connected of mobile phone, also can adopt the data wire of other kind to connect; Display module is also not limited to only utilize lighting or extinguishing to show stress state of light-emitting diode, and the mode that also can utilize a plurality of light-emitting diodes of lighting to form numeral or English or Chinese character shows stress state.
The method that the embodiment of the present invention provides, can show by display module the stress state of cell phone software, has solved and cannot show the problem of the software loading status of mobile phone in prior art.
Please refer to Fig. 3, the embodiment of the present invention also provides a kind of device that shows the software loading status of mobile phone, comprising: be arranged on the control module in mobile phone, with the display module being connected with mobile phone by data wire.
This control module 301, for obtaining the stress state of cell phone software, generates corresponding control signal according to stress state, and control signal is transferred to display module 320 by data wire;
This display module 302, for showing stress state according to control signal in predefine mode.
Further, in an embodiment, control module 301 can comprise:
Signal generation unit, for according to stress state for loading, loaded or load failure, generate to continue respectively high level signal, periodically level signal or lasting low level signal, as corresponding level controling signal.
Further, display module 302 can comprise light-emitting diode, this light-emitting diode under the control of level controling signal with Chang Liang, periodically light or the mode of often going out shows and loads, loads failure or loading completes.
Further, data wire is USB line, display module 302 can also comprise triode, as shown in Figure 2, the positive pole of light-emitting diode is connected with the power line of USB line, and the negative pole of light-emitting diode is connected with the collector electrode of triode, and the emitter of triode is connected with the ground wire of USB line, the base stage of triode is connected with positive voltage data wire or the negative voltage data line of USB line, the base stage that positive voltage data wire or the negative voltage data line of level controling signal by USB line transfers to triode.
The device that adopts the embodiment of the present invention to provide, can show by display module the stress state of cell phone software, has solved and cannot show the problem of the software loading status of mobile phone in prior art.
One of ordinary skill in the art will appreciate that the part steps in above-described embodiment is to come the hardware that instruction is relevant to complete by program, this program can be stored in readable storage medium storing program for executing.
The method and apparatus of the demonstration the software loading status of mobile phone above embodiment of the present invention being provided is described in detail, having applied specific case herein sets forth principle of the present invention and execution mode, the explanation of above embodiment is just understood method of the present invention and core concept thereof for helping, and should not be construed as limitation of the present invention.