Summary of the invention
It is an object of the invention to solve at least the above or defect, and offer at least will be described later
Advantage.
It is a still further object of the present invention to provide a kind of side for preventing the maloperation of the intelligent electronic device external world
Method, after intelligent electronic device is started shooting, sets the protected mode preventing the maloperation of the intelligent electronic device external world
With need not to prevent the non-protected module of extraneous maloperation, when intelligent electronic device is in pet or child
Etc. when intelligent electronic device may be carried out in the environment of maloperation, utilize another intelligent electronic device to
This intelligent electronic device sends the short message of " true " content, when intelligent electronic device receives " true " content
During short message, start described protected mode, close the interrupt response between CPU and function key.Work as pet
Or child touches the function key of intelligent electronic device, during such as touch-screen, volume key or power key, above-mentioned
These function keys are cut off with the interrupt response of intelligent electronic device CPU key, and touching function key can not start
The function of function key, thus reach to prevent the extraneous maloperation purpose on the impact of intelligent electronic device.
It is a further object to provide a kind of dress for preventing the maloperation of the intelligent electronic device external world
Put, utilize setting module to set and prevent the protected mode of extraneous maloperation and need not prevent extraneous maloperation
Non-protected module, utilize detection module to detect whether the short message of starting protection module, when detect need
After wanting the short message of starting protection pattern, control module controls to close between described CPU and described function key
Interrupt response, this apparatus structure is simple, and easy to operate, running speed is fast.
In order to realize according to object of the present invention and further advantage, it is provided that one is used for preventing Intelligent electric
The method of subset external world maloperation, including
Step one, the operation that intelligent electronic device execution is started shooting;
Step 2, the non-protect mode of default described intelligent electronic device, and by under described non-protect mode
Register flag is " false ";Preset the protected mode of described intelligent electronic device, and by described protection mould
Under formula, described register flag is " true ";
Step 3, when described intelligent electronic device receives short message, detect short message content, when short
When information has " true " content, start described protected mode, close the interruption between CPU and function key
Response.
After intelligent electronic device start, outside setting the protected mode preventing extraneous maloperation and need not prevent
The non-protect mode of boundary's maloperation, and in a register protected mode and non-protect mode are respectively labeled as
" true " and " false ", when intelligent electronic device receives the short message of " true " content, starting protection module,
Close the interrupt response between CPU and function key, i.e. when pet or child's touch intelligent electronic equipment
Function key, when touching display screen or the volume key of intelligent electronic device such as child, will not be to smart electronics
The display screen of equipment or volume produce any impact.This method utilizes the short message of " true " content, starts intelligence
The protected mode of energy electronic equipment, reaches the purpose preventing extraneous maloperation from affecting intelligent electronic device.
Wherein in an embodiment, the described method being used for preventing the maloperation of the intelligent electronic device external world
In, also include step 4, when described intelligent electronic device receives short message, detect described short message
Content, when there being " false " content in described short message, starts described non-protect mode, recovers described CPU
And the interrupt response between described function key.
When intelligent electronic device is in protected mode, the short message of detection intelligent electronic device, when there being " false "
During the short message of content, then the protected mode of intelligent electronic device is switched to non-protect mode, recover CPU
And the interruption between function key rings, and i.e. recovers the normal function of function key.
Wherein in an embodiment, the described method being used for preventing the maloperation of the intelligent electronic device external world
In, the non-protect mode presetting described intelligent electronic device in described step 2 is, presets described Intelligent electric
Being non-protect mode when the external-connected port of subset inserts external device, the most described register flag is
“false”。
Additionally, the non-protect mode of intelligent electronic device can be set as inserting outer tipping at its external-connected port
Put, the external device of intelligent electronic device such as earphone, USB data line, charger etc..
Wherein in an embodiment, the described method being used for preventing the maloperation of the intelligent electronic device external world
In, also include step 4, when described intelligent electronic device external-connected port insert external device time, start
Described non-protect mode, recovers the interrupt response between described CPU and described function key.
After intelligent electronic device has been set to protected mode, when intelligent electronic device is in not at needs
When preventing in the environment of extraneous maloperation, user can be external by earphone, USB data line, charger etc.
Device is connected on intelligent electronic device, and the above-mentioned external device of intelligent electronic device identification, identifies this intelligence
Can be in the environment that need not prevent extraneous maloperation by electronic equipment, then intelligent electronic device is protected
Pattern switches to non-protect mode, recovers the interrupt response between each function key and CPU, each function
Key recovers its function.
Wherein in an embodiment, the described method being used for preventing the maloperation of the intelligent electronic device external world
In, described function key includes touch-screen, volume key and power key.
Intelligent electronic device such as smart mobile phone, panel computer etc., generally individually can be on the surface of its housing
Touch-screen and some function keys are set, as increased/reduce the volume key of volume, control the power key etc. of power supply,
Touch-screen, volume key and power key etc. are the extraneous main paties to intelligent electronic device input order, because of
This, when there is the possibility of extraneous maloperation, robbing intelligent electronic device object for appreciation such as child or pet may
During touching electronic equipment, close CPU and touch-screen, volume key and power key interrupt response, reach to avoid
The extraneous maloperation purpose on the impact of intelligent electronic device.
A further object of the invention, it is provided that a kind of for preventing the dress of intelligent electronic device external world maloperation
Put, including:
Setting module, after intelligent electronic device start, described setting module sets described intelligent electronic device
Non-protect mode and protected mode, described setting module is by the register flag under described non-protect mode
For " false ", and it is " true " by register flag described under described protected mode;
Detection module, it is for detecting the short message of described intelligent electronic device, when described detection module is examined
Measure time described short message has " true " content, " true " content information is uploaded to control module;
Described control module, after it receives described " true " content information, closes described CPU with described
Interrupt response between function key.
After intelligent electronic device start, set protected mode and non-protect mode first with setting module,
When there is pet or child touches the situation of intelligent electronic device, user can utilize another Intelligent electric
Subset is by the short message of this intelligent electronic device one " true " content of invention, the inspection of this intelligent electronic device
Survey after module detects " true " content information and " true " content information is uploaded to control module, control module
May turn off the interrupt response between the described CPU of this intelligent electronic device and described function key.
Wherein in an embodiment, the described device for preventing the maloperation of the intelligent electronic device external world
In, when there being " false " content information during described detection module detects described short message, described detection mould
Described " false " content information is uploaded to control module by block;
Described control module, after it receives described " false " content information, recovers described CPU with described
Interrupt response between function key.
When there is not pet or child touches the situation of intelligent electronic device, user can utilize another
This intelligent electronic device is invented " false " content information, this intelligent electronic device by intelligent electronic device
Detection module when " false " content information being detected, " false " content information is uploaded to control by detection module
Module, during control module will be recovered between the described CPU of this intelligent electronic device and described function key
Disconnected response.
Wherein in an embodiment, the described device for preventing the maloperation of the intelligent electronic device external world
In, described non-protect mode is set as by described setting module: described intelligent electronic device is in described guarantor
When protecting pattern, when the external-connected port of described intelligent electronic device inserts external device, then start described non-guarantor
Protect module;
Described detection module, whether it is additionally operable to detect described external-connected port and connects and have external equipment, work as institute
State detection module and detect that when the connection of described external-connected port has external equipment, described detection module is to described control
Molding block sends and starts non-protect mode information;
Described control module, it receives this startup non-protect mode information, and recovers described CPU with described
Interrupt response between function key.
After intelligent electronic device is set to protected mode, when there is not pet or child touches smart electronics and sets
During standby situation, earphone, USB data line or charger can be connected to intelligent electronic device by user
On external-connected port, detection module detects the earphone of external-connected port connection of intelligent electronic device, USB
When data wire or charger, it sends to control module and starts non-protect mode information, then control module
Receive and start non-protect mode information and recover the interrupt response between described CPU and described function key, extensive
The use function of multiple function key.
Wherein in an embodiment, the described device for preventing the maloperation of the intelligent electronic device external world
In, described function key includes touch-screen, volume key and power key.Intelligent electronic device, such as intelligence hand
Machine, panel computer etc. all can close Intelligent electric at its outer surface equipment touch-screen, volume key and power key
The function of touch-screen, volume key and power key in subset, can avoid extraneous maloperation to smart electronics
The impact of equipment.
Beneficial effects of the present invention is as follows:
1, in the described method for preventing the maloperation of the intelligent electronic device external world, default smart electronics sets
Standby protected mode and non-protect mode, and by " true " information or " false " in detection intelligent electronic device
Information, starts protected mode or the non-protect mode of intelligent electronic device, and this method is by specific note
Breath, i.e. with starting protection pattern, can close the function key of intelligent electronic device so that intelligent electronic device
Do not affected by extraneous maloperation.
2, in the described method for preventing the maloperation of the intelligent electronic device external world, intelligent electronic device is worked as
When being in protected mode, user can connect earphone, usb data at the extraneous port of intelligent electronic device
The external device such as line or charger, after the above-mentioned external device of intelligent electronic device identification, sets smart electronics
For switching to non-protect mode, this method connects one by the intelligent electronic device that will be under protected mode
External device, just can be converted into non-protect mode by intelligent electronic device, recovers the function of function key.
3, in the described device for preventing the maloperation of the intelligent electronic device external world, utilize setting module,
Detection module and control module carry out protected mode and the setting of non-protect mode, detection and protected mode with
The switching of non-protect mode, this apparatus structure is simple, running speed fast, workable.
Detailed description of the invention
The present invention is described in further detail below in conjunction with the accompanying drawings, to make those skilled in the art's reference
Specification word can be implemented according to this.
The invention discloses a kind of method for preventing the maloperation of the intelligent electronic device external world, such as Fig. 1 and
Shown in Fig. 2, the method at least includes:
Step one, the operation that intelligent electronic device execution is started shooting;
Step 2, the non-protect mode of default described intelligent electronic device, and by under described non-protect mode
Register flag is " false ";Preset the protected mode of described intelligent electronic device, and by described protection mould
Under formula, described register flag is " true ";
Step 3, when described intelligent electronic device receives short message, detect short message content, when short
When information has " true " content, start described protected mode, close the interruption between CPU and function key
Response.
Step 4, when described intelligent electronic device receives short message, detect described short message content,
When described short message has " false " content, start described non-protect mode, recover described CPU and institute
State the interrupt response between function key.
In such scheme, described function key includes touch-screen, volume key and power key.
Being used for described in one of them embodiment of the present invention as shown in Figure 3 and Figure 4 prevents smart electronics from setting
The method of standby extraneous maloperation, the method at least includes:
Step one, the operation that intelligent electronic device execution is started shooting;
Step 2, preset described intelligent electronic device external-connected port insert external device time be non-protected mould
Formula, and be " false " by register flag under described non-protect mode;Preset described intelligent electronic device
Protected mode, and be " true " by register flag described under described protected mode;
Step 3, when described intelligent electronic device receives short message, detect short message content, when short
When information has " true " content, start described protected mode, close the interruption between CPU and function key
Response.
Step 4, when described intelligent electronic device external-connected port insert external device time, start described non-
Protected mode, recovers the interrupt response between described CPU and described function key.
In such scheme, described function key includes touch-screen, volume key and power key.
The invention also discloses a kind of device for preventing the maloperation of the intelligent electronic device external world, such as Fig. 5
Shown in, comprising:
Setting module, after intelligent electronic device start, described setting module sets described intelligent electronic device
Non-protect mode and protected mode, described setting module is by the register flag under described non-protect mode
For " false ", and it is " true " by register flag described under described protected mode;
Detection module, it is for detecting the short message of described intelligent electronic device, when described detection module is examined
Measure time described short message has " true " content information, " true " content information is uploaded to control module;
Described control module, after it receives described " true " content information, closes described CPU with described
Interrupt response between function key.
Wherein, when there being " false " girl's information during described detection module detects described short message, described
Described " false " content information is uploaded to control module by detection module;And, described control module, it connects
After receiving described " false " content information, recover the interrupt response between described CPU and described function key.
Being used for described in one of them embodiment of the present invention as shown in Figure 6 prevents intelligent electronic device extraneous
The device of maloperation, the method at least includes:
Setting module, after intelligent electronic device start, described setting module sets described intelligent electronic device
Non-protect mode and protected mode, described setting module is by the register flag under described non-protect mode
For " false ", and it is " true " by register flag described under described protected mode;
Detection module, it is for detecting the short message of described intelligent electronic device, when described detection module is examined
Measure time described short message has " true " content information, " true " content information is uploaded to control module;
Described control module, after it receives described " true " content information, closes described CPU with described
Interrupt response between function key;
Wherein, the described non-protect mode that described setting module sets as: described intelligent electronic device is in
During described protected mode, when the external-connected port of described intelligent electronic device inserts external device, then start institute
State non-protected module;
Further, whether described detection module is additionally operable to detect described external-connected port and connects and have external equipment, when
Described detection module detects that when the connection of described external-connected port has external equipment, described detection module is to described
Control module sends and starts non-protect mode information;
Described control module, it recovers the interrupt response between described CPU and described function key.
In such scheme, described function key includes touch-screen, volume key and power key.
Although embodiments of the invention are disclosed as above, but it is not restricted to specification and embodiment
Using listed by, it can be applied to various applicable the field of the invention completely, for being familiar with this area
Personnel for, be easily achieved other amendment, therefore without departing substantially from claim and equivalency range
Under the universal limited, the present invention is not limited to specific details.