CN107682910A - Floating resources sharing method, device, mobile terminal and storage medium - Google Patents

Floating resources sharing method, device, mobile terminal and storage medium Download PDF

Info

Publication number
CN107682910A
CN107682910A CN201710924231.5A CN201710924231A CN107682910A CN 107682910 A CN107682910 A CN 107682910A CN 201710924231 A CN201710924231 A CN 201710924231A CN 107682910 A CN107682910 A CN 107682910A
Authority
CN
China
Prior art keywords
sim card
virtual sim
hotspot
flow
data
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
CN201710924231.5A
Other languages
Chinese (zh)
Other versions
CN107682910B (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 CN201710924231.5A priority Critical patent/CN107682910B/en
Publication of CN107682910A publication Critical patent/CN107682910A/en
Application granted granted Critical
Publication of CN107682910B publication Critical patent/CN107682910B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/04Terminal devices adapted for relaying to or from another terminal or user

Abstract

The invention relates to a kind of floating resources sharing method, device, mobile terminal and storage medium.The above method, including:The network creation hotspot accessed by virtual SIM card;The flow use information of the virtual SIM card is counted, and the hotspot state in which is determined according to the flow use information;If the hotspot is in opening, when receiving the hotspot connection request of requesting terminal transmission, the configuration information matched with the hotspot is sent to the requesting terminal, the configuration information is used to indicate that the requesting terminal is configured, and the hotspot is connected, the floating resources possessed by the hotspot using the virtual SIM card.Above-mentioned floating resources sharing method, device, mobile terminal and storage medium, can make multiple terminals be used in conjunction with the floating resources of same virtual SIM card, realize that the floating resources of virtual SIM card are shared.

Description

Floating resources sharing method, device, mobile terminal and storage medium
Technical field
The application is related to communication technical field, more particularly to a kind of floating resources sharing method, device, mobile terminal and Computer-readable recording medium.
Background technology
Global system for mobile communications (the Global System for Mobile that connection of mobile terminal into network operator provides Communication, GSM), WCDMA (Wideband Code Division Multiple Access, W- ) etc. CDMA, it is necessary to be entered by user identification module (Subscriber Identity Module, SIM) during data network Row access, SIM card can be stored with identification information and authentication information of user etc., after network authenticates successfully to SIM card, mobile terminal Network can be normally accessed, call is realized, uses the functions such as network traffics.
In traditional SIM card in use, user usually requires to buy the SIM card of an entity, then go at Virtual network operator After handling network service, entity SIM card is put into mobile terminal just can normal use.As user because the reason such as go abroad needs frequency When changing Virtual network operator numerously, optional virtual SIM card is used, and virtual SIM card can help the net needed for user's selection Network operator, it is not necessary to buy multiple entity SIM cards and switch over.But each virtual SIM card can only be in a mobile terminal Upper use, it is more inconvenient.
The content of the invention
The embodiment of the present application provides a kind of floating resources sharing method, device, mobile terminal and computer-readable storage medium Matter, multiple terminals can be made to be used in conjunction with the floating resources of same virtual SIM card, realize that the floating resources of virtual SIM card are shared.
A kind of floating resources sharing method, including:
The network creation hotspot accessed by virtual SIM card;
The flow use information of the virtual SIM card is counted, and the wireless heat is determined according to the flow use information Point state in which;
If the hotspot is in opening, when receiving the hotspot connection request of requesting terminal transmission, The configuration information matched with the hotspot is sent to the requesting terminal, the configuration information is used to indicate the request eventually End is configured, and connects the hotspot, and the flow possessed by the hotspot using the virtual SIM card is provided Source.
A kind of floating resources sharing means, including:
Creation module, for the network creation hotspot accessed by virtual SIM card;
Statistical module, for counting the flow use information of the virtual SIM card, and it is true according to the flow use information The fixed hotspot state in which;
Sending module, if being in opening for the hotspot, when the wireless heat for receiving requesting terminal transmission During point connection request, the configuration information matched with the hotspot is sent to the requesting terminal, the configuration information is used for Indicate that the requesting terminal is configured, and connect the hotspot, the virtual SIM card is used by the hotspot The floating resources possessed.
A kind of mobile terminal, including memory and processor, computer program, the calculating are stored with the memory When machine program is by the computing device so that the processor realizes method as described above.
A kind of computer-readable recording medium, is stored thereon with computer program, and the computer program is held by processor Method as described above is realized during row.
Above-mentioned floating resources sharing method, device, mobile terminal and computer-readable recording medium, pass through virtual SIM card The network creation hotspot of access, hotspot state in which is determined according to the flow use information of virtual SIM card, works as nothing When line focus is in opening, requesting terminal can be made to connect hotspot, requesting terminal can be made by the hotspot of connection The floating resources possessed with virtual SIM card carry out network service, and multiple terminals can be made to be used in conjunction with the stream of same virtual SIM card Resource is measured, realizes that the floating resources of virtual SIM card are shared.
Brief description of the drawings
Fig. 1 is the application scenario diagram of floating resources sharing method in one embodiment;
Fig. 2 is the applied environment figure of floating resources sharing method in one embodiment;
Fig. 3 is the part Organization Chart of mobile terminal in one embodiment;
Fig. 4 is the schematic flow sheet of floating resources sharing method in one embodiment;
Fig. 5 is the schematic flow sheet for determining hotspot state in which in one embodiment according to flow use information;
Fig. 6 is that the flow for determining hotspot state in which according to flow use information in another embodiment is illustrated Figure;
Fig. 7 is the schematic flow sheet of the first flow data that collection virtual SIM card has used in one embodiment;
Fig. 8 is that one embodiment breaks the schematic flow sheet that requesting terminal is connected with hotspot;
Fig. 9 is the block diagram of floating resources sharing means in one embodiment;
Figure 10 is the block diagram of mobile terminal in one embodiment;
Figure 11 is the block diagram of mobile terminal in another embodiment.
Embodiment
In order that the object, technical solution and advantage of the application are more clearly understood, it is right below in conjunction with drawings and Examples The application is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the application, not For limiting the application.
It is appreciated that term " first " used in this application, " second " etc. can be used to describe various elements herein, But these elements should not be limited by these terms.These terms are only used for distinguishing first element and another element.Citing comes Say, in the case where not departing from scope of the present application, the first client can be referred to as the second client, and similarly, can incite somebody to action Second client is referred to as the first client.First client and the second client both clients, but it is not same visitor Family end.
Fig. 1 is the application scenario diagram of floating resources sharing method in one embodiment.As shown in figure 1, mobile terminal 10 After virtual SIM card information access data network, the network creation hotspot of virtual SIM card access can be passed through.Mobile terminal 10 can count the flow use information of virtual SIM card, and determine hotspot state in which according to flow use information.Work as nothing , can if mobile terminal 10 receives the hotspot connection request of the transmission of requesting terminal 20 when line focus is in opening The configuration information matched with hotspot is sent to requesting terminal 20.Requesting terminal 20 receive sent by mobile terminal 10 with After the configuration information of hotspot matching, the hotspot of mobile terminal 10 can be connected according to the configuration information, and pass through the nothing The floating resources that line focus is possessed using the virtual SIM card in mobile terminal 10 carry out network service.It is it is to be appreciated that mobile whole End 10 can carry out wireless connection with one or more requesting terminals 20 simultaneously, can have one or more requesting terminals 20 to connect simultaneously The hotspot that mobile terminal 10 is opened.
Fig. 2 is the applied environment figure of floating resources sharing method in one embodiment.As shown in Fig. 2 server 30 and shifting Dynamic terminal 10 can be attached by network, wherein, server 30 can be Cloud Server, and server 30 can be with the network of cooperation Carrier server is docked.Server 30 can provide virtual SIM card information to mobile terminal 10 and use virtual SIM card Realize the service of access data network.Virtual SIM card application program (Application, APP) is may be provided with mobile terminal 10 102nd, virtual SIM card operating system 104 and virtual SIM card adaptation layer 106.Virtual SIM card APP102, virtual SIM card behaviour Make system 104 and virtual SIM card adaptation layer 106 may be disposed at the application processor (Application of mobile terminal 10 Processor, AP) in.Virtual SIM card APP102 in mobile terminal 10 can obtain virtual SIM card information from server 30, and Virtual SIM card information is stored in virtual SIM card operating system 104.Virtual SIM card operating system 104 can pass through virtual SIM Card adaptation layer 106 realizes the radio-frequency communication control software with being arranged in BBP (Baseband Processor, BP) Communicated, network service is carried out using virtual SIM card to realize.
Wherein, server 30 can provide interface to the virtual SIM card APP102 of mobile terminal 10, and the interface may include to use Family and equipment control, the set meal of virtual SIM card and order management, the interface such as encrypted transmission of SIM resources, the void of mobile terminal 10 The interface that intending SIM card APP102 can be provided by server 30 obtains the virtual SIM card information stored on server 30, realizes net Network communicates.In one embodiment, server 30 can be with REST ful application programming interfaces (Application Programming Interface, API) mode to virtual SIM card APP102 provide relevant interface.Virtual SIM card information can Including but not limited to the essential information of virtual SIM card, the set meal of virtual SIM card and sequence information, the flow of virtual SIM card use Information, deadline information etc..
Fig. 3 is the part Organization Chart of mobile terminal in one embodiment, and the module included in the Organization Chart is and virtual SIM Block related module.As shown in figure 3, the application layer of mobile terminal may be provided with virtual SIM card operating system, virtual SIM card is fitted With layer, virtual SIM card APP and phone directory/information module etc..Telephony is may be provided with ccf layer (Framework layers) Interface layer and radio interface layer (Radio Interface Layer, RIL) java layers.Modem (Modem) can be by A module comprising compositions such as BBP, radio frequency and other peripheral chips, can be GSM or general packet radio service Technology (General Packet Radio Service, GPRS) Modem.Wherein, Telephony interface layers can provide general It interface, can be interacted by the general interface with Modem, obtain virtual SIM card and/or entity SIM information etc..Virtually SIM card operating system can carry out Socket with Modem by Telephony interface layers and interact, so as to determine whether virtual SIM Card, groove position of virtual SIM card etc..Virtual SIM card operating system by virtual SIM card adaptation layer and can also switch to virtual The Modem of SIM card passage carries out Socket interactions, the operation such as is opened, activated or is closed to virtual SIM card, realize use The functions such as virtual SIM card access data network.It should be understood that the structure shown in Fig. 3, only related to application scheme Part of module, do not form the restriction for the mobile terminal being applied thereon to application scheme, specific mobile terminal can With including than more or less modules shown in figure, either combining certain module or there is different module arrangements.Such as Double card management module can be also set on ccf layer, and the double card management module can communicate etc. with Telephony interface layers.
In one embodiment, mobile terminal can provide a user the management behaviour of virtual SIM card by virtual SIM card APP Make interface, and detect act on associative operation in the management operation interface when, produce corresponding virtual SIM card processing and refer to Order, and the process instruction is sent to virtual SIM card operating system.The virtual SIM card operating system can simulate entity SIM card System logic, realize for switch to the Modem of virtual SIM card passage communicate required related specifications agreement and File system.Virtual SIM card operating system can receive the process instruction from virtual SIM card APP, be adapted to by virtual SIM card Layer sends message corresponding with the process instruction to Modem, realizes that unlatching, opening and closing of virtual SIM card etc. operate.Virtual SIM card Operating system can also be stored with the data of virtual SIM card, the configurable access point when activating virtual SIM card by Modem (Access Point Name, APN) and cellular data etc., network communicating function is carried out using virtual SIM card so as to realize.Its In, the agreement of above-mentioned related specifications may include International Organization for standardization (International Organization for Standardization, ISO) 7816 and 3 generation collaborative projects (3rd Generation Partnership Project, 3GPP) on Universal Integrated Circuit Card (Universal Integrated Circuit Card, UICC) and Universal Subscriber Identity The agreement of the specifications such as identification module (Universal Subscriber Identity Module, USIM).
In one embodiment, process instruction caused by virtual SIM card APP may include virtual SIM card open command, activation Instruction and out code etc., but not limited to this.Process instruction caused by virtual SIM card APP includes but is not limited to available for realization The function such as the interactive maintenance of virtual SIM card information, the dynamic renewal of state and the statistics of flow and speed limit, than such as by place Storage or deletion to virtual SIM card information is realized in reason instruction, and the operation such as unlatching, activation or closing of virtual SIM card.
As shown in figure 4, in one embodiment, there is provided a kind of floating resources sharing method, comprise the following steps:
Step 410, the network creation hotspot accessed by virtual SIM card.
In one embodiment, user can buy virtual SIM cutting ferrule by the virtual SIM card APP set on mobile terminal Meal, virtual SIM card APP set meal interface can show the set meal data of one or more virtual SIM cards, wherein, virtual SIM card Set meal data may include area where the Virtual network operator of virtual SIM card access, the floating resources volume that possesses of virtual SIM card The information such as the numerical value resource that degree, effective time and needs are paid.User can select required virtual SIM card set meal at set meal interface Bought, mobile terminal to server by shifting corresponding numerical value resource, the virtual SIM card set meal pair that can be obtained and select The virtual SIM card information answered, mobile terminal can access data network by the virtual SIM card information of acquisition, realize virtual SIM card Network service.The identification information of user, and the authentication available for access data network can be included in virtual SIM card information Information etc., such as, it may include international mobile subscriber identity (International Mobile Subscriber Identification Number, IMSI), the information such as SIM card card number.In one embodiment, mobile terminal can be by virtual Data network corresponding to the acquisition of information such as the IMSI in SIM card information, and the request that networks is sent to the data network, can be to data Network uploads authentication information, after by the authentication of data network, you can access the data network, realized by virtual SIM card Network service.
After mobile terminal opens virtual SIM card progress network service, user can be in the Wireless Fidelity of mobile terminal Focus is triggered in (Wireless Fidelity, WiFi) administration interface and creates button.When mobile terminal receives the trigger action When, the network creation hotspot (WiFi spot) of virtual SIM card access can be passed through.It is mobile whole by the hotspot of establishment The data network signals of reception can be converted into WiFi signal and sent by end, network share be realized, for example, mobile terminal passes through Virtual SIM card uses GPRS data network, then the GPRS signals of reception can be converted into WiFi letters by the hotspot of establishment Number send.Mobile terminal creates hotspot by virtual SIM card, if after other-end connects the hotspot, you can The WiFi signal sent using mobile terminal carries out network service, shared to have used the stream that virtual SIM card possesses in mobile terminal Measure resource.
Step 420, the flow use information of virtual SIM card is counted, and hotspot institute is determined according to flow use information The state at place.
The flow use information of virtual SIM card may include but be not limited to data on flows, the residual stream that virtual SIM card has used Amount, flow operating speed etc., wherein, the data on flows that virtual SIM card has used refers to that mobile terminal is believed according to virtual SIM card Breath activates to virtual SIM card, after being successfully accessed data network corresponding with virtual SIM card information, is consumed in the data network Byte number;Residual flow refers to that mobile terminal passes through virtual SIM card also consumable byte number in a data network;Flow Operating speed refers to byte number that time per unit consumes when terminal carries out network service by virtual SIM card information etc..Move Dynamic terminal can count the flow use information of virtual SIM card every certain period of time, and be turned on and off according to predetermined manner Hotspot, hotspot state in which is determined according to flow use information, wherein, hotspot state in which may include Opening and closed mode etc., what predetermined manner may include to set in advance is turned on and off flow use information during hotspot The condition of required satisfaction, when the flow use information of virtual SIM card meets corresponding condition, then it can automatically turn on or close wound The hotspot built.
Step 430, if hotspot is in opening, when the hotspot connection request for receiving requesting terminal transmission When, the configuration information matched with hotspot is sent to requesting terminal, configuration information is used to indicate that requesting terminal is configured, and Connect hotspot, the floating resources possessed by hotspot using virtual SIM card.
If the hotspot of mobile terminal is in opening, a range of other-end near mobile terminal It can search for the hotspot.When other-end searches the hotspot of mobile terminal unlatching, the hotspot can be entered Row connection, connection request is sent to mobile terminal.The hotspot that other requesting terminals transmissions are received when mobile terminal connects When connecing request, the configuration information matched with hotspot can be sent to the requesting terminal, wherein, configuration information may include wireless heat The service set (Service Set Identifier, SSID) of point, password, the media intervention key-course of mobile terminal (Media Access Control, MAC) address etc., but not limited to this.Requesting terminal receives the configuration of mobile terminal transmission After information, it can be configured according to configuration information, so as to connect hotspot.After successful connection, requesting terminal can receive movement The WiFi signal that terminal is sent, network service is carried out by the WiFi signal, it is shared to have used virtual SIM card in mobile terminal to gather around Some floating resources.
In the present embodiment, the network creation hotspot accessed by virtual SIM card, according to the flow of virtual SIM card Use information determines hotspot state in which, when hotspot is in opening, requesting terminal connection can be made wireless Focus, requesting terminal can carry out network service by the floating resources that the hotspot of connection be possessed using virtual SIM card, can be with Multiple terminals is used in conjunction with the floating resources of same virtual SIM card, realize that the floating resources of virtual SIM card are shared.
As shown in figure 5, in one embodiment, step 420 counts the flow use information of virtual SIM card, and according to stream Amount use information determines hotspot state in which, comprises the following steps:
Step 502, the first flow data used in virtual SIM card are gathered according to default first collection period.
Mobile terminal can gather the first flow data that virtual SIM card has used according to default first collection period, the One collection period refers to the time interval for the first flow data that mobile terminal collection virtual SIM card has used, alternatively, the One collection period can be the fixed value set in advance, for example, 1 minute, 40 seconds etc. or being entered according to parameter preset Mobile state adjusts, and parameter preset may include network state, network speed, flow operating speed etc., but not limited to this.
In one embodiment, mobile terminal can be monitored the state of SIM card, cut when listening to from entity SIM card When shifting to virtual SIM card, you can the first flow data used according to default first collection period collection virtual SIM card. If virtual SIM card is not to enable access data network first, mobile terminal can first read virtual SIM card at this from database The data on flows used before secondary unlatching, then the data on flows used after virtual SIM card this unlatching is obtained, by virtual SIM It is stuck in the data on flows used before this is opened to be overlapped with the data on flows used after this unlatching, you can obtain void Intend the first flow data that SIM card has used.
Step 504, the floating resources amount possessed according to first flow data and virtual SIM card calculates virtual SIM card Residual flow.
In one embodiment, mobile terminal can obtain the floating resources amount that virtual SIM card possesses, floating resources amount For representing virtual SIM card most consumable byte numbers in a data network.In one embodiment, the stream of virtual SIM card Amount resource amount can be set in advance, and user can select the different virtual SIM card of floating resources amount according to the actual requirements Set meal, for example, the floating resources amount that A virtual SIM cards possess is 500,000,000 (MByte, MB), the flow that B virtual SIM cards possess Resource amount is 700MB etc..Normally, when the flow for the virtual SIM card that terminal uses is more than the flow that the virtual SIM card possesses Resource amount, user need to shift extra numerical value resource to server, can caused damage.
Mobile terminal can calculate empty according to the floating resources amount that virtual SIM card possesses and the first flow data used Intend the residual flow of SIM card, floating resources amount can be subtracted to the first flow data that virtual SIM card has used, you can obtain Residual flow.
Step 506, when residual flow is less than first threshold, it is closed hotspot.
Mobile terminal can be by the residual flow of virtual SIM card compared with first threshold, and first threshold is considered as void Intend a warning value of SIM card residual flow, generally can be a less value, when residual flow is less than first threshold, The first flow data that explainable virtual SIM card has used are up to the floating resources amount possessed.If virtual SIM card is surplus Residual current amount is less than first threshold, and mobile terminal can close hotspot, be closed hotspot, then other requests are whole End will be unable to by the shared floating resources using virtual SIM card of the hotspot.
In the present embodiment, when the residual flow of virtual SIM card is less than first threshold, it is in hotspot and closes shape It state, can help to control the flow of virtual SIM card to use, reduce when there is virtual SIM card progress network share because of network traffics Excess brings the situation of loss to user.
As shown in fig. 6, in one embodiment, step 420 counts the flow use information of virtual SIM card, and according to stream Amount use information determines hotspot state in which, further comprising the steps of:
Step 602, the flow operating speed of virtual SIM card is estimated according to first flow data.
Mobile terminal can calculate the current flow operating speed of virtual SIM card, in one embodiment, obtain virtual SIM After blocking the first flow data used, the first flow data of this acquisition can be subtracted to the first flow number of last acquisition According to, the data on flows that virtual SIM card uses in the first current collection period is obtained, and can be according to the first current collection The data on flows used in cycle calculates flow operating speed with the first current collection period.For example, mobile terminal this obtain The first flow data that the virtual SIM card taken has used are 450MB, and the virtual SIM card that the last time obtains has used first-class Amount data are 440MB, and the first current collection period is 1 minute, then can calculate current flow operating speed as 10MB/ points Clock.
In one embodiment, mobile terminal can also obtain that interior virtual SIM card uses for a period of time apart from current time Data on flows, and the data on flows used according to the virtual SIM card and corresponding period calculate current flow operating speed. , can should for example, it is 50MB that mobile terminal, which can obtain the data on flows that 5 minutes virtual SIM cards use before current time, 50MB divided by 5 minute, can obtain current flow operating speed was 10MB/ minutes.It is to be appreciated that it can also use others side Formula obtains the flow operating speed of virtual SIM card, however it is not limited to this.
Step 604, if hotspot is closed, residual flow meets preparatory condition with flow operating speed, Then open hotspot.
If the hotspot of mobile terminal is currently at closed mode, mobile terminal can be according to the residue of virtual SIM card Flow determines whether to open hotspot with flow operating speed.When the residual flow of virtual SIM card is expired with flow operating speed During sufficient preparatory condition, mobile terminal can open hotspot, and the data network signals received by virtual SIM card are converted into WiFi signal is sent, and is carried out flow and is shared.Preparatory condition can be set according to the actual requirements, alternatively, preparatory condition Can be residual flow and the ratio of flow operating speed is more than preset value, when residual flow and the flow use of virtual SIM card When the ratio of speed is more than preset value, then hotspot can be opened, wherein, the ratio of residual flow and flow operating speed can use In the residual flow usage time of estimation virtual SIM card, when the residual flow usage time is more than preset value, wireless heat is opened Point carries out flow and shared.Alternatively, preparatory condition can also be that residual flow is more than preset flow threshold value and flow operating speed Less than pre-set velocity threshold value, when the residual flow of virtual SIM card be more than preset flow threshold value and flow operating speed be less than it is default During threshold speed, then hotspot etc., but not limited to this can be opened.
In the present embodiment, can be according to the residual flow and flow of virtual SIM card when hotspot is closed Operating speed determines whether unlatching hotspot, can help to control the flow of virtual SIM card to use, automatic according to different situations Hotspot is turned on and off, it is more convenient.
In one embodiment, the first flow data used in step collection virtual SIM card, it may include:Obtain stream Objects of statistics is measured, and according to traffic statistics Object Creation session connection, counts what is used in virtual SIM card by session connection First flow data.
Mobile terminal obtains virtual SIM card information from server, and virtual SIM card is carried out according to virtual SIM card information During activation, traffic statistics object can be generated, corresponding traffic statistics interface can be called by the traffic statistics object, is obtained virtual The first flow data that SIM card uses.When mobile terminal needs to gather the first flow data used in virtual SIM card, Virtual SIM card can be obtained and enter the traffic statistics object generated during line activating, and according to the traffic statistics Object Creation session connection, By the session connection, flow query interface can be called, obtains the data on flows that virtual SIM card has used.
Mobile terminal can call flow query interface, and incoming corresponding flow inquiry ginseng by the session connection of establishment Number, wherein, flow query argument may include initial time, end time, the type of network interface corresponding to virtual SIM card of inquiry Deng, type of network interface can be carried out with the data network that virtual SIM card accesses it is corresponding.Virtual SIM card can start after being activated Use, during use, user can be turned on and off virtual SIM card according to the demand selection of reality.In one embodiment In, initial time can be that virtual SIM card is activated the time begun to use, the end time can be acquired it is current when Carve, the first flow data that virtual SIM card used can be obtained according to the initial time and end time.Alternatively, originate Time can also be the time of this unlatching of virtual SIM card, and the end time can be the current time being acquired, and be risen according to this Begin time and end time can obtain the data on flows used after virtual SIM card this unlatching, and void can be read from database Intend the data on flows that SIM card has used before this unlatching, the flow number that this is used after opening along with virtual SIM card According to, you can obtain the first flow data that virtual SIM card has used.Acquisition for mobile terminal virtual SIM card used first After data on flows, session connection can be closed.
In one embodiment, mobile terminal can be counted by inner nuclear layer to the data on flows that virtual SIM card uses, And write the data on flows of statistics in default file, so that application layer or ccf layer are inquired about.When mobile terminal passes through meeting Words connection incoming traffic query argument, and the first flow data that have used are inquired about in virtual SIM card according to flow query argument When, the default file under proc/net/xt_qtaguid/ catalogues can be read, because the data on flows of inner nuclear layer statistics can first be delayed Exist in internal memory, when the default file is employed layer or ccf layer is read, the read functions of default file association will be interior Stratum nucleare is called, and the data on flows cached in kernel internal memory is written in default file again, to the flow in default file Data are updated.
Alternatively, as shown in fig. 7, step counts the first flow data used in virtual SIM card, including following step Suddenly:
Step 702, the total flow data used in virtual SIM card write-in default file are read.
The data on flows cached in internal memory can be written in default file by the inner nuclear layer of mobile terminal at regular intervals, For example, the data on flows cached in internal memory is written in default file every half an hour.When default file is employed layer or frame When rack-layer is read, virtual SIM card first can be read from default file and write in the default file total flow data used, it is empty The total flow data for intending having used in SIM card write-in default file refer to that mobile terminal is swashed according to virtual SIM card information After loose joint enters data network, the data on flows used is write in default file.
Step 704, obtain virtual SIM card this from opening the data on flows used during current time, Yi Jiben The secondary data on flows write from opening current time in default file.
Mobile terminal can obtain virtual SIM card by preset interface, and this is opened to the flow used during current time Data, wherein, the data on flows used during this unlatching of virtual SIM card to current time may include that this is opened to current The data on flows of default file, and the data on flows cached in internal memory are write in etching process.Mobile terminal can also be from default Virtual SIM card is read in file the data on flows write to current time in default file is opened from this.
Step 706, according to this from opening the data on flows used during current time and the default text of corresponding write-in The data on flows of part, calculate the data on flows for not writing default file.
Mobile terminal can calculate the data on flows for not writing default file, when this unlatching of virtual SIM card can be arrived into current The data on flows used during quarter subtracts the data on flows that default file is write during this was opened to current time, obtains The data on flows cached in kernel internal memory, the data on flows cached in the kernel internal memory are that virtual SIM card has used but not Write the data on flows of default file.
Step 708, according to total flow data and do not write default file data on flows calculate virtual SIM card in used First flow data.
Mobile terminal can be total plus having been used in virtual SIM card write-in default file by the data on flows cached in internal memory Data on flows, you can obtain the first flow data that virtual SIM card has used, gathering virtual SIM card using such a mode has made First flow data, it may be such that default file is read out, it is not necessary to every time enter the data on flows cached in internal memory Row write enters, and can reduce the system resources consumption of mobile terminal, and reducing write-in number also can make the virtual SIM card of collection Data on flows is more accurate.
In the present embodiment, the first flow data that virtual SIM card has used can be gathered by the session connection of establishment, can To help to control the flow of virtual SIM card to use, hotspot is automatically turned on or closed according to different situations, it is more convenient fast It is prompt.
As shown in figure 8, in one embodiment, the configuration information matched with hotspot is sent to requesting terminal in step Afterwards, it is further comprising the steps of:
Step 802, if requesting terminal is successfully connected hotspot, according to default second collection period from requesting terminal Second flow data are obtained, second flow data are that requesting terminal connects the data on flows used after hotspot.
After mobile terminal sends the configuration information matched with hotspot to requesting terminal, requesting terminal can be according to confidence Breath is configured, the hotspot that connection mobile terminal is opened.Mobile terminal can be according to default second collection period from request Terminal obtains second flow data, and second flow data refer to the data on flows used after requesting terminal connection hotspot, Second collection period can be the fixed value set in advance, for example, 1 minute, 40 seconds etc..Requesting terminal connects hotspot Afterwards, the second flow data used can be gathered according to default second collection period, will can be made at the time of hotspot be connected For initial time, using current time as finish time, the data volume that WiFi network interface consumes in the corresponding period is gathered, this disappears The data volume of consumption can be the second flow data used.
Step 804, when second flow data are more than Second Threshold, the connection of requesting terminal and hotspot is disconnected.
The second flow data used of collection can be sent to mobile terminal by requesting terminal, and mobile terminal will can obtain The second flow data that use of requesting terminal compared with Second Threshold, if the second flow data that requesting terminal has used More than Second Threshold, then the connection of requesting terminal and hotspot can be disconnected, limitation requesting terminal provides to the flow of virtual SIM card The use in source.
In the present embodiment, when the second flow data that requesting terminal uses are more than Second Threshold, then request is disconnected eventually End and the connection of hotspot, flow restriction is carried out to the requesting terminal of each connection hotspot, can help to control virtually The flow that SIM card carries out each terminal when flow is shared uses.
In one embodiment, above-mentioned floating resources sharing method, may also include:The request for obtaining connection hotspot is whole Quantity is held, network limits value is determined according to requesting terminal quantity, and the network of each requesting terminal is adjusted according to network limits value Bandwidth.
Mobile terminal can obtain the requesting terminal quantity of connection hotspot, determine that network limits according to requesting terminal quantity Value, the flow operating speed of the requesting terminal of each connection can be limited by network limits value, alternatively, when requesting terminal quantity When less, larger network limits value can be chosen, the data volume for making requesting terminal to be transmitted within the unit interval is larger, works as request When terminal quantity is more, less network limits value can be chosen, make the data volume that requesting terminal can transmit within the unit interval compared with It is small.Mobile terminal can adjust the network bandwidth of each requesting terminal according to network limits value, wherein, network bandwidth refers to unit The data volume of time interior energy transmission, the network bandwidth of adjust request terminal can control the flow operating speed of requesting terminal.
In the present embodiment, can be controlled each according to the network bandwidth of each requesting terminal of data point reuse of requesting terminal The flow operating speed of requesting terminal, better control over the flow use that virtual SIM card carries out each terminal when flow is shared.
In one embodiment, there is provided a kind of floating resources sharing method, comprise the following steps:
Step (1), the network creation hotspot accessed by virtual SIM card.
Step (2), the flow use information of virtual SIM card is counted, and hotspot institute is determined according to flow use information The state at place.
Alternatively, the flow use information of virtual SIM card is counted, and according to residing for flow use information determines hotspot State, including:The first flow data that have used in virtual SIM card are gathered according to default first collection period, according to the The floating resources amount that one data on flows and virtual SIM card possess calculates the residual flow of virtual SIM card, when residual flow is less than During first threshold, it is closed hotspot.
Alternatively, the flow use information of virtual SIM card is counted, and according to residing for flow use information determines hotspot State, in addition to:The flow operating speed of virtual SIM card is estimated according to first flow data, is closed if hotspot is in During state, residual flow meets preparatory condition with flow operating speed, then opens hotspot.
Alternatively, the first flow data used in virtual SIM card are gathered, including:Obtain traffic statistics object, and root According to traffic statistics Object Creation session connection, the first flow number used in the virtual SIM card is counted by session connection According to.
Alternatively, the first flow data used in virtual SIM card are gathered, including:It is default to read virtual SIM card write-in The total flow data used in file, obtain virtual SIM card this from opening the flow number used during current time According to, and this data on flows from opening current time in write-in default file, according to this from opening current time During the data on flows that uses and the data on flows of corresponding write-in default file, calculate the flow number for not writing default file According to calculating the first flow that has used in virtual SIM card further according to total flow data and the data on flows for not writing default file Data.
Step (4), if hotspot is in opening, when the hotspot connection request for receiving requesting terminal transmission When, the configuration information matched with the hotspot is sent to requesting terminal, configuration information is used to indicate that requesting terminal is matched somebody with somebody Put, and connect hotspot, the floating resources possessed by hotspot using virtual SIM card.
Step (5), if requesting terminal is successfully connected hotspot, according to default second collection period from requesting terminal Second flow data are obtained, second flow data are that the requesting terminal connects the data on flows that uses after hotspot, when the When two datas on flows are more than Second Threshold, the connection of requesting terminal and hotspot is disconnected.
Alternatively, the requesting terminal quantity of connection hotspot is obtained, network limits value is determined according to requesting terminal quantity, And the network bandwidth of each requesting terminal is adjusted according to network limits value.
In the present embodiment, the network creation hotspot accessed by virtual SIM card, according to the flow of virtual SIM card Use information determines hotspot state in which, when hotspot is in opening, requesting terminal connection can be made wireless Focus, requesting terminal can carry out network service by the floating resources that the hotspot of connection be possessed using virtual SIM card, can be with Multiple terminals is used in conjunction with the floating resources of same virtual SIM card, realize that the floating resources of virtual SIM card are shared.
As shown in figure 9, in one embodiment, there is provided a kind of floating resources sharing means 900, including creation module 910, Statistical module 920 and sending module 930.
Creation module 910, for the network creation hotspot accessed by virtual SIM card.
Statistical module 920, nothing is determined for counting the flow use information of virtual SIM card, and according to flow use information Line focus state in which.
Sending module 930, if being in opening for hotspot, when the hotspot for receiving requesting terminal transmission During connection request, the configuration information matched with hotspot is sent to requesting terminal, configuration information is used to indicate that requesting terminal is entered Row configuration, and hotspot is connected, the floating resources possessed by hotspot using virtual SIM card.
In the present embodiment, the network creation hotspot accessed by virtual SIM card, according to the flow of virtual SIM card Use information determines hotspot state in which, when hotspot is in opening, requesting terminal connection can be made wireless Focus, requesting terminal can carry out network service by the floating resources that the hotspot of connection be possessed using virtual SIM card, can be with Multiple terminals is used in conjunction with the floating resources of same virtual SIM card, realize that the floating resources of virtual SIM card are shared.
In one embodiment, statistical module 920, including collecting unit, residual flow computing unit and closing unit.
Collecting unit, for gathering the first flow number used in virtual SIM card according to default first collection period According to.
Residual flow computing unit, based on the floating resources amount possessed according to first flow data and virtual SIM card Calculate the residual flow of virtual SIM card.
Closing unit, for when residual flow is less than first threshold, being closed hotspot.
In the present embodiment, when the residual flow of virtual SIM card is less than first threshold, it is in hotspot and closes shape It state, can help to control the flow of virtual SIM card to use, reduce when there is virtual SIM card progress network share because of network traffics Excess brings the situation of loss to user.
In one embodiment, statistical module 920, except single including collecting unit, residual flow computing unit and closing Member, in addition to velocity estimation unit and opening unit.
Velocity estimation unit, for estimating the flow operating speed of virtual SIM card according to first flow data.
Opening unit, if be closed for hotspot, residual flow meets default with flow operating speed Condition, then open hotspot.
In the present embodiment, can be according to the residual flow and flow of virtual SIM card when hotspot is closed Operating speed determines whether unlatching hotspot, can help to control the flow of virtual SIM card to use, automatic according to different situations Hotspot is turned on and off, it is more convenient.
In one embodiment, collecting unit, it is additionally operable to obtain traffic statistics object, and according to traffic statistics Object Creation Session connection, the first flow data used in virtual SIM card are counted by session connection.
Alternatively, collecting unit, including read subelement, obtain subelement and computation subunit.
Subelement is read, for reading the total flow data used in virtual SIM card write-in default file.
Obtain subelement, for obtain virtual SIM card this from opening to the data on flows used during current time, And this data on flows from opening current time in write-in default file.
Computation subunit, for according to this from opening to the data on flows used during current time and corresponding write The data on flows of default file, calculate the data on flows for not writing default file.
Computation subunit, for not writing according to total flow data and the data on flows calculating virtual SIM card of default file In the first flow data that have used.
In the present embodiment, the first flow data that virtual SIM card has used can be gathered by the session connection of establishment, can To help to control the flow of virtual SIM card to use, hotspot is automatically turned on or closed according to different situations, it is more convenient fast It is prompt.
In one embodiment, above-mentioned floating resources sharing means 900, except including creation module 910, statistical module 920 and sending module 930, in addition to acquisition module and disconnect module.
Acquisition module, if being successfully connected hotspot for requesting terminal, according to default second collection period from please Terminal is asked to obtain second flow data, second flow data are that the requesting terminal connects the flow number used after hotspot According to.
Module is disconnected, for when second flow data are more than Second Threshold, disconnecting the company of requesting terminal and hotspot Connect.
In the present embodiment, when the second flow data that requesting terminal uses are more than Second Threshold, then request is disconnected eventually End and the connection of hotspot, flow restriction is carried out to the requesting terminal of each connection hotspot, can help to control virtually The flow that SIM card carries out each terminal when flow is shared uses.
In one embodiment, above-mentioned floating resources sharing means 900, except including creation module 910, statistical module 920th, sending module 930, acquisition module and disconnection module, in addition to bandwidth adjustment module.
Bandwidth adjustment module, for obtaining the requesting terminal quantity of connection hotspot, determined according to requesting terminal quantity Network limits value, and according to the network bandwidth of each requesting terminal of network limits value adjustment.
In the present embodiment, can be controlled each according to the network bandwidth of each requesting terminal of data point reuse of requesting terminal The flow operating speed of requesting terminal, better control over the flow use that virtual SIM card carries out each terminal when flow is shared.
The embodiment of the present application additionally provides a kind of mobile terminal.As shown in Figure 10, for convenience of description, illustrate only and this Apply for the related part of embodiment, particular technique details does not disclose, refer to the embodiment of the present application method part.The movement is whole End can be to include mobile phone, tablet personal computer, personal digital assistant (Personal Digital Assistant, PDA), sale eventually Any terminal devices such as (Point of Sales, POS), vehicle-mounted computer, Wearable are held, are by mobile phone of mobile terminal Example:
Figure 10 is the block diagram of the part-structure of the mobile phone related to the mobile terminal of the embodiment of the present application offer.Reference chart 10, mobile phone includes:Radio frequency (Radio Frequency, RF) circuit 1010, memory 1020, input block 1030, display unit 1040th, sensor 1050, voicefrequency circuit 1060, Wireless Fidelity (wireless fidelity, WiFi) module 1070, processor The part such as 1080 and power supply 1090.It will be understood by those skilled in the art that the handset structure shown in Figure 10 does not form opponent The restriction of machine, can be included than illustrating more or less parts, either combine some parts or different parts arrangement.
Wherein, RF circuits 1010 can be used for receive and send messages or communication process in, the reception and transmission of signal can be by base stations After downlink information receives, handled to processor 1080;Up data can also be sent to base station.Generally, RF circuits include But be not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuits 1010 can also be communicated by radio communication with network and other equipment.It is above-mentioned wireless Communication can use any communication standard or agreement, including but not limited to GSM, GPRS, CDMA (Code Division Multiple Access, CDMA), W-CDMA, Long Term Evolution (Long Term Evolution, LTE), Email, short disappear Breath service (Short Messaging Service, SMS) etc..
Memory 1020 can be used for storage software program and module, and processor 1080 is stored in memory by operation 1020 software program and module, so as to perform the various function application of mobile phone and data processing.Memory 1020 can be led To include program storage area and data storage area, wherein, program storage area can storage program area, needed at least one function Application program (such as the application program of sound-playing function, application program of image player function etc.) etc.;Data storage area can Storage uses created data (such as voice data, address list etc.) etc. according to mobile phone.In addition, memory 1020 can wrap High-speed random access memory is included, nonvolatile memory, for example, at least disk memory, a flash memories can also be included Part or other volatile solid-state parts.
Input block 1030 can be used for the numeral or character information for receiving input, and produces and set with the user of mobile phone 1000 Put and the input of key signals that function control is relevant.Specifically, input block 1030 may include contact panel 1032 and other Input equipment 1034.Contact panel 1032, alternatively referred to as touch-screen, collect touch operation (ratio of the user on or near it Such as user is using finger, any suitable object of stylus or annex on contact panel 1032 or near contact panel 1032 Operation), and corresponding attachment means are driven according to formula set in advance.In one embodiment, contact panel 1032 can Including both touch detecting apparatus and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and examine The signal that touch operation is brought is surveyed, transmits a signal to touch controller;Touch controller receives from touch detecting apparatus to be touched Information is touched, and is converted into contact coordinate, then gives processor 1080, and the order sent of reception processing device 1080 and can be added To perform.Furthermore, it is possible to contact panel is realized using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves 1032.Except contact panel 1032, input block 1030 can also include other input equipments 1034.Specifically, other are inputted Equipment 1034 can include but is not limited in physical keyboard, function key (such as volume control button, switch key etc.) etc. one Kind is a variety of.
Display unit 1040 can be used for display by user input information or be supplied to user information and mobile phone it is each Kind menu.Display unit 1040 may include display panel 1042.In one embodiment, liquid crystal display can be used (Liquid Crystal Display, LCD), Organic Light Emitting Diode (Organic Light-Emitting Diode, ) etc. OLED form configures display panel 1042.In one embodiment, contact panel 1032 can cover display panel 1042, After contact panel 1032 detects the touch operation on or near it, processor 1080 is sent to determine touch event Type, it is followed by subsequent processing device 1080 and corresponding visual output is provided on display panel 1042 according to the type of touch event.Although In Fig. 10, contact panel 1032 and display panel 1042 are the parts independent as two to realize the input of mobile phone and input Function, but in some embodiments it is possible to contact panel 1032 and display panel 1042 are integrated and realize the input of mobile phone And output function.
Mobile phone 1000 may also include at least one sensor 1050, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to ring The light and shade of environmental light adjusts the brightness of display panel 1042, and proximity transducer can close display when mobile phone is moved in one's ear Panel 1042 and/or backlight.Motion sensor may include acceleration transducer, and all directions are can detect by acceleration transducer The size of upper acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture is (such as horizontal Portrait layout switches), Vibration identification correlation function (such as pedometer, tap) etc.;In addition, mobile phone can also configure gyroscope, barometer, Other sensors such as hygrometer, thermometer, infrared ray sensor etc..
Voicefrequency circuit 1060, loudspeaker 1062 and microphone 1064 can provide the COBBAIF between user and mobile phone.Sound Frequency circuit 1060 voice data received can be changed after electric signal, loudspeaker 1062 is transferred to, by 1062 turns of loudspeaker It is changed to voice signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 1064, by voicefrequency circuit 1060 receive after be converted to voice data, then after voice data output processor 1080 is handled, can be sent out through RF circuits 1010 Another mobile phone is given, or voice data is exported to memory 1020 so as to subsequent treatment.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronicses postal by WiFi module 1070 Part, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Figure 10 is shown WiFi module 1070, but it is understood that, it is simultaneously not belonging to must be configured into for mobile phone 1000, can save as needed Slightly.
Processor 1080 is the control centre of mobile phone, using various interfaces and the various pieces of connection whole mobile phone, By running or performing the software program and/or module that are stored in memory 1020, and call and be stored in memory 1020 Interior data, the various functions and processing data of mobile phone are performed, so as to carry out integral monitoring to mobile phone.In one embodiment, Processor 1080 may include one or more processing units.In one embodiment, processor 1080 can integrate application processor And modem, wherein, application processor mainly handles operating system, user interface and application program etc.;Modem Main processing radio communication.It is understood that above-mentioned modem can not also be integrated into processor 1080.Such as The processor 1080 can integrate application processor and BBP, BBP with and other peripheral chips etc. can form tune Modulator-demodulator.Mobile phone 1000 also includes the power supply 1090 (such as battery) to all parts power supply, it is preferred that power supply can pass through Power-supply management system and processor 1080 are logically contiguous, so as to realize management charging, electric discharge, Yi Jigong by power-supply management system The functions such as consumption management.
In one embodiment, mobile phone 1000 can also include camera, bluetooth module etc..
In the embodiment of the present application, the processor 1080 included by the mobile terminal performs the calculating of storage on a memory Above-mentioned floating resources sharing method is realized during machine program.
In one embodiment, the mobile terminal may include memory 1020 and processor 1080, be deposited in memory 1020 Computer program is contained, when the computer program is performed by processor 1080 so that computing device following steps:
The network creation hotspot accessed by virtual SIM card;
The flow use information of virtual SIM card is counted, and hotspot state in which is determined according to flow use information; And
If hotspot is in opening, when receive requesting terminal transmission hotspot connection request when, to please Terminal is asked to send the configuration information matched with the hotspot, configuration information is used to indicate that requesting terminal is configured, and even Hotspot is connect, the floating resources possessed by hotspot using virtual SIM card.
Figure 11 is the block diagram of mobile terminal in another embodiment.As shown in figure 11, the mobile terminal includes passing through system Processor, non-volatile memory medium, built-in storage and the network interface of bus connection.Wherein, mobile terminal is non-volatile Storage medium is stored with operating system and computer program, when the computer program is executed by processor with realize the application implement A kind of floating resources sharing method provided in example.The processor is used for offer calculating and control ability, supports whole mobile whole The operation at end.Built-in storage in mobile terminal provides environment for the operation of the computer program in non-volatile memory medium. Network interface can be used for sending wireless signal etc. to other equipment.The mobile terminal can be mobile phone, tablet personal computer or individual Digital assistants or Wearable etc..It will be understood by those skilled in the art that the structure shown in Figure 11, it is only and the application The block diagram of the related part-structure of scheme, does not form the restriction for the mobile terminal being applied thereon to application scheme, has The mobile terminal of body can include, than more or less parts shown in figure, either combining some parts or with difference Part arrangement.
In one embodiment, there is provided a kind of computer-readable recording medium, be stored thereon with computer program, the calculating Machine program realizes above-mentioned floating resources sharing method when being executed by processor.
In one embodiment, there is provided a kind of computer program product for including computer program, when it sets in computer During standby upper operation so that computer equipment realizes above-mentioned floating resources sharing method when performing.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with The hardware of correlation is instructed to complete by computer program, described program can be stored in a non-volatile computer and can be read In storage medium, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage is situated between Matter can be magnetic disc, CD, read-only memory (Read-Only Memory, ROM) etc..
Any reference to memory, storage, database or other media may include non-volatile as used herein And/or volatile memory.Suitable nonvolatile memory may include read-only storage (ROM), programming ROM (PROM), Electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include arbitrary access Memory (RAM), it is used as external cache.By way of illustration and not limitation, RAM is available in many forms, such as It is static RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM).
Each technical characteristic of embodiment described above can be combined arbitrarily, to make description succinct, not to above-mentioned reality Apply all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, the scope that this specification is recorded all is considered to be.
Embodiment described above only expresses the several embodiments of the application, and its description is more specific and detailed, but simultaneously Can not therefore it be construed as limiting the scope of the patent.It should be pointed out that come for one of ordinary skill in the art Say, on the premise of the application design is not departed from, various modifications and improvements can be made, these belong to the protection of the application Scope.Therefore, the protection domain of the application patent should be determined by the appended claims.

Claims (10)

  1. A kind of 1. floating resources sharing method, it is characterised in that including:
    The network creation hotspot accessed by virtual SIM card;
    The flow use information of the virtual SIM card is counted, and the hotspot institute is determined according to the flow use information The state at place;
    If the hotspot is in opening, when receiving the hotspot connection request of requesting terminal transmission, to institute State requesting terminal and send the configuration information matched with the hotspot, the configuration information is used to indicate that the requesting terminal is entered Row configuration, and the hotspot is connected, the floating resources possessed by the hotspot using the virtual SIM card.
  2. 2. according to the method for claim 1, it is characterised in that the flow use information of the statistics virtual SIM card, And the hotspot state in which is determined according to the flow use information, including:
    The first flow data used in the virtual SIM card are gathered according to default first collection period;
    The floating resources amount possessed according to the first flow data and the virtual SIM card calculates the virtual SIM card Residual flow;
    When the residual flow is less than first threshold, it is closed the hotspot.
  3. 3. according to the method for claim 2, it is characterised in that the flow use information of the statistics virtual SIM card, And the hotspot state in which is determined according to the flow use information, in addition to:
    The flow operating speed of the virtual SIM card is estimated according to the first flow data;
    If the hotspot is closed, the residual flow meets preparatory condition with the flow operating speed, Then open the hotspot.
  4. 4. according to the method in claim 2 or 3, it is characterised in that used in the collection virtual SIM card first-class Data are measured, including:
    Traffic statistics object is obtained, and according to the traffic statistics Object Creation session connection;
    The first flow data used in the virtual SIM card are counted by the session connection.
  5. 5. according to the method for claim 4, it is characterised in that first used in the statistics virtual SIM card Data on flows, including:
    Read the total flow data used in the virtual SIM card write-in default file;
    Obtain the virtual SIM card this from opening to the data on flows used during current time, and this is from unlatching The data on flows write to current time in the default file;
    According to it is described this from opening to the data on flows used during current time and corresponding write the default file Data on flows, calculate the data on flows for not writing the default file;
    Do not write according to the total flow data and in the data on flows calculating virtual SIM card of the default file and used First flow data.
  6. 6. according to the method for claim 1, it is characterised in that sent and the wireless heat to the requesting terminal described After the configuration information of Point matching, methods described also includes:
    If the requesting terminal is successfully connected the hotspot, according to default second collection period from the requesting terminal Second flow data are obtained, the second flow data are that the requesting terminal connects the flow number used after the hotspot According to;
    When the second flow data are more than Second Threshold, the connection of the requesting terminal and the hotspot is disconnected.
  7. 7. method according to any one of claims 1 to 6, it is characterised in that methods described also includes:
    Obtain the requesting terminal quantity for connecting the hotspot;
    Network limits value is determined according to the requesting terminal quantity, and each requesting terminal is adjusted according to the network limits value Network bandwidth.
  8. A kind of 8. floating resources sharing means, it is characterised in that including:
    Creation module, for the network creation hotspot accessed by virtual SIM card;
    Statistical module, institute is determined for counting the flow use information of the virtual SIM card, and according to the flow use information State hotspot state in which;
    Sending module, if being in opening for the hotspot, when the hotspot for receiving requesting terminal transmission connects When connecing request, the configuration information matched with the hotspot is sent to the requesting terminal, the configuration information is used to indicate The requesting terminal is configured, and connects the hotspot, is possessed by the hotspot using the virtual SIM card Floating resources.
  9. 9. a kind of mobile terminal, including memory and processor, computer program, the computer are stored with the memory When program is by the computing device so that the processor realizes the method as described in claim 1 to 7 is any.
  10. 10. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the computer program The method as described in claim 1 to 7 is any is realized when being executed by processor.
CN201710924231.5A 2017-09-30 2017-09-30 Traffic resource sharing method and device, mobile terminal and storage medium Active CN107682910B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710924231.5A CN107682910B (en) 2017-09-30 2017-09-30 Traffic resource sharing method and device, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710924231.5A CN107682910B (en) 2017-09-30 2017-09-30 Traffic resource sharing method and device, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN107682910A true CN107682910A (en) 2018-02-09
CN107682910B CN107682910B (en) 2021-01-26

Family

ID=61138019

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710924231.5A Active CN107682910B (en) 2017-09-30 2017-09-30 Traffic resource sharing method and device, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN107682910B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108494570A (en) * 2018-03-30 2018-09-04 联想(北京)有限公司 A kind of flow sharing method and electronic equipment
CN110519761A (en) * 2019-08-12 2019-11-29 深圳市优克联新技术有限公司 Verification method, device, electronic equipment and the storage medium of subscriber identification card
CN110582080A (en) * 2019-09-17 2019-12-17 深圳市沃特沃德股份有限公司 method and device for traffic transfer of vehicle-mounted system, computer equipment and storage medium
CN110876123A (en) * 2018-08-30 2020-03-10 北京三星通信技术研究有限公司 Flow acquiring, providing, sharing, calibrating and transferring method and equipment
CN112243256A (en) * 2019-07-16 2021-01-19 北京小米移动软件有限公司 Wireless network sharing method and device, mobile terminal and storage medium
CN113490180A (en) * 2021-07-30 2021-10-08 安徽江淮汽车集团股份有限公司 Vehicle networking flow data management and control method
CN113938941A (en) * 2021-10-19 2022-01-14 展讯通信(上海)有限公司 Data flow detection method for communication device

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103117906A (en) * 2013-02-27 2013-05-22 广东欧珀移动通信有限公司 Flow control method for process of sharing WiFi (wireless fidelity) hot spot for mobile terminals
CN103179500A (en) * 2013-01-18 2013-06-26 南京安讯科技有限责任公司 Mobile phone traffic sharing method
CN103428283A (en) * 2013-08-06 2013-12-04 惠州华阳通用电子有限公司 Method allowing vehicular terminal to share intelligent mobile terminal network
CN103596121A (en) * 2013-10-30 2014-02-19 北京网河时代科技有限公司 Flow sharing method for wireless mobile networks
CN104009892A (en) * 2014-06-12 2014-08-27 北京奇虎科技有限公司 Monitoring method and device for traffic of mobile terminal and client side
CN104243335A (en) * 2014-09-30 2014-12-24 可牛网络技术(北京)有限公司 Network sharing method and device
CN104349367A (en) * 2014-11-12 2015-02-11 深圳市中兴移动通信有限公司 Mobile terminal and predicting reminding method and device of flow consumption of mobile terminal
CN105337804A (en) * 2015-11-20 2016-02-17 南京中科创达软件科技有限公司 Hot spot sharing method based on mobile terminal
CN105578450A (en) * 2014-10-17 2016-05-11 中兴通讯股份有限公司 Flow control method and apparatus thereof
CN105611524A (en) * 2015-06-30 2016-05-25 宇龙计算机通信科技(深圳)有限公司 Method, device, terminal and system for sharing virtual SIM (Subscriber Identity Module) card parameters
CN105682148A (en) * 2015-12-25 2016-06-15 科大讯飞股份有限公司 Traffic sharing method and system
CN105912372A (en) * 2016-05-11 2016-08-31 周肇炎 Application program disable method
CN106304193A (en) * 2015-05-22 2017-01-04 中兴通讯股份有限公司 A kind of realize the method for flow-control, server and terminal
CN106507408A (en) * 2016-11-02 2017-03-15 珠海市魅族科技有限公司 A kind of terminal control method and handheld terminal
CN106658457A (en) * 2016-12-16 2017-05-10 深圳市金立通信设备有限公司 Reminding method of flow shared by hotspot and terminal
CN107135531A (en) * 2017-04-21 2017-09-05 努比亚技术有限公司 Resource share method and device

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179500A (en) * 2013-01-18 2013-06-26 南京安讯科技有限责任公司 Mobile phone traffic sharing method
CN103117906A (en) * 2013-02-27 2013-05-22 广东欧珀移动通信有限公司 Flow control method for process of sharing WiFi (wireless fidelity) hot spot for mobile terminals
CN103428283A (en) * 2013-08-06 2013-12-04 惠州华阳通用电子有限公司 Method allowing vehicular terminal to share intelligent mobile terminal network
CN103596121A (en) * 2013-10-30 2014-02-19 北京网河时代科技有限公司 Flow sharing method for wireless mobile networks
CN104009892A (en) * 2014-06-12 2014-08-27 北京奇虎科技有限公司 Monitoring method and device for traffic of mobile terminal and client side
CN104243335A (en) * 2014-09-30 2014-12-24 可牛网络技术(北京)有限公司 Network sharing method and device
CN105578450A (en) * 2014-10-17 2016-05-11 中兴通讯股份有限公司 Flow control method and apparatus thereof
CN104349367A (en) * 2014-11-12 2015-02-11 深圳市中兴移动通信有限公司 Mobile terminal and predicting reminding method and device of flow consumption of mobile terminal
CN106304193A (en) * 2015-05-22 2017-01-04 中兴通讯股份有限公司 A kind of realize the method for flow-control, server and terminal
CN105611524A (en) * 2015-06-30 2016-05-25 宇龙计算机通信科技(深圳)有限公司 Method, device, terminal and system for sharing virtual SIM (Subscriber Identity Module) card parameters
CN105337804A (en) * 2015-11-20 2016-02-17 南京中科创达软件科技有限公司 Hot spot sharing method based on mobile terminal
CN105682148A (en) * 2015-12-25 2016-06-15 科大讯飞股份有限公司 Traffic sharing method and system
CN105912372A (en) * 2016-05-11 2016-08-31 周肇炎 Application program disable method
CN106507408A (en) * 2016-11-02 2017-03-15 珠海市魅族科技有限公司 A kind of terminal control method and handheld terminal
CN106658457A (en) * 2016-12-16 2017-05-10 深圳市金立通信设备有限公司 Reminding method of flow shared by hotspot and terminal
CN107135531A (en) * 2017-04-21 2017-09-05 努比亚技术有限公司 Resource share method and device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108494570A (en) * 2018-03-30 2018-09-04 联想(北京)有限公司 A kind of flow sharing method and electronic equipment
CN108494570B (en) * 2018-03-30 2021-07-16 联想(北京)有限公司 Traffic sharing method and electronic equipment
CN110876123A (en) * 2018-08-30 2020-03-10 北京三星通信技术研究有限公司 Flow acquiring, providing, sharing, calibrating and transferring method and equipment
CN112243256A (en) * 2019-07-16 2021-01-19 北京小米移动软件有限公司 Wireless network sharing method and device, mobile terminal and storage medium
CN110519761A (en) * 2019-08-12 2019-11-29 深圳市优克联新技术有限公司 Verification method, device, electronic equipment and the storage medium of subscriber identification card
CN110582080A (en) * 2019-09-17 2019-12-17 深圳市沃特沃德股份有限公司 method and device for traffic transfer of vehicle-mounted system, computer equipment and storage medium
CN110582080B (en) * 2019-09-17 2021-12-07 深圳市沃特沃德股份有限公司 Method and device for traffic transfer of vehicle-mounted system, computer equipment and storage medium
CN113490180A (en) * 2021-07-30 2021-10-08 安徽江淮汽车集团股份有限公司 Vehicle networking flow data management and control method
CN113938941A (en) * 2021-10-19 2022-01-14 展讯通信(上海)有限公司 Data flow detection method for communication device

