A method of into suspend mode or factory mode
Technical field
It is the present invention relates to each electronic product equipment field, in particular to a kind of into suspend mode or the method for factory mode.
Background technique
Most of smart machine, has backup battery, and equipment requires to enter factory mode or suspend mode mould after factory
Formula prevents the electricity in transport and storing process from consuming excessively, abnormal the problems such as starting.Usual equipment enters suspend mode or goes out
Factory's mode is carried out by key or communication, each defective, the insufficient problem of these types of method.
1, it is realized by key, corresponding key is needed by operation equipment, in addition simply setting to not operation interface
It is relatively difficult and easy to operate by mistake for standby;
2, enter the equipment of factory by communication instruction, it is also desirable to special communication interface, or installation wireless telecommunications mould
Group increases the cost and complexity of system.
Summary of the invention
Technical problem to be solved by the invention is to provide a kind of into suspend mode or the method for factory mode, does not need individually
Spare interface, switch or key etc., the mode into suspend mode is simple and easily controllable, not will increase equipment cost, effectively solves
Deficiency in the prior art.
The present invention is achieved through the following technical solutions: a method of into suspend mode or factory mode, including by
Electric equipment and for the charging equipment or external power supply for power receiving equipment power supply, is provided with waveform in the charging equipment
The power supply of generation circuit, power control circuit and power module, the waveform control charging equipment that Waveform generating circuit generates is logical
It is disconnected to export, the waveform recognition circuit for the waveform that Waveform generating circuit generates for identification is provided in the power receiving equipment, also
Including power circuit and function realizing circuit.
The power supply wave shape that the waveform recognition circuit detection charging equipment provides as a preferred technical solution, passes through wave
Frequency, duty ratio and the quantative attribute information of pulse race of shape determine whether to enter suspend mode or enter factory mode.
It is realized as a preferred technical solution, by the uninterrupted power supply of duration and is converted into waking up mould from factory mode
Formula.
The Waveform generating circuit includes a single-chip microcontroller or oscillating circuit as a preferred technical solution, and circuit generates
Waveform control charging equipment on/off output.
The specific method is as follows:
One, power supply unit is with certain waveform out-put supply to power receiving equipment end, for providing reading waveform for power receiving equipment;
Two, the waveform transmitted is identified by waveform recognition circuit inside power receiving equipment, and the waveform is identified;
If three, the waveform identified is factory waveform, enters suspend mode or enter factory mode;
If four, the waveform identified is not factory waveform, enters awakening mode, be then persistently powered, and will stop
It sleeps or factory mode is revised as normal mode of operation.
The beneficial effects of the present invention are: 1, factory or suspend mode realized by the on-off of external power supply or charger;
2, power receiving equipment is identified by detection to charging equipment power on/off and waveform to determine whether into sleep pattern;
3, independent spare interface, switch or key etc. are not needed;
4, simple and easily controllable into the mode of suspend mode, it not will increase equipment cost;
5, releasing or wake-up from factory mode are realized by continuing for some time continual power supply, realized normal
Functions of the equipments.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is system block diagram of the invention;
Fig. 2 is the waveform diagram that single-chip microcontroller of the invention issues;
Fig. 3 is work flow diagram of the invention.
Specific embodiment
All features disclosed in this specification or disclosed all methods or in the process the step of, in addition to mutually exclusive
Feature and/or step other than, can combine in any way.
Any feature disclosed in this specification (including any accessory claim, abstract and attached drawing), except non-specifically chatting
It states, can be replaced by other alternative features that are equivalent or have similar purpose.That is, unless specifically stated, each feature is only
It is an example in a series of equivalent or similar characteristics.
As shown in Figure 1, include power receiving equipment and for the charging equipment or external power supply for power receiving equipment power supply,
Waveform generating circuit, power control circuit and power module are provided in the charging equipment, what Waveform generating circuit generated
Waveform controls the on/off output of charging equipment, is provided with what Waveform generating circuit for identification generated in the power receiving equipment
The waveform recognition circuit of waveform further includes power circuit and function realizing circuit.
Wherein, the power supply wave shape that waveform recognition circuit detection charging equipment provides, passes through the frequency, duty ratio and arteries and veins of waveform
The quantative attribute information for rushing race determines whether to enter suspend mode or enters factory mode.Into factory or the waveform of suspend mode
As shown in Fig. 2, this waveform stores after program setting, therefore this waveform is once received, that is, be intended to
Into suspend mode or enter factory mode, therefore when charging equipment detects corresponding waveform, different movement moulds will be made
Formula.
When power receiving equipment enters suspend mode or factory mode, want to carry out at this time to wake up when entering normal mode of operation,
As long as can be realized from factory mode by the uninterrupted power supply of duration at this time and be converted into awakening mode.
In the present embodiment, Waveform generating circuit includes a single-chip microcontroller, the power supply for the waveform control charging equipment that circuit generates
On-off output.
The specific method is as follows:
One, power supply unit is with certain waveform out-put supply to power receiving equipment end, for providing reading waveform for power receiving equipment;
Two, the waveform transmitted is identified by waveform recognition circuit inside power receiving equipment, and the waveform is identified;
If three, the waveform identified is factory waveform, enters suspend mode or enter factory mode;
If four, the waveform identified is not factory waveform, enters awakening mode, be then persistently powered, and will stop
It sleeps or factory mode is revised as normal mode of operation.
The beneficial effects of the present invention are: 1, factory or suspend mode realized by the on-off of external power supply or charger;
2, power receiving equipment is identified by detection to charging equipment power on/off and waveform to determine whether into sleep pattern;
3, independent spare interface, switch or key etc. are not needed;
4, simple and easily controllable into the mode of suspend mode, it not will increase equipment cost;
5, releasing or wake-up from factory mode are realized by continuing for some time continual power supply, realized normal
Functions of the equipments.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
The change or replacement expected without creative work, should be covered by the protection scope of the present invention.Therefore, of the invention
Protection scope should be determined by the scope of protection defined in the claims.