CN105611589A - Network switching method and device - Google Patents

Network switching method and device Download PDF

Info

Publication number
CN105611589A
CN105611589A CN201610038594.4A CN201610038594A CN105611589A CN 105611589 A CN105611589 A CN 105611589A CN 201610038594 A CN201610038594 A CN 201610038594A CN 105611589 A CN105611589 A CN 105611589A
Authority
CN
China
Prior art keywords
network
vibration signal
mobile terminal
signal
user
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.)
Pending
Application number
CN201610038594.4A
Other languages
Chinese (zh)
Inventor
张海平
王英茂
李应伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610038594.4A priority Critical patent/CN105611589A/en
Publication of CN105611589A publication Critical patent/CN105611589A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention discloses a network switching method and device. According to the embodiment of the invention, a vibration signal generated through knocking a mobile terminal by a user is obtained; a corresponding network switching request is obtained according to the vibration signal, wherein the network switching request indicates an object network to be switched to; a currently connected network is switched to the object network according to the network switching request; according to the scheme, the networks can be automatically switched according to the vibration signal generated through knocking the mobile terminal by the user; a series of network switching operations of the user on the terminal are unnecessary; the network switching is realized only through knocking the mobile terminal by the user; and compared with the prior art, the method and the device have the advantage that the network switching efficiency of the mobile terminal is improved.

Description

