CN106603526A - WiFi/hotspot enabling method and device - Google Patents

WiFi/hotspot enabling method and device Download PDF

Info

Publication number
CN106603526A
CN106603526A CN201611143063.8A CN201611143063A CN106603526A CN 106603526 A CN106603526 A CN 106603526A CN 201611143063 A CN201611143063 A CN 201611143063A CN 106603526 A CN106603526 A CN 106603526A
Authority
CN
China
Prior art keywords
wifi
target firmware
focuses
loading
firmware
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
CN201611143063.8A
Other languages
Chinese (zh)
Other versions
CN106603526B (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 CN201611143063.8A priority Critical patent/CN106603526B/en
Publication of CN106603526A publication Critical patent/CN106603526A/en
Application granted granted Critical
Publication of CN106603526B publication Critical patent/CN106603526B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
    • 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
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention discloses a WiFi/hotspot enabling method. The method includes the following steps that: a WiFi/hotspot enabling instruction is received, a configuration file corresponding to the WiFi/hotspot enabling instruction is read, and target firmware corresponding to the WiFi/hotspot enabling instruction is determined and is loaded; a process is created, wherein the process is used for building a socket connection with the target firmware, and the state of the process is set to be a sleep state; and whether the loading of the target firmware is completed or not is detected, if the loading of the target firmware is completed, the process in the sleep state is waked up, the socket connection with the target firmware is executed through the process. The present invention also discloses a WiFi/hotspot enabling device. With the WiFi/hotspot enabling method and device provided by the embodiments of the present invention adopted, the enabling speed of WiFi or a hot spot can be improved.

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
At present major part mobile-terminal platform (ISO platforms or Android platform etc.), has been equipped with Wifi chips, together 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 be 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 establishment success.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 affect 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, be solve in conventional art because arrange 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;
Establishment process, the process is used to set up and the socket connections between the target firmware, and by the process Process statuss be set to resting state;
Detect whether the target firmware loading completes, if so, then wake up the process of the dormancy, held by the process Socket connections between the row foundation and the target firmware.
Optionally, wherein in one embodiment, the process statuss by the process are set to after resting state Also include:
The process statuss for detecting the process are arranged to the lasting sleep time of resting state, in the lasting dormancy When length exceedes default threshold value, the prompting message for generating the unlatching failure of WiFi/ focuses is simultaneously shown, and nullifies the process.
Optionally, it is described to detect whether the target firmware loading completes also to include wherein in one embodiment:
Default detection cycle is obtained, completes to examine to whether the target firmware loads according to the detection cycle Survey.
Optionally, wherein in one embodiment, also include before the process for waking up the dormancy:
Obtain history corresponding with the loading of the target firmware and load duration, duration determination is loaded according to the history and is called out The wakeup time of the process of the awake dormancy;
When the wakeup time is reached, the process for waking up the dormancy is performed.
Optionally, it is described that the foundation and the target firmware are performed by the process wherein in one embodiment Between socket connection after also include:
Monitor whether the socket connections are successfully established, if it is not, then, then performing and performing the foundation by the process It is connected with the socket between the target firmware.
Additionally, in solve conventional art because arrange 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;
Process creation module, for creating process, the process is used to set up and the socket between the target firmware Connection, and the process statuss of the process are set to into resting state;
Target firmware loads detection module, for detecting whether the target firmware loading completes;
Process execution, for when target firmware loading is completed, the process of the dormancy being waken up, by described Process performs the socket connections between the foundation and the target firmware.
Optionally, wherein in one embodiment, described device also includes sleep time detection module, described for detecting The process statuss of process are arranged to the lasting sleep time of resting state, and in the sleep time that continues default threshold value is exceeded When, generate WiFi/ focuses and open the prompting message of failure and be shown, nullify the process.
Optionally, wherein in one embodiment, the target firmware loading detection module is additionally operable to obtain default inspection In the survey cycle, complete to detect to whether the target firmware loads according to the detection cycle.
Optionally, wherein in one embodiment, described device also includes wakeup time determining module, for acquisition and institute The corresponding history of loading for stating target firmware loads duration, and according to the history process that duration determines the wake-up dormancy is loaded Wakeup time;When the wakeup time is reached, the Process execution is called.
Optionally, wherein in one embodiment, it is characterised in that it is described that the Process execution is additionally operable to monitoring Whether socket connections are successfully established, if it is not, then, then perform by the process perform it is described set up and the target firmware it Between socket connection.
Further, it is to solve in conventional art to attempt setting up because arranging the changeless wifimonitor of identical 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 A kind of mobile terminal is gone out.
A kind of mobile terminal, including:
Processor and memorizer;Wherein, code during the processor is by calling the memorizer or instruction are performing 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 Load and open the corresponding firmware of WiFi/ focuses, and set up process and process by the socket companies between foundation and firmware Fetch the message communicating between foundation and firmware;But, because the loading of firmware is not completed, the process statuss of the process are arranged For resting state, and detect whether firmware loads complete, it is to wake up above-mentioned process to connect performing socket to complete in firmware loads Connect foundation.Socket is set up compared to after setting up socket connection failures first in conventional art according to fixed cycle trial For the technical scheme of connection, the process dormancy of socket connections will be set up and directly pass through to detect whether the loading of firmware is complete Into determining the time that process is waken up, the socket connection establishments corresponding execution time for carrying out accurately has been grasped, it is to avoid Excessive cycle duration affects the speed of the unlatching of WiFi/ focuses, it also avoid too small cycle duration and has increased terminal system The burden of system, accelerates the opening speed of WiFi/ focuses, and alleviates the burden of terminal system, improves Consumer's Experience.
Description of the drawings
In order to be illustrated more clearly that 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 the interface schematic diagram that a kind of focus arranges interface in one embodiment;
Fig. 3 is the interface schematic diagram that a kind of WiFi arranges interface in one embodiment;
Fig. 4 is a kind of structural representation of the opening device of WiFi/ focuses in one embodiment;
Fig. 5 is the structural representation of the computer equipment of the open method that aforementioned WiFi/ focuses are run in one embodiment.
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 the embodiment of whole.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.
Attempt setting up and firmware between because arranging the changeless wifimonitor of identical in solve 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 terminal 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 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, user can arrange corresponding focus in interface and release the button or control input heat by focus Point opens request, for example, arranges in the page in focus as shown in Figure 2, and user can pass through the button input heat 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, arrange in the page in focus as shown in Figure 3, user can be by compiling Button input WiFi shown in number B opens request, opens WiFi and simultaneously scans the WiFi in surrounding;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 Fileinfo is put, then goes to load according to profile information related all of solid with what the unlatching of Wi-Fi hotspot needed to load Part, i.e. target firmware, and load above-mentioned target firmware.
Step S104:Establishment process, the process is used to set up and the socket connections between the target firmware, and will The process statuss of the process are set to resting state.
In the present embodiment, after the WiFi/ focus open commands in step S102 is received, create for set up with The process of the socket connections between target firmware.
In the present embodiment, during WiFi/ focuses are opened, establishment socket is needed to be monitored, in Android In system, the module being monitored is wifimonitor, that is, set up consolidating for application layer loading corresponding with WiFi or focus Message communicating between part.Generally, create after WiFi/ focus open commands are received process for set up State the connections of the socket between application layer and target firmware to be monitored with the message communication to terminal.But, if step S102 The target firmware of middle loading is not loaded successfully, then can set up mistake during foundation is connected with the socket of target firmware Lose;If conversely, before the process that execution step S104 is created, target firmware has been loaded successfully, then process exists in this step During execution, socket connection establishment successes, socket connection establishments success then explanation open WiFi/ focuses it is all enter Journey has been finished, and WiFi/ focuses are successfully opened.
In the present embodiment, can not to set up in order to avoid performing above-mentioned process before target firmware does not load success The socket connections that can be successfully established after target firmware is not loaded and completed, this are entered so as to cause to waste system resource The process statuss of journey are set to resting state;Process in a dormant state is present in terminal, but is because that it is dormancy shape State only could be performed without performing after the process is waken up.
Step S106:Detect whether the target firmware loading completes, when target firmware loading is completed, perform institute State step S108:The process of the dormancy is waken up, is performed between the foundation and the target firmware by the process Socket connects;When target firmware loading is not completed, execution step S106.Specifically, in android system for The loading of firmware is loaded by the ctl.start of property system in WiFi unlatchings or focus opening process, The attribute that firmware loads can pass through in property system after completing arranges the state of firmware loads, therefore, when setting a property, i.e., The state of corresponding firmware loads can be obtained, that is, is known whether firmware has loaded and is completed.In the present embodiment, by attribute The detection that corresponding with target firmware attribute is arranged in system is completed determining whether target firmware has loaded, in target firmware When loading is completed, the process of aforementioned dormancy is waken up.Specifically, according to foregoing teachings, above-mentioned process is used to set up and the target Socket connections between firmware, therefore, perform after the process is waken up, that is, perform the process to set up and the mesh Socket connections between mark firmware.
In another embodiment, for target firmware whether load the detection that completes be not it is continual in real time, But carry out according to default rule is intermittent, to save the occupancy to system resource.
Specifically, it is described to detect whether the target firmware loading completes also to include in an optional embodiment:Obtain Default detection cycle is taken, completes to detect to whether the target firmware loads according to the detection cycle.
That is, pre-setting the detection cycle that the detection for completing whether is loaded to target firmware, for example, 1s; In the step of whether above-mentioned detection target firmware loading completes, the execution of the step is performed according to the default detection cycle , i.e., periodically complete to detect to whether target firmware has loaded according to default detection cycle.
Optionally, in another embodiment, for by the wake-up opportunity of the process of dormancy not only can be inspection The loading for measuring target firmware is completed, and can also be the loading duration according to the target firmware estimated to determine.
Specifically, also include before the process for waking up the dormancy:Obtain corresponding with the loading of the target firmware History loading duration, the wakeup time that duration determines the process for waking up the dormancy is loaded according to the history;Call out described When the awake time reaches, the process for waking up the dormancy is performed.
In the present embodiment, obtain store in the terminal either caching be connected with WiFi or focus unlatching process The historical record of middle loading firmware, contains the loading duration of loading firmware each time in the historical record of the loading firmware. The loading duration of the loading firmware each time included in above-mentioned historical record and historical record represents the history of present terminal The situation of loading firmware, reflects 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 Each time used as average loading duration, this averagely loads duration and reflects the terminal-pair meansigma methodss of the loading duration of loading firmware 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 Interior history loads duration or the loading duration of the history within default loading number of times.
The wakeup time of wakeup process is determined according to average loading duration, that is, determines the implementation time for carrying out.For example, exist In one embodiment, the wakeup time of wakeup process is determined according to time started of firmware loads and average loading duration. Also, when wakeup time is reached, wake up corresponding process and perform, that is, set up and the socket connections between target firmware.
In the present embodiment, perform it is above-mentioned carry out set up socket connect during also likely to be present socket connect Connect and set up unsuccessful situation, in this case, need to repeat the process to complete socket establishment of connections.
Specifically, in one embodiment, it is described to be performed between the foundation and the target firmware by the process Socket connection after also include:Monitor whether the socket connections are successfully established, if it is not, then, then performing by described Process performs the socket connections between the foundation and the target firmware.
That is, during socket connections are set up above-mentioned process is performed every time, being required to connect socket Connect whether to be successfully established and be monitored, to perform corresponding treatment mechanism in the case of socket connection establishments are unsuccessful, In the present embodiment, i.e., the process is performed again until default end condition is set up or reached in socket successful connections.At this In embodiment, in the loading procedure of target firmware, whether target firmware loads has successfully received many convenient impacts, if target is solid Part is because certain reason loading failure, and the process created in step S104 is constantly in resting state, occupying system resources. For such case, in an optional embodiment, the process statuss by the process are set to after resting state Also include:The process statuss for detecting the process are arranged to the lasting sleep time of resting state, in the lasting dormancy When length exceedes default threshold value, the prompting message for generating the unlatching failure of WiFi/ focuses is simultaneously shown, and nullifies the process. That is, after process is created and is arranged to resting state, if long-time is not waken up, it may be possible to corresponding target The loading of firmware is out of joint and lead to not load successfully, in this case, the process for having created is nullified, so as to reduce Occupancy to system resource.
Additionally, in solve conventional art because arrange 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, process Creation module 104, target firmware loads detection module 106 and Process execution 108, wherein:
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;
Process creation module 104, for creating process, the process is used to set up and the target firmware between Socket connects, and the process statuss of the process are set to into resting state;
Target firmware loads detection module 106, for detecting whether the target firmware loading completes;
Process execution 108, for when target firmware loading is completed, waking up the process of the dormancy, passes through The process performs the socket connections between the foundation and the target firmware.
Optionally, in the present embodiment, as shown in figure 4, said apparatus also include sleep time detection module 110, it is used for The process statuss for detecting the process are arranged to the lasting sleep time of resting state, exceed in advance in the sleep time that continues If threshold value when, generate WiFi/ focuses and open the prompting message of failure and be simultaneously shown, the cancellation process.
Optionally, in the present embodiment, the target firmware loading detection module 106 is additionally operable to obtain default detection week Phase, complete to detect to whether the target firmware loads according to the detection cycle.
Optionally, in the present embodiment, as shown in figure 4, said apparatus also include wakeup time determining module 112, it is used for Obtain history corresponding with the loading of the target firmware and load duration, stop according to the history loads duration determination wake-up The wakeup time of the process of dormancy;When the wakeup time is reached, the Process execution 108 is called.
Optionally, in the present embodiment, the Process execution 108 is additionally operable to monitor whether the socket connections build Stand successfully, if it is not, then, then perform the socket connections performed by the process between the foundation and the target firmware.
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 Load and open the corresponding firmware of WiFi/ focuses, and set up process and process by the socket companies between foundation and firmware Fetch the message communicating between foundation and firmware;But, because the loading of firmware is not completed, the process statuss of the process are arranged For resting state, and detect whether firmware loads complete, it is to wake up above-mentioned process to connect performing socket to complete in firmware loads Connect foundation.Socket is set up compared to after setting up socket connection failures first in conventional art according to fixed cycle trial For the technical scheme of connection, the process dormancy of socket connections will be set up and directly pass through to detect whether the loading of firmware is complete Into determining the time that process is waken up, the socket connection establishments corresponding execution time for carrying out accurately has been grasped, it is to avoid Excessive cycle duration affects the speed of the unlatching of WiFi/ focuses, it also avoid too small cycle duration and has increased terminal system The burden of system, accelerates the opening speed of WiFi/ focuses, and alleviates the burden of terminal system, improves Consumer's Experience.
In one embodiment, as shown in figure 5, Fig. 5 illustrates a kind of base of the open method of the above-mentioned WiFi/ focuses of operation In the terminal of the computer system of von Neumann system.The computer system can include can connecting for WiFi chip The terminal units such as the smart mobile phone of Wi-Fi hotspot, panel computer, palm PC, notebook computer or PC.Specifically, may be used Including the outer input interface 1001, processor 1002, memorizer 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). Memorizer 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 grade equipment of 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 aforementioned 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, the loading inspection of process creation module 104, target firmware Survey module, 106 Process executions 108, sleep time detection module 110 and wakeup time determining module 112.And above-mentioned In the open method implementation procedure of WiFi/ focuses, the parameter of input is received by outer input interface 1001, and is transferred to deposit Cache in reservoir 1003, be then input to be processed in processor 1002, the result data of process or be cached in memorizer Subsequently processed in 1003, 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;
Establishment process, the process is used to set up and the socket connections between the target firmware, and by the process Process statuss be set to resting state;
Detect whether the target firmware loading completes, if so, then wake up the process of the dormancy, held by the process Socket connections between the row foundation and the target firmware.
Optionally, in one embodiment, above-mentioned processor 1002 is additionally operable to detect that the process statuss of the process are set The lasting sleep time of resting state is set to, when the lasting sleep time exceedes default threshold value, WiFi/ focuses is generated and is opened Open the prompting message of failure and be shown, nullify the process.
Optionally, in one embodiment, above-mentioned processor 1002 is additionally operable to obtain default detection cycle, according to described Detection cycle completes to detect to whether the target firmware loads.
Optionally, in one embodiment, above-mentioned processor 1002 is additionally operable to obtain right with the loading of the target firmware The history loading duration answered, according to the history wakeup time that duration determines the process for waking up the dormancy is loaded;Described When wakeup time is reached, the process for waking up the dormancy is performed.
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 performs the socket connections performed by the process between the foundation and the target firmware.
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 include:
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;
Establishment process, the process is used to set up and the socket connections between the target firmware, and entering the process Journey state is set to resting state;
Detect whether the target firmware loading completes, if so, then wake up the process of the dormancy, institute is performed by the process State the socket connections between foundation and the target firmware.
2. the open method of WiFi/ focuses according to claim 1, it is characterised in that the process by the process State is set to also include after resting state:
The process statuss for detecting the process are arranged to the lasting sleep time of resting state, surpass in the sleep time that continues When crossing default threshold value, generate WiFi/ focuses and open the prompting message of failure and be shown, nullify the process.
3. the open method of WiFi/ focuses according to claim 1, it is characterised in that the detection target firmware Whether loading completes also to include:
Default detection cycle is obtained, completes to detect to whether the target firmware loads according to the detection cycle.
4. the open method of WiFi/ focuses according to claim 1, it is characterised in that the wake-up dormancy is entered Also include before journey:
Obtain history corresponding with the loading of the target firmware and load duration, duration is loaded according to the history and determines wake-up institute State the wakeup time of the process of dormancy;
When the wakeup time is reached, the process for waking up the dormancy is performed.
5. according to the open method of the arbitrary described WiFi/ focuses of Claims 1-4, it is characterised in that it is described by it is described enter Also include after socket connections described in Cheng Zhihang between foundation and the target firmware:
Monitor whether the socket connections are successfully established, if it is not, then, then performing and performing the foundation and institute by the process State the socket connections between target firmware.
6. a kind of opening device of WiFi/ focuses, it is characterised in that include:
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;
Process creation module, for creating process, the process is used to set up and the socket connections between the target firmware, And the process statuss of the process are set to into resting state;
Target firmware loads detection module, for detecting whether the target firmware loading completes;
Process execution, for when target firmware loading is completed, the process of the dormancy being waken up, by the process Perform the socket connections between the foundation and the target firmware.
7. the opening device of WiFi/ focuses according to claim 6, it is characterised in that when described device also includes dormancy Long detection module, for detecting that the process statuss of the process are arranged to the lasting sleep time of resting state, holds described When continuous sleep time exceedes default threshold value, generate WiFi/ focuses and open the prompting message of failure and be shown, nullify described Process.
8. the opening device of WiFi/ focuses according to claim 6, it is characterised in that the target firmware loading detection Module is additionally operable to obtain default detection cycle, completes to examine to whether the target firmware loads according to the detection cycle Survey.
9. the opening device of WiFi/ focuses according to claim 6, it is characterised in that when described device also includes waking up Between determining module, duration is loaded for obtaining corresponding with the loading of target firmware history, when loading according to the history The long wakeup time for determining the process for waking up the dormancy;When the wakeup time is reached, the Process execution is called.
10. according to the opening device of the arbitrary described WiFi/ focuses of claim 6 to 9, it is characterised in that the process is performed Module is additionally operable to monitor whether the socket connections are successfully established, if it is not, then, then performing by building described in process execution It is vertical to be connected with the socket between the target firmware.
11. a kind of mobile terminals, it is characterised in that include:
Processor and memorizer;Wherein, code during the processor is by calling the memorizer or instruction are performing such as power Profit requires the open method of the WiFi/ focuses described in 1 to 5 any one.
CN201611143063.8A 2016-12-07 2016-12-07 WiFi/hotspot starting method and device Active CN106603526B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611143063.8A CN106603526B (en) 2016-12-07 2016-12-07 WiFi/hotspot starting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611143063.8A CN106603526B (en) 2016-12-07 2016-12-07 WiFi/hotspot starting method and device

