CN106686627A - WiFi/hotspot starting method and device - Google Patents

WiFi/hotspot starting method and device Download PDF

Info

Publication number
CN106686627A
CN106686627A CN201611119593.9A CN201611119593A CN106686627A CN 106686627 A CN106686627 A CN 106686627A CN 201611119593 A CN201611119593 A CN 201611119593A CN 106686627 A CN106686627 A CN 106686627A
Authority
CN
China
Prior art keywords
wifi
socket
target firmware
socket connections
focuses
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.)
Granted
Application number
CN201611119593.9A
Other languages
Chinese (zh)
Other versions
CN106686627B (en
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 CN201611119593.9A priority Critical patent/CN106686627B/en
Publication of CN106686627A publication Critical patent/CN106686627A/en
Priority to PCT/CN2017/105509 priority patent/WO2018103447A1/en
Application granted granted Critical
Publication of CN106686627B publication Critical patent/CN106686627B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Abstract

The embodiment of the invention discloses a WiFi/hotspot starting method. The method comprises the steps of receiving a WiFi/hotspot starting instruction, reading a configuration file corresponding to the WiFi/hotspot starting instruction to determine and load target firmware corresponding to the WiFi/hotspot starting instruction; establishing socket connection with the target firmware; acquiring history loading durations corresponding to the target firmware and calculating an average loading duration of the history loading durations if the socket connection establishment fails, determining a first execution time for executing the socket connection between the establishment and the target firmware for next time according to the average loading duration; executing the socket connection between the establishment and the target firmware when the first execution time arrives. In addition, the embodiment of the invention further discloses a starting device. By means of the method and device, the WiFi/hotspot starting speed can be increased.

Description

The open method and device of WiFi/ focuses
Technical field
The present invention relates to field of computer technology, more particularly to a kind of open method and device of WiFi/ focuses.
Background technology
Major part mobile-terminal platform (ISO platforms or Android platform etc.), has been equipped with Wifi chips, together at present When support connection route device online (STA mode) or connect (ap mode, Access for other people as Wi-Fi hotspot Point)。
In android system, loading firmware can be removed after the open command for receiving WiFi/ focuses, then created Socket is monitored, and this module being monitored is exactly wifimonitor (WiFi network monitor), wifimonitor Effect be exactly to set up and the message communicating of firmware.During socket is set up, if corresponding firmware has not been loaded Into the foundation of socket will fail;In the case where socket sets up failure, wifimonitor will go periodically to taste Examination is gone to set up and is connected with the socket of firmware, until time-out or connection are successfully established.Generally, in android system This cycle periodically attempted is a fixed value, that is to say, that for different hardware devices, wifimonitor Attempt setting up and the cycle of socket connections between firmware is identical and changeless.But, for different hardware Equipment, the speed of its loading firmware is different, if born with regard to heavy system soon very much, and will influence slowly very much wifi or Focus opening speed, therefore, the changeless wifimonitor of identical attempts the socket connections between foundation and firmware The setting in cycle is irrational.
The content of the invention
Based on this, for solve in conventional art because set the changeless wifimonitor of identical attempt setting up with The excessively slow technical problem of the speed of WiFi and/or focus opening caused by the cycle of the socket connections between firmware, spy proposes A kind of open method of WiFi/ focuses.
A kind of open method of WiFi/ focuses, including:
Receive WiFi/ focus open commands, read corresponding with WiFi/ focuses open command configuration file determine with The WiFi/ focuses open command correspondence target firmware is simultaneously loaded;
Set up and the socket connections between the target firmware;
If failure is set up in the socket connections, history loading duration corresponding with the target firmware is obtained, calculated With the average loading duration that the history loads duration;
Determine to perform the socket between the foundation and the target firmware next time according to the average loading duration The first execution time of connection, performed when reaching the first execution time between the foundation and the target firmware Socket is connected.
Optionally, wherein in one embodiment, after the socket connections between the foundation and the target firmware Also include:
When failure is set up in socket connections, the last loading duration loaded with the target firmware is obtained, Determine to perform next time the socket connections between the foundation and the target firmware according to the last loading duration Second execution the time, performed when reaching the second execution time it is described set up and the target firmware between socket Connection.
Optionally, wherein in one embodiment, it is described performed when reaching the first execution time it is described foundation with Also include after socket connections between the target firmware:
Monitor whether socket connection is successfully established, if it is not, then, then perform the foundation and the target firmware it Between socket connection.
Optionally, wherein in one embodiment, after the socket connections between the foundation and the target firmware Also include:
The frequency of failure that failure is set up in the socket connections is calculated, when the frequency of failure exceedes default threshold value, Generation WiFi/ focuses are opened the prompting message of failure and are shown;
The target firmware loaded described in nullifying.
Optionally, wherein in one embodiment, it is described performed when reaching the first execution time it is described foundation with Also include after socket connections between the target firmware:
If the socket performed when reaching the first execution time between the foundation and the target firmware Failure is set up in socket connections during connection, then obtain default cycle duration, and periodically perform according to the cycle duration Socket connections between the foundation and the target firmware are until socket connections are successfully established.
Additionally, for solve in conventional art because set the changeless wifimonitor of identical attempt setting up with it is solid The excessively slow technical problem of the speed of WiFi and/or focus opening caused by the cycle of the socket connections between part, spy proposes A kind of opening device of WiFi/ focuses.
A kind of opening device of WiFi/ focuses, including:
Target firmware load-on module, for receiving WiFi/ focus open commands, reads and refers to WiFi/ focuses unlatching Corresponding configuration file is made to determine target firmware corresponding with the WiFi/ focuses open command and be loaded;
Socket connection establishment modules, for the socket connections set up and between the target firmware;
Average loading duration determining module, for when failure is set up in socket connections, obtaining solid with the target The corresponding history loading duration of part, calculates the average loading duration that duration is loaded with the history;
First perform time determining module, for according to it is described it is average loading duration determine perform next time it is described foundation with The first execution time of the socket connections between the target firmware, called when reaching the first execution time described Socket connection establishment modules.
Optionally, wherein in one embodiment, described device also includes that second performs time determining module, in institute When stating socket connections and setting up failure, obtain the last loading duration loaded with the target firmware, according to it is described recently Once loading duration determines to perform the second execution of the socket connections between the foundation and the target firmware next time when Between, call the socket connection establishment modules when reaching the second execution time.
Optionally, wherein in one embodiment, described device also includes that socket connects monitoring module, for monitoring State whether socket connections are successfully established, when failure is set up in socket connections, call the socket connections to set up mould Block.
Optionally, wherein in one embodiment, described device also includes target firmware cancellation module, described for calculating The frequency of failure of failure is set up in socket connections, and when the frequency of failure exceedes default threshold value, generation WiFi/ focuses are opened The prompting message of failure is simultaneously shown;The target firmware loaded described in nullifying.
Optionally, wherein in one embodiment, described device also includes cycle performing module, for being held described first When failure is set up in socket connections when the row time performs between the foundation and target firmware socket when reaching is connected, Default cycle duration is obtained, and the socket connection establishment modules are periodically called according to the cycle duration until institute Socket connections are stated to be successfully established.
Further, to solve to attempt setting up because setting the changeless wifimonitor of identical in conventional art The excessively slow technical problem of the speed of WiFi and/or focus opening, also carries caused by the cycle that socket between firmware is connected Go out a kind of mobile terminal, including:
Processor and memory;Wherein, the processor is by calling code in the memory or instruction to perform The open method of foregoing WiFi/ focuses.
Implement the embodiment of the present invention, will have the advantages that:
After employing the open method and device of above-mentioned WiFi/ focuses, after WiFi/ focus open commands are received The corresponding firmware of WiFi/ focuses is loaded and opened, and is set up and is consolidated by the socket connections between foundation and firmware Message communicating between part;If failure is set up in above-mentioned socket connections, illustrate that firmware loads are not completed also, in this kind of situation Under, duration according to present terminal history loading firmware come estimate this firmware loads duration and when the duration reaches again Socket connections are set up in trial.Compared to being tasted according to the fixed cycle after setting up socket connection failures first in conventional art Examination is set up for the technical scheme of socket connections, and the speed of the history loading firmware according to terminal is currently loaded estimating terminal The time of firmware simultaneously determines the scheme of the time that the connection of socket again is set up according to the time, it is to avoid during the excessive cycle The speed of the unlatching of influence WiFi/ focuses long, it also avoid the burden that too small cycle duration has aggravated terminal system, accelerate The opening speed of WiFi/ focuses, and the burden of terminal system is alleviated, improve Consumer's Experience.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Wherein:
Fig. 1 is a kind of schematic flow sheet of the open method of WiFi/ focuses in one embodiment;
Fig. 2 is a kind of interface schematic diagram at focus setting interface in one embodiment;
Fig. 3 is a kind of interface schematic diagram at WiFi settings interface in one embodiment;
Fig. 4 is a kind of structural representation of the opening device of WiFi/ focuses in one embodiment;
Fig. 5 be one embodiment in run foregoing WiFi/ focuses open method computer equipment structural representation.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
To solve to attempt setting up and firmware between because setting the changeless wifimonitor of identical in conventional art Socket connections cycle caused by the excessively slow technical problem of the speed opened of WiFi and/or focus, it is in the present embodiment, special A kind of open method of WiFi/ focuses is proposed, the realization of the method can be dependent on computer program, and the computer program can be transported On the computer system based on von Neumann system, the computer system can be smart mobile phone, notebook computer, put down row Plate computer etc. is provided with the support ap mode and the computer equipment of STA mode of wireless network card or Wi-Fi chips.The computer journey Sequence can be that Wi-Fi connection management program or focus management program on the intelligent terminals such as smart mobile phone or panel computer etc. are calculated Machine program.Specifically, as shown in figure 1, the open method of above-mentioned WiFi/ focuses comprises the following steps S102-S108:
Step S102:WiFi/ focus open commands are received, configuration corresponding with the WiFi/ focuses open command is read File determines target firmware corresponding with the WiFi/ focuses open command and is loaded.
In the present embodiment, corresponding focus is released the button or control input heat during user can set interface by focus Point opens request, for example, in focus as shown in Figure 2 sets the page, user can be input into heat by the button shown in numbering A Point opens request.
In another embodiment, user can be released the button by corresponding WiFi in the WiFi setting pages or control is defeated Enter WiFi and open request or WiFi connection requests, for example, in focus as shown in Figure 3 sets the page, user can be by compiling Button input WiFi shown in number B opens request, opens WiFi and simultaneously scans the WiFi in surrounding environment;Or, can be by choosing Select multiple WiFi marks shown in the region shown in numbering C and identify corresponding wireless WiFi into the WIFi to connect.
After the WiFi/ focuses for receiving user input open request, it is necessary first to read that Wi-Fi hotspot is corresponding to match somebody with somebody Put fileinfo, then according to profile information go that loading and the unlatching of Wi-Fi hotspot need to load it is related all of solid Part, i.e. target firmware, and load above-mentioned target firmware.
Step S104:Set up and the socket connections between the target firmware.
In the present embodiment, it is monitored, it is necessary to create socket during WiFi/ focuses are opened, in Android In system, the module that this is monitored as WiFimonitor sets up consolidating for application layer loading corresponding with WiFi or focus Message communicating between part.Generally, start to create above-mentioned application layer after WiFi/ focus open commands are received Socket between target firmware is connected and is monitored with the message communication to terminal.But, if loaded in step S102 Target firmware is not loaded successfully, then can set up failure during foundation is connected with the socket of target firmware;If conversely, Before step S104 is performed, target firmware has been loaded successfully, then socket connections are successfully established in this step, and socket connects Connect and be successfully established, illustrate that all processes for opening WiFi/ focuses have been finished, WiFi/ focuses are successfully opened.
Step S106:If failure is set up in the socket connections, history loading corresponding with the target firmware is obtained Duration, calculates the average loading duration that duration is loaded with the history.
In the present embodiment, if failure is set up in socket connections, need to reattempt to and set up socket connections until super Cross or socket connections are successfully established.In the conventional technology, reattempt to set up socket connect during, be according to What default polling cycle was carried out, also, the polling cycle is fixed, for different terminals, its polling cycle is also one Sample, but, the disposal ability of different terminal devices is different, therefore, it is contemplated that each not during being processed The disposal ability of same equipment.
It is that acquisition is stored in the terminal or caching to be connected with WiFi or focus is opened specifically, in the present embodiment The historical record of loading firmware during opening, contained in the historical record of the loading firmware loading firmware each time plus Carry duration.The loading duration of the loading firmware each time included in above-mentioned historical record and historical record represents present terminal History loading firmware situation, reflect the ability and processing speed of terminal loads firmware.
In the present embodiment, according to the loading duration of the loading firmware each time included in historical record and historical record (i.e. history loading duration), calculates average loading duration corresponding with history loading duration;I.e. according to including in historical record Used as average loading duration, this averagely loads duration and reflects the terminal-pair average value of the loading duration of loading firmware each time In the average ability of firmware loads.
It should be noted that in the present embodiment, the history loading duration of above-mentioned acquisition can also be certain hour scope It is interior because the change of the application installed in the loss of terminal system and terminal, the disposal ability of terminal system can with when Between passage and change, therefore, too long before target firmware loading duration for determine terminal it is current firmware loads speed The assessment of degree does not have reliability, therefore, in the present embodiment, when the history of above-mentioned acquisition is loaded a length of default time it History loading duration within interior history loading duration or default loading number of times.
Step S108:Determine to perform next time between the foundation and the target firmware according to the average loading duration Socket connection first execution the time, performed when reaching the first execution time it is described set up and the target firmware Between socket connection.
In the present embodiment, determine setting up socket connection failures different from default polling cycle in conventional art The time for again attempting to set up socket connections afterwards, but by going through according to loaded targets firmware in above-mentioned steps S106 The average loading duration that history loading duration determines determines to again attempt to set up time of socket connections.
Specifically, determine the execution time for attempting setting up socket connections according to average loading duration next time, i.e., the One performs the time.For example, in one embodiment, according between at the beginning of firmware loads and average loading duration determines the One performs the time.Also, when first performs the time and reach, again attempt to set up socket connections.
In the present embodiment, because when first performs the time and reach, the loading of target firmware is also possible to not complete also, In this case, socket establishment of connections may fail again, in this case, it should determine socket connections again The secondary treatment mechanism for setting up failure.
It is above-mentioned that the foundation and the mesh are performed when reaching the first execution time in an optional embodiment Also include after socket connections between mark firmware:Monitor whether the socket connections are successfully established, if it is not, then, then holding Socket connections between the row foundation and the target firmware.
It is described that the foundation and the mesh are performed when reaching the first execution time in an optional embodiment Also include after socket connections between mark firmware:If it is described performed when reaching the first execution time it is described foundation with Failure is set up in socket connections when socket between the target firmware is connected, then circulation performs the foundation and the target Socket connections between firmware are until socket connections are successfully established.
If that is, set up again in step S108 during socket is connected failing again, constantly tasting again Examination socket establishment of connections are successfully established up to socket connections, even if loading duration it was determined that in step according to history Failure is set up in socket connections in S108, and the loading of its target firmware should be completed soon, therefore, in order to accelerate WiFi/ heat The opening speed of point, can constantly reattempt to socket establishment of connections until socket connections are successfully established.
It is in another embodiment, described that the foundation is performed when reaching the first execution time is solid with the target Also include after socket connections between part:If it is described performed when reaching the first execution time it is described foundation with it is described Failure is set up in socket connections when socket between target firmware is connected, then obtain default cycle duration, and according to described Cycle duration periodically performs the socket connections between the foundation and the target firmware until socket connections It is successfully established.
That is, in the present embodiment, after socket failures are set up again in the step S108, though target firmware Loading may complete soon, but also to consider the influence of other factors, reduce to the occupancy of system resource.That is, according to default Cycle duration (for example, 0.5s) come periodically attempt socket establishment of connections until socket connection be successfully established, On the premise of ensure that the speed that WiFi/ focuses are opened, the excessive occupancy to system resource is decreased.
In the present embodiment, during socket establishment of connections, it is also possible to another situation occur, i.e., constantly There is the situation that failure is set up in socket connections, and the failure that socket connections are set up is not as not loading for target firmware Caused by success, and because other reasonses, in this case, continual trials socket establishment of connections up to It is worthless that socket connections are successfully established, so, should also set up a kind of Socket connections foundation abandons mechanism.
Specifically, in an optional embodiment, the socket between the foundation and the target firmware connects it Also include afterwards:The frequency of failure that failure is set up in the socket connections is calculated, when the frequency of failure exceedes default threshold value, Generation WiFi/ focuses are opened the prompting message of failure and are shown;The target firmware loaded described in nullifying.
Specifically, during socket connections are set up, the frequency of failure of failure is set up in statistics socket connections, and And, in the case where the frequency of failure exceedes default threshold value, that is, illustrate that socket establishment of connections have had attempted to enough Number of times and time, but failure is set up, in this case, socket establishment of connections can be abandoned, and generate WiFi/ heat Point opens the prompting message of failure, for pointing out user WiFi/ focuses to open failure, please reattempt to.Further, in order to subtract Few unnecessary occupancy to system resource, the target firmware for having been loaded in step S102 is unregistered, and is accounted for discharging System resource.
It is above-mentioned to load duration according to the history of target firmware to determine to perform next time in another optional embodiment During the execution time of the socket connections between foundation and the target firmware, perform next time and set up and the target The determination of the execution time of the socket connections between firmware can also determine by other means.
Specifically, in one embodiment, also being wrapped after the socket connections between the foundation and the target firmware Include:When failure is set up in socket connections, the last loading duration loaded with the target firmware is obtained, according to institute State the last loading duration to determine to perform the second described execution time next time, held when reaching the second execution time Socket connections between the row foundation and the target firmware.
That is, with the loading duration of last loaded targets firmware come the loading for estimating this loaded targets firmware when It is long, because the terminal environments of last loaded targets firmware are closer to the terminal environments of local loaded targets firmware, more can The current disposal ability of GC group connector or firmware loads ability.
Additionally, for solve in conventional art because set the changeless wifimonitor of identical attempt setting up with it is solid The excessively slow technical problem of the speed of WiFi and/or focus opening caused by the cycle of the socket connections between part, in a reality In applying example, as shown in Figure 4, it is also proposed that a kind of opening device of WiFi/ focuses, including target firmware load-on module 102, Socket connection establishment modules 104, average loading duration determining module 106 and first perform time determining module 108, its In:
Target firmware load-on module 102, for receiving WiFi/ focus open commands, reads and is opened with the WiFi/ focuses Corresponding configuration file is instructed to determine target firmware corresponding with the WiFi/ focuses open command and loaded;
Socket connection establishment modules 104, for the socket connections set up and between the target firmware;
Average loading duration determining module 106, for when failure is set up in socket connections, obtaining and the target The corresponding history loading duration of firmware, calculates the average loading duration that duration is loaded with the history;
First performs time determining module 108, for being built according to the average loading duration determination execution next time Vertical the first execution time being connected with the socket between the target firmware, institute is called when reaching the first execution time State socket connection establishment modules.
Optionally, in the present embodiment, as shown in figure 4, said apparatus also include that second performs time determining module 110, For when failure is set up in socket connections, obtaining the last loading duration loaded with the target firmware, according to The last loading duration determines to perform next time the of the socket connections between the foundation and the target firmware Two perform the time, and the socket connection establishment modules 104 are called when reaching the second execution time.
Optionally, in the present embodiment, as shown in figure 4, said apparatus also include that socket connects monitoring module 112, uses In monitoring whether the socket connections are successfully established, when failure is set up in socket connections, the socket is called to connect Connect and set up module 104.
Optionally, in the present embodiment, as shown in figure 4, said apparatus also include target firmware cancellation module 114, it is used for The frequency of failure that failure is set up in the socket connections is calculated, when the frequency of failure exceedes default threshold value, WiFi/ is generated Focus is opened the prompting message of failure and is shown;The target firmware loaded described in nullifying.
Optionally, in the present embodiment, as shown in figure 4, said apparatus also include cycle performing module 116, in institute Socket connections when the socket between the foundation and the target firmware is connected are performed when stating the arrival of the first execution time to build During vertical failure, default cycle duration is obtained, and periodically call the socket connections to set up according to the cycle duration Module is until socket connections are successfully established.
Implement the embodiment of the present invention, will have the advantages that:
After employing the open method and device of above-mentioned WiFi/ focuses, after WiFi/ focus open commands are received The corresponding firmware of WiFi/ focuses is loaded and opened, and is set up and is consolidated by the socket connections between foundation and firmware Message communicating between part;If failure is set up in above-mentioned socket connections, illustrate that firmware loads are not completed also, in this kind of situation Under, duration according to present terminal history loading firmware come estimate this firmware loads duration and when the duration reaches again Socket connections are set up in trial.Compared to being tasted according to the fixed cycle after setting up socket connection failures first in conventional art Examination is set up for the technical scheme of socket connections, and the speed of the history loading firmware according to terminal is currently loaded estimating terminal The time of firmware simultaneously determines the scheme of the time that the connection of socket again is set up according to the time, it is to avoid during the excessive cycle The speed of the unlatching of influence WiFi/ focuses long, it also avoid the burden that too small cycle duration has aggravated terminal system, accelerate The opening speed of WiFi/ focuses, and the burden of terminal system is alleviated, improve Consumer's Experience.
In one embodiment, as shown in figure 5, Fig. 5 illustrates a kind of base of the open method for running above-mentioned WiFi/ focuses In the terminal of the computer system of von Neumann system.The computer system can include can connecting for WiFi chip The terminal devices such as the smart mobile phone of Wi-Fi hotspot, panel computer, palm PC, notebook computer or PC.Specifically, can Including the outer input interface 1001, processor 1002, memory 1003 and the output interface 1004 that are connected by system bus.Its In, outer input interface 1001 optionally can at least include network interface 10012 (in the present embodiment, as WiFi chip). Memory 1003 may include external memory 10032 (such as hard disk, CD or floppy disk etc.) and built-in storage 10034.Output interface 1004 can at least include the equipment such as display screen 10042.
In the present embodiment, the operation of this method is based on computer program, and the program file of the computer program is stored in In the external memory 10032 of the foregoing computer system based on von Neumann system, built-in storage is operationally loaded into In 10034, then it is compiled as being transferred to be performed in processor 1002 after machine code, so that being based on von Neumann system Computer system in form target firmware load-on module 102 in logic, socket connection establishment modules 104, average loading Duration determining module 106, first performs time determining module 108, second and performs time determining module 110, socket connection prison Control module 112, target firmware cancellation module 114 and cycle performing module 116.And in the open method of above-mentioned WiFi/ focuses In implementation procedure, the parameter of input is received by outer input interface 1001, and is transferred to be cached in memory 1003, then It is input in processor 1002 and is processed, the result data for the treatment of or be cached in memory 1003 is subsequently processed, Or be passed to output interface 1004 and exported.
Specifically, in the present embodiment, above-mentioned processor 1002 is specifically for performing following operation:
Receive WiFi/ focus open commands, read corresponding with WiFi/ focuses open command configuration file determine with The WiFi/ focuses open command correspondence target firmware is simultaneously loaded;
Set up and the socket connections between the target firmware;
If failure is set up in the socket connections, history loading duration corresponding with the target firmware is obtained, calculated With the average loading duration that the history loads duration;
Determine to perform the socket between the foundation and the target firmware next time according to the average loading duration The first execution time of connection, performed when reaching the first execution time between the foundation and the target firmware Socket is connected.
Optionally, in one embodiment, above-mentioned processor 1002 is additionally operable to when failure is set up in socket connections, The last loading duration loaded with the target firmware is obtained, determines to hold next time according to the last loading duration The second execution time of the socket connections between the row foundation and the target firmware, reached in the described second execution time Set up described in Shi Zhihang and the socket connections between the target firmware.
Optionally, in one embodiment, above-mentioned processor 1002 is additionally operable to monitor whether the socket connections set up Success, if it is not, then, then performing the socket connections between the foundation and the target firmware.
Optionally, in one embodiment, above-mentioned processor 1002 is additionally operable to calculate the socket connections and set up fail The frequency of failure, when the frequency of failure exceedes default threshold value, the prompting message that generation WiFi/ focuses open failure is gone forward side by side Row displaying;The target firmware loaded described in nullifying.
Optionally, in one embodiment, if above-mentioned processor 1002 is additionally operable to described be arrived in the first execution time Up to when the socket that performs between the foundation and the target firmware connect when socket connections set up failure, then obtain default Cycle duration, and according to the cycle duration periodically perform it is described foundation and the target firmware between socket connect Connect until socket connections are successfully established.
Above disclosed is only present pre-ferred embodiments, can not limit the right model of the present invention with this certainly Enclose, therefore the equivalent variations made according to the claims in the present invention, still belong to the scope that the present invention is covered.

Claims (11)

1. a kind of open method of WiFi/ focuses, it is characterised in that including:
Receive WiFi/ focus open commands, read corresponding with WiFi/ focuses open command configuration file determine with it is described WiFi/ focuses open command correspondence target firmware is simultaneously loaded;
Set up and the socket connections between the target firmware;
If failure is set up in the socket connections, history loading duration corresponding with the target firmware is obtained, calculated and institute State the average loading duration that history loads duration;
Determine to perform next time the socket connections between the foundation and the target firmware according to the average loading duration First execution the time, performed when reaching the first execution time it is described set up and the target firmware between socket Connection.
2. the open method of WiFi/ focuses according to claim 1, it is characterised in that the foundation is solid with the target Also include after socket connections between part:
When failure is set up in socket connections, the last loading duration loaded with the target firmware is obtained, according to The last loading duration determines to perform next time the of the socket connections between the foundation and the target firmware Two perform the time, and the socket performed when reaching the second execution time between the foundation and the target firmware connects Connect.
3. the open method of WiFi/ focuses according to claim 1, it is characterised in that described when described first performs Between reach when perform it is described foundation and the target firmware between socket connection after also include:
Monitor whether the socket connections are successfully established, if it is not, then, then performing between the foundation and the target firmware Socket is connected.
4. the open method of WiFi/ focuses according to claim 1, it is characterised in that the foundation is solid with the target Also include after socket connections between part:
The frequency of failure that failure is set up in the socket connections is calculated, when the frequency of failure exceedes default threshold value, generation WiFi/ focuses are opened the prompting message of failure and are shown;
The target firmware loaded described in nullifying.
5. the open method of WiFi/ focuses according to claim 1, it is characterised in that described when described first performs Between reach when perform it is described foundation and the target firmware between socket connection after also include:
If the socket connections performed when reaching the first execution time between the foundation and the target firmware When socket connections set up failure, then obtain default cycle duration, and described in periodically being performed according to the cycle duration Set up and the socket connections between the target firmware are until socket connections are successfully established.
6. a kind of opening device of WiFi/ focuses, it is characterised in that including:
Target firmware load-on module, for receiving WiFi/ focus open commands, reads and the WiFi/ focuses open command pair The configuration file answered determines target firmware corresponding with the WiFi/ focuses open command and is loaded;
Socket connection establishment modules, for the socket connections set up and between the target firmware;
Average loading duration determining module, for when failure is set up in socket connections, obtaining and the target firmware pair The history loading duration answered, calculates the average loading duration that duration is loaded with the history;
First perform time determining module, for according to it is described it is average loading duration determine perform next time it is described foundation with it is described The first execution time of the socket connections between target firmware, the socket is called when reaching the first execution time Connection establishment module.
7. the opening device of WiFi/ focuses according to claim 6, it is characterised in that described device is also held including second Row time determining module, for when failure is set up in socket connections, obtaining nearest loaded with the target firmware Secondary loading duration, determines to perform next time between the foundation and the target firmware according to the last loading duration The second execution time of socket connections, the socket connection establishment modules are called when reaching the second execution time.
8. the opening device of WiFi/ focuses according to claim 6, it is characterised in that described device also includes socket Connection monitoring module, for monitoring whether the socket connections are successfully established, when failure is set up in socket connections, adjusts With the socket connection establishment modules.
9. the opening device of WiFi/ focuses according to claim 6, it is characterised in that described device is also solid including target Part cancellation module, the frequency of failure of failure is set up for calculating the socket connections, is exceeded in the frequency of failure default During threshold value, generation WiFi/ focuses are opened the prompting message of failure and are shown;The target firmware loaded described in nullifying.
10. the opening device of WiFi/ focuses according to claim 6, it is characterised in that described device is also held including the cycle Row module, for performing the socket connections between the foundation and the target firmware when reaching the first execution time When socket connections when setting up failure, obtain default cycle duration, and according to the cycle duration is periodically called Socket connection establishment modules are until socket connections are successfully established.
A kind of 11. mobile terminals, it is characterised in that including:
Processor and memory;Wherein, the processor is by calling code in the memory or instruction to perform such as power Profit requires the open method of the WiFi/ focuses described in 1 to 5 any one.
CN201611119593.9A 2016-12-07 2016-12-07 WiFi/hotspot starting method and device Expired - Fee Related CN106686627B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201611119593.9A CN106686627B (en) 2016-12-07 2016-12-07 WiFi/hotspot starting method and device
PCT/CN2017/105509 WO2018103447A1 (en) 2016-12-07 2017-10-10 Method and device for enabling wi-fi/hotspot

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611119593.9A CN106686627B (en) 2016-12-07 2016-12-07 WiFi/hotspot starting method and device

Publications (2)

Publication Number Publication Date
CN106686627A true CN106686627A (en) 2017-05-17
CN106686627B CN106686627B (en) 2020-01-14

Family

ID=58869250

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611119593.9A Expired - Fee Related CN106686627B (en) 2016-12-07 2016-12-07 WiFi/hotspot starting method and device

Country Status (2)

Country Link
CN (1) CN106686627B (en)
WO (1) WO2018103447A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018103447A1 (en) * 2016-12-07 2018-06-14 广东欧珀移动通信有限公司 Method and device for enabling wi-fi/hotspot
CN109587829A (en) * 2018-11-16 2019-04-05 青岛海信电器股份有限公司 A kind of method, apparatus and terminal that terminal is used as website and hot spot to work simultaneously
CN113986413A (en) * 2021-09-22 2022-01-28 阿里巴巴(中国)有限公司 Page display method, device, equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030096641A1 (en) * 2001-11-21 2003-05-22 Gilad Odinak Sharing account information and a phone number between personal mobile phone and an in-vehicle embedded phone
CN102098761A (en) * 2009-12-10 2011-06-15 华为终端有限公司 Mobile communication terminal and network access method thereof
CN102238267A (en) * 2010-04-28 2011-11-09 鸿富锦精密工业(深圳)有限公司 Mobile terminal and communication service condition conversion control method thereof
CN104702608A (en) * 2015-03-13 2015-06-10 吴培希 WiFi sharing system
CN105593830A (en) * 2013-10-30 2016-05-18 英特尔公司 A method, apparatus and system for measuring latency in a physical unit of a circuit
CN105653008A (en) * 2015-12-29 2016-06-08 北京金山安全软件有限公司 Night sleep message prompting method and device and electronic equipment
CN105939225A (en) * 2016-06-23 2016-09-14 微梦创科网络科技(中国)有限公司 Method and device for executing service
CN106027294A (en) * 2016-05-13 2016-10-12 广东欧珀移动通信有限公司 Firmware loading method and system for terminal network access
CN106020942A (en) * 2016-05-05 2016-10-12 四川安嵌科技有限公司 Multi-system based WiFi device reuse method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104661191A (en) * 2013-11-15 2015-05-27 深圳市快播科技有限公司 Local area network communication method, system and terminal, and information sharing device
CN105282299A (en) * 2014-06-11 2016-01-27 中兴通讯股份有限公司 Application starting device and method
CN105024882A (en) * 2015-07-23 2015-11-04 上海极测信息科技有限公司 C/S structure based WIFI communication testing system and method
CN106686627B (en) * 2016-12-07 2020-01-14 Oppo广东移动通信有限公司 WiFi/hotspot starting method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030096641A1 (en) * 2001-11-21 2003-05-22 Gilad Odinak Sharing account information and a phone number between personal mobile phone and an in-vehicle embedded phone
CN102098761A (en) * 2009-12-10 2011-06-15 华为终端有限公司 Mobile communication terminal and network access method thereof
CN102238267A (en) * 2010-04-28 2011-11-09 鸿富锦精密工业(深圳)有限公司 Mobile terminal and communication service condition conversion control method thereof
CN105593830A (en) * 2013-10-30 2016-05-18 英特尔公司 A method, apparatus and system for measuring latency in a physical unit of a circuit
CN104702608A (en) * 2015-03-13 2015-06-10 吴培希 WiFi sharing system
CN105653008A (en) * 2015-12-29 2016-06-08 北京金山安全软件有限公司 Night sleep message prompting method and device and electronic equipment
CN106020942A (en) * 2016-05-05 2016-10-12 四川安嵌科技有限公司 Multi-system based WiFi device reuse method and device
CN106027294A (en) * 2016-05-13 2016-10-12 广东欧珀移动通信有限公司 Firmware loading method and system for terminal network access
CN105939225A (en) * 2016-06-23 2016-09-14 微梦创科网络科技(中国)有限公司 Method and device for executing service

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018103447A1 (en) * 2016-12-07 2018-06-14 广东欧珀移动通信有限公司 Method and device for enabling wi-fi/hotspot
CN109587829A (en) * 2018-11-16 2019-04-05 青岛海信电器股份有限公司 A kind of method, apparatus and terminal that terminal is used as website and hot spot to work simultaneously
CN109587829B (en) * 2018-11-16 2022-01-11 海信视像科技股份有限公司 Method and device for simultaneously working as site and hotspot by terminal and terminal
CN113986413A (en) * 2021-09-22 2022-01-28 阿里巴巴(中国)有限公司 Page display method, device, equipment and storage medium

Also Published As

Publication number Publication date
WO2018103447A1 (en) 2018-06-14
CN106686627B (en) 2020-01-14

Similar Documents

Publication Publication Date Title
CN108521644B (en) Network access method, equipment and system
CN111343699B (en) Icon display method and device, storage medium and electronic equipment
CN106507445A (en) A kind of Wireless Fidelity Wi Fi scan methods and mobile terminal
CN106686627A (en) WiFi/hotspot starting method and device
CN112738745B (en) Method for controlling network connection and related product
CN111836317B (en) Reporting method of state information, terminal and network equipment
CN105721734A (en) Image forming system, image forming apparatus, terminal device and non-transitory computer-readable recording medium
CN112333734B (en) Serving cell switching method and device
CN105874773A (en) Task processing device, intelligent apparatus, task processing method and baseband processor
CN113746821A (en) Intelligent device control method and device, storage medium and electronic device
CN112954076A (en) Data acquisition method
CN106603526A (en) WiFi/hotspot enabling method and device
CN106714181A (en) Method and apparatus for accessing WiFi hotspot
CN107248890A (en) Wireless communications method, device, storage medium and terminal
CN106375999A (en) Method and device for quickly connecting WiFi
EP2538729A1 (en) Method for controlling network connection of wireless network device and associated wireless network device
CN105657701B (en) A kind of call method and device based on eSIM card
CN108738010A (en) The network search method of terminal, the terminal with web search function
CN106022059A (en) Fingerprint unlocking method and terminal
EP4221285A1 (en) Method and apparatus for establishing communication connection
CN117440401A (en) Processing method of condition configuration, processing device of condition configuration and terminal
CN112885069B (en) Communication method, system, device and computer equipment of metering automation system
CN104066105B (en) Disturbance restraining method, macro base station, micro-base station and system
CN112929928A (en) Cell switching method, device and computer readable storage medium
CN111372240A (en) Picture uploading method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200114