Summary of the invention
The technical problem to be solved in the present invention is, for the above-mentioned defect of prior art, a kind of WIFI drive load method based on mobile terminal, system and mobile terminal are provided, are intended to solve the defect that WIFI drive load file takies a large amount of internal memory, for user provides convenience by the present invention.
The technical scheme that technical solution problem of the present invention adopts is as follows:
Based on a WIFI drive load method for mobile terminal, wherein, comprise step:
A, the Function Classification started by WIFI is driven to be split as the WIFI of mobile terminal in advance: to drive for starting the WIFI access connecting AP access points function of surfing the Net; For starting by the direct-connected direct-connected driving of the 2nd WIFI carrying out point to point connect transfer files function of WIFI; For starting, three WIFI hot spot of mobile terminal self as AP focus function is driven, and store in a memory in the mobile terminal respectively;
B, when mobile terminal open WIFI function time, detect the operating parameter of the WIFI function of current use;
The operating parameter of the WIFI function that C, basis detect determines the WIFI function of current use, and buffer memory is put in the WIFI of correspondence driving;
D, control from buffer memory, load the WIFI corresponding with working as the WIFI function of front opening and drive.
The described WIFI drive load method based on mobile terminal, wherein, also comprises step after described step D:
E, when WIFI is another function from a power and energy, unloads the WIFI that loads in current RAM and drive, and WIFI corresponding to controlled loading opening time WIFI function the latest drives.
The described WIFI drive load method based on mobile terminal, wherein, the operating parameter in described step B comprises two: operating function and mode of operation; Which function that operating function refers to WIFI is operated, and mode of operation refers to this and opened by the function operated or close.
The described WIFI drive load method based on mobile terminal, wherein, described step C specifically comprises:
C11, mode of operation is recorded in corresponding information recording unit according to the operating function in operating parameter;
If mode of operation is for opening in C12 operating parameter, then the time that the operating function in operating parameter is opened is recorded; If the operating function in operating parameter for closing, is then deleted by the mode of operation in operating parameter.
The described WIFI drive load method based on mobile terminal, wherein, described step D specifically comprises:
The operating parameter of the WIFI function that D1, basis detect determines the WIFI function used, and the time that the operating function in query manipulation parameter is opened, finds out current opening time WIFI function the latest;
WIFI corresponding to D2, controlled loading and opening time WIFI function the latest drives, if but load, control to load without the need to repeating.
Based on a WIFI drive load system for mobile terminal, wherein, comprising:
Pre-set module, for driving the Function Classification started by WIFI to be split as the WIFI of mobile terminal in advance: drive for starting the WIFI access connecting AP access points function of surfing the Net; For starting by the direct-connected direct-connected driving of the 2nd WIFI carrying out point to point connect transfer files function of WIFI; For starting, three WIFI hot spot of mobile terminal self as AP focus function is driven, and store in a memory in the mobile terminal respectively;
Operation monitoring module, for when mobile terminal opens WIFI function, detects the operating parameter of the WIFI function of current use;
Cache module, for determining the WIFI function of current use according to the operating parameter of the WIFI function detected, and puts into buffer memory by the WIFI of correspondence driving;
Drive load module, drives for controlling to load the WIFI corresponding with the WIF function when front opening from buffer memory.
The described WIFI drive load system based on mobile terminal, wherein, also comprises after described drive load module:
Drive Unload module, for when WIFI is another function from a power and energy, unloads the WIFI loaded in current RAM and drive, and the WIFI driving that controlled loading opening time WIFI function is the latest corresponding.
The described WIFI drive load system based on mobile terminal, wherein, described cache module comprises:
Record control unit, for being recorded in corresponding information recording unit according to the operating function in operating parameter by mode of operation;
If to open with mode of operation in deletion record unit operating parameter as opening, then the time that the operating function in operating parameter is opened is recorded; If the operating function in operating parameter for closing, is then deleted by the mode of operation in operating parameter;
Described operating parameter comprises two: operating function and mode of operation; Which function that operating function refers to WIFI is operated, and mode of operation refers to this and opened by the function operated or close.
The described WIFI drive load system based on mobile terminal, wherein, described drive load module comprises:
Search unit, for the WIFI function of use determined according to the operating parameter of WIFI function detected, the time that the operating function in query manipulation parameter is opened, find out current opening time WIFI function the latest;
Loading Control unit, the WIFI corresponding with opening time WIFI function the latest for controlled loading drives, if but load, control to load without the need to repeating.
A kind of mobile terminal, wherein, comprises the WIFI drive load system based on mobile terminal described in above any one.
WIFI drive load method based on mobile terminal provided by the present invention, system and mobile terminal, described method specifically comprises: drive the Function Classification started by WIFI to be split as the WIFI of mobile terminal in advance: drive for starting the WIFI access connecting AP access points function of surfing the Net; For starting by the direct-connected direct-connected driving of the 2nd WIFI carrying out point to point connect transfer files function of WIFI; For starting, three WIFI hot spot of mobile terminal self as AP focus function is driven, and store in a memory in the mobile terminal respectively; When mobile terminal opens WIFI function, detect the operating parameter of the WIFI function of current use; Determine the WIFI function of current use according to the operating parameter of the WIFI function detected, and buffer memory is put in the WIFI of correspondence driving; Control from buffer memory, load the WIFI corresponding with the WIFI function when front opening to drive.The present invention makes mobile terminal add New function: driven by corresponding for each a WIFI function WIFI, when user opens one of them WIFI function, only need to load corresponding function-driven, and when WIFI is another function from a power and energy, unload the WIFI loaded in current RAM to drive, and the WIFI driving that controlled loading opening time WIFI function is the latest corresponding, so for storing driver file saves a large amount of memory headrooms; Ensure that another function can normal load drive, and greatly provides users with the convenient when the closedown of one of them function, corresponding driving unloading simultaneously.
Embodiment
The invention discloses a kind of WIFI drive load method based on mobile terminal, system and mobile terminal, for making object of the present invention, technical scheme and advantage clearly, clearly, developing simultaneously referring to accompanying drawing, the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Refer to Fig. 1, Fig. 1 is the flow chart of the preferred embodiment of the WIFI drive load method that the present invention is based on mobile terminal.The WIFI drive load method based on mobile terminal shown in Fig. 1, comprising:
Step S101, the Function Classification started by WIFI is driven to be split as the WIFI of mobile terminal in advance: to drive for starting the WIFI access connecting AP access points function of surfing the Net; For starting by the direct-connected direct-connected driving of the 2nd WIFI carrying out point to point connect transfer files function of WIFI; For starting, three WIFI hot spot of mobile terminal self as AP focus function is driven, and store in a memory in the mobile terminal respectively;
Because mobile terminal can realize three kinds of common functions by WIFI chip, be respectively: function one: connect AP(Access Point, access points), mobile terminal can be surfed the Net; Function two: direct-connected by WIFI Direct(WIFI) technology carries out P2P(Peer to Peer, point-to-point) connect, and carry out file transfer between other mobile terminals; Function three: as AP, other mobile terminals being connected to this AP are surfed the Net mobile terminal self.Therefore, the WIFI function in the embodiment of the present invention for be also above three kinds of concrete functions.
Before the user that the embodiment of the present invention stores in detection mobile terminal system uses WIFI function, need in advance the WIFI of mobile terminal to be driven to be split as by Function Classification: the WIFI access for connecting the online of AP access points drives; For by the direct-connected direct-connected driving of the 2nd WIFI carrying out point to point connect transfer files of WIFI; For three WIFI hot spot of mobile terminal self as AP focus is driven, and store respectively in a memory in the mobile terminal.
Step S102, when mobile terminal open WIFI function time, detect the operating parameter of the WIFI function of current use;
In the embodiment of the present invention, when mobile terminal opens WIFI function, then detect the operating parameter of the WIFI function of current use, described operating parameter comprises two: operating function and mode of operation.Wherein, function title refers to which function of user operation WIFI, and mode of operation refers to this and opened by the function operated or close.Such as, user's opening function one, then operating parameter is set as: function one, open; Again such as, user's closing function two, then operating parameter is set as: function two, closedown.
The operating parameter of the WIFI function that step S103, basis detect determines the WIFI function of current use, and buffer memory is put in the WIFI of correspondence driving;
Described step specifically comprises: be recorded in corresponding information recording unit according to the operating function in operating parameter by mode of operation; When the mode of operation of the WIFI access function recorded in described operating parameter if detect is for opening, then the time that the operating function in operating parameter is opened is recorded; If the operating function in operating parameter for closing, is then deleted by the mode of operation in operating parameter.Such as, detect that the operating parameter of storage is: function one, to open, then function one and time of opening thereof are recorded, and stored in the buffer.Again such as, detect that operating parameter is: function two, closedown, then in the buffer the function two recorded before and operational status information thereof are deleted; Because function two is closed, in order to save memory headroom, therefore need the driving of function two to be unloaded further, release function two drives the memory headroom shared by file.
Step S104, control from buffer memory, load the WIFI corresponding with working as the WIFI function of front opening and drive;
Described step specifically comprises: determine the WIFI function used according to the operating parameter of the WIFI function detected, the time that the operating function in query manipulation parameter is opened, find out current opening time WIFI function the latest; WIFI corresponding to controlled loading and opening time WIFI function the latest drives, if but load, control to load without the need to repeating.
After the corresponding WIFI of loading drives, mobile terminal just can realize corresponding WIFI function.If read functions one WIFI drive load is in internal memory, now will realize connecting AP(Access Point, access points by WIFI chip by WIFI chip) function of surfing the Net.
Also comprise after described step S104: when WIFI is another function from a power and energy, unload the WIFI loaded in current RAM and drive, and the WIFI driving that controlled loading opening time WIFI function is the latest corresponding.After the corresponding WIFI of unloading drives, mobile terminal will not possess corresponding WIFI function; Such as, suppose that the WIFI of first value-added tax function one in internal memory drives, afterwards because function one is closed, or when function one is converted into other functions, the WIFI then unloading the current function one loaded drives, now cannot realize connecting AP(Access Point, access points by WIFI chip by WIFI chip) function of surfing the Net.
Below by by concrete Application Example, the present invention will be further described.Fig. 2 is the Application Example flow chart of the WIFI drive load method that the present invention is based on mobile terminal.As shown in Figure 2, step is comprised:
S10, monitor the operation of user for the corresponding three kinds of functions of WIFI, obtain operating parameter;
In this application embodiment, in advance the Function Classification that the WIFI of mobile terminal starts being split as: function one, connecting AP access points function of surfing the Net for starting; Function two, carries out point to point connect transfer files function for starting by WIFI is direct-connected; Function three, for starting using mobile terminal self as AP focus function, and stores in a memory in the mobile terminal respectively.
When monitoring the operation of user for the corresponding three kinds of functions of WIFI, obtain corresponding operating parameter.Described operating parameter comprises two: function title and mode of operation; Which function that function title refers to WIFI has been user-operably, and mode of operation refers to this and opened by the function operated or close; Such as, user's opening function one, then operating parameter is set to: function one, open; Again such as, user's closing function two, then operating parameter is set to: function two, closedown.
S20, operating parameter is put into buffer memory;
Described puts into buffer memory by parameter, specifically comprises the following steps:
Step S21, to be recorded in by mode of operation in corresponding information recording unit according to the function title in operating parameter, described information recording unit is the space of presetting in internal memory, for storage operation parameter.Such as, operating parameter is: function one, open, then the state of the WIFI function one recorded in WIFI function one information recording unit be set to and open;
Step S22, set a sequencing unit, the time of writing function opening/closing; If mode of operation is for opening in operating parameter, then in sequencing unit, the time that the operating function in operating parameter is opened is recorded; If the mode of operation in operating parameter is for closing, then in sequencing unit, function title corresponding in the operating parameter stored before is deleted; Such as, operating parameter is: function one, open, then opening function one and opening time thereof are recorded in sequencing unit; Again such as, operating parameter is: function one, closedown, then the function one recorded before and opening time thereof are deleted in sequencing unit.
The driving of the WIFI loaded in S30, unloading current memory, loads driving corresponding to opening time function the latest simultaneously.
If be sky in sequencing unit, without the need to load driver, otherwise, determine the WIFI function used according to the operating parameter of the WIFI function detected, the time that the operating function in inquiry sequencing unit is opened, find out current opening time WIFI function the latest; WIFI corresponding to controlled loading and opening time WIFI function the latest drives.If the driving loaded in the current memory driving corresponding with the function the latest of opening time in sequencing unit is same driving, then without the need to performing step S30, namely drive without the need to repeating to load WIFI.
Therefore, the present invention is adopted to make mobile terminal add New function: to be driven by corresponding for each a WIFI function WIFI, when user opens one of them WIFI function, only need to load corresponding function-driven, and when WIFI is another function from a power and energy, unload the WIFI loaded in current RAM to drive, and the WIFI driving that controlled loading opening time WIFI function is the latest corresponding, so for storing driver file saves a large amount of memory headrooms; Ensure that another function can normal load drive, and greatly provides users with the convenient when the closedown of one of them function, corresponding driving unloading simultaneously.
Based on above-described embodiment, the present invention also provides a kind of WIFI drive load system based on mobile terminal, as shown in Figure 3, comprising:
Pre-set module 100, for driving the Function Classification started by WIFI to be split as the WIFI of mobile terminal in advance: drive for starting the WIFI access connecting AP access points function of surfing the Net; For starting by the direct-connected direct-connected driving of the 2nd WIFI carrying out point to point connect transfer files function of WIFI; For starting, three WIFI hot spot of mobile terminal self as AP focus function is driven, and store in a memory in the mobile terminal respectively; As detailed above.
Operation monitoring module 200, for when mobile terminal opens WIFI function, detects the operating parameter of the WIFI function of current use; As detailed above.
Cache module 300, for determining the WIFI function of current use according to the operating parameter of the WIFI function detected, and puts into buffer memory by the WIFI of correspondence driving; As detailed above.
Drive load module 400, drives for controlling to load the WIFI corresponding with the WIF function when front opening from buffer memory; As detailed above.
Also comprise after described drive load module 400:
Drive Unload module 500, for when WIFI is another function from a power and energy, unloads the WIFI loaded in current RAM and drive, and the WIFI driving that controlled loading opening time WIFI function is the latest corresponding; As detailed above.
Further, the described WIFI drive load system based on mobile terminal, as shown in Figure 4, described cache module 300 also comprises:
Record control unit 310, for being recorded in corresponding information recording unit according to the operating function in operating parameter by mode of operation; As detailed above.
Opening and deletion record unit, if mode of operation is for opening in operating parameter, then the time that the operating function in operating parameter is opened being recorded; If the operating function in operating parameter for closing, is then deleted by the mode of operation in operating parameter; As detailed above.
Described operating parameter comprises two: operating function and mode of operation; Which function that operating function refers to WIFI is operated, and mode of operation refers to this and opened by the function operated or close.
Further, the described WIFI drive load system based on mobile terminal, as shown in Figure 5, described drive load module 400 also comprises:
Search unit 410, for the WIFI function of use determined according to the operating parameter of WIFI function detected, the time that the operating function in query manipulation parameter is opened, find out current opening time WIFI function the latest; As detailed above.
Loading Control unit 420, the WIFI corresponding with opening time WIFI function the latest for controlled loading drives, if but load, control to load without the need to repeating; As detailed above.
Based on above-described embodiment, the present invention also provides a kind of embodiment of mobile terminal, and the mobile terminal described in the present embodiment comprises the WIFI drive load system based on mobile terminal described above.
In sum, WIFI drive load method based on mobile terminal provided by the present invention, system and mobile terminal, described method specifically comprises: drive the Function Classification started by WIFI to be split as the WIFI of mobile terminal in advance: drive for starting the WIFI access connecting AP access points function of surfing the Net; For starting by the direct-connected direct-connected driving of the 2nd WIFI carrying out point to point connect transfer files function of WIFI; For starting, three WIFI hot spot of mobile terminal self as AP focus function is driven, and store in a memory in the mobile terminal respectively; When mobile terminal opens WIFI function, detect the operating parameter of the WIFI function of current use; Determine the WIFI function of current use according to the operating parameter of the WIFI function detected, and buffer memory is put in the WIFI of correspondence driving; Control from buffer memory, load the WIFI corresponding with the WIFI function when front opening to drive.The present invention makes mobile terminal add New function: driven by corresponding for each a WIFI function WIFI, when user opens one of them WIFI function, only need to load corresponding function-driven, and when WIFI is another function from a power and energy, unload the WIFI loaded in current RAM to drive, and the WIFI driving that controlled loading opening time WIFI function is the latest corresponding, so for storing driver file saves a large amount of memory headrooms; Ensure that another function can normal load drive, and greatly provides users with the convenient when the closedown of one of them function, corresponding driving unloading simultaneously.
Should be understood that, application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can be improved according to the above description or convert, and all these improve and convert the protection range that all should belong to claims of the present invention.