Publications (2)

Publication Number Publication Date
CN106603526A true CN106603526A (en) 2017-04-26
CN106603526B CN106603526B (en) 2020-03-24

Family

ID=58597702

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611143063.8A Active CN106603526B (en) 2016-12-07 2016-12-07 WiFi/hotspot starting method and device

Country Status (1)

Country Link
CN (1) CN106603526B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110647597A (en) * 2018-06-11 2020-01-03 百度在线网络技术(北京)有限公司 Rendering method and device of electronic map
CN111356209A (en) * 2020-02-17 2020-06-30 Oppo广东移动通信有限公司 Multi-frequency WiFi hotspot opening method and device, storage medium and electronic equipment
CN111867143A (en) * 2020-04-27 2020-10-30 广州朗国电子科技有限公司 Communication method and device among multiple devices in education whiteboard and education whiteboard

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100188975A1 (en) * 2009-01-28 2010-07-29 Gregory G. Raleigh Verifiable device assisted service policy implementation
CN101813003A (en) * 2010-03-30 2010-08-25 煤炭科学研究总院重庆研究院 Mine disaster relief command system
CN102098761A (en) * 2009-12-10 2011-06-15 华为终端有限公司 Mobile communication terminal and network access method thereof
WO2012068526A1 (en) * 2010-11-19 2012-05-24 Nest Labs, Inc. Methods and systems for data interchange between a network-connected thermostat and cloud-based management server
CN104702608A (en) * 2015-03-13 2015-06-10 吴培希 WiFi sharing system
CN105873191A (en) * 2015-11-02 2016-08-17 乐视致新电子科技(天津)有限公司 WIFI dormancy control method and system, and router
CN106020942A (en) * 2016-05-05 2016-10-12 四川安嵌科技有限公司 Multi-system based WiFi device reuse method and device
US20160344604A1 (en) * 2009-01-28 2016-11-24 Headwater Partners I Llc Mobile Device and Method Attributing Media Services Network Usage to Requesting Application

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100188975A1 (en) * 2009-01-28 2010-07-29 Gregory G. Raleigh Verifiable device assisted service policy implementation
US20160344604A1 (en) * 2009-01-28 2016-11-24 Headwater Partners I Llc Mobile Device and Method Attributing Media Services Network Usage to Requesting Application
CN102098761A (en) * 2009-12-10 2011-06-15 华为终端有限公司 Mobile communication terminal and network access method thereof
CN101813003A (en) * 2010-03-30 2010-08-25 煤炭科学研究总院重庆研究院 Mine disaster relief command system
WO2012068526A1 (en) * 2010-11-19 2012-05-24 Nest Labs, Inc. Methods and systems for data interchange between a network-connected thermostat and cloud-based management server
CN104702608A (en) * 2015-03-13 2015-06-10 吴培希 WiFi sharing system
CN105873191A (en) * 2015-11-02 2016-08-17 乐视致新电子科技(天津)有限公司 WIFI dormancy control method and system, and router
CN106020942A (en) * 2016-05-05 2016-10-12 四川安嵌科技有限公司 Multi-system based WiFi device reuse method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈晓军: "《巧借"驱动人生"实现WiFi共享》", 《电子报》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110647597A (en) * 2018-06-11 2020-01-03 百度在线网络技术(北京)有限公司 Rendering method and device of electronic map
CN110647597B (en) * 2018-06-11 2022-04-08 百度在线网络技术(北京)有限公司 Rendering method and device of electronic map
CN111356209A (en) * 2020-02-17 2020-06-30 Oppo广东移动通信有限公司 Multi-frequency WiFi hotspot opening method and device, storage medium and electronic equipment
CN111356209B (en) * 2020-02-17 2022-04-26 Oppo广东移动通信有限公司 Multi-frequency WiFi hotspot opening method and device, storage medium and electronic equipment
CN111867143A (en) * 2020-04-27 2020-10-30 广州朗国电子科技有限公司 Communication method and device among multiple devices in education whiteboard and education whiteboard

