CN105491594A - Network connection processing method and device - Google Patents
Network connection processing method and device Download PDFInfo
- Publication number
- CN105491594A CN105491594A CN201510824973.1A CN201510824973A CN105491594A CN 105491594 A CN105491594 A CN 105491594A CN 201510824973 A CN201510824973 A CN 201510824973A CN 105491594 A CN105491594 A CN 105491594A
- Authority
- CN
- China
- Prior art keywords
- current network
- network
- described current
- waiting time
- state parameter
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/02—Arrangements for optimising operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/08—Testing, supervising or monitoring using real traffic
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention relates to a network connection processing method and device. The network connection processing method comprises the steps of detecting a current network and obtaining a current network state parameter; determining the current waiting duration for connection of the current network based on the current network state parameter; and connecting the current network according to the current waiting duration. Accordingly, the reasonable current waiting duration can be set based on the network state parameter of a to-be-connected network before the network connection, so the problem that a user cannot start a new connection network without waiting for the same relatively long waiting time under any circumstance is avoided, and consequently the user experience is improved efficiently.
Description
Technical field
The disclosure relates to network communication field, particularly relates to network connection processing method and device.
Background technology
Now, mobile networking equipment popularity has reached very high degree, and the place of providing services on the Internet is also more general.When interconnection network, the required stand-by period is unpredictable.Such as, in WiFi smart machine networking process, if WiFi network quality is better, can be very fast be connected on smart machine, if WiFi network is second-rate, then need the longer connect hours, and in order to ensure the power that connects into of user, common way arranges the longer connect hours, no matter connect the WiFi network of which kind of quality, all process according to the same longer connect hours arranged, and the longer connect hours can make user wait for the longer time, can bring poor Consumer's Experience thus.
Summary of the invention
Disclosure embodiment provides network connection processing method and device.Described technical scheme is as follows:
According to the first aspect of disclosure embodiment, a kind of network connection processing method is provided, comprises:
Detect current network, obtain current network state parameter;
According to described current network state parameter, determine the current waiting time connecting described current network;
Described current network is connected according to described current waiting time.
In one embodiment, described detection current network, obtains current network state parameter, comprising:
Test request is initiated to providing the router of described current network;
Receive the feedback response that described router is made for described test request;
Determine the time interval between described test request and described feedback response, the described time interval is defined as described current network state parameter.
In one embodiment, described detection current network, obtains current network state parameter, comprising:
Obtain the current signal strength of described current network;
The current signal strength of described current network is defined as described current network state parameter.
In one embodiment, described detection current network, obtains current network state parameter, comprising:
Obtain the network type of described current network;
Network state parameters corresponding for the described network type preset is defined as the network state parameters of described current network.
In one embodiment, described according to described current network state parameter, determine the current waiting time connecting described current network, comprising:
According to the network state parameters preset and the corresponding relation between waiting time, determine the waiting time that described current network state parameter is corresponding;
Waiting time corresponding for described current network state parameter is defined as described current waiting time.
In one embodiment, the described current waiting time according to described current network connects described current network, comprising:
Start the attended operation to described current network, monitoring attended operation duration;
When described attended operation duration reaches described current waiting time, connect with described current network.
According to the second aspect of disclosure embodiment, a kind of network connection handling device is provided, comprises:
Detection module, for detecting current network, obtains current network state parameter;
Determination module, for according to described current network state parameter, determines the current waiting time connecting described current network;
Link block, connects described current network for the described current waiting time determined according to described determination module.
In one embodiment, described detection module, comprising:
Send submodule, for provide described current network router initiate test request;
Receive submodule, for receiving the feedback response that described router is made for described test request;
First determines submodule, for determining the time interval between described test request and described feedback response, the described time interval is defined as described current network state parameter.
In one embodiment, described detection module, comprising:
First obtains submodule, for obtaining the current signal strength of described current network;
Second determines submodule, and the current signal strength for the described current network obtained by described acquisition submodule is defined as described current network state parameter.
In one embodiment, described detection module, comprising:
Second obtains submodule, for obtaining the network type of described current network;
3rd determines submodule, for network state parameters corresponding for the described network type preset being defined as the network state parameters of described current network.
In one embodiment, described determination module comprises:
4th determines submodule, for according to the network state parameters preset and the corresponding relation between waiting time, determines the waiting time that described current network state parameter is corresponding;
5th determines submodule, for waiting time corresponding for described current network state parameter is defined as described current waiting time.
In one embodiment, described link block comprises:
Operator module, for starting the attended operation to described current network, monitoring attended operation duration;
Connexon module, for when described attended operation duration reaches described current waiting time, connects with described current network.
According to the third aspect of disclosure embodiment, provide a kind of network connection handling device, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Detect current network, obtain current network state parameter;
According to described current network state parameter, determine the current waiting time connecting described current network;
Described current network is connected according to described current waiting time.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect: by scheme of the present disclosure, before carrying out network connection, can according to network of network state parameter to be connected, set out rational current waiting time, avoid user under any circumstance all to need to wait for after the same longer stand-by period, just can start new interconnection network, thus effectively improve Consumer's Experience.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in specification and to form the part of this specification, shows and meets embodiment of the present disclosure, and is used from specification one and explains principle of the present disclosure.
Fig. 1 is the flow chart of a kind of network connection processing method according to an exemplary embodiment.
Fig. 2 is the flow chart of the another kind of network connection processing method according to an exemplary embodiment.
Fig. 3 is the flow chart of another the network connection processing method according to an exemplary embodiment.
Fig. 4 is the flow chart of another the network connection processing method according to an exemplary embodiment.
Fig. 5 is the block diagram of a kind of network connection handling device according to an exemplary embodiment.
Fig. 6 is the block diagram of the another kind of network connection handling device according to an exemplary embodiment.
Fig. 7 is the block diagram of another the network connection handling device according to an exemplary embodiment.
Fig. 8 is the block diagram of another the network connection handling device according to an exemplary embodiment.
Fig. 9 is the block diagram of another the network connection handling device according to an exemplary embodiment.
Figure 10 is the block diagram of another the network connection handling device according to an exemplary embodiment.
Figure 11 is the block diagram being applicable to network connection handling device according to an exemplary embodiment.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Execution mode described in following exemplary embodiment does not represent all execution modes consistent with the disclosure.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present disclosure are consistent.
Usually, can communicate with the mobile device of user (as mobile phone) after smart machine (as intelligent bulbs, smart jack) needs to be linked into router or server, receive the control command that mobile device sends.So user is after taking smart machine, what first will do is exactly that smart machine is connected on the network that router provides, and this step is that most critical is also the most difficult often.Due to the network traffic conditions more complicated in room, smart machine couple in router complexity is different.
When still failing to be connected to smoothly after smart machine exceedes certain hour in the network that router provides, can point out in the app of the mobile device of user, ask user to restart smart machine and again access or check whether smart machine breaks down.At this moment, the waiting time of interconnection network just seems important.If it is longer that waiting time is arranged, when so probably, smart machine poor in network condition is not connected to network always, the app of mobile device just will can feed back to user's connection at the end of the waiting time that this is longer.Give an example, user uses app to control smart machine to start the network that connection route device provides, app can wait for the feedback information that smart machine accesses smoothly, if smart machine is linked into network very soon, app receives the feedback message that smart machine accesses smoothly soon, user need not wait for a long time, but once smart machine fails the words of smooth access network always, app waits for the state of smart machine access feedback by being in, now, if the waiting time arranged is longer, so Consumer's Experience will be very poor.
To this, disclosure embodiment provides a kind of technical scheme, this technical scheme is before smart machine networking, first detect current network, obtain current network state parameter, the current waiting time connecting current network is determined according to current network state parameter, because current network state parameter can reflect current network quality, therefore, this technical scheme is waiting time of different network settings different lengths according to network quality situation, the waiting time such as, determined when network is poor is just longer, the waiting time determined when network quality is better is just shorter, good Consumer's Experience is reached by reasonably mating.
Fig. 1 is the flow chart of the network connection processing method according to an exemplary embodiment, said method can be used in smart machine, or in the terminal that controls smart machine or APP, terminal can be mobile terminal or fixed terminal, and disclosure embodiment does not limit.As shown in Figure 1, the method comprises the following steps S11-S13:
In step s 11, detect current network, obtain current network state parameter.
Wherein, can be perform step S11 under network off-state, to avoid the method still provided according to disclosure embodiment under network connection state to carry out interconnection network, avoid causing the unnecessary wasting of resources.
In step s 12, according to current network state parameter, determine the current waiting time connecting current network.
In step s 13, current network is connected according to current waiting time.
In one embodiment, generally speaking, when carrying out network connection, required waiting time is difficult to expect.Under the state that technical scheme of the present disclosure disconnects at network, detect current network state parameter.Any one in the terminal that the disclosure can be associated with networked devices by the module of the APP on networked devices, networked devices self, detects current network state parameter.Determine according to current network state parameter to be connected to the waiting time consumed needed for current network, namely connect the current waiting time of current network.
Wherein, step S13 can be embodied as following steps: start the attended operation to current network, and monitors attended operation duration; When attended operation duration reaches current waiting time, connect with current network.That is, when attended operation duration reaches current waiting time, set up with current network and be connected.
Particularly, connection handling process is as follows: if when attended operation duration reaches current waiting time, and unsuccessful access current network then can send the prompting for informing SCN subscriber connection network failure, make user know connection failure, take next step measure to facilitate user; Can also be re-execute step S13, thus not need user manually to restart attended operation to current network, be user-friendly to, and repeatedly repeat attended operation, also improve speed and success rate that network connects; If before attended operation duration reaches current waiting time, just successfully access current network, then process ends.
In addition, in the process performing step S13, can on the interface of interconnection network, the progress bar of display attended operation duration, such as, design a time shaft, the length of this time shaft is current waiting time, when performing step S13, the real-time size of attended operation duration can be demonstrated on a timeline simultaneously, thus user can be made to know the progress of attended operation, alleviating the impatience that user etc. bides one's time, improving the Consumer's Experience of user when waiting for network connection.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect: by scheme of the present disclosure, before carrying out network connection, can according to network of network state parameter to be connected, set out rational current waiting time, avoid user under any circumstance all to need to wait for after the same longer stand-by period, just can start new interconnection network, thus effectively improve Consumer's Experience.
Current network state parameter in disclosure embodiment can be and provide test between the router of current network after time interval between the test request that obtains and feedback response, also can be the current signal strength of current network, also can be the default network state parameters corresponding with network type that is current network.
Describe respectively below and how to obtain above-mentioned various types of current network state parameter:
(1) as shown in Figure 2, step S11 comprises the following steps S21-S23, is used as current network state parameter to obtain the following time interval:
In the step s 21, to providing the router of described current network to initiate test request.
In step S22, the feedback response that receiving router is made for test request.
In step S23, determine the time interval between test request and feedback response, current network state parameter will be defined as the time interval.
Such as, to providing the router of current network to send test pack, and transmitting time is recorded; Receive the feedback packet that this router returns for test pack, and record time of reception; Determine the time interval between transmitting time and time of reception; Current network state parameter will be defined as the time interval.In one embodiment, before connection current network, first to providing the router of current network to send multiple test pack, and the transmitting time of each test pack can be recorded respectively, then recording the return time of each feedback packet that router returns.The time interval between the transmitting time calculating some test packs and the return time of feedback packet corresponded is above-mentioned current time interval.Particularly, determine that the method in this time interval may be embodied as any one method following.
Method one: calculate N1 test pack of transmission and the time difference of corresponding N1 the feedback packet received respectively, select front M (M<N1) the individual time difference that numerical value in all time differences is larger, do the mean value of this front M time difference, using this mean value as the time interval.
Method two: calculate N2 test pack of transmission and the time difference of corresponding N2 the feedback packet received respectively.Easily draw, this time difference meets normal distribution law.According to the data of obtained a N2 time difference, the normal function meeting the distribution of this time difference reversely can be derived.According to the normal function derived, get the time difference distributed areas that its confidential interval is X% (X>70), using the upper limit of these time difference distributed areas as the time interval.
The time interval can be obtained, using this time interval as current network state parameter by said method.
The technical scheme that disclosure embodiment provides can comprise following beneficial effect: the above-mentioned time interval can embody the duration between connection and current network needed for data interaction more accurately, using this time interval as current network state parameter to determine current waiting time, more meet network actual conditions, more accurately.
(2) above-mentioned current network state parameter can also be the current signal strength of current network, and now, step S11 can be embodied as: the current signal strength obtaining current network; The current signal strength of current network is defined as current network state parameter.Current network state parameter also can be in the network packet loss rate of current network, network delay, network throughput and average network transfer speeds any one or multiple.Current signal strength can embody current network state more accurately, using current signal strength as current network state parameter to determine current waiting time, more meet network actual conditions, more accurately.
(3) above-mentioned current network state parameter can also be the network state parameters corresponding with the network type of current network, and now, step S11 can be embodied as: the network type obtaining current network; Network state parameters corresponding for default network type is defined as the network state parameters of current network.Wherein, network type can be the network of any type such as WIFI network, cellular mobile communications network.Can arrange its network state parameters for often kind of network type in advance, the network state parameters such as arranging WIFI network is aforesaid time interval, and the network state parameters arranging cellular mobile communications network is signal strength signal intensity.Like this, the method that corresponding network state parameters provides to implement disclosure embodiment can be set according to the feature of network.
In one embodiment, above-mentioned steps S12 can be embodied as step D: according to the network state parameters preset and the corresponding relation between waiting time, determine the waiting time that current network state parameter is corresponding; Waiting time corresponding for current network state parameter is defined as current waiting time.
Such as, when network state parameters is the above-mentioned time interval, above-mentioned steps D can be embodied as under type A or mode B:
Mode A
Preset relation between the time interval that step D can comprise the steps: steps A 1, basis is preset and waiting time, the waiting time that the time interval that determining step S23 determines is corresponding; Steps A 2, is defined as the current waiting time connecting current network the waiting time corresponding time interval.
Wherein, corresponding relation can be default time interval interval and the first corresponding relation between waiting time, also can be the second corresponding relation between the default time interval and waiting time.
If the first corresponding relation, as shown in Figure 3, steps A 1 can comprise the following steps S31-S33:
In step S31, in the time interval interval of presetting, determine that the time interval belonging to this time interval is interval.
In step s 32, interval with the corresponding relation of waiting time in the time interval of presetting, determine the waiting time corresponding to time interval interval belonging to the time interval.
In step S33, is defined as waiting time corresponding to the time interval waiting time determined.
In this corresponding relation, the time interval that number range is larger is interval, and corresponding waiting time is longer; The time interval that number range is less is interval, and corresponding waiting time is shorter.If interval greater than the upper limit in the time interval interval of presetting, then think that this network of network communication quality is not ideal enough.In this case, the communication quality that can feed back to this network of user is not good, do not advise connecting this network, by judging whether the time interval drops in default time interval interval, reject the network that network connection quality is poor, avoid the stand-by period of user's at substantial when the network that quality of connection is poor.If the time interval drops in default time interval interval, then can think that the communication quality of this network is better, can continue to perform this programme.
If the second corresponding relation, in the second corresponding relation, list the waiting time corresponding to each time interval, thus steps A 1 can be embodied as: in the second corresponding relation, the waiting time that the time interval that finding step S23 determines is corresponding, the waiting time found is defined as current waiting time.
Mode B
Utilize following formula to calculate current waiting time, computing formula is as follows:
T=T
0*K
Wherein, T represents current waiting time, T
0represent the time interval that step S23 determines, K is more than or equal to 1.
In one embodiment, can arrange three time interval intervals, the K of interval corresponding different numerical values recited of each time interval, judges T
0the residing time interval is interval, and using interval for the residing time interval corresponding K as T
0corresponding K, recycles above-mentioned formulae discovery current waiting time.Or the numerical value of K is changeless, such as, be 1,1.1 or other numerical value being greater than 1.Can find out, utilize the current waiting time that this formulae discovery goes out, be positively related with the time interval, the time interval is long, and current waiting time is just long; The time interval is short, and current waiting time is just short.
Again such as, when current network state parameter is current signal strength, above-mentioned steps D can be embodied as: the network signal intensity that step B1, basis are default and the preset relation between waiting time, determines the waiting time that current signal strength is corresponding; Step B2, is defined as current waiting time of current network waiting time corresponding for current signal strength.
Wherein, corresponding relation can be default signal strength signal intensity interval and the 3rd corresponding relation between waiting time, also can be default signal strength signal intensity and the 4th corresponding relation between waiting time.
If the 3rd corresponding relation, as shown in Figure 4, step B1 can comprise the following steps S41-S43:
In step S41, in the signal strength signal intensity interval of presetting, determine that the signal strength signal intensity belonging to current signal strength is interval.
In step S42, interval with the corresponding relation of waiting time in the signal strength signal intensity preset, determine the waiting time corresponding to signal strength signal intensity interval belonging to current signal strength.
In step S43, the waiting time determined is defined as current waiting time.
In this corresponding relation, the signal strength signal intensity that number range is larger is interval, and corresponding waiting time is longer; The signal strength signal intensity that number range is less is interval, and corresponding waiting time is shorter.If current signal strength is less than the lower limit in default signal strength signal intensity interval, then think that the communication quality of this network is not ideal enough.In this case, the communication quality that can feed back to this network of user is not good, does not advise that user connects this network, thus can reject the poor network of network connection quality, avoids the stand-by period of user's at substantial when the network that quality of connection is poor.If current signal strength drops in default signal strength signal intensity interval, then think that it is rational for testing the current signal strength obtained, and namely represents that the communication quality of this network is better, can continue to perform this programme.
If the 4th corresponding relation, in the 4th corresponding relation, list the waiting time corresponding to each signal strength signal intensity, thus step B1 can be embodied as: in the 4th corresponding relation, search the waiting time that current signal strength is corresponding, the waiting time found is defined as current waiting time.
Following is disclosure device embodiment, may be used for performing disclosure embodiment of the method.
Fig. 5 is the block diagram of a kind of network connection handling device according to an exemplary embodiment, and this device can realize becoming the some or all of of electronic equipment by software, hardware or both combinations.As shown in Figure 5, this network connection handling device comprises:
Detection module 51, is configured to detect current network, obtains current network state parameter.
Determination module 52, is configured to, according to described current network state parameter, determine the current waiting time connecting described current network.
Link block 53, the current waiting time being configured to determine according to determination module connects current network.
In one embodiment, as shown in Figure 6, detection module 51, can comprise:
Sending submodule 61, being configured to providing the router of described current network to initiate test request;
Receive submodule 62, be configured to receive the feedback response that described router is made for described test request;
First determines submodule 63, is configured to determine the time interval between described test request and described feedback response, and the described time interval is defined as described current network state parameter.
In one embodiment, as shown in Figure 7, detection module 51 can comprise:
First obtains submodule 71, is configured to the current signal strength obtaining described current network;
Second determines submodule 72, and the current signal strength be configured to described first obtains the described current network that submodule 71 obtains is defined as described current network state parameter.
In one embodiment, as shown in Figure 8, detection module 51, can comprise:
Second obtains submodule 81, is configured to the network type obtaining described current network;
3rd determines submodule 82, is configured to network state parameters network state parameters corresponding for the described network type preset being defined as described current network.
In one embodiment, as shown in Figure 9, determination module 52 can comprise:
4th determines submodule 91, is configured to, according to the network state parameters preset and the corresponding relation between waiting time, determine the waiting time that described current network state parameter is corresponding;
5th determines submodule 92, is configured to waiting time corresponding for described current network state parameter to be defined as described current waiting time.
In one embodiment, as shown in Figure 10, link block 53 can comprise:
Operator module 1001, is configured to start the attended operation to described current network, monitoring attended operation duration;
Connexon module 1002, is configured to, when described attended operation duration reaches described current waiting time, connect with described current network.
Disclosure embodiment also provides a kind of device of network connection handling, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, processor is configured to:
Detect current network, obtain current network state parameter;
According to described current network state parameter, determine the current waiting time connecting described current network;
Described current network is connected according to described current waiting time.
Figure 11 is the block diagram of a kind of network connection handling device according to an exemplary embodiment, and this device is applicable to terminal equipment.Such as, device 800 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, flat-panel devices, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Figure 11, device 800 can comprise following one or more assembly: processing components 802, memory 804, power supply module 806, multimedia groupware 808, audio-frequency assembly 810, the interface 812 of I/O (I/O), sensor cluster 814, and communications component 816.
The integrated operation of the usual control device 800 of processing components 802, such as with display, call, data communication, camera operation and record operate the operation be associated.Processing components 802 can comprise one or more processor 820 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 802 can comprise one or more module, and what be convenient between processing components 802 and other assemblies is mutual.Such as, processing components 802 can comprise multi-media module, mutual with what facilitate between multimedia groupware 808 and processing components 802.
Memory 804 is configured to store various types of data to be supported in the operation of equipment 800.The example of these data comprises for any application program of operation on device 800 or the instruction of method, contact data, telephone book data, message, picture, video etc.Memory 804 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.
The various assemblies that electric power assembly 806 is device 800 provide electric power.Electric power assembly 806 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 800 and be associated.
Multimedia groupware 808 is included in the screen providing an output interface between described device 800 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 808 comprises a front-facing camera and/or post-positioned pick-up head.When equipment 800 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 810 is configured to export and/or input audio signal.Such as, audio-frequency assembly 810 comprises a microphone (MIC), and when device 800 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The audio signal received can be stored in memory 804 further or be sent via communications component 816.In certain embodiments, audio-frequency assembly 810 also comprises a loud speaker, for output audio signal.
I/O interface 812 is for providing interface between processing components 802 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor cluster 814 comprises one or more transducer, for providing the state estimation of various aspects for device 800.Such as, sensor cluster 814 can detect the opening/closing state of equipment 800, the relative positioning of assembly, such as described assembly is display and the keypad of device 800, the position of all right checkout gear 800 of sensor cluster 814 or device 800 1 assemblies changes, the presence or absence that user contacts with device 800, the variations in temperature of device 800 orientation or acceleration/deceleration and device 800.Sensor cluster 814 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor cluster 814 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor cluster 814 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communications component 816 is configured to the communication being convenient to wired or wireless mode between device 800 and other equipment.Device 800 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communication component 816 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communication component 816 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 800 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the memory 804 of instruction, above-mentioned instruction can perform said method by the processor 820 of device 800.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of device 1200, make device 800 can perform above-mentioned network connection processing method, described method comprises:
Detect current network, obtain current network state parameter;
According to described current network state parameter, determine the current waiting time connecting described current network;
Described current network is connected according to described current waiting time.
In one embodiment, described detection current network, obtains current network state parameter, comprising:
Test request is initiated to providing the router of described current network;
Receive the feedback response that described router is made for described test request;
Determine the time interval between described test request and described feedback response, the described time interval is defined as described current network state parameter.
In one embodiment, described detection current network, obtains current network state parameter, comprising:
Obtain the current signal strength of described current network;
The current signal strength of described current network is defined as described current network state parameter.
In one embodiment, described detection current network, obtains current network state parameter, comprising:
Obtain the network type of described current network;
Network state parameters corresponding for the described network type preset is defined as the network state parameters of described current network.
In one embodiment, described according to described current network state parameter, determine the current waiting time connecting described current network, comprising:
According to the network state parameters preset and the corresponding relation between waiting time, determine the waiting time that described current network state parameter is corresponding;
Waiting time corresponding for described current network state parameter is defined as described current waiting time.
In one embodiment, the described current waiting time according to described current network connects described current network, comprising:
Start the attended operation to described current network, monitoring attended operation duration;
When described attended operation duration reaches described current waiting time, connect with described current network.
Those skilled in the art, at consideration specification and after putting into practice disclosed herein disclosing, will easily expect other embodiment of the present disclosure.The application is intended to contain any modification of the present disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present disclosure and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Specification and embodiment are only regarded as exemplary, and true scope of the present disclosure and spirit are pointed out by claim below.
Should be understood that, the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.The scope of the present disclosure is only limited by appended claim.
Claims (13)
1. a network connection processing method, is characterized in that, comprising:
Detect current network, obtain current network state parameter;
According to described current network state parameter, determine the current waiting time connecting described current network;
Described current network is connected according to described current waiting time.
2. the method for claim 1, is characterized in that, described detection current network, obtains current network state parameter, comprising:
Test request is initiated to providing the router of described current network;
Receive the feedback response that described router is made for described test request;
Determine the time interval between described test request and described feedback response, the described time interval is defined as described current network state parameter.
3. the method for claim 1, is characterized in that, described detection current network, obtains current network state parameter, comprising:
Obtain the current signal strength of described current network;
The current signal strength of described current network is defined as described current network state parameter.
4. the method for claim 1, is characterized in that, described detection current network, obtains current network state parameter, comprising:
Obtain the network type of described current network;
Network state parameters corresponding for the described network type preset is defined as the network state parameters of described current network.
5. the method for claim 1, is characterized in that, described according to described current network state parameter, determines the current waiting time connecting described current network, comprising:
According to the network state parameters preset and the corresponding relation between waiting time, determine the waiting time that described current network state parameter is corresponding;
Waiting time corresponding for described current network state parameter is defined as described current waiting time.
6. the method for claim 1, is characterized in that, the described current waiting time according to described current network connects described current network, comprising:
Start the attended operation to described current network, monitoring attended operation duration;
When described attended operation duration reaches described current waiting time, connect with described current network.
7. a device for network connection handling, is characterized in that, comprising:
Detection module, for detecting current network, obtains current network state parameter;
Determination module, for according to described current network state parameter, determines the current waiting time connecting described current network;
Link block, connects described current network for the described current waiting time determined according to described determination module.
8. device as claimed in claim 7, it is characterized in that, described detection module, comprising:
Send submodule, for provide described current network router initiate test request;
Receive submodule, for receiving the feedback response that described router is made for described test request;
First determines submodule, for determining the time interval between described test request and described feedback response, the described time interval is defined as described current network state parameter.
9. device as claimed in claim 7, it is characterized in that, described detection module, comprising:
First obtains submodule, for obtaining the current signal strength of described current network;
Second determines submodule, is defined as described current network state parameter for the current signal strength obtaining the described current network that submodule obtains by described first.
10. device as claimed in claim 7, it is characterized in that, described detection module, comprising:
Second obtains submodule, for obtaining the network type of described current network;
3rd determines submodule, for network state parameters corresponding for the described network type preset being defined as the network state parameters of described current network.
11. devices as claimed in claim 7, it is characterized in that, described determination module comprises:
4th determines submodule, for according to the network state parameters preset and the corresponding relation between waiting time, determines the waiting time that described current network state parameter is corresponding;
5th determines submodule, for waiting time corresponding for described current network state parameter is defined as described current waiting time.
12. devices as claimed in claim 7, it is characterized in that, described link block comprises:
Operator module, for starting the attended operation to described current network, monitoring attended operation duration;
Connexon module, for when described attended operation duration reaches described current waiting time, connects with described current network.
13. 1 kinds of network connection handling devices, is characterized in that, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Detect current network, obtain current network state parameter;
According to described current network state parameter, determine the current waiting time connecting described current network;
Described current network is connected according to described current waiting time.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510824973.1A CN105491594A (en) | 2015-11-24 | 2015-11-24 | Network connection processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510824973.1A CN105491594A (en) | 2015-11-24 | 2015-11-24 | Network connection processing method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105491594A true CN105491594A (en) | 2016-04-13 |
Family
ID=55678226
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510824973.1A Pending CN105491594A (en) | 2015-11-24 | 2015-11-24 | Network connection processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105491594A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108574595A (en) * | 2017-03-14 | 2018-09-25 | 北京京东尚科信息技术有限公司 | A kind of method and apparatus improving service reliability and user experience |
CN108900469A (en) * | 2018-05-31 | 2018-11-27 | 上海掌门科技有限公司 | Connect progress page methods of exhibiting, terminal device and computer-readable medium |
CN108966316A (en) * | 2018-06-20 | 2018-12-07 | 上海连尚网络科技有限公司 | Show the method, device and equipment of multimedia resource, prediction connection waiting time |
CN111183628A (en) * | 2017-11-21 | 2020-05-19 | 惠普发展公司,有限责任合伙企业 | Response delay time determination for maintaining long polling connections |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102404768A (en) * | 2011-11-22 | 2012-04-04 | 广东欧珀移动通信有限公司 | Automatic test method for mobile phone data network |
US20140098804A1 (en) * | 2012-10-04 | 2014-04-10 | Futurewei Technologies, Inc. | System and Method for Association of Transitory WiFi Users |
CN104244274A (en) * | 2013-06-18 | 2014-12-24 | 华为技术有限公司 | Wi-Fi monitoring method and device |
CN104837214A (en) * | 2014-02-10 | 2015-08-12 | 三星电子株式会社 | Electronic device and method of connecting electronic device to network |
CN104955095A (en) * | 2015-06-15 | 2015-09-30 | 腾讯科技(深圳)有限公司 | Communication network detection method and communication network detection device |
-
2015
- 2015-11-24 CN CN201510824973.1A patent/CN105491594A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102404768A (en) * | 2011-11-22 | 2012-04-04 | 广东欧珀移动通信有限公司 | Automatic test method for mobile phone data network |
US20140098804A1 (en) * | 2012-10-04 | 2014-04-10 | Futurewei Technologies, Inc. | System and Method for Association of Transitory WiFi Users |
CN104244274A (en) * | 2013-06-18 | 2014-12-24 | 华为技术有限公司 | Wi-Fi monitoring method and device |
CN104837214A (en) * | 2014-02-10 | 2015-08-12 | 三星电子株式会社 | Electronic device and method of connecting electronic device to network |
CN104955095A (en) * | 2015-06-15 | 2015-09-30 | 腾讯科技(深圳)有限公司 | Communication network detection method and communication network detection device |
Non-Patent Citations (1)
Title |
---|
邢益良: "《PHP Web和Android开发入门与实践》", 31 August 2014 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108574595A (en) * | 2017-03-14 | 2018-09-25 | 北京京东尚科信息技术有限公司 | A kind of method and apparatus improving service reliability and user experience |
CN108574595B (en) * | 2017-03-14 | 2021-10-01 | 北京京东尚科信息技术有限公司 | Method and device for improving service reliability and user experience |
CN111183628A (en) * | 2017-11-21 | 2020-05-19 | 惠普发展公司,有限责任合伙企业 | Response delay time determination for maintaining long polling connections |
US11317002B2 (en) | 2017-11-21 | 2022-04-26 | Hewlett-Packard Development Company, L.P. | Response delay time determination to maintain long polling connection |
CN108900469A (en) * | 2018-05-31 | 2018-11-27 | 上海掌门科技有限公司 | Connect progress page methods of exhibiting, terminal device and computer-readable medium |
CN108966316A (en) * | 2018-06-20 | 2018-12-07 | 上海连尚网络科技有限公司 | Show the method, device and equipment of multimedia resource, prediction connection waiting time |
CN108966316B (en) * | 2018-06-20 | 2020-11-03 | 上海连尚网络科技有限公司 | Method, device and equipment for displaying multimedia resources and predicting connection waiting duration |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104853406A (en) | Service set identifier SSID providing method, acquiring method and device | |
CN104812092A (en) | Networking method and device of intelligent equipment | |
CN105392213A (en) | Method and apparatus for connection of controlled intelligent device | |
CN105163366A (en) | Wireless network connection method and device | |
CN105338399A (en) | Image acquisition method and device | |
CN104318741A (en) | Bluetooth device control method and device | |
CN104703295A (en) | Network access method and network access device | |
CN104853336A (en) | Method for discovering intelligent equipment, method for accessing to internet and devices thereof | |
CN104834665A (en) | Target picture acquiring method and device | |
CN105246074A (en) | Method and device for establishing connections | |
CN104917632A (en) | Method for detecting networking channel states, device for detecting networking channel states and electronic equipment | |
CN104660685A (en) | Method and device for obtaining equipment information | |
CN104468971A (en) | Method and device for connecting playing source | |
CN104618511A (en) | Intelligent device detection method and device | |
CN104506443A (en) | Router setting interface display method and device | |
CN104735670A (en) | Network access method and device | |
CN103916975A (en) | Network connection management method and device | |
CN105224494A (en) | Method for handover control and device | |
CN104093216A (en) | Method and device for wireless data transmission | |
CN104581617A (en) | Wireless communication method and intelligent equipment | |
CN104158854B (en) | Resource share method and device | |
CN105376144A (en) | Information processing method and device | |
CN105472706A (en) | Method and device for connection establishment | |
CN105450872A (en) | Alarm clock reminding methods and apparatuses | |
CN105491594A (en) | Network connection processing method 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160413 |
|
RJ01 | Rejection of invention patent application after publication |