A kind of method for switching network and device
Technical field
The present invention relates to terminal technology field, be specifically related to a kind of method for switching network and device.
Background technology
Universal along with mobile terminal, more and more users use that mobile terminal is learnt, amusement etc.,Not only enrich user's life, also bring advantage to the user.
In prior art, mobile terminal can pass through WLAN (WirelessLocalAreaNetworks,WLAN) or mobile data service network connecting Internet, and then carry out various data services.But in real life, along with change user's request or user's environment of living in, mobile terminal hasTime need handover network, such as, be switched to mobile data service network by WLAN, or by movingData services network is switched to WLAN, or is switched to another WLAN etc. by a WLAN.
In the research and practice process to prior art, the present inventor finds, due to current movementTerminal is carried out network switching needs user to carry out a series of operation, (such as, be switched to movement from WLANWhen data services network, need user's triggering mobile terminals to disconnect WLAN and connect, then, trigger mobileTerminal is opened network settings interface, and then triggering mobile terminals enters mobile data network interface is set, last,Triggering mobile terminals is opened this mobile data network), therefore, can cause the network switching efficiency of mobile terminalLowly.
Summary of the invention
The embodiment of the present invention provides a kind of method for switching network and device, can improve the network of mobile terminal and cutChange efficiency.
The embodiment of the present invention provides a kind of method for switching network, comprising:
Obtain the vibration signal that user produces by knocking described mobile terminal;
Obtain corresponding network handover request according to described vibration signal, described network handover request instruction needsThe objective network being switched to;
According to described network handover request, the network of current connection is switched to described objective network.
Accordingly, the embodiment of the present invention also provides a kind of network switching device, comprising:
Signal acquisition module, the vibration signal producing by knocking described mobile terminal for obtaining user;
Acquisition request module, for obtaining corresponding network handover request, described net according to described vibration signalNetwork handover request is indicated the objective network that need to be switched to;
Handover module, for switching to described target according to described network handover request by the network of current connectionNetwork.
The embodiment of the present invention adopts obtains the vibration signal that user produces by knocking this mobile terminal, then,Obtain corresponding network handover request according to this vibration signal, this network handover request instruction need to be switched toObjective network, switches to this objective network according to this network handover request by the network of current connection; This schemeCan by user knock mobile terminal produce vibration signal automatically switching network, without user for terminalCarry out a series of network handover operation, for user, only need knock mobile terminal and can realize network and cutChange, in terms of existing technologies, improved the network switching efficiency of mobile terminal.
Brief description of the drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, institute in describing embodiment belowNeed the accompanying drawing using to be briefly described, apparently, the accompanying drawing in the following describes is only the present inventionSome embodiment, for those skilled in the art, do not paying under the prerequisite of creative work, alsoCan obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the flow chart of a kind of method for switching network of providing of the embodiment of the present invention one;
Fig. 2 is the structural representation of the signal processing apparatus that provides of the embodiment of the present invention one;
Fig. 3 is the flow chart of a kind of method for switching network of providing of the embodiment of the present invention two;
Fig. 4 a is the structural representation of a kind of network switching device of providing of the embodiment of the present invention three;
Fig. 4 b is the structural representation of the another kind of network switching device that provides of the embodiment of the present invention three.
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 clearlyChu, intactly description, obviously, described embodiment is only the present invention's part embodiment, instead ofWhole embodiment. Based on the embodiment in the present invention, those skilled in the art are not making creative laborThe every other embodiment obtaining under moving prerequisite, belongs to the scope of protection of the invention.
The embodiment of the present invention provides a kind of method for switching network and device. To be elaborated respectively below.
Embodiment mono-,
The present embodiment is described the angle from network switching device, and this network switching device specifically can collectBecome in mobile terminal, this mobile terminal can be the equipment such as smart mobile phone, panel computer.
Wherein, the mode that this network switching device is integrated in mobile terminal has multiple, such as, with terminal appliesBe integrated in mobile terminal etc. software form.
As shown in Figure 1, the present embodiment provides a kind of method for switching network, and idiographic flow can be as follows:
101, obtain the vibration signal that user produces by knocking this mobile terminal.
Such as, mobile terminal afterwards, obtains use at connection WIFI (wireless-fidelity, wireless fidelity)Family is by knocking the vibration signal of its generation.
Wherein, knock generally and can produce by directly knocking terminal optional position with hand, or, also canTo be by other hard things, realize such as knocking terminal with penholder, key etc.; And, the position of knockingCan be not construed as limiting, such as being screen, the back side or the frame etc. of terminal.
The present embodiment, obtain user have by the mode of vibration signal of knocking mobile terminal and producing multiple, thanAs, gather vibration signal, whether identify this vibration signal is that user knocks the vibration signal that mobile terminal produces,If so, extract this vibration signal; Also be that step " is obtained user by knocking shaking of this mobile terminal generationMoving signal " can comprise:
Gather the vibration signal for this mobile terminal;
Whether identify this vibration signal is that user knocks the vibration signal that this mobile terminal produces;
If so, extract this vibration signal.
Wherein, vibration signal is that this mobile terminal is subject to External Force Acting to send the sound wave of generation of vibration correspondingThe signal of telecommunication (such as, data signal or analog electrical signal). For example, when user knocks mobile terminal, moveMoving terminal can be vibrated, thereby terminal can produce acoustic signals, and the signal of telecommunication that this acoustic signals is corresponding isThe vibration signal that user produces by knocking mobile terminal.
In the present embodiment, gather can have for the mode of the vibration signal of mobile terminal multiple, such as canWith the microphone by mobile terminal, loudspeaker or receiver obtain user knock mobile terminal produceVibration signal, because microphone, loudspeaker or receiver are with acoustic-electric converter, is subject at mobile terminalWhile knocking generation vibration to user, microphone or loudspeaker can be responded to the acoustic signals of mobile terminal, and shouldAcoustic signals is converted into into the corresponding signal of telecommunication, i.e. vibration signal, thus it is eventually mobile by knocking to obtain userThe vibration signal that end produces. Now, step " collection is for the vibration signal of this mobile terminal " can comprise:Loudspeaker, microphone or receiver collection by this mobile terminal is for the vibration signal of this mobile terminal.
Wherein, this microphone can comprise various types of microphones, such as electret microphone, silicon MikeWind etc., and loudspeaker also can comprise various types of loudspeakers. If simulation microphone or simulation are raised one's voiceDevice, can first obtain the analog signal that user produces by knocking terminal, then by digital-to-analogue conversion mouldThis analog signal is converted to data signal by piece, obtains vibration signal; And if digital microphone or numeral are raisedSound device, direct output digit signals, without carrying out digital-to-analogue conversion.
It should be noted that, except microphone and loudspeaker, can also comprise the device of any sound-electric conversionPart, does not repeat them here.
Whether the present embodiment method also needs to identify this vibration signal for knocking after collecting vibration signalThe vibration signal producing, wherein, identification vibration signal is the vibration letter that user produces by knocking mobile terminalNumber principle, as follows:
Because the hammer action time is very of short duration, and propagate by the solid of equipment, therefore, mobile terminal is subject toThe vibration signal that knocks generation to user is a kind of special vibration signal, and itself and mobile terminal are subject to other worksThe vibration signal firmly producing, or the vibration signal that the outside vibration source of mobile terminal transmission produces is not identical.Knock the vibration signal of generation from electrical point analysis, such as, vibration signal is carried out to digital processing analysis,Can draw following analysis result:
From signal time, the time duration very short (millisecond rank) that this signal is lasting; From signal widthRelatively, the level of this data signal is relatively large for value size, (because sound wave is that solid is propagated, and byMobile terminal self is propagated), the signal of the data signal more corresponding than general sound wave is strong larger; From signalFrequency spectrum, frequency coverage whole data signal frequency range, and the amplitude difference of each frequency is little.
Therefore, feature or feature that can be based on above-mentioned vibration signal, what identification or judgement got shakesWhether moving signal is for user knocks the vibration signal that mobile terminal produces; Also, step " is identified this vibrationWhether signal is the vibration signal that user produces by knocking this mobile terminal " can comprise:
Obtain the signal characteristic information of this vibration signal;
Judge whether this signal characteristic information meets pre-conditioned;
If so, determine that this vibration signal is the vibration signal that user produces by knocking this mobile terminal;
If not, determine the vibration signal that this vibration signal does not produce by knocking this mobile terminal for user.
Such as, the microphone, receiver or the loudspeaker that carry by mobile terminal convert this sound wave to mouldIntend the signal of telecommunication, then, this analog electrical signal carried out to analog-to-digital conversion (for example, changing by analog-digital converter),Obtain data signal, i.e. vibration signal, carries out digital processing (DSP) to this vibration signal, to obtain thisThe signal characteristic information of vibration signal, then, judges whether this signal characteristic information meets pre-conditioned, ifBe, judge that this vibration signal is subject to user as this mobile terminal and knocks the vibration signal of generation, if not,Judge that this vibration signal is not subject to user as this mobile terminal and knocks the vibration signal of generation. For the ease of judgement,The present embodiment, after obtaining analog electrical signal, before carrying out analog-to-digital conversion, can also enter analog electrical signalRow amplifies to be processed, such as this analog electrical signal being amplified to processing by PGA amplifier, wherein, logarithmThe processing of word signal can be carried out by dsp chip.
Wherein, the signal characteristic information of vibration signal can comprise: frequency information (comprises frequency distribution, frequentlyBandwidth etc.), at least one in amplitude information (comprising average amplitude), temporal information (signal period),Certainly, can also comprise other characteristic informations.
For example, signal characteristic information comprises: when frequency information, amplitude information, temporal information, and judgement respectivelyWhether this frequency information meets predeterminated frequency condition, and whether this amplitude information meets default amplitude condition, this timeBetween information whether meet Preset Time condition, wherein, predeterminated frequency condition, default amplitude condition, when defaultBetween condition can be respectively according to frequency information corresponding to preset number signal, amplitude information, temporal information setting,This default vibration signal is that mobile terminal is subject to user and knocks the vibration signal of generation. The present embodiment needs judgementIt is pre-conditioned whether multiple signal characteristic informations meet, while identifying the vibration signal that knocks generation, such as,Said frequencies information, amplitude information, three judgements of temporal information, can the judged result based on repeatedly knowNot, for example, when three judged results are while being, just determine that vibration signal is the vibration signal that knocks generation,Or, when having certain several judged result in multiple judged results when being, determine that vibration signal is for knocking generationVibration signal, these all can be set according to actual conditions, judged result is that the situation that is is more, knowOther precision is higher.
For example, whether introduce in detail the present embodiment identification vibration signal with the signal processing apparatus shown in Fig. 2For the detailed process that user knocks the vibration signal of mobile terminal generation, this signal processing apparatus comprises:
Microphone 201, for gathering the acoustic signals for mobile terminal, and converts this acoustic signals toAnalog signal, particularly, in the time that mobile terminal vibration produces acoustic signals, the vibrating diaphragm sense in microphone 201Required sound wave, and all can follow vibration together, vibrating diaphragm will drive the coil in microphone 201 to cutThe motion of the magnetic line of force, thus in coil, will produce corresponding current signal, i.e. analog signal; The present embodimentIn can also replace this microphone with receiver or loudspeaker and realize same function, its course of work and wheatThe course of work type of gram wind, just repeats no more here.
Analog-to-digital conversion (A/D) module 202, converts correspondence to for the analog signal that microphone 201 is exportedData signal, obtain vibration signal, so that subsequent treatment analysis. Certainly, due to the current kind of microphoneClass has multiple, and such as electret microphone, silicon microphone etc., even some microphone also comprises analog-to-digital conversionModule, if in such cases, can save analog-to-digital conversion module 202.
Employing rate modular converter 203, for according to circumstances adjusting the sample rate of data signal, after reducingThe computing requirement of continuous numerical analysis, preferably, sample rate can not be lower than 16Khz, and bit rate can not be lower than 10bit,Otherwise possible impact analysis precision.
Fourier transform (FFT) module 204, for data signal is carried out to Fourier transform, is converted toFrequency-domain analysis.
Time series analysis module 205, for after data signal is carried out Fourier transform, to data signalTime is analyzed, and particularly, obtains the temporal information of data signal, and judges that whether this temporal information is fullFoot Preset Time requirement, such as, time cycle of obtaining data signal, judges that this time cycle is whether in advanceIf within the scope of the time cycle, if so, meet Preset Time requirement, show that this data signal meets to knock and moveThe time requirement of the data signal that moving terminal generates, vibration signal corresponding to this data signal likely knocksThe vibration signal that mobile terminal produces.
In actual applications, feature that can be based on hammer action and the design feature of mobile terminal, provideThe time cycle [T1, T2] of a hammer action, the explanation that goes beyond the scope is not normal hammer action; IfBe the time that meets hammer action feature, export OK signal. Knock the record of mobile phone according to actual finger firstTone signal is analyzed, and T1 is generally not more than 5ms, and T2 is not more than 20ms.
Frequency analysis module 206, for to analysis of frequency distribution, particularly, the frequency of statistics signalDistribute, then, determination frequency distributes whether meets preset requirement, such as, frequency distribution continuously and frequency bandBroadness, thinks that the frequency distribution of this data signal meets the frequency distribution of the data signal of knocking generation. FromActual in recently seeing, especially 6Khz is between highest frequency (sample rate frequency ÷ 2), and frequency distribution connectsContinuous.
Amplitude analysis module 207, analyzes for the amplitude to data signal, particularly, analyzes wholeThe averaged amplitude value of frequency range, and judge whether this averaged amplitude value meets default amplitude requirement, such as, judgementWhether this averaged amplitude value is greater than default amplitude, if so, meets default amplitude requirement, otherwise, do not meet.
Identification module 208, for according to time series analysis module 205, frequency analysis module 206, amplitude analysisThe analysis result of module 207 is identified or is judged whether current vibration signal is that user is by knocking mobile terminalThe vibration signal producing.
102, obtain corresponding network handover request according to this vibration signal, this network handover request instruction needsThe objective network being switched to.
Such as, mobile terminal can obtain corresponding network handover request according to vibration signal, and this network switchesThe mobile data network that request instruction need to be switched to, or be switched to another WLAN etc. Network is cutThe request of changing can be carried the mark of the objective network that need to be switched to, and for example, carries the mark of target wifi etc.
Particularly, the mode of obtaining corresponding network handover request according to vibration signal has multiple, such as, canTo determine whether mobile terminal exists the vibration signal mating with this vibration signal, if exist, obtain coupling and shakeMoving network handover request corresponding to signal is also that " obtain corresponding network according to this vibration signal switches stepRequest " can comprise: determine in default sample set whether have the sample mating with this vibration signal, ifExist, obtain the network handover request that matched sample is corresponding; Particularly, can obtain the letter of vibration signalWhether number characteristic information (time, frequency, amplitude), then, determine in default sample set and exist and thisThe sample of signal characteristic information coupling, if exist, determines in this default sample set and exists and this vibration letterThe sample of number coupling, if do not exist, determines in this default sample set and does not exist with this vibration signal and mateSample. Wherein, in this default sample set, can comprise at least one sample of signal, be called for short sample, everyKind of sample can corresponding a kind of network handover request, such as, every kind of different objective network of the corresponding instruction of sampleNetwork handover request etc., sample 1 map network handover request 1, this request instruction need to be switched to WLAN1,Sample 2 map network handover request 2, this request instruction need to be switched to WLAN2, and sample 3 map networks are cutThe request of changing 3, this request instruction need to be switched to mobile data network ...
For example, can determine the frequency spectrum of vibration signal, the time to this frequency spectrum, frequency and amplitude are carried out respectivelyAnalyze, obtain analysis result, determine in default sample set whether have the sample mating with this analysis result,If exist, determine the sample that in this default sample set, existence is mated with this vibration signal; If do not exist,Determine in this default sample set and do not have the sample mating with this vibration signal.
Again such as, can obtain corresponding number of taps according to vibration signal, then, judge number of taps withPreset times compares, if identical, obtains network handover request corresponding to preset times; Also be step" obtaining corresponding network handover request according to this vibration signal " can comprise:
The number of taps of obtaining user and knocking this mobile terminal according to this vibration signal;
Judge that whether this number of taps is identical with preset times, if so, obtains net corresponding to this preset timesNetwork handover request.
The preset times set that comprises at least one preset times can be set in actual applications, every kind of number of timesCorresponding a kind of network handover request, the objective network of each network handover request instruction is not identical, such as, number of times1 map network handover request 1, this request instruction need to be switched to WLAN1, and number of times 2 map networks switch pleaseAsk 2, this request instruction need to be switched to WLAN2, number of times 3 map network handover request 3, this request instructionNeed to be switched to mobile data network ...
For example, user is continuous while knocking mobile terminal three times, the vibration signal that acquisition for mobile terminal is corresponding, andWhether be vibration signal that user by knock mobile terminal produced, if so, move if identifying this vibration signalMoving terminal is analyzed this vibration signal, and obtains active user according to analysis result and knock this mobile terminalNumber of taps, here for number of taps is 3, suppose that preset times is for being also at 3 o'clock, the number of taps of obtainingIdentical with preset times, now, obtain network handover request corresponding to preset times, and according to this networkThe network of current connection is switched to this objective network by handover request, supposes that preset times is at 4 o'clock, so,Number of taps is not identical with preset times, now, does not carry out network switching, has avoided mobile terminal that mistake occursOperation. Particularly, preset times can be set according to actual conditions, such as arrange number of taps be 5,Just trigger network switching etc. 6 or 7 times time.
The number of taps that the present embodiment can obtain user and knocks mobile terminal vibration signal analysis,Such as, obtain the frequency spectrum of vibration signal, time and amplitude to frequency are analyzed, and come according to analysis resultObtain corresponding number of taps.
103, according to this network handover request, the network of current connection is switched to this objective network.
Wherein, the mode that the network of current connection is switched to objective network according to network request has multiple, cutsThe mode of changing can be based on current connection network and the type decided of objective network.
Such as, the network of the current connection of mobile terminal is WLAN, when objective network is mobile data network,Now, mobile terminal will be closed WLAN, and opens mobile data network, switches to complete network.
Again such as, when the network of the current connection of mobile terminal is mobile data network, objective network is WLANTime, now, because general WLAN priority is higher than mobile data network, therefore, mobile terminal can be beatenOpen WLAN, can complete network and switch, alternatively, mobile terminal can also be opened WLAN, closes and movesMoving data network, saves electric weight; Particularly, mobile terminal can be according to network handover request to WLANCorresponding access device sends network connecting request, the network identity that this network connecting request is carried WLAN withAnd connect authentication information (such as, wifi password), receive that this access device returns according to network connecting requestResponse message, and be connected to this WLAN according to this response message.
Again such as, the network of the current connection of mobile terminal is WLAN1, when objective network is WLAN2, movesMoving terminal can send network connecting request to access device corresponding to WLAN2 according to network handover request,This network connecting request is carried the network identity of WLAN2 and is connected authentication information (such as, wifi password),Receive the response message that this access device returns according to network connecting request, be connected to this according to this response messageWLAN2, and being connected of disconnection and WLAN1.
Consider the time interval of user's hammer action, moving with knocking of non-user (such as robot etc.)The time interval of doing is not identical, and in fact, user's hammer action is not very fast, alternatively, shakes for improvingThe identification accuracy of moving signal, judge key feature information meet pre-conditioned after, also need knockingMove the corresponding time and analyze; Particularly, judge key feature information meet pre-conditioned after,This call handover method can also comprise:
Obtain the adjacent time interval of knocking this mobile terminal for twice according to this vibration signal;
Judge that this time interval whether in preset range, if so, judges that this vibration signal passes through as userKnock the vibration signal that this mobile terminal produces, if not, judge this vibration signal not as user by knockingThe vibration signal that this mobile terminal produces.
Due to the time interval of user's hammer action, can in the temporal information of vibration data signal, embody,Therefore, can to vibration data signal carry out time series analysis, obtain adjacent knock for twice this mobile terminal timeBetween interval, then, judge that whether this time interval is in preset range; In actual applications, can arrange oneIndividual time range [T3, T4], preferably, T3 is 50ms, T4 is 500ms, if not within the scope of this,This shows that this vibration signal is not that people knocks the vibration signal that mobile terminal produces.
Alternatively, in the present embodiment, vibration signal can be for user be by knocking shaking of mobile terminal screen generationMoving signal, now, can be limited in specific beating position and knock mobile terminal and just can switch by trigger network, canTo prevent that maloperation network from switching; The screen area that knocks network connection icon place such as, user is just passableTrigger network switches; Also,, between step 101 and step 102, this method for switching network can also comprise:
Obtain the beating position that user knocks mobile terminal screen;
Judge whether this beating position is positioned at predeterminable area, the network that this predeterminable area is current network connectsThe screen area at icon place;
If so, carry out the step of obtaining corresponding network handover request according to this vibration signal.
Wherein, the mode of obtaining beating position has multiple, knocks such as responding to user by touch screenBeating position etc.
Alternatively, be user when knocking the vibration signal that mobile terminal screen produces at vibration signal, thisEmbodiment is user by after knocking the vibration signal that mobile terminal produces at this vibration signal of identification, also needsIdentify beating position that user knocks mobile terminal whether on the screen of mobile terminal.
For example, when user knocks wifi network connection icon, acquisition for mobile terminal user knocks wifi network and connectsThe vibration signal that map interlinking mark produces and the beating position on screen; Mobile terminal judges that this beating position isNo is the position at wifi network connection icon place, if so, mobile terminal obtain according to this vibration signal rightThe network handover request of answering, and carry out network switching according to this request.
As from the foregoing, the embodiment of the present invention adopts and obtains the vibration letter that user produces by knocking this mobile terminalNumber, then, obtain corresponding network handover request according to this vibration signal, this network handover request instruction needsThe objective network being switched to, switches to this target network according to this network handover request by the network of current connectionNetwork; This scheme can be knocked the vibration signal automatically switching network that mobile terminal produces by user, without useA series of network handover operation is carried out for terminal in family, for user, only need knock mobile terminalRealize network and switch, in terms of existing technologies, improved the network switching efficiency of mobile terminal, and thenPromote user's experience.
Embodiment bis-,
According to the described method of embodiment mono-, below will be described in further detail for example.
In the present embodiment, will specifically be integrated in mobile terminal with this network switching device, to pass through MikeWind obtains vibration signal, and is switched to wifi network taking mobile data network and is elaborated as example.
As shown in Figure 3, a kind of method for switching network, idiographic flow can be as follows:
301, at mobile terminal under mobile data network, mobile terminal is opened the microphone carrying and is obtainedFor the vibration signal of this mobile terminal.
It should be noted that, this microphone can comprise various types of microphones, such as electret microphone,Silicon microphone etc. If simulation microphone or analog speakers can first be obtained user and move by knockingThe analog signal that moving terminal produces, is then converted to numeral letter by D/A converter module by this analog signalNumber, obtain vibration signal; And if digital microphone or digital loudspeaker can directly be exported numeral letterNumber, without carrying out digital-to-analogue conversion.
302, the signal characteristic information of this vibration signal of acquisition for mobile terminal.
This signal characteristic information comprises: frequency information, amplitude information, temporal information etc., particularly, canVibration signal is carried out to Fourier transformation (FFT), obtain corresponding frequency-region signal, i.e. frequency spectrum, also referred to asSpectrum signal, then obtains temporal information, frequency information and the amplitude letter of this frequency spectrum to this frequency spectrum analysisBreath, concrete analytic process can be with reference to above-described embodiment one associated description.
For example, mobile terminal by this acoustic signals convert to analog electrical signal (such as, by microphone, raiseSound device etc. is changed), then this analog electrical signal is converted to corresponding data signal (such as, pass throughA/D converter), i.e. vibration signal, and this data signal is carried out to dsp processing, to obtain this data signalSignal characteristic information (such as, frequency information, amplitude information, temporal information etc.). Particularly, numeralThe associated description of signal processing in can reference example one, repeats no more herein.
303, to judge whether this signal characteristic information meets pre-conditioned for mobile terminal, to judge this vibration letterNumber be whether the vibration signal that user produces by knocking this mobile terminal, if so, perform step 304, ifNo, flow process finishes.
Particularly, comprise in key feature information: when frequency information, amplitude information and temporal information, pre-If condition can comprise: frequency information, amplitude information and temporal information meet the condition of various correspondences, thanAs, the frequency distribution of vibration data signal continuously and frequency bandwidth reach predetermined width value, vibration data signalAverage amplitude be greater than default amplitude, vibration data signal cycle in preset range. Wherein, default barPart can the user based on obtaining in advance knocks the vibration signal that smart mobile phone a produces and obtains, now, and keyCharacteristic information meets pre-conditioned, thinks that this vibration signal is the vibration signal that knocks generation, otherwise,Not for knocking the vibration signal of generation.
304, mobile terminal extracts this vibration signal, this vibration signal is analyzed, and according to analysisThe number of taps that result is obtained user and knocked this mobile terminal.
Particularly, mobile terminal can be analyzed frequency spectrum corresponding to vibration signal, such as, to frequency spectrumTime and amplitude are analyzed, and obtain corresponding number of taps according to this analysis result.
305, mobile terminal judges that whether this number of taps is identical with preset times, if so, performs step306, if not, flow process finishes.
Particularly, after obtaining number of taps, smart mobile phone calls and to set in advance from local data baseNumber of times set is extracted the number of times that preset times and step 305 obtain and is contrasted from this set.
306, network handover request corresponding to this preset times of acquisition for mobile terminal, this network handover request refers toShow the default wifi network that need to be switched to.
Wherein, need the wifi network switching to set according to actual conditions, such as, multiple wifi recordedUnder network condition, can choose a wifi network corresponding with this preset times.
307, mobile terminal sends to access device corresponding to this default wifi network according to this network handover requestNetwork insertion request, wherein, mark and the authentication information of default wifi network carried in this network insertion request.
Specifically, the network identity that mobile terminal can carry according to network handover request is searched storage in this localityAuthentication information, then, the access device corresponding to this wifi network sends network insertion request.
308, mobile terminal receives the response message that this access device returns according to this network insertion request, andBe connected to this default wifi network according to this response message.
Particularly, mobile terminal can be connected to default wifi network according to this response message, and automatically disconnectsWith being connected of mobile data network, can save like this electric weight.
Alternatively, this vibration signal can be the vibration signal that user produces by knocking mobile terminal screen,Now, judge this vibration signal as user by knock mobile terminal produce vibration signal after, extractBefore this vibration signal, also comprise:
Acquisition for mobile terminal user knocks the beating position of mobile terminal screen;
Judge whether this beating position is positioned at the screen area at mobile data network connection icon place; If so,Carry out the step of extracting this vibration signal.
Such as, when user knocks cell phone network connection icon " 4g ", generation is knocked in mobile terminal collectionVibration signal and the beating position on mobile phone screen, mobile terminal judges that whether this beating position is at iconIn the screen area at " 4g " place, now, be clearly judged as YES, extract this vibration signal, and rootObtain map network handover request according to this vibration signal, it is default that this network handover request instruction need to be switched toWifi network, the 4g network of current connection is switched to default wifi network by network handover request afterwards.
As from the foregoing, the embodiment of the present invention adopts the vibration signal of mobile terminal collection for it, then, movesWhether moving this vibration signal of terminal recognition is the vibration signal that user produces by knocking this mobile terminal, if so,Move and obtain corresponding network handover request according to this vibration signal, it is default that this request instruction need to be switched toWifi network, mobile terminal switches and is connected to this wifi network according to this network handover request; This scheme canBy user knock mobile terminal produce vibration signal automatically switching network (mobile data network is switched toWifi network), carry out a series of network handover operation without user for terminal, for user, only needKnock mobile terminal and can realize network switching, in terms of existing technologies, improved the net of mobile terminalNetwork switching efficiency, and the one-handed performance of being also more convenient for realizing, has promoted user's experience.
Embodiment tri-,
In order to implement better above method, the embodiment of the present invention also provides a kind of network switching device, this netNetwork switching device shifter can be integrated in mobile terminal, this mobile terminal specifically can comprise mobile phone, panel computer,The equipment such as notebook computer or individual calculus (PC, PersonalComputer). As shown in Fig. 4 a, this netNetwork switching device shifter can also comprise signal acquisition module 401, acquisition request module 402 and handover module 403,As follows:
(1) signal acquisition module 401;
Signal acquisition module 401, the vibration signal producing by knocking this mobile terminal for obtaining user.
Such as, signal acquisition module 401 can comprise: gather submodule, recognin module and extract submodulePiece;
This collection submodule, for gathering the vibration signal for this mobile terminal;
Whether this recognin module is that user knocks shaking of this mobile terminal generation for identifying this vibration signalMoving signal;
This extraction submodule, for knocking this mobile terminal at this vibration signal of recognin Module recognition for userProduce vibration signal time, extract this vibration signal.
Because mobile terminal generally has microphone, loudspeaker and receiver, therefore, can utilize eventually mobileMicrophone, loudspeaker or receiver that end carries receive voice signal, and this voice signal is converted intoVibration signal, that is:
This collection submodule, specifically can be for passing through loudspeaker, the microphone or called of this mobile terminalDevice gathers the vibration signal for this mobile terminal.
Wherein, this microphone can comprise various types of microphones, such as electret microphone, silicon MikeWind etc., and loudspeaker also can comprise various types of loudspeakers. If simulation microphone or simulation are raised one's voiceDevice, can first obtain the analog signal that user produces by knocking mobile terminal, then turns by digital-to-analogueThis analog signal is converted to data signal by die change piece, obtains vibration signal; And if digital microphone or numberWord loudspeaker, direct output digit signals, without carrying out digital-to-analogue conversion.
It should be noted that, except microphone and loudspeaker, can also comprise the device of any sound-electric conversionPart, does not repeat them here.
Wherein, recognin module, can be specifically for: the signal characteristic information that obtains this vibration signal; SentenceWhether disconnected this signal characteristic information meets pre-conditioned; If so, determine that this vibration signal is for user is by strikingHit the vibration signal that this mobile terminal produces; If not, determine that this vibration signal is not for user is by knocking thisThe vibration signal that mobile terminal produces. Wherein, signal characteristic information can comprise: frequency information (comprises frequentlyRate distribution, frequency bandwidth etc.), in amplitude information (comprising average amplitude), temporal information (signal period)At least one, certainly, can also comprise other characteristic informations.
For example, signal characteristic information comprises: when frequency information, amplitude information, temporal information, and judgement respectivelyWhether this frequency information meets predeterminated frequency condition, and whether this amplitude information meets default amplitude condition, this timeBetween information whether meet Preset Time condition, wherein, predeterminated frequency condition, default amplitude condition, when defaultBetween condition can be respectively according to frequency information corresponding to preset number signal, amplitude information, temporal information setting,This default vibration signal is that mobile terminal is subject to user and knocks the vibration signal of generation. The present embodiment needs judgementIt is pre-conditioned whether multiple signal characteristic informations meet, while identifying the vibration signal that knocks generation, such as,Said frequencies information, amplitude information, three judgements of temporal information, can the judged result based on repeatedly knowNot, for example, when three judged results are while being, just determine that vibration signal is the vibration signal that knocks generation,Or, when having certain several judged result in multiple judged results when being, determine that vibration signal is for knocking generationVibration signal, these all can be set according to actual conditions, judged result is that the situation that is is more, knowOther precision is higher.
(2) acquisition request module 402;
Acquisition request module 402, for obtaining corresponding network handover request, this net according to this vibration signalNetwork handover request is indicated the objective network that need to be switched to.
Such as, this acquisition request module 402 can specifically comprise: determine submodule and acquisition request submodule;
This determines submodule, for determining whether default sample set exists the sample mating with this vibration signalThis;
This acquisition request submodule, for determining that at definite submodule default sample set exists and this vibrationWhen the sample of Signal Matching, obtain the network handover request that matched sample is corresponding.
For example, determine submodule, specifically can be for: the signal characteristic information that obtains this vibration signal; ReallySurely in default sample set, whether there is the sample mating with this signal characteristic information; If exist, determining shouldIn default sample set, there is the sample mating with this vibration signal; If do not exist, determine this default sampleIn set, there is not the sample mating with this vibration signal.
Wherein, in this default sample set, can comprise at least one sample, this sample can be answered according to realityWith demand arrange.
Alternatively, this acquisition request module 402 can specifically comprise that number of times obtains submodule, judges submoduleAnd acquisition request submodule;
This number of times obtains submodule, knocks knocking of this mobile terminal for obtaining user according to this vibration signalNumber of times;
This judgement submodule, for judging that whether this number of taps is identical with preset times;
This acquisition request submodule, in the time judging that submodule is judged as YES, obtains this preset times correspondenceNetwork handover request.
(3) handover module 403;
Handover module 403, for switching to this target according to this network handover request by the network of current connectionNetwork.
Wherein, the mode that the network of current connection is switched to objective network according to network request has multiple, cutsThe mode of changing can be based on current connection network and the type decided of objective network.
Such as, the network of the current connection of mobile terminal is WLAN, when objective network is mobile data network,Now, mobile terminal will be closed WLAN, and opens mobile data network, switches to complete network.
Again such as, when the network of the current connection of mobile terminal is mobile data network, objective network is WLANTime, now, because general WLAN priority is higher than mobile data network, therefore, mobile terminal can be beatenOpen WLAN, can complete network and switch, alternatively, mobile terminal can also be opened WLAN, closes and movesMoving data network, saves electric weight; Particularly, mobile terminal can be according to network handover request to WLANCorresponding access device sends network connecting request, the network identity that this network connecting request is carried WLAN withAnd connect authentication information (such as, wifi password), receive that this access device returns according to network connecting requestResponse message, and be connected to this WLAN according to this response message.
With reference to figure 4b, be the vibration signal that user produces by knocking mobile terminal screen at this vibration signal;Situation under, on the basis of said apparatus, can also comprise position acquisition module 404 and judge module 405;
This position acquisition module 404, for obtaining corresponding in this acquisition request module according to this vibration signalBefore network handover request, this signal acquisition module obtains the vibration that user produces by knocking this mobile terminalAfter signal, obtain user and knock the beating position of mobile terminal screen;
This judge module 405, for judging whether this beating position is positioned at predeterminable area, this predeterminable areaFor the screen area at the network connection icon place of current network;
Wherein, this acquisition request module 402, specifically in the time that this judge module 405 is judged as YES, according toThis vibration signal obtains corresponding network handover request.
When concrete enforcement, above modules can be used as independently entity and realizes, and also can carry out arbitrarilyCombination, realizes as same or several entities, and the concrete enforcement of above modules can be referring to aboveEmbodiment of the method, does not repeat them here.
As from the foregoing, the embodiment of the present invention adopts signal acquisition module 401 to obtain user and move by knocking thisThe vibration signal that terminal produces, then, obtains corresponding by acquisition request module 402 according to this vibration signalNetwork handover request, this network handover request is indicated the objective network that need to be switched to, by handover module 403According to this network handover request, the network of current connection is switched to this objective network; This scheme can be by usingThe vibration signal automatically switching network that mobile terminal produces is knocked at family, carries out a series of without user for terminalNetwork handover operation, for user, only need knock mobile terminal and can realize network and switch, with respect toPrior art, has improved the network switching efficiency of mobile terminal, and then has promoted user's experience.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of above-described embodimentSuddenly be can carry out the hardware that instruction is relevant by program to complete, this program can be stored in a computer-readableIn storage medium, storage medium can comprise: read-only storage (ROM, ReadOnlyMemory),Random access memory (RAM, RandomAccessMemory), disk or CD etc.
A kind of method for switching network and the device that above the embodiment of the present invention are provided are described in detail,Apply specific case herein principle of the present invention and embodiment have been set forth, above embodiment'sIllustrate just for helping to understand method of the present invention and core concept thereof; Meanwhile, for the technology of this areaPersonnel, according to thought of the present invention, all will change in specific embodiments and applications, combineThe above, this description should not be construed as limitation of the present invention.

Claims (14)

1. a method for switching network, is characterized in that, comprising:
Obtain the vibration signal that user produces by knocking described mobile terminal;
Obtain corresponding network handover request according to described vibration signal, described network handover request instruction needsThe objective network being switched to;
According to described network handover request, the network of current connection is switched to described objective network.
2. method for switching network as claimed in claim 1, is characterized in that, described according to described vibration letterThe step of number obtaining corresponding network handover request specifically comprises:
Determine in default sample set and whether have the sample mating with described vibration signal;
If exist, obtain the network handover request that matched sample is corresponding.
3. method for switching network as claimed in claim 2, is characterized in that, described definite default sample setIn closing, whether exist the step of the sample mating with described vibration signal specifically to comprise:
Obtain the signal characteristic information of described vibration signal;
Determine in default sample set and whether have the sample mating with described signal characteristic information;
If exist, determine the sample that in described default sample set, existence is mated with described vibration signal;
If do not exist, determine in described default sample set and do not have the sample mating with described vibration signal.
4. method for switching network as claimed in claim 1, is characterized in that, described according to described vibration letterThe step of number obtaining corresponding network handover request specifically comprises:
The number of taps of obtaining user and knocking described mobile terminal according to described vibration signal;
Judge that whether described number of taps is identical with preset times, if so, obtains described preset times correspondenceNetwork handover request.
5. method for switching network as claimed in claim 1, is characterized in that, described vibration signal is userThe vibration signal producing by knocking mobile terminal screen;
Before obtaining corresponding network handover request according to described vibration signal, obtain user by knockingAfter stating the vibration signal of mobile terminal generation, described method for switching network also comprises:
Obtain the beating position that user knocks mobile terminal screen;
Judge whether described beating position is positioned at predeterminable area, the network that described predeterminable area is current networkThe screen area at connection icon place;
If so, carry out the step of obtaining corresponding network handover request according to described vibration signal.
6. method for switching network as claimed in claim 1, is characterized in that, described in obtain user by strikingThe step of hitting the vibration signal of described mobile terminal generation specifically comprises:
Gather the vibration signal for described mobile terminal;
Whether identify described vibration signal is that user knocks the vibration signal that described mobile terminal produces;
If so, extract this vibration signal.
7. method for switching network as claimed in claim 6, is characterized in that, the described vibration letter of described identificationNumber be whether that the step that user knocks the vibration signal that described mobile terminal produces specifically comprises:
Obtain the signal characteristic information of described vibration signal;
Judge whether described signal characteristic information meets pre-conditioned;
If so, determine that described vibration signal is the vibration signal that user produces by knocking described mobile terminal;
If not, determine the vibration letter that described vibration signal does not produce by knocking described mobile terminal for userNumber.
8. a network switching device, is characterized in that,
Signal acquisition module, the vibration signal producing by knocking described mobile terminal for obtaining user;
Acquisition request module, for obtaining corresponding network handover request, described net according to described vibration signalNetwork handover request is indicated the objective network that need to be switched to;
Handover module, for switching to described target according to described network handover request by the network of current connectionNetwork.
9. network switching device as claimed in claim 8, is characterized in that, described request acquisition module bagDraw together: determine submodule and acquisition request submodule;
Described definite submodule, mates for determining whether default sample set exists with described vibration signalSample;
Described request is obtained submodule, for determine at definite submodule default sample set exist with described inWhen the sample of vibration signal coupling, obtain the network handover request that matched sample is corresponding.
10. network switching device as claimed in claim 9, is characterized in that, described definite submodule toolBody is used for:
Obtain the signal characteristic information of described vibration signal;
Determine in default sample set and whether have the sample mating with described signal characteristic information;
If exist, determine the sample that in described default sample set, existence is mated with described vibration signal;
If do not exist, determine in described default sample set and do not have the sample mating with described vibration signal.
11. network switching devices as claimed in claim 8, is characterized in that, described request acquisition moduleComprise: number of times obtains submodule, judges submodule and acquisition request submodule;
Described number of times obtains submodule, knocks described mobile terminal for obtaining user according to described vibration signalNumber of taps;
Described judgement submodule, for judging that whether described number of taps is identical with preset times;
Described request is obtained submodule, in the time judging that submodule is judged as YES, obtains described preset timesCorresponding network handover request.
12. network switching devices as claimed in claim 8, is characterized in that, described vibration signal is for usingThe vibration signal that family produces by knocking mobile terminal screen;
This network switching device also comprises: position acquisition module and judge module;
Described position acquisition module, for obtaining correspondence at described request acquisition module according to described vibration signalNetwork handover request before, described signal acquisition module obtains user and produces by knocking described mobile terminalVibration signal after, obtain user and knock the beating position of mobile terminal screen;
Described judge module, for judging whether described beating position is positioned at predeterminable area, described preset areasTerritory is the screen area at the network connection icon place of current network;
Wherein, described request acquisition module, specifically in the time that described judge module is judged as YES, according to instituteState vibration signal and obtain corresponding network handover request.
13. network switching devices as claimed in claim 8, is characterized in that, described signal acquisition moduleComprise: gather submodule, recognin module and extract submodule;
Described collection submodule, for gathering the vibration signal for described mobile terminal;
Whether described recognin module is that user knocks described mobile terminal product for identifying described vibration signalRaw vibration signal;
Described extraction submodule, in the described movement for user knocks of this vibration signal of recognin Module recognitionTerminal produce vibration signal time, extract this vibration signal.
14. network switching devices as claimed in claim 13, is characterized in that, described recognin module,Specifically for:
Obtain the signal characteristic information of described vibration signal;
Judge whether described signal characteristic information meets pre-conditioned;
If so, determine that described vibration signal is the vibration signal that user produces by knocking described mobile terminal;
If not, determine the vibration letter that described vibration signal does not produce by knocking described mobile terminal for userNumber.
CN201610038594.4A 2016-01-20 2016-01-20 Network switching method and device Pending CN105611589A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610038594.4A CN105611589A (en) 2016-01-20 2016-01-20 Network switching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610038594.4A CN105611589A (en) 2016-01-20 2016-01-20 Network switching method and device

Publications (1)

Publication Number Publication Date
CN105611589A true CN105611589A (en) 2016-05-25

Family

ID=55991051

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610038594.4A Pending CN105611589A (en) 2016-01-20 2016-01-20 Network switching method and device

Country Status (1)

Country Link
CN (1) CN105611589A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080090572A1 (en) * 2006-10-11 2008-04-17 Interdigital Technology Corporation Increasing a secret bit generation rate in wireless communication
CN102595537A (en) * 2012-03-23 2012-07-18 青岛海信移动通信技术股份有限公司 Method, device and terminal for switching network access points
CN102917425A (en) * 2012-11-15 2013-02-06 中国联合网络通信集团有限公司 Operator network switching method and device
CN103248751A (en) * 2012-02-13 2013-08-14 联想(北京)有限公司 Electronic device and method for realizing functional control thereof
CN103645845A (en) * 2013-11-22 2014-03-19 华为终端有限公司 Knocking control method and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080090572A1 (en) * 2006-10-11 2008-04-17 Interdigital Technology Corporation Increasing a secret bit generation rate in wireless communication
CN103248751A (en) * 2012-02-13 2013-08-14 联想(北京)有限公司 Electronic device and method for realizing functional control thereof
CN102595537A (en) * 2012-03-23 2012-07-18 青岛海信移动通信技术股份有限公司 Method, device and terminal for switching network access points
CN102917425A (en) * 2012-11-15 2013-02-06 中国联合网络通信集团有限公司 Operator network switching method and device
CN103645845A (en) * 2013-11-22 2014-03-19 华为终端有限公司 Knocking control method and terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
宋强 等: "《清华大学出版社》", 1 January 2013 *

Similar Documents

Publication Publication Date Title
CN104521247B (en) Bluetooth headset hearing aid and anti-noise method and apparatus
CN104618595B (en) Talking mode switching method and apparatus
CN105682258B (en) A kind of switching method and apparatus of subscriber identification card
CN105704839B (en) A kind of Bluetooth connecting method and device
CN105719672A (en) Recording scene mode switching method and recording scene mode switching mode device
CN109121059A (en) Loudspeaker plug-hole detection method and Related product
CN206672078U (en) A kind of sound card for possessing voice control function
CN105549744B (en) A kind of screen luminance of terminal adjusting method and device
CN105611065A (en) Application switching method and device
CN105721679A (en) Conversation switching method and conversation switching device
CN105472172B (en) Switching method, device and the computer readable storage medium of call mode
CN105577863B (en) The way of recording and device
CN108154886A (en) Noise suppressing method and device, electronic device and computer readable storage medium
CN105718165B (en) A kind of starting method and device of terminal background application
CN105681658B (en) A kind of image processing method and device
CN105721676A (en) Terminal processing method and terminal processing device
CN105611589A (en) Network switching method and device
CN105718773A (en) Terminal unlocking method and device
CN105611066A (en) Communication switching method and device
CN105721678A (en) Calling processing method and calling processing device
CN105718178A (en) Display method and device of pushed message
CN105491297B (en) A kind of method of adjustment and device of camera parameter
CN110099328A (en) A kind of intelligent sound box
CN113099338A (en) Intelligent control's audio chip and wireless earphone of making an uproar that falls
CN105718162A (en) Transverse and vertical screen switching method and apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160525

RJ01 Rejection of invention patent application after publication