Also Published As

Publication number Publication date
CN107682910B (en) 2021-01-26

Similar Documents

Publication Publication Date Title
CN107682910A (en) Floating resources sharing method, device, mobile terminal and storage medium
CN103874018B (en) Access-in point information sharing method and device
CN103475996B (en) Method for connecting network, network share method and device
CN107682833A (en) Method, apparatus, mobile terminal and the storage medium that control flow uses
CN107734584A (en) The method and apparatus of network connection switching, computer equipment, readable storage medium storing program for executing
CN107770746B (en) Data processing method and device, computer equipment and computer readable storage medium
CN103458409A (en) Network connection method and network sharing method and device
CN103458408A (en) Network connection method and network sharing method and device
CN103731810A (en) Access point sharing method and device
WO2018014745A1 (en) Network search method and device after roaming ends
CN107690131A (en) Information processing method, device, mobile terminal and computer-readable recording medium
CN107484154B (en) Data switching method and device, terminal and computer readable storage medium
CN107682851A (en) Information processing method, device, mobile terminal and computer-readable recording medium
CN106341809B (en) A kind of data transmission method and equipment
CN107820301A (en) Control method, device, terminal and the storage medium of WLAN switch
CN107708084A (en) Data processing method and device, computer equipment, computer-readable recording medium
CN107635220A (en) Network service processing method, device, storage medium and terminal
CN107734495A (en) Information processing method, device, storage medium and terminal
CN107623612B (en) Flow display method and device, computer equipment and computer readable storage medium
CN105045372A (en) Method and equipment controlling wearable device
CN106454976A (en) Switching method and device for wireless network and terminal
CN103561155B (en) Send the method for note, device and terminal
CN107484201A (en) Flow statistical method and device, terminal, computer-readable recording medium
CN107566398B (en) Flow control methods and device, computer equipment, computer readable storage medium
CN107743080B (en) Flow statistical method and device, computer equipment, computer readable 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

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