Also Published As

Publication number Publication date
CN106603526B (en) 2020-03-24

Similar Documents

Publication Publication Date Title
CN103477300B (en) The sensorless detection of heat load in multiprocessor wireless device and management
CN104716750B (en) A kind of low power consuming wireless power method and relevant apparatus, system
CN101256512B (en) Method for automatically electing main guiding nucleus in heterogeneous multi-nucleus architecture
CN106603526A (en) WiFi/hotspot enabling method and device
CN104932963B (en) The method and device of management terminal
CN102866908A (en) Method for cleaning Android background applications and services
CN104184907B (en) The detection method and terminal of the wake-up data of terminal application software in the standby state
CN107992407A (en) System and method using USB flash disk to android terminal equipment debugging
CN105264970B (en) A kind of method, device and mobile terminal reducing power consumption
CN109816830B (en) Unlocking method and device
CN106664652A (en) Method for awakening wireless-fidelity network and terminal
CN106686627A (en) WiFi/hotspot starting method and device
CN102045211A (en) Power supply circulating pressure testing method
CN104063316B (en) The method of testing and device of a kind of application
CN107451024A (en) The credible measure of hardware realized based on BMC chip
CN114548929A (en) On-site inspection monitoring method and system
CN104123512B (en) Realize the method and apparatus switched between intelligent cipher key equipment pattern
CN114257474A (en) Power utilization control method and device for intelligent gateway, computer equipment and storage medium
CN108566669A (en) A kind of method of terminal intelligent power saving, terminal and the device with store function
CN103235728B (en) The installation method of preset third-party application and device in Android terminal
CN110046033A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN109992360A (en) Process handling method and device, electronic equipment, computer readable storage medium
CN112885069B (en) Communication method, system, device and computer equipment of metering automation system
KR102418892B1 (en) Method of saving energy based on confidence interval and apparatus using the same
CN106681758B (en) The open method and device of Wi-Fi hotspot

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

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.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant