CN106302402A - A kind of communication type switching method and terminal - Google Patents
A kind of communication type switching method and terminal Download PDFInfo
- Publication number
- CN106302402A CN106302402A CN201610618935.5A CN201610618935A CN106302402A CN 106302402 A CN106302402 A CN 106302402A CN 201610618935 A CN201610618935 A CN 201610618935A CN 106302402 A CN106302402 A CN 106302402A
- Authority
- CN
- China
- Prior art keywords
- sensor parameter
- detected
- parameter
- preset range
- decruption key
- 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.)
- Withdrawn
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/1066—Session management
- H04L65/1083—In-session procedures
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
- H04L63/0435—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply symmetric encryption, i.e. same key used for encryption and decryption
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
- H04L63/0442—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply asymmetric encryption, i.e. different keys for encryption and decryption
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/02—Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
Abstract
The embodiment of the invention discloses a kind of communication type switching method and terminal, method includes: if default sensor parameter being detected in communication process, it is judged that the sensor parameter detected is the most effective;If effectively, utilizing the first encryption key preset to be encrypted communicating data to form the first encryption data;First encryption data and the first default decruption key being sent to the side of answering, according to the first decruption key, the first encryption data being decrypted so that answering root;If receiving the second decruption key preset and the second encryption data that the side of answering sends, according to default second decruption key, the second encryption data is decrypted, to make call switch to speech scrambling mode from common talking mode.If the embodiment of the present invention is by effective sensor parameter being detected, the first decruption key and the first encryption data is all sent to the side of answering, and then realizes the switching communication mode of Portable safety in communication process, improve the safety of telex network.
Description
Technical field
The present invention relates to communication technical field, particularly relate to a kind of communication type switching method and terminal.
Background technology
In the epoch that Internet technology is fast-developing, Information Security is increasingly paid attention to, and electricity occurs the most time and again
After the events such as words are eavesdropped, information-leakage, the safety of communication has been changed to the thing relevant to user's vital interests, existing mode
In be typically user select transfer to speech scrambling, then the phone breathed out is speech scrambling, but if in practical situation, user first makes
With commonly conversing, but call midway thinks that dialog context is important, need for confidentiality, it is desirable to be converted to then need during speech scrambling
Hanging up the telephone, again transfer to, this mode complex operation, Consumer's Experience effect is bad.
Summary of the invention
The embodiment of the present invention provides a kind of communication type switching method, it is possible to Portable safety realize cutting of communication mode
Change.
First aspect, embodiments provides a kind of communication type switching method, and the method includes:
If communication process detects default sensor parameter, it is judged that the sensor parameter detected is the most effective;If sensing
Parameter is effective, utilizes the first encryption key preset to be encrypted communicating data to form the first encryption data;Add first
Ciphertext data and the first default decruption key are sent to the side of answering, so that answering root according to the first decruption key to the first encryption
Data are decrypted, and the first decruption key is the decruption key corresponding with the first encryption key;If receiving the side's of answering transmission
Preset the second decruption key and the second encryption data, according to default second decruption key, the second encryption data is solved
Close, to make call switch to speech scrambling mode, the second encryption data to be to utilize the second encryption preset from common talking mode
The communicating data of the double secret key side of answering is encrypted and forms, and the deciphering that the second decruption key is corresponding with the second encryption key is close
Key.
On the other hand, embodiments providing a kind of terminal, this terminal includes: the first judging unit, ciphering unit,
Transmitting element and decryption unit, wherein, if the first judging unit detects default sensor parameter in communication process, sentence
The disconnected described sensor parameter detected is the most effective;If ciphering unit judges the institute detected for described first judging unit
Stating sensor parameter effectively utilizes the first default encryption key to be encrypted communicating data to form the first encryption data;Send
Unit is for being sent to, by described first encryption data and the first default decruption key, the side of answering, so that answering root according to institute
Stating the first decruption key to be decrypted described first encryption data, described first decruption key is and described first encryption key
Corresponding decruption key;If the second decruption key and second preset that decryption unit sends for receiving the side of answering adds
Ciphertext data, is decrypted described second encryption data according to default described second decruption key, so that call is from common call
Mode switches to speech scrambling mode, described second encryption data to be the calls utilizing the second encryption key preset to the side of answering
Data are encrypted and form, and described second decruption key is the decruption key corresponding with described second encryption key.
If embodiment of the present invention communication process detects default sensor parameter, it is judged that the described sensor parameter detected
The most effective;If described sensor parameter is effective, utilize the first encryption key preset that communicating data is encrypted to be formed the
One encryption data;Described first encryption data and the first default decruption key are sent to the side of answering, so that answering root
Being decrypted described first encryption data according to described first decruption key, described first decruption key is and described first encryption
The decruption key that key is corresponding;If receiving the second decruption key preset and the second encryption data that the side of answering sends,
According to default described second decruption key, described second encryption data is decrypted, so that call switches from common talking mode
For speech scrambling mode, described second encryption data is to utilize the second encryption key preset to carry out the communicating data of the side of answering
Encryption forms, and described second decruption key is the decruption key corresponding with described second encryption key, and then realizes in call
During by the switching of common call to speech scrambling, the safety of raising telex network, meet user's request and operation compared
Convenient.
Accompanying drawing explanation
In order to be illustrated more clearly that embodiment of the present invention technical scheme, required use in embodiment being described below
Accompanying drawing is briefly described, it should be apparent that, the accompanying drawing in describing below is some embodiments of the present invention, general for this area
From the point of view of logical technical staff, on the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the schematic flow diagram of a kind of communication type switching method that the embodiment of the present invention provides;
Fig. 2 is the schematic block diagram of a kind of terminal that the embodiment of the present invention provides;
Fig. 3 is the schematic block diagram of the first judging unit that the embodiment of the present invention provides;
Fig. 4 is the schematic block diagram of the first judging unit that another embodiment of the present invention provides;
Fig. 5 is a kind of terminal schematic block diagram that another embodiment of the present invention provides.
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 carried out clear, complete
Describe, it is clear that described embodiment is a part of embodiment of the present invention rather than whole embodiments wholely.Based on this
Embodiment in bright, the every other enforcement that those of ordinary skill in the art are obtained under not making creative work premise
Example, broadly falls into the scope of protection of the invention.
Should be appreciated that when using in this specification and in the appended claims, term " includes " and " comprising " instruction
Described feature, entirety, step, operation, element and/or the existence of assembly, but it is not precluded from one or more further feature, whole
Body, step, operation, element, assembly and/or the existence of its set or interpolation.It is also understood that institute in this description of the invention
The term used is not intended to limit the present invention merely for the sake of the purpose describing specific embodiment.As in description of the invention
As used in appended claims, unless context clearly indicates other situation, otherwise singulative
" one ", " one " and " being somebody's turn to do " is intended to include plural form.It will be further appreciated that, want in description of the invention and appended right
The term "and/or" used in book is asked to refer to one or more any combination of being associated in the item listed and institute likely
Combination, and include that these combine.As used in this specification and in the appended claims, term " if " can
Being interpreted according to context " when ... " or " once " or " in response to determining " or " in response to detecting ".Similarly, short
Language " if it is determined that " or " if be detected that [described condition or event] " can be interpreted to mean according to context " the most true
Fixed " or " in response to determining " or " [described condition or event] once being detected " or " in response to detecting [described condition or
Event] ".
A kind of communication type switching method that the embodiment of the present invention provides runs on terminal, the end described in the embodiment of the present invention
End is the electronic equipment with communication function, but including being not limited to the electronic equipments such as the smart mobile phone such as Android, IOS, flat board.
A kind of communication handover method purpose that the embodiment of the present invention provides is to realize common call and speech scrambling in communication process
Changing method, to meet user's request.
See Fig. 1, be the schematic flow diagram of the embodiment of the present invention a kind of communication type switching method of offer, as it can be seen,
Method comprises the steps that
S101, if detecting default sensor parameter in communication process, it is judged that the sensor parameter detected is the most effective, if
The sensor parameter detected is effective, performs S102;If the sensor parameter detected is invalid, terminate.
Concrete, the sensor parameter preset is the information for starting communication mode handover operation.If should be appreciated that detection
To the sensor parameter preset, then it represents that may be for user's communication mode to be switched;On the other hand, the default sensor parameter detected
False touch terminal when being likely to be user's communication and generate, therefore real be necessary the effectiveness of the sensor parameter detected is carried out
Check.
It should be noted that the sensor parameter preset can be the parameter of a kind of classification, it is also possible to be to include some kinds
Other parameter, in like manner, the default sensor parameter detected can also be the parameter of a kind, it is also possible to be to include some kinds
Other parameter.
In the present embodiment, the sensor parameter preset includes touching touch parameter or the operation terminal generation that contactor control device generates
Kinematic parameter or their combination in any.The embodiment of the present invention does not carry out concrete restriction to this.
If the sensor parameter preset includes the touch parameter that touching device generates, the method also includes:
Contactor control device shows switching icon;According to user, the operation of switching icon is generated touch parameter, touch ginseng
Number includes that user touches touch pressure, touch time or the touch frequency that switching icon produces.
If the sensor parameter preset includes operating the kinematic parameter that terminal generates, kinematic parameter includes rocking what terminal generated
Slosh frequency, the anglec of rotation etc. of rotation terminal.
S102, utilizes the first encryption key preset to be encrypted communicating data to form the first encryption data.
S103, is sent to, by the first encryption data and the first default decruption key, the side of answering, so that answering root evidence
First encryption data is decrypted by the first decruption key, and the deciphering that the first decruption key is corresponding with the first encryption key is close
Key.
S104, if receiving the second decruption key preset and the second encryption data that the side of answering sends, according to presetting
Second encryption data is decrypted by the second decruption key, to make call switch to speech scrambling mode from common talking mode,
Second encryption data is to utilize the second encryption key preset to be encrypted the communicating data of the side of answering to form, and the second deciphering is close
Key is the decruption key corresponding with the second encryption key.
It should be noted that the first decruption key and the first encryption key can be same keys, it is also possible to be corresponding
Different keys;Second decruption key and the second encryption key can be same keys, it is also possible to be corresponding different keys.
It is to be understood that, the first decruption key can decipher the first encryption number generated by the first encryption keys communicating data
According to, the second decruption key can decipher the second encryption data generated by the second encryption keys communicating data.Also need to
Saying, after utilizing the first encryption key or the second encryption keys communicating data, the safety of communicating data is carried
Height, and then prevent from being ravesdropping or stealing.
Also needing to, in the present embodiment, the preferential sensor parameter realizing judging being detected whether effective manner is such as
Under, if communication process detects default sensor parameter in S101, it is judged that the sensor parameter detected is the most effective, including:
Judge that the sensor parameter detected is whether in the first preset range;
If the sensor parameter detected is in the first preset range, the sensor parameter detected is effective;
If the sensor parameter detected is not in the first preset range, the sensor parameter detected is invalid.
Needing to say, if presetting sensor parameter to include the parameter of several classification, every class sensor parameter is to having first
Preset range;If presetting sensor parameter to include a class parameter, this sensor parameter is to there being the first preset range.
Such as, if preset sensor parameter be class parameter A, this sensor parameter A to should have the first preset range (a1,
A2), if this sensor parameter A detected, then judge the sensor parameter that detects whether corresponding first preset range (a1,
A2), if corresponding first preset range (a1, a2), the sensor parameter detected is effective;If if the sensor parameter preset includes
Dry kind such as A, B, C tri-class, every class sensor parameter is to there being the first preset range, as sensor parameter A is first default to having
Scope (a1, a2);Sensor parameter B is to there being the first preset range (b1, b2);Sensor parameter C is to there being the first preset range
(c1, c2), if the sensor parameter detected is can be A, B, C tri-class or their combination in any, if the sense detected
Survey parameter and include B, C two class, then judge sensor parameter B, C of detecting the most respectively corresponding the first preset range (b1,
B2), (c1, c2), if all existing, then the sensor parameter detected is effective.
First preset range is preferably numerical range, and the size of its numerical range switches communication according to user in repeatedly test
During mode, triggering terminal and when generating numerical value and user's false touch terminal of sensor parameter, false touch and generate the number of sensor parameter
Value determines.Should be appreciated that the numerical value of the sensor parameter of generation when the first preset range should deviate user's false touch in test, with this
Improve the judgement accuracy of sensor parameter effectiveness.Such as, if touching parameter is touch pressure or touch time or touch
Frequency or slosh frequency or rotate the anglec of rotation of terminal, the first preset range should correspond to range of pressure values or duration scope
Or frequency values scope or angle value scope.
If no matter should be appreciated that the sensor parameter preset in which includes a class parameter or Ganlei's parameter, detecting
If sensor parameter be a class parameter or Ganlei's parameter, when all sensor parameters detected are respectively corresponding first pre-
If time in scope, the sensor parameter detected is just effective, and therefore which can be effectively reduced user's false touch but have switched call
The occurrence probability of mode.
Also, it should be noted in other feasible embodiments, if the sensor parameter preset includes at least one classification
Parameter, every class sensor parameter is to there being the first preset range, it is achieved judge the sensor parameter that detected whether effective manner such as
Under, if communication process detects default sensor parameter in S101, it is judged that the sensor parameter detected is the most effective, including:
Judge whether the sensor parameter detected exists at least one class sensor parameter in the first corresponding preset range;
If existence at least one class sensor parameter is in the first corresponding preset range, the sensor parameter detected is effective;If not existing
One class sensor parameter is in the first corresponding preset range, and the sensor parameter detected is invalid.
Should be appreciated that and the sensor parameter detected exists a class sensor parameter in the first corresponding preset range,
I.e. assert that the sensor parameter detected is effective, user wants handoff calls mode.
If if it should be noted that the sensor parameter detected includes Ganlei's parameter, it is judged that the sensor parameter detected is
No existence at least class sensor parameter implementation in the first corresponding preset range has many.
In some embodiments, randomly draw a class sensor parameter and judge, if the sensor parameter of extraction is not corresponding
In first preset range, then in remaining sensor parameter, extract another kind of sensor parameter judge, until judging detection
To sensor parameter in there is a class sensor parameter and or there is not sensor parameter in the first corresponding preset range in phase
In the first corresponding preset range.If the sensor parameter such as detected includes A, B, C tri-class, A can be randomly drawed and sentence
Disconnected, if A is in corresponding first preset range, then from B, C, randomly draw a class, as C judges, if C is corresponding first
In preset range, then assert in the sensor parameter detected, there is at least one class sensor parameter and preset model corresponding first
In enclosing.
In other embodiments, each sensor parameter detected can be judged, if wherein there is sensing ginseng
Number in the first corresponding preset range, is then assert in the sensor parameter detected, be there is at least one class sensor parameter in phase
In the first corresponding preset range;If there is not sensor parameter in the first corresponding preset range, then assert and to detect
In sensor parameter, there is not sensor parameter in the first corresponding preset range.
In other embodiments, every class sensor parameter arranges and is correspondingly arranged on priority level, it is judged that the sensing detected
Whether parameter exists at least one class sensor parameter in the first corresponding preset range, including:
The sensor parameter detected is detected step by step according to priority level corresponding sense parameter;If current priority being detected
Other sensor parameter corresponding preset first in the range of, it is judged that there is at least one class sensor parameter corresponding the
In one preset range;If being not detected by sensor parameter in corresponding preset range, it is judged that there is not sensor parameter in phase
In the first corresponding preset range.
If the sensor parameter such as detected includes A, B, C, D tetra-class, wherein their priority-level is from high to low
Order is B, C, A, D.Then first judge according to priority-level B class sensor parameter whether in corresponding first preset range, if B class
Sensor parameter in corresponding first preset range, is then assert in the sensor parameter detected, there is at least one class sensor parameter
In the first corresponding preset range, other remaining C, A, D class sensor parameters no longer judge;If B class sensor parameter
Not in corresponding first preset range, judge the most again C class sensor parameter whether in corresponding first preset range, if C class
Sensor parameter the most not in corresponding first preset range, then judges that whether A class sensor parameter is in corresponding first preset range
In, if A class sensor parameter is not the most in corresponding first preset range, then judge that D class sensor parameter is whether corresponding first pre-
If in scope.Until judging the sensor parameter detected to exist a class sensor parameter in the first corresponding preset range
Or there is not a class sensor parameter in the first corresponding preset range.
Needing to say, the priority level of sensor parameter can be set can also be pre-set by system by user oneself,
Should be appreciated that the sensor parameter that this embodiment medium priority is the highest will preferentially judge, the sensor parameter that therefore priority level is high can
Be user trigger talking mode switching time use most class sensor parameters, and then improve treatment effeciency, faster realize logical
The switching of words mode;The sensor parameter that preferably rank is high can also is that when user triggers talking mode switching, trigger action is the most
Sensor parameter time convenient, and then Consumer's Experience effect can be improved.
Also need to, be in communication process described in above-described embodiment, the effective sensor parameter preset detected,
Then switch to speech scrambling from common call.Should be appreciated that user is in communication process, it is also possible to logical speech scrambling switches to general
All talk about.The method also includes:
User is in speech scrambling process, if default sensor parameter again being detected, it is judged that the default sense again detected
Survey parameter the most effective, if effectively, stop sending the first encryption data and presetting the first decruption key side of answering according to instruction,
And send unencrypted communicating data to the side of answering;If invalid, continue to send the first encryption data and preset the first deciphering close
The side of answering given by key.Judge that sensor parameter the most effectively refer to above-described embodiment, again repeat no more.
Refer to Fig. 2, be the schematic block diagram of a kind of terminal that the embodiment of the present invention provides.As it can be seen, terminal 200 is wrapped
Include: detector unit the 201, first judging unit 202, ciphering unit 203, transmitting element 204, reception unit 205 and deciphering are single
Unit 206.
Wherein detector unit 201 is for detecting whether default sensor parameter at communication process.
Concrete, the sensor parameter preset is the information for starting communication mode handover operation.The sensor parameter preset
Can be a class parameter, it is also possible to if being to include Ganlei's parameter, in like manner, the default sensor parameter detected can also be a class ginseng
Number, it is also possible to if being to include Ganlei's parameter.
In the present embodiment, the sensor parameter preset includes touching touch parameter or the operation terminal generation that contactor control device generates
Kinematic parameter or their combination in any.The embodiment of the present invention does not carry out concrete restriction to this.
If the sensor parameter preset includes the touch parameter that touching device generates, this terminal 200 also includes display unit 207
And generate single 208, wherein display unit 207 is for showing switching icon on contactor control device;Signal generating unit 208 is for basis
The operation of switching icon is generated and touches parameter by user, touches parameter and includes that user touches the touch pressure that described switching icon produces
Power, touch time or touch frequency.
If the sensor parameter preset includes operating the kinematic parameter that terminal generates, kinematic parameter includes rocking what terminal generated
Slosh frequency, the anglec of rotation etc. of rotation terminal.
If the first judging unit 202 detects default sensor parameter for detector unit 201 at communication process, it is judged that inspection
The sensor parameter measured is the most effective.
If for the first judging unit 202, ciphering unit 203 judges that the sensor parameter detected is effective, utilization is preset
Communicating data is encrypted to form the first encryption data by the first encryption key.
Transmitting element 204 is used for the first encryption data and the first default decruption key are sent to the side of answering, so that
Answering root to be decrypted the first encryption data according to the first decruption key, the first decruption key is relative with the first encryption key
The decruption key answered.
Receive the second decruption key preset and the second encryption data that unit 205 sends for receiving the side of answering,
Second encryption data is to utilize the second encryption key preset to be encrypted the communicating data of the side of answering to form, and the second deciphering is close
Key is the decruption key corresponding with the second encryption key.
Decryption unit 206 for the second encryption data being decrypted according to presetting the second decruption key so that call from
Common talking mode switches to speech scrambling mode.
It should be noted that the first decruption key and the first encryption key can be same keys, it is also possible to be corresponding
Different keys;Second decruption key and the second encryption key can be same keys, it is also possible to be corresponding different keys.
Also needing to, refer to Fig. 3, the preferably first judging unit 202 includes that the first discriminating unit 301 and first is recognized
Cell 302, wherein the first discriminating unit 301 is for judging that the sensor parameter detected is whether in the first preset range;The
If one assert for the first discriminating unit 301, unit 302 judges that the sensor parameter detected, in the first preset range, is assert
The sensor parameter detected is effective;And if first assert that unit 302 is additionally operable to what the first discriminating unit 301 was judged to detect
Sensor parameter, not in the first preset range, assert that the sensor parameter detected is invalid.
Needing to say, if presetting sensor parameter to include the parameter of several classification, every class sensor parameter is to having first
Preset range;If presetting sensor parameter to include a class parameter, this sensor parameter is to there being the first preset range.In this embodiment not
If opinion preset sensor parameter include the parameter of a class or the parameter of Ganlei, the sensor parameter detected be a class parameter or
If the parameter of person Ganlei, when all sensor parameters detected are respectively in the first corresponding preset range, the sense detected
Surveying parameter just effective, therefore which can be effectively reduced user's false touch but have switched the occurrence probability of talking mode.
In other feasible embodiments, if the sensor parameter preset includes the parameter of at least one classification, every class sensing ginseng
Several refer to Fig. 4 to there being the first preset range, the first judging unit 202 includes that the second discriminating unit 401 and second is assert
Unit 402, wherein,
Second discriminating unit 401 is for judging whether the sensor parameter detected exists at least one class sensor parameter relatively
In the first preset range answered.
If second assert that unit 402 is judged to exist at least in the sensor parameter detected for the second discriminating unit 401
One class sensor parameter is in the first corresponding preset range, and the sensor parameter detected is effective;And second assert unit 402
If being additionally operable to the second discriminating unit 401 judge the sensor parameter detected not to exist a class sensor parameter corresponding
In one preset range, the sensor parameter detected is invalid.
Should be appreciated that there is a class sensor parameter in the sensor parameter that this embodiment detects presets corresponding first
In the range of, i.e. assert that the sensor parameter detected is effective, user wants handoff calls mode.
If if it should be noted that the sensor parameter detected includes Ganlei's parameter, it is judged that the sensor parameter detected is
No existence at least class sensor parameter implementation in the first corresponding preset range has many.As follows:
In some embodiments, randomly draw a class sensor parameter and judge, if the sensor parameter of extraction is not corresponding
In first preset range, then in remaining sensor parameter, extract another kind of sensor parameter judge, until judging detection
To sensor parameter in there is a class sensor parameter and or there is not a class sensor parameter in the first corresponding preset range
In the first corresponding preset range.
In other embodiments, each sensor parameter detected can be judged, if wherein there is sensing ginseng
Number in the first corresponding preset range, is then assert in the sensor parameter detected, be there is at least one class sensor parameter in phase
In the first corresponding preset range;If there is not any type sensor parameter in the first corresponding preset range, then assert
In the sensor parameter detected, there is not sensor parameter in the first corresponding preset range.
In other embodiments, every class sensor parameter arranges and is correspondingly arranged on priority level, and the second discriminating unit 401 is wrapped
Include verification unit 411 and confirmation unit 421.
Wherein, verification unit 411 for detecting corresponding sense ginseng step by step by the sensor parameter detected according to priority level
Number;If confirmation unit 421 for verification unit 411 detect the other sensor parameter of current priority corresponding preset the
In the range of one, it is judged that there is at least one class sensor parameter in the first corresponding preset range;And confirmation unit 421 is also
If being not detected by sensor parameter in corresponding first preset range for verification unit 411, it is judged that there is not sensing ginseng
Number is in the first corresponding preset range.
Needing to say, the priority level of sensor parameter can be set can also be pre-set by system by user oneself,
Should be appreciated that the sensor parameter that this embodiment medium priority is the highest will preferentially judge, the sensor parameter that therefore priority level is high can
Be user trigger talking mode switching time use most class sensor parameters, and then improve treatment effeciency, faster realize logical
The switching of words mode;The sensor parameter that preferably rank is high can also is that when user triggers talking mode switching, trigger action is the most
Sensor parameter time convenient, and then Consumer's Experience effect can be improved.
Also needing to, if user is intended to switch to common call from speech scrambling, wherein detector unit 201 is for user
In speech scrambling process, again detect whether default sensor parameter.
First judging unit 202 for user in speech scrambling process, if default sensor parameter again being detected, it is judged that
The default sensor parameter again detected is the most effective.
If for the first judging unit 202, transmitting element 204 judges that the default sensor parameter again detected is effective, root
According to instruction stop send the first encryption data and preset the first decruption key side of answering, and send unencrypted communicating data to
The side of answering.If transmitting element 204 is additionally operable to the first judging unit 202 judges that the default sensor parameter again detected is invalid,
Continue send the first encryption data and preset the first decruption key to the side of answering.
Refer to Fig. 5, the schematic block diagram of a kind of terminal that another embodiment of the present invention provides.As it can be seen, terminal 500
One or several processors 501, or several input equipment 502, one or several output can be included
Device 503 and memorizer 504.Above-mentioned processor 501, input equipment 502, output device 503 and memorizer 504 are by total
Line connects.
Input equipment 502 generates sensor parameter for receiving user to the operation of terminal.In implementing, the present invention is real
The input equipment 502 executing example can include contactor control device, sensing device etc..
Output device 503 is for externally exporting voice, switching icon.In implementing, the output dress of the embodiment of the present invention
Put 503 and can include the display devices such as display screen and voice output.
Memorizer 504 is for storing the routine data with various functions, in implementing, the storage of the embodiment of the present invention
Device 504 can be system storage, such as, and volatile (such as RAM), non-volatile (such as ROM, flash memory etc.), or
Both combinations.In implementing, the memorizer 504 of the embodiment of the present invention can also is that the external memory storage outside system, than
As, disk, CD, tape etc..
Processor 501 i.e. performs the instruction of memorizer 504 storage for calling the routine data of storage in memorizer 504,
And perform to operate as follows:
If communication process detects default sensor parameter, it is judged that the sensor parameter detected is the most effective, if detection
The sensor parameter arrived is effective, utilizes the first encryption key preset to be encrypted communicating data to form the first encryption data,
First encryption data and the first default decruption key are sent to the side of answering, so that answering root according to the first decruption key pair
First encryption data is decrypted, and the first decruption key is the decruption key corresponding with the first encryption key;If receiving
Second decruption key preset of the side's of listening transmission and the second encryption data, according to default second decruption key to the second encryption number
According to being decrypted, to make call switch to speech scrambling mode, the second encryption data to be to utilize to preset from common talking mode
The communicating data of the side of answering is encrypted and forms by the second encryption key, and the second decruption key is corresponding with the second encryption key
Decruption key.
In the present embodiment, the sensor parameter preset includes touching touch parameter or the operation terminal generation that contactor control device generates
Kinematic parameter or their combination in any.If the sensor parameter preset includes operating the kinematic parameter that terminal generates, motion ginseng
Number includes rocking the slosh frequency that terminal generates, the anglec of rotation etc. rotating terminal, touches parameter and includes that user cuts described in touching
Change touch pressure, touch time or touch frequency that icon produces.
If the sensor parameter preset includes the touch parameter that touching device generates, processor 501 also performs to operate as follows:
Contactor control device shows switching icon;According to user, the operation of switching icon is generated touch parameter.
If communication process detects default sensor parameter, processor 501 judges that the sensor parameter detected is the most effective
Also perform to operate as follows:
Judge that the sensor parameter detected is whether in the first corresponding preset range;If the sensor parameter detected exists
In first preset range, the sensor parameter detected is effective;If the sensor parameter detected is not in the first preset range, detection
The sensor parameter arrived is invalid.
In other feasible embodiments, if the sensor parameter preset includes the parameter of at least one classification, every class sensing ginseng
Several to there being the first preset range, processor 501 judges that the sensor parameter detected the most also performs to operate as follows:
Judge whether the sensor parameter detected exists at least one class sensor parameter in the first corresponding preset range;
If existence at least one class sensor parameter is in the first corresponding preset range, the sensor parameter detected is effective;If not existing
One class sensor parameter is in the first corresponding preset range, and the sensor parameter detected is invalid.
If if it should be noted that the sensor parameter detected includes Ganlei's parameter, it is judged that the sensor parameter detected is
No existence at least class sensor parameter implementation in the first corresponding preset range has many.
In some embodiments, randomly draw a class sensor parameter and judge, if the sensor parameter of extraction is not corresponding
In first preset range, then in remaining sensor parameter, extract another kind of sensor parameter judge, until judging detection
To sensor parameter in there is a class sensor parameter and or there is not a class sensor parameter in the first corresponding preset range
In the first corresponding preset range.
In other embodiments, each sensor parameter detected can be judged, if wherein there is sensing ginseng
Number in the first corresponding preset range, is then assert in the sensor parameter detected, be there is at least one class sensor parameter in phase
In the first corresponding preset range;If there is not any type sensor parameter in the first corresponding preset range, then assert
In the sensor parameter detected, there is not sensor parameter in the first corresponding preset range.
In other embodiments, every class sensor parameter arranges and is correspondingly arranged on priority level, and processor 501 judges detection
To sensor parameter whether there is at least one class sensor parameter in the first corresponding preset range, also perform following operation:
The sensor parameter detected is detected step by step according to priority level corresponding sense parameter;If current priority being detected
Other sensor parameter corresponding preset first in the range of, it is judged that there is at least one class sensor parameter corresponding the
In one preset range;If being not detected by sensor parameter in corresponding first preset range, it is judged that there is not sensor parameter
In the first corresponding preset range.
If user is intended to switch to common call from speech scrambling, processor 501 also performs to operate as follows:
User is in speech scrambling process, if default sensor parameter again being detected, it is judged that the default sense again detected
Survey parameter the most effective, if effectively, stop sending the first encryption data and presetting the first decruption key side of answering according to instruction,
And send unencrypted communicating data to the side of answering;If invalid, continue to send the first encryption data and preset the first deciphering close
The side of answering given by key.
In sum, if the method for embodiment of the present invention offer and terminal detect the effective sensor parameter preset,
Then the first decruption key and encryption data are all sent to the side of answering, and then realize commonly being conversed to adding by logical in communication process
The switching of close call, improves the safety of telex network, meets user's request.
Adjust it should be noted that the step in embodiment of the present invention method can carry out order according to actual needs, close
And and delete.
Unit in embodiment of the present invention terminal can merge according to actual needs, divides and delete.
Those of ordinary skill in the art are it is to be appreciated that combine the list of each example that the embodiments described herein describes
Unit and algorithm steps, it is possible to electronic hardware, computer software or the two be implemented in combination in, in order to clearly demonstrate hardware
With the interchangeability of software, the most generally describe composition and the step of each example according to function.This
A little functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Specially
Industry technical staff can use different methods to realize described function to each specifically should being used for, but this realization is not
It is considered as beyond the scope of this invention.
Those skilled in the art is it can be understood that arrive, for convenience of description and succinctly, and the end of foregoing description
End and the specific works process of unit, be referred to the corresponding process in preceding method embodiment, do not repeat them here.
In several embodiments provided herein, it should be understood that disclosed terminal and method, can be passed through it
Its mode realizes.Such as, device embodiment described above is only schematically, such as, and the division of described unit, only
Being only a kind of logic function to divide, actual can have other dividing mode, the most multiple unit or assembly to tie when realizing
Close or be desirably integrated into another system, or some features can be ignored, or not performing.It addition, shown or discussed phase
Coupling between Hu or direct-coupling or communication connection can be the INDIRECT COUPLING by some interfaces, device or unit or communication
Connect, it is also possible to be electric, machinery or other form connect.
The described unit illustrated as separating component can be or may not be physically separate, shows as unit
The parts shown can be or may not be physical location, i.e. may be located at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected according to the actual needs to realize embodiment of the present invention scheme
Purpose.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it is also possible to
It is that unit is individually physically present, it is also possible to be that two or more unit are integrated in a unit.Above-mentioned integrated
Unit both can realize to use the form of hardware, it would however also be possible to employ the form of SFU software functional unit realizes.
If described integrated unit realizes and as independent production marketing or use using the form of SFU software functional unit
Time, can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially
The part in other words prior art contributed, or this technical scheme completely or partially can be with the form of software product
Embodying, this computer software product is stored in a storage medium, including some instructions with so that a computer
Equipment (can be personal computer, server, or the network equipment etc.) performs the complete of method described in each embodiment of the present invention
Portion or part steps.And aforesaid storage medium includes: USB flash disk, portable hard drive, read only memory (ROM, Read-Only
Memory), random access memory (RAM, RandomAccess Memory), magnetic disc or CD etc. are various can store journey
The medium of sequence code.
The above, for the detailed description of the invention of the present invention, but protection scope of the present invention is not limited thereto, any ripe
Know those skilled in the art in the technical scope that the invention discloses, the amendment of various equivalence can be readily occurred in or replace
Changing, these amendments or replacement all should be contained within protection scope of the present invention.Therefore, protection scope of the present invention should be with right
The protection domain required is as the criterion.
Claims (10)
1. a communication type switching method, it is characterised in that including:
If communication process detects default sensor parameter, it is judged that the described sensor parameter detected is the most effective;
If described sensor parameter is effective, the first encryption key preset is utilized to be encrypted communicating data to form the first encryption
Data;
Described first encryption data and the first default decruption key are sent to the side of answering, so that answering root according to described
Described first encryption data is decrypted by one decruption key, and described first decruption key is relative with described first encryption key
The decruption key answered;
If receiving the second decruption key preset and the second encryption data that the side of answering sends, solve according to presetting described second
Described second encryption data is decrypted by decryption key, to make call switch to speech scrambling mode, institute from common talking mode
Stating the second encryption data is to utilize the second encryption key preset to be encrypted the communicating data of the side of answering to form, described second
Decruption key is the decruption key corresponding with described second encryption key.
Method the most according to claim 1, it is characterised in that judge that the described sensor parameter detected is the most effective, bag
Include:
Judge that the described sensor parameter detected is whether in the first preset range;
If described sensor parameter is in the first preset range, the described sensor parameter detected is effective;
If described sensor parameter is not in the first preset range, the described sensor parameter detected is invalid.
Method the most according to claim 1, it is characterised in that if the described sensor parameter preset includes at least one classification
Parameter, sensor parameter described in every class is to there being the first preset range, it is judged that the described sensor parameter detected is the most effective, bag
Include:
Judge whether the described sensor parameter detected exists at least one class sensor parameter in the first corresponding preset range;
If existence at least one class sensor parameter is in the first corresponding preset range, the described sensor parameter detected is effective;
If there is not sensor parameter in the first corresponding preset range, the described sensor parameter detected is invalid.
Method the most according to claim 3, it is characterised in that every class sensor parameter is correspondingly arranged on priority level, it is judged that
Whether the described sensor parameter detected exists at least one class sensor parameter in the first corresponding preset range, including:
The described sensor parameter detected is detected step by step according to priority level corresponding sense parameter;
If detecting, the other sensor parameter of current priority is in the range of corresponding preset first, it is judged that have at least one
Class sensor parameter is in the first corresponding preset range;
If being not detected by sensor parameter in corresponding first preset range, it is judged that there is not sensor parameter corresponding
In first preset range.
Method the most according to claim 1, it is characterised in that default described sensor parameter includes touching on contactor control device
The kinematic parameter that the touch parameter generated or operation terminal generate.
6. a terminal, it is characterised in that including:
First judging unit, if detect default sensor parameter in communication process, it is judged that the described sensing ginseng detected
Number is the most effective;
For described first judging unit, ciphering unit, if judging that the described sensor parameter detected effectively utilizes default the
Communicating data is encrypted to form the first encryption data by one encryption key;
Transmitting element, for being sent to the side of answering, so that connecing by described first encryption data and the first default decruption key
Listening root to be decrypted described first encryption data according to described first decruption key, described first decruption key is and described
The decruption key that one encryption key is corresponding;
Decryption unit, if for receiving the second decruption key preset and the second encryption data that the side of answering sends, according to
Preset described second decruption key described second encryption data is decrypted, add so that call switches to from common talking mode
Close talking mode, described second encryption data is to utilize the second encryption key preset to be encrypted the communicating data of the side of answering
Forming, described second decruption key is the decruption key corresponding with described second encryption key.
Terminal the most according to claim 6, it is characterised in that the first judging unit includes:
First discriminating unit is the most effective for judging the described sensor parameter detected;
First assert unit, if being additionally operable to the first discriminating unit to judge that described sensor parameter, in the first preset range, is assert
The described sensor parameter detected is effective;And if being additionally operable to the first discriminating unit and judge that described sensor parameter is not pre-first
If in scope, assert that the described sensor parameter detected is invalid.
Terminal the most according to claim 6, it is characterised in that if the described sensor parameter preset includes at least one classification
Parameter, sensor parameter described in every class is to there being the first preset range, and described first judging unit includes:
Second discriminating unit, for judging whether the described sensor parameter detected exists at least one class sensor parameter corresponding
The first preset range in;
Second assert unit, if judging to have at least one in the described sensor parameter detected for described second discriminating unit
Class sensor parameter, in the first corresponding preset range, assert that the described sensor parameter detected is effective;And if being additionally operable to
Described second discriminating unit judges that there is not sensor parameter in the described sensor parameter detected presets corresponding first
In the range of, assert that the described sensor parameter detected is invalid.
Terminal the most according to claim 8, it is characterised in that every class sensor parameter arranges and is correspondingly arranged on priority level,
Described second discriminating unit includes:
Verification unit, for detecting corresponding sense parameter step by step by the described sensor parameter detected according to priority level;
For verification unit, confirmation unit, if detecting that the other sensor parameter of current priority is at corresponding the first model preset
In enclosing, it is judged that there is at least one class sensor parameter in the first corresponding preset range;And if being additionally operable to detector unit
It is not detected by sensor parameter in corresponding first preset range, it is judged that there is not sensor parameter corresponding first pre-
If in scope.
Terminal the most according to claim 6, it is characterised in that default described sensor parameter includes touching contactor control device
The kinematic parameter that the touch parameter of upper generation or operation terminal generate.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610618935.5A CN106302402A (en) | 2016-07-29 | 2016-07-29 | A kind of communication type switching method and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610618935.5A CN106302402A (en) | 2016-07-29 | 2016-07-29 | A kind of communication type switching method and terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106302402A true CN106302402A (en) | 2017-01-04 |
Family
ID=57663682
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610618935.5A Withdrawn CN106302402A (en) | 2016-07-29 | 2016-07-29 | A kind of communication type switching method and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106302402A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2022143156A1 (en) * | 2020-12-30 | 2022-07-07 | 华为技术有限公司 | Encrypted call method and apparatus, terminal, and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1816172A (en) * | 2005-02-05 | 2006-08-09 | 华为技术有限公司 | Method for realizing switch-over between open call/secrete call in end-to-end voice telecommunication |
CN101309281A (en) * | 2008-07-22 | 2008-11-19 | 中国电信股份有限公司 | End-to-end speech ciphering method, apparatus and system |
CN101931949A (en) * | 2010-08-11 | 2010-12-29 | 中兴通讯股份有限公司 | Method and system for switching clear text communication and cipher text communication between mobile terminals |
CN103442141A (en) * | 2013-08-27 | 2013-12-11 | 深圳市中兴移动通信有限公司 | Method for having access to safe mode in one-touch mode |
CN104836887A (en) * | 2015-02-10 | 2015-08-12 | 数据通信科学技术研究所 | Mobile terminal and conversation switching method |
CN105025471A (en) * | 2014-04-21 | 2015-11-04 | 中兴通讯股份有限公司 | Called terminal, calling terminal, voice communication method and system |
-
2016
- 2016-07-29 CN CN201610618935.5A patent/CN106302402A/en not_active Withdrawn
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1816172A (en) * | 2005-02-05 | 2006-08-09 | 华为技术有限公司 | Method for realizing switch-over between open call/secrete call in end-to-end voice telecommunication |
CN101309281A (en) * | 2008-07-22 | 2008-11-19 | 中国电信股份有限公司 | End-to-end speech ciphering method, apparatus and system |
CN101931949A (en) * | 2010-08-11 | 2010-12-29 | 中兴通讯股份有限公司 | Method and system for switching clear text communication and cipher text communication between mobile terminals |
CN103442141A (en) * | 2013-08-27 | 2013-12-11 | 深圳市中兴移动通信有限公司 | Method for having access to safe mode in one-touch mode |
CN105025471A (en) * | 2014-04-21 | 2015-11-04 | 中兴通讯股份有限公司 | Called terminal, calling terminal, voice communication method and system |
CN104836887A (en) * | 2015-02-10 | 2015-08-12 | 数据通信科学技术研究所 | Mobile terminal and conversation switching method |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2022143156A1 (en) * | 2020-12-30 | 2022-07-07 | 华为技术有限公司 | Encrypted call method and apparatus, terminal, and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105117663B (en) | The encrypted object display methods and device of a kind of application | |
CN104468611B (en) | The data safety processing method and device switched based on dual system | |
CN108769027B (en) | Secure communication method, device, mobile terminal and storage medium | |
CN105812332A (en) | Data protection method | |
CN103778380A (en) | Data desensitization method and device and data anti-desensitization method and device | |
CN107276756A (en) | A kind of method and server for obtaining root key | |
CN104008313A (en) | Protecting method and device of privacy information | |
CN102880560A (en) | User privacy data protection method and mobile terminal using user privacy data protection method | |
CN107196907B (en) | A kind of guard method of Android SO files and device | |
CN104270353B (en) | information security transmission method and system, receiving terminal and sending terminal | |
CN106611310B (en) | Data processing method, wearable electronic device and system | |
CN112307454A (en) | Data encryption method and device, storage medium and electronic equipment | |
CN103632105A (en) | Information displaying method and electronic device | |
CN107911818A (en) | The method, device and mobile terminal of data transfer between mobile terminal | |
CN110765470A (en) | Method and device for realizing safety keyboard, computer equipment and storage medium | |
CN107657187A (en) | A kind of keyboard and input method and system applied to android system | |
CN105159557A (en) | Generation method of unlocking password, and mobile terminal | |
CN105430601B (en) | Bluetooth device list display method and device and mobile terminal | |
CN106028320A (en) | Data security transmission method, terminal and server | |
CN110069241A (en) | Acquisition methods, device, client device and the server of pseudo random number | |
CN106302402A (en) | A kind of communication type switching method and terminal | |
CN106127034B (en) | A kind of method, apparatus that anti-locking system is maliciously closed and electronic equipment | |
CN106130727A (en) | A kind of call cryptographic key negotiation method and system | |
CN110932853B (en) | Key management device and key management method based on trusted module | |
WO2023226801A1 (en) | Service processing method, apparatus, and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20170104 |