Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
The term used in embodiments of the present invention is only to be not intended to be limiting merely for for the purpose of describing particular embodiments
The present invention.In the embodiment of the present invention and the "an" of singular used in the attached claims, " described " and "the"
It is also intended to including most forms, unless the context clearly indicates other meaning.It is also understood that term used herein
"and/or" refers to and includes that one or more associated any or all of project listed may combine.
It will be appreciated that though various letters may be described using term first, second, third, etc. in embodiments of the present invention
Breath, but these information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example,
In the case where not departing from range of embodiment of the invention, the first information can also be referred to as the second information, it is not required that or
Imply that there are any actual relationship or orders between these entities or operation.Similarly, the second information can also be by
The referred to as first information.Depending on context, word as used in this " if " can be construed to " ... when " or
" when ... " or " in response to determination ".Moreover, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or equipment for including a series of elements not only includes those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or equipment institute it is intrinsic
Element.
The present invention provides a kind of methods that cloud SIM card is shared, will when multiple cloud terminals meet preset condition of contact
One of cloud terminal is accessed as access point for other cloud terminals, and passes through the cloud SIM card in the cloud terminal as access point
For other cloud terminal distribution network services of access, the access of other cloud terminals itself has been opened as deactivated after the cloud terminal of access point
Cloud SIM card just realizes the shared of cloud SIM card in this way, not only saves a large amount of cloud SIM card resource and Cloud Server
Connection resource, while also mitigating the load of base station.
Fig. 1 shows a kind of shared system implementation environment figure of cloud SIM card provided by the invention, for ease of description, figure
In content relevant to the embodiment of the present invention is only shown, details are as follows:
Cloud terminal 10 accesses network by cloud SIM card, can be used as mobile WIFI hot spot as other equipment and provides network clothes
Business.
Cloud Server 20 safeguards cloud terminal 10 and its for distributing the cloud SIM card that can be locally surfed the Internet for cloud terminal 10
The communication channel of foundation, and the affairs of charge on traffic are handled, while can be updated to the various information in cloud terminal 10.
Mobile client 30, the equipment for obtaining network service by access WIFI hot spot, these equipment can be wirelessly
The mobile terminal devices such as access point, mobile phone, personal digital assistant, tablet computer are also possible to other cloud terminals.
In one embodiment of the invention, it after cloud terminal 10 logs in Cloud Server 20, obtains Cloud Server 20 and distributes
Cloud SIM card, then start cloud SIM card, and register mobile network, be re-used as WIFI hot spot to other equipment and network clothes are provided
Business.
In one embodiment of the invention, when multiple cloud terminals apart from it is close when, will do it one between these cloud terminals
Series judgement, and regard the optimal cloud terminal of one of performance as access point, the cloud terminal as access point pass through cloud SIM
Card is connect with the holding of network, other cloud terminals connect with the cloud terminal as access point and share its network service, simultaneously
Original enabled cloud SIM card is discharged, reduces the occupancy of the connection resource to SIM card resource and background server, also subtracts
The light load of base station.
Fig. 2 shows the flow charts for the method that a kind of cloud SIM card that first embodiment of the invention provides is shared, in the present invention
Include multiple cloud terminals in local area network in embodiment, for ease of description, is indicated with the first cloud terminal by determining in this programme
Afterwards become access point cloud terminal, with the second cloud terminal indicate through judgement after become client cloud terminal, the first cloud terminal,
Second cloud terminal can be any one cloud terminal in local area network, and first, second not refers in particular to, when condition conversion, the first cloud
Terminal is also possible to the second cloud terminal, and the second cloud terminal is also possible to the first cloud terminal.
This method is applied to the first cloud terminal, and details are as follows:
In step S210, the current state letter of all cloud terminals in the effective join domain of the first cloud terminal is obtained
Breath, and judge whether the first cloud terminal meets default access rules according to the current state information.
In one embodiment of the invention, when multiple cloud terminals apart from it is close when, it is effective into other side between each other
When communication range, each cloud terminal is by periodically finding other cloud terminals to surrounding scanning.
In embodiments of the present invention, in a local network, each cloud terminal maintains a comprising effective join domain
The set of state information of the status information of interior all cloud terminals, wherein contained in the information aggregate Current Scan to can mention
For the identification information of all devices of 2G/3G/4G business, identification information is the identity information for identifying corresponding equipment,
Such as MAC Address etc..Judge that corresponding cloud terminal whether may be used by judging whether identification information is located in set of state information
Network service is provided.
In one embodiment of the invention, if the first cloud terminal, which can be used as access point, provides company for other cloud terminals
It connects, then the first cloud terminal must meet default access rules, and details are as follows:
It is obtained by the inclusion of the set of state information of the status information of all cloud terminals in effective join domain each described
The current state information of cloud terminal, the current state information include network signal intensity parameter, message transmission rate ginseng
Several and each performance evaluation parameter;
The comprehensive evaluation index of each cloud terminal is generated according to the current state information;
Judge the first cloud terminal comprehensive evaluation index whether highest;
If the determination result is YES, then the first cloud terminal meets the default access rules;
If judging result be it is no, the first cloud terminal does not meet the default access rules.
In embodiments of the present invention, comprehensive evaluation index is that the network signal of the cloud SIM card enabled according to cloud terminal is strong
Degree parameter, message transmission rate parameter and each performance evaluation parameter are evaluated, such as strong by assigning the network signal of cloud SIM card
Parameter, message transmission rate parameter and each performance evaluation parameter are spent with different weights, and according to weight calculation weight, weight is
Comprehensive evaluation index, the calculation formula of comprehensive evaluation index are as follows:
Comprehensive evaluation index=∑ (A1×a+B1×b+C1×c…+Cm×m)
Wherein, A1、B1、C1…CmNormalized, A are carried out1For network signal intensity parameter, B1For message transmission rate
Parameter, C1…CmFor different types of performance evaluation parameter, a is to assign network signal intensity parameter (A1) weight, b be assign
Message transmission rate parameter (B1) weight, c ... m is to assign different types of SIM card performance evaluation parameter (C1…Cm) power
Weight.
In embodiments of the present invention, weight is to be set according to the needs of users, according to user to network signal
The calling hierarchy of intensive parameter, message transmission rate parameter and each performance evaluation parameter assigns the network signal intensity of cloud SIM card
Parameter, message transmission rate parameter and each performance evaluation parameter are with different weights.
In embodiments of the present invention, the performance evaluation parameter of SIM card mainly includes current data Connection Time, power consumption degree
And history is successfully connected rate etc., the performance evaluation parameter of SIM card can be it is therein any one or in which any two
Combination or any of them three combinations etc..
In step S220, if the first cloud terminal meets the default access rules, allow to receive positioned at described
Connection request transmitted by the second cloud terminal in the first effective join domain of cloud terminal is connected with establishing with the second cloud terminal
It connects.
In embodiments of the present invention, if the first cloud terminal meets default access rules, illustrate that the first cloud terminal can be used as
Access point provides data connection for other cloud terminals, allows to receive the connection request of other cloud terminals transmission, and whole with other clouds
Connection is established at end.
As a preferred embodiment of the present invention, each cloud terminal be designed with one for provide at most can access it is more
The default connection number of few cloud terminal, if the not up to default connection number of current connection number, which just can be other clouds
Terminal provides data connection.
If the first cloud terminal meets the default access rules, judge that the current connection number of the first cloud terminal is
It is no to reach default connection number;
If judging result be it is no, allow receive be located at the effective join domain of the first cloud terminal in the second cloud terminal
Transmitted connection request, to establish connection with the second cloud terminal;
If the determination result is YES, then refuse the connection request of the second cloud terminal, process terminates.
The maximum access quantity of a cloud terminal is limited by the way that default connection number is arranged, avoids the equipment due to access excessive
And cloud terminal is caused to work overloadingly.
In step S230, if being other described cloud terminals by the first cloud SIM card with other cloud terminal successful connections
Distribute network service.
In one embodiment of the invention, the second cloud terminal of the first cloud terminal is accessed to when the first cloud terminal receives
It can be the second cloud terminal distribution network data interface channel by the first cloud SIM card after the network data connection request of initiation, with
Carry out network data connection.Details are as follows:
If, when the second cloud terminal needs to carry out network data connection, being connect with the second cloud terminal successful connection
Receive the network data connection request that the second terminal is sent;
It is that the second cloud terminal establishes network by the first cloud SIM card according to the network data connection request
Data connection channel, to provide network data connection for the second cloud terminal.
Invention described above provide a kind of methods that cloud SIM card is shared, and effectively connect model by obtaining the first cloud terminal
The current state information of interior all cloud terminals is enclosed, and judges whether the first cloud terminal meets according to the current state information
Default access rules;If the first cloud terminal meets the default access rules, allow to receive whole positioned at first cloud
Connection request transmitted by the second cloud terminal in effective join domain is held, to establish connection with the second cloud terminal;If with
The second cloud terminal successful connection is then the second cloud terminal distribution network service by the first cloud SIM card, so that
The enabled second cloud SIM card of second cloud terminal disabling will wherein when multiple cloud terminals meet preset condition of contact
One cloud terminal is accessed as access point for other cloud terminals, and is to connect by the cloud SIM card in the cloud terminal as access point
Other cloud terminal distribution network services entered, the access of other cloud terminals are enabled as itself is deactivated after the cloud terminal of access point
Cloud SIM card just realizes the shared of cloud SIM card in this way, not only saves the connection of a large amount of cloud SIM card resource and Cloud Server
Resource, while also mitigating the load of base station.
Further include following steps after step S230 as a preferred embodiment of the present invention:
Step S240, by the first cloud terminal and access the first cloud terminal all cloud terminals used in flow with it is corresponding
MAC Address is bound, and carries out charge on traffic to corresponding cloud terminal according to MAC Address.
It in embodiments of the present invention, is the first cloud terminal and all clouds for accessing the first cloud terminal by the first cloud SIM card
Terminal distribution network data interface channel, while flow used in each cloud terminal being bound with corresponding cloud terminal MAC address,
In order to flow used in each cloud terminal carry out charging, so no matter cloud terminal be by itself enable cloud SIM card also
It is to share flow consumed by the cloud SIM card of other cloud terminals to be identified by MAC Address, facilitates charging
Process, convenient for management.
Fig. 3 shows the flow chart that the present invention second implements a kind of shared method of the cloud SIM card provided, of the invention real
It applies in example, includes multiple cloud terminals in local area network, for ease of description, indicated after determining in this programme with the first cloud terminal
As the cloud terminal of access point, the cloud terminal for becoming client after determining is indicated with the second cloud terminal, the first cloud terminal, the
Two cloud terminals can be any one cloud terminal in local area network, and first, second not refers in particular to, and when condition conversion, the first cloud is whole
End is also possible to the second cloud terminal, and the second cloud terminal is also possible to the first cloud terminal.
This method is applied to the second cloud terminal, and details are as follows:
In step s310, the current state letter of all cloud terminals in the effective join domain of the second cloud terminal is obtained
Breath, and judge whether the second cloud terminal meets default access rules according to the current state information.
In one embodiment of the invention, when multiple cloud terminals apart from it is close when, it is effective into other side between each other
When communication range, each cloud terminal is by periodically finding other cloud terminals to surrounding scanning.
In embodiments of the present invention, in a local network, each cloud terminal maintains a comprising effective join domain
The set of state information of the status information of interior all cloud terminals, wherein contained in the information aggregate Current Scan to can mention
For the identification information of all devices of 2G/3G/4G business, identification information is the identity information for identifying corresponding equipment,
Such as MAC Address etc..Judge that corresponding cloud terminal whether may be used by judging whether identification information is located in set of state information
Network service is provided.
In one embodiment of the invention, whether the second cloud terminal can be used as access point and provides company for other cloud terminals
It connects, must judge whether it meets default access rules, details are as follows:
It is obtained by the inclusion of the set of state information of the status information of all cloud terminals in effective join domain each described
The current state information of cloud terminal, the current state information include network signal intensity parameter, message transmission rate ginseng
Several and each performance evaluation parameter;
The comprehensive evaluation index of each cloud terminal is generated according to the current state information;
Judge the second cloud terminal comprehensive evaluation index whether highest;
If the determination result is YES, then the second cloud terminal meets the default access rules;
If judging result be it is no, the second cloud terminal does not meet the default access rules.
In embodiments of the present invention, comprehensive evaluation index is that the network signal of the cloud SIM card enabled according to cloud terminal is strong
Degree parameter, message transmission rate parameter and each performance evaluation parameter are evaluated, such as strong by assigning the network signal of cloud SIM card
Parameter, message transmission rate parameter and each performance evaluation parameter are spent with different weights, and according to weight calculation weight, weight is
Comprehensive evaluation index, the calculation formula of comprehensive evaluation index are as follows:
Comprehensive evaluation index=∑ (A1 × a+B1 × b+C1 × c ...+Cm × m)
Wherein, A1, B1, C1 ... Cm have carried out normalized, and A1 is network signal intensity parameter, and B1 is data transmission speed
Rate parameter, C1 ... Cm are different types of performance evaluation parameter, and a is the weight for assigning network signal intensity parameter (A1), and b is to assign
The weight of message transmission rate parameter (B1) is given, c ... m is to assign different types of SIM card performance evaluation parameter (C1 ... Cm)
Weight.
In embodiments of the present invention, weight is to be set according to the needs of users, according to user to network signal
The calling hierarchy of intensive parameter, message transmission rate parameter and each performance evaluation parameter assigns the network signal intensity of cloud SIM card
Parameter, message transmission rate parameter and each performance evaluation parameter are with different weights.
In embodiments of the present invention, the performance evaluation parameter of SIM card mainly includes current data Connection Time, power consumption degree
And history is successfully connected rate etc., the performance evaluation parameter of SIM card can be it is therein any one or in which any two
Combination or any of them three combinations etc..
In step s 320, if the second cloud terminal does not meet the default access rules, to positioned at described second
In the effective join domain of cloud terminal, the first cloud terminal for meeting the default access rules send connection request, with described the
One cloud terminal establishes connection.
In one embodiment of the invention, if detecting, the first current connection number of cloud terminal has reached default connection number,
Then compare the corresponding cloud SIM of cloud terminal that identification information is located at the not up to default connection number of set of state information, current connection number
The comprehensive evaluation index of card;
Request, Zhi Daolian successively are initiated the connection to corresponding cloud terminal from high to low by the comprehensive evaluation index of cloud SIM card
It is connected into function;
Network service is obtained by the cloud SIM card of the cloud terminal of successful connection.
In one embodiment of the invention, each cloud terminal, which is designed with one, at most can access how many for providing
The default connection number of cloud terminal, if the not up to default connection number of current connection number, which just can be other cloud terminals
Data connection is provided;The maximum access quantity of a cloud terminal can be limited by the way that default connection number is arranged, is avoided due to access
Equipment is excessive and cloud terminal is caused to work overloadingly.
In step S330, if the second cloud SIM card is deactivated, and leads to the first cloud terminal successful connection
It crosses the first cloud SIM card and obtains network service.
In one embodiment of the invention, it is successfully established by the second cloud terminal and the first cloud terminal if detecting
Connection, then deactivate the second enabled SIM card of cloud terminal, discharge the SIM card resource, avoid the occupancy to SIM card resource
And the occupancy to Cloud Server connection resource, while alleviating the load of base station.
The first cloud terminal as access point keeps the first cloud SIM card to be in initiate mode, and other are connected into the first cloud end
Other cloud terminals at end, including the second cloud terminal obtain network service by the first cloud SIM card, form Zhang Yun's SIM card
The mode shared for multiple cloud terminals.
In one embodiment of the invention, when carrying out network data connection, what acquisition was distributed by the first cloud SIM card
Network service, in detail, the second cloud terminal provide network service as WIFI hot spot for other mobile clients, when access second
When the mobile client of cloud terminal needs to carry out network data connection, network number is initiated to the first cloud terminal by the second cloud terminal
According to connection request, the first cloud terminal can be that the second cloud terminal establish network data interface channel by the first cloud SIM card, for the
Two cloud terminals carry out network data connection.
In embodiments of the present invention, when the connection termination for detecting the second cloud terminal and the first cloud terminal, and
Other are not detected in effective join domain of the second cloud terminal can share the cloud terminal of network service, pass through described
Two cloud terminals initiate cloud SIM card distribution request to background server.
Invention described above provide a kind of methods that cloud SIM card is shared, and obtain in the effective join domain of the second cloud terminal
The current state information of all cloud terminals, and it is default according to the current state information to judge whether the second cloud terminal meets
Access rules;If the second cloud terminal does not meet the default access rules, effectively connect to the second cloud terminal is located at
The first cloud terminal transmission connection request that range is interior, meets the default access rules is connect, to establish with the first cloud terminal
Connection;If the second cloud SIM card is deactivated with the first cloud terminal successful connection, and pass through the first cloud SIM card
Obtain network service;When multiple cloud terminals meet preset condition of contact, using one of cloud terminal as access point, for it
He accesses cloud terminal, and is taken by other cloud terminal distribution networks that the cloud SIM card in the cloud terminal as access point is access
Business, the access of other cloud terminals just realize cloud as enabled cloud SIM card itself is deactivated after the cloud terminal of access point in this way
Sharing for SIM card, not only saves the connection resource of a large amount of cloud SIM card resource and Cloud Server, while also mitigating base station
Load.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, the program that executes above-mentioned steps can store in a kind of meter
In calculation machine readable storage medium storing program for executing, storage medium mentioned above can be read-only memory, flash memory, disk or CD etc..
The module map for the device that a kind of cloud SIM card that Fig. 4 shows third embodiment of the invention offer is shared, in the present invention
Include multiple cloud terminals in local area network in embodiment, for ease of description, is indicated with the first cloud terminal by determining in this programme
Afterwards become access point cloud terminal, with the second cloud terminal indicate through judgement after become client cloud terminal, the first cloud terminal,
Second cloud terminal can be any one cloud terminal in local area network, and first, second not refers in particular to, when condition conversion, the first cloud
Terminal is also possible to the second cloud terminal, and the second cloud terminal is also possible to the first cloud terminal.
This method is applied to the first cloud terminal, and details are as follows:
Default access rules judging unit 110, it is whole for obtaining all clouds in the effective join domain of the first cloud terminal
The current state information at end, and judge whether the first cloud terminal meets default access rule according to the current state information
Then.
In one embodiment of the invention, when multiple cloud terminals apart from it is close when, it is effective into other side between each other
When communication range, each cloud terminal is by periodically finding other cloud terminals to surrounding scanning.
In embodiments of the present invention, in a local network, each cloud terminal maintains a comprising effective join domain
The set of state information of the status information of interior all cloud terminals, wherein contained in the information aggregate Current Scan to can mention
For the identification information of all devices of 2G/3G/4G business, identification information is the identity information for identifying corresponding equipment,
Such as MAC Address etc..Judge that corresponding cloud terminal whether may be used by judging whether identification information is located in set of state information
Network service is provided.
In one embodiment of the invention, if the first cloud terminal, which can be used as access point, provides company for other cloud terminals
It connects, then the first cloud terminal must meet default access rules, preset access rules judging unit 110 further include:
Current state information acquiring unit, for the status information by the inclusion of all cloud terminals in effective join domain
Set of state information obtain the current state information of each cloud terminal;
Comprehensive evaluation index generation unit, the synthesis for generating each cloud terminal according to the current state information are commented
Valence index;
Comprehensive evaluation index compares judging unit, for whether most to judge the comprehensive evaluation index of the first cloud terminal
It is high;
First comprehensive evaluation index compares judging unit, for if the determination result is YES, then the first cloud terminal to meet
The default access rules;
Second comprehensive evaluation index compare judging unit, if for judging result be it is no, the first cloud terminal is not inconsistent
Close the default access rules.
In embodiments of the present invention, comprehensive evaluation index is that the network signal of the cloud SIM card enabled according to cloud terminal is strong
Degree parameter, message transmission rate parameter and each performance evaluation parameter are evaluated, such as strong by assigning the network signal of cloud SIM card
Parameter, message transmission rate parameter and each performance evaluation parameter are spent with different weights, and according to weight calculation weight, weight is
Comprehensive evaluation index, the calculation formula of comprehensive evaluation index are as follows:
Comprehensive evaluation index=∑ (A1 × a+B1 × b+C1 × c ...+Cm × m)
Wherein, A1, B1, C1 ... Cm have carried out normalized, and A1 is network signal intensity parameter, and B1 is data transmission speed
Rate parameter, C1 ... Cm are different types of performance evaluation parameter, and a is the weight for assigning network signal intensity parameter (A1), and b is to assign
The weight of message transmission rate parameter (B1) is given, c ... m is to assign different types of SIM card performance evaluation parameter (C1 ... Cm)
Weight.
In embodiments of the present invention, weight is to be set according to the needs of users, according to user to network signal
The calling hierarchy of intensive parameter, message transmission rate parameter and each performance evaluation parameter assigns the network signal intensity of cloud SIM card
Parameter, message transmission rate parameter and each performance evaluation parameter are with different weights.
In embodiments of the present invention, the performance evaluation parameter of SIM card mainly includes current data Connection Time, power consumption degree
And history is successfully connected rate etc., the performance evaluation parameter of SIM card can be it is therein any one or in which any two
Combination or any of them three combinations etc..
Connection establishment unit 120 allows received bit if meeting the default access rules for the first cloud terminal
The connection request transmitted by the second cloud terminal in the effective join domain of the first cloud terminal, with the second cloud terminal
Establish connection.
In embodiments of the present invention, if the first cloud terminal meets default access rules, illustrate that the first cloud terminal can be used as
Access point provides data connection for other cloud terminals, allows to receive the connection request of other cloud terminals transmission, and whole with other clouds
Connection is established at end.
As a preferred embodiment of the present invention, each cloud terminal be designed with one for provide at most can access it is more
The default connection number of few cloud terminal, if the not up to default connection number of current connection number, which just can be other clouds
Terminal provides data connection.
Wherein establishing connection unit includes:
Connection number judging unit judges described if meeting the default access rules for the first cloud terminal
Whether the one current connection number of cloud terminal reaches default connection number;
Connection request receiving unit, if for judging result be it is no, allow receive positioned at the first cloud terminal it is effective
Connection request transmitted by the second cloud terminal in join domain, to establish connection with the second cloud terminal;
Unit is terminated, for if the determination result is YES, then refusing the connection request of the second cloud terminal, process terminates.
The maximum access quantity of a cloud terminal is limited by the way that default connection number is arranged, avoids the equipment due to access excessive
And cloud terminal is caused to work overloadingly.
Network service distributing unit 130, if for other cloud terminal successful connections, by the first cloud SIM card be institute
State other cloud terminal distribution network services.
In one embodiment of the invention, the second cloud terminal of the first cloud terminal is accessed to when the first cloud terminal receives
It can be the second cloud terminal distribution network data interface channel by the first cloud SIM card after the network data connection request of initiation, with
Carry out network data connection.Network service distributing unit 130 includes:
Network data connection request receiving unit, if for the second cloud terminal successful connection, when second cloud
When terminal needs to carry out network data connection, the network data connection request that the second terminal is sent is received;
Network data interface channel establishes unit, for passing through first cloud according to the network data connection request
SIM card is that the second cloud terminal establishes network data interface channel, to provide network data connection for the second cloud terminal.
Invention described above provide the devices that a kind of cloud SIM card is shared, including default access rules judging unit, for obtaining
The current state information of all cloud terminals in the effective join domain of first cloud terminal, and sentenced according to the current state information
Whether the first cloud terminal of breaking meets default access rules;Connection establishment unit, if meeting institute for the first cloud terminal
Default access rules are stated, then allow to receive transmitted by the second cloud terminal being located in the effective join domain of the first cloud terminal
Connection request, to establish connection with the second cloud terminal;And network service distributing unit, if for whole with second cloud
Successful connection is held, then is the second cloud terminal distribution network service by the first cloud SIM card, so that second cloud is whole
End deactivates enabled second cloud SIM card.When multiple cloud terminals meet preset condition of contact, one of cloud terminal is made
It for access point, is accessed for other cloud terminals, and whole by other clouds that the cloud SIM card in the cloud terminal as access point is access
End distribution network service, the access of other cloud terminals is as enabled cloud SIM card itself is deactivated after the cloud terminal of access point, in this way
Just the shared of cloud SIM card is realized, the connection resource of a large amount of cloud SIM card resource and Cloud Server is not only saved, while
Alleviate the load of base station.
As a preferred embodiment of the present invention, the present apparatus further include:
Charge on traffic unit 140, for will the first cloud terminal and access the first cloud terminal all cloud terminals used in
Flow is bound with corresponding MAC Address, and carries out charge on traffic to corresponding cloud terminal according to MAC Address.
It in embodiments of the present invention, is the first cloud terminal and all clouds for accessing the first cloud terminal by the first cloud SIM card
Terminal distribution network data interface channel, while flow used in each cloud terminal being bound with corresponding cloud terminal MAC address,
In order to flow used in each cloud terminal carry out charging, so no matter cloud terminal be by itself enable cloud SIM card also
It is to share flow consumed by the cloud SIM card of other cloud terminals to be identified by MAC Address, facilitates charging
Process, convenient for management.
Fig. 5 shows the flow chart that the present invention the 4th implements a kind of shared method of the cloud SIM card provided, of the invention real
It applies in example, includes multiple cloud terminals in local area network, for ease of description, indicated after determining in this programme with the first cloud terminal
As the cloud terminal of access point, the cloud terminal for becoming client after determining is indicated with the second cloud terminal, the first cloud terminal, the
Two cloud terminals can be any one cloud terminal in local area network, and first, second not refers in particular to, and when condition conversion, the first cloud is whole
End is also possible to the second cloud terminal, and the second cloud terminal is also possible to the first cloud terminal.
This method is applied to the second cloud terminal, and details are as follows:
Default access rules judging unit 210, it is whole for obtaining all clouds in the effective join domain of the second cloud terminal
The current state information at end, and judge whether the second cloud terminal meets default access rule according to the current state information
Then.
In one embodiment of the invention, when multiple cloud terminals apart from it is close when, it is effective into other side between each other
When communication range, each cloud terminal is by periodically finding other cloud terminals to surrounding scanning.
In embodiments of the present invention, in a local network, each cloud terminal maintains a comprising effective join domain
The set of state information of the status information of interior all cloud terminals, wherein contained in the information aggregate Current Scan to can mention
For the identification information of all devices of 2G/3G/4G business, identification information is the identity information for identifying corresponding equipment,
Such as MAC Address etc..Judge that corresponding cloud terminal whether may be used by judging whether identification information is located in set of state information
Network service is provided.
In one embodiment of the invention, whether the second cloud terminal can be used as access point and provides company for other cloud terminals
It connects, must judge whether it meets default access rules, details are as follows:
Default access rules judging unit includes following subelement:
Current state information acquiring unit, for the status information by the inclusion of all cloud terminals in effective join domain
Set of state information obtain the current state information of each cloud terminal;
Comprehensive evaluation index generation unit, the synthesis for generating each cloud terminal according to the current state information are commented
Valence index;
Comprehensive evaluation index compares judging unit, for whether most to judge the comprehensive evaluation index of the first cloud terminal
It is high;
First comprehensive evaluation index compares judging unit, for if the determination result is YES, then the first cloud terminal to meet
The default access rules;
Second comprehensive evaluation index compare judging unit, if for judging result be it is no, the first cloud terminal is not inconsistent
Close the default access rules.
In embodiments of the present invention, comprehensive evaluation index is that the network signal of the cloud SIM card enabled according to cloud terminal is strong
Degree parameter, message transmission rate parameter and each performance evaluation parameter are evaluated, such as strong by assigning the network signal of cloud SIM card
Parameter, message transmission rate parameter and each performance evaluation parameter are spent with different weights, and according to weight calculation weight, weight is
Comprehensive evaluation index, the calculation formula of comprehensive evaluation index are as follows:
Comprehensive evaluation index=∑ (A1 × a+B1 × b+C1 × c ...+Cm × m)
Wherein, A1, B1, C1 ... Cm have carried out normalized, and A1 is network signal intensity parameter, and B1 is data transmission speed
Rate parameter, C1 ... Cm are different types of performance evaluation parameter, and a is the weight for assigning network signal intensity parameter (A1), and b is to assign
The weight of message transmission rate parameter (B1) is given, c ... m is to assign different types of SIM card performance evaluation parameter (C1 ... Cm)
Weight.
In embodiments of the present invention, weight is to be set according to the needs of users, according to user to network signal
The calling hierarchy of intensive parameter, message transmission rate parameter and each performance evaluation parameter assigns the network signal intensity of cloud SIM card
Parameter, message transmission rate parameter and each performance evaluation parameter are with different weights.
In embodiments of the present invention, the performance evaluation parameter of SIM card mainly includes current data Connection Time, power consumption degree
And history is successfully connected rate etc., the performance evaluation parameter of SIM card can be it is therein any one or in which any two
Combination or any of them three combinations etc..
Connection establishment unit 220, if not meeting the default access rules for the second cloud terminal, to positioned at institute
The the first cloud terminal for stating in the second effective join domain of cloud terminal, meeting the default access rules sends connection request, with
The first cloud terminal establishes connection.
In one embodiment of the invention, connection establishment unit includes:
First connection request transmission unit, if not meeting the default access rules for the second cloud terminal, to
In the effective join domain of the second cloud terminal, meet the default access rules the first cloud terminal send connection ask
It asks;
Comprehensive evaluation index comparison unit, if for detecting that the first current connection number of cloud terminal has reached default connection
Number then compares the comprehensive evaluation index that current connection number is not up to other cloud terminals of default connection number;
Second connection request transmission unit, by the comprehensive evaluation index of other cloud terminals from high to low successively to each institute
It states prepared cloud terminal and initiates the connection request, until successful connection.
The maximum access quantity of a cloud terminal can be limited by the way that default connection number is arranged, avoids the equipment mistake due to access
Cause cloud terminal to work overloadingly more.
Network service acquisition unit 230, if for the first cloud terminal successful connection, by the second cloud SIM
Card deactivates, and obtains network service by the first cloud SIM card.
In one embodiment of the invention, it is successfully established by the second cloud terminal and the first cloud terminal if detecting
Connection, then deactivate the second enabled SIM card of cloud terminal, discharge the SIM card resource, avoid the occupancy to SIM card resource
And the occupancy to Cloud Server connection resource, while alleviating the load of base station.
The first cloud terminal as access point keeps the first cloud SIM card to be in initiate mode, and other are connected into the first cloud end
Other cloud terminals at end, including the second cloud terminal obtain network service by the first cloud SIM card, form Zhang Yun's SIM card
The mode shared for multiple cloud terminals.
Wherein, network service acquisition unit 230 includes:
Cloud SIM card deactivated cell, if for the first cloud terminal successful connection, the second cloud SIM card is stopped
With;
Network data connection request transmission unit, for needing to carry out when the mobile client for accessing the second cloud terminal
When network data connects, Xiang Suoshu the first cloud terminal initiates network data connection request;
Network data interface channel establishes unit, if passing through described for network data connection request success
The network data interface channel that one cloud SIM card is established carries out network data connection.
Invention described above provide the devices that a kind of cloud SIM card is shared, and preset access rules judging unit, described for obtaining
The current state information of all cloud terminals in the second effective join domain of cloud terminal, and institute is judged according to the current state information
State whether the second cloud terminal meets default access rules;Connection establishment unit, if not met for the second cloud terminal described
Default access rules, then to being located in the effective join domain of the second cloud terminal, meet the first of the default access rules
Cloud terminal sends connection request, to establish connection with the first cloud terminal;Network service acquisition unit, if for described the
One cloud terminal successful connection, then deactivate the second cloud SIM card, and obtains network service by the first cloud SIM card.When
When multiple cloud terminals meet preset condition of contact, using one of cloud terminal as access point, accessed for other cloud terminals, and
It is other cloud terminal distribution network services of access by the cloud SIM card in the cloud terminal as access point, other cloud terminals connect
Enabled cloud SIM card itself is deactivated after entering the cloud terminal as access point, just realizes the shared of cloud SIM card in this way, not only
The connection resource of a large amount of cloud SIM card resource and Cloud Server is saved, while also mitigating the load of base station.
Fig. 6 shows the system that a kind of cloud SIM card of fifth embodiment of the invention offer is shared, and details are as follows:
In embodiments of the present invention, a kind of shared system of cloud SIM card includes: one comprising as 3rd embodiment provides
Device cloud terminal 1, one or more include the device as provided by fourth embodiment cloud terminals 2.
In one embodiment of the invention, each cloud terminal can periodically to being scanned, to search for other cloud terminals,
When cloud terminal 1 and cloud terminal 2 enter within the scope of the efficient communication of other side, one can be selected as access point, in the present embodiment
In, if cloud terminal 1 meets default access rules, cloud terminal 1 will be connected as access point for cloud terminal 2, after successful connection, cloud
Terminal 2 will deactivate enabled cloud SIM card itself, and obtain network clothes from network server by the cloud SIM card in cloud terminal 1
Business realizes cloud SIM card and shares, reduces the occupancy of cloud SIM card resource and Cloud Server connection resource, also mitigate base station
Load.
The timing diagram for the method that a kind of cloud SIM card that Fig. 7 shows sixth embodiment of the invention offer is shared, describes work
The interaction flow of the first cloud terminal and the second cloud terminal as access device for access point, details are as follows:
1, the second cloud terminal sends connection request to the first cloud terminal for meeting default access rules;
2, the first cloud terminal receives the connection request of the second cloud terminal, and establishes connection with the second cloud terminal;
3, after successful connection, second cloud terminal disabling the second cloud SIM card;
4, the second cloud terminal sends network data connection request to the first cloud terminal;
5, the first cloud terminal receiving network data connection request, and be the first cloud terminal distribution net by the first cloud SIM card
Network data connection channel;
6, the network data interface channel and network server that the second cloud terminal is distributed by the first cloud SIM card carry out network
Data connection.
Invention described above provide the devices that a kind of cloud SIM card is shared, when multiple cloud terminals meet preset condition of contact,
It using one of cloud terminal as access point, is accessed for other cloud terminals, and passes through the cloud SIM in the cloud terminal as access point
Card is other cloud terminal distribution network services of access, other cloud terminals, which are accessed, has deactivated itself as after the cloud terminal of access point
The cloud SIM card of enabling just realizes the shared of cloud SIM card in this way, not only saves a large amount of cloud SIM card resource and Cloud Server
Connection resource, while also mitigating the load of base station.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Made any modifications, equivalent replacements, and improvements etc., should all be included in the protection scope of the present invention within mind and principle.