CN106817370A - The method and device of transmitting network data - Google Patents
The method and device of transmitting network data Download PDFInfo
- Publication number
- CN106817370A CN106817370A CN201710034840.3A CN201710034840A CN106817370A CN 106817370 A CN106817370 A CN 106817370A CN 201710034840 A CN201710034840 A CN 201710034840A CN 106817370 A CN106817370 A CN 106817370A
- Authority
- CN
- China
- Prior art keywords
- network
- application
- capabilities
- network connection
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/02—Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
- H04L63/0227—Filtering policies
- H04L63/0236—Filtering by address, protocol, port number or service, e.g. IP-address or URL
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/10—Network architectures or network communication protocols for network security for controlling access to devices or network resources
- H04L63/101—Access control lists [ACL]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72463—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/11—Allocation or use of connection identifiers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/22—Processing or transfer of terminal data, e.g. status or physical capabilities
- H04W8/24—Transfer of terminal data
- H04W8/245—Transfer of terminal data from a network towards a terminal
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Information Transfer Between Computers (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses a kind of method and device of transmitting network data, belong to field of terminal technology.Methods described includes:When the data-interface included by network connection management service detects the network data for the first application, interface identifier according to the data-interface determines the network capabilities of the network connection needed for transmitting the network data, the network capabilities is used to illustrate the ability of network connection transmitting network data, middle determine corresponding with network capabilities network white list from being locally stored, wherein, the network white list is used to store can use the application identities of the application program of the network connection with the network capabilities, when the network white list includes the application identities of first application, the network data is transmitted by the network connection with the network capabilities.The present invention improves the effect of transmitting network data, saves cost.
Description
Technical field
The present invention relates to field of terminal technology, more particularly to a kind of method and device of transmitting network data.
Background technology
With the development of terminal technology, the terminal such as mobile phone, panel computer is increasingly popularized.Terminal can generally be installed and transported
The different application program of row, so as to realize different functions, and during some functions are realized, it usually needs by network
The transmitting network data between other terminals, so as to be interacted with other terminals.But terminal is usual in transmitting network data
Certain data traffic can be consumed, and then produces certain expense, increased the cost of user's using terminal, therefore, need one badly
The method for planting transmitting network data.
In correlation technique, the application program for being capable of transmitting network data of terminal installation includes two classes, first kind application journey
Sequence can initiate network request so as to set up network connection, and by the network connection set up come transmitting network data, Equations of The Second Kind
Application program can only be by existing network connection come transmitting network data.Tool is generally needed due to transmitting different network datas
There is the network connection of heterogeneous networks ability, therefore, answered when terminal receives the first kind by built-in network connection management service
During the network request that any application program in sends, can be serviced by the network connection management, based on the network request
The capability information of carrying sets up the network connection with map network ability, and the network connection that will have the network capabilities
Successful situation is set up and has notified that afterwards, each application program can be used to each application program installed in the terminal
The network connection with the network capabilities.
Because the terminal is after network connection of the foundation with the network capabilities, each application program can use tool
Have the network connection of the network capabilities, so as to cause the poor effect of terminal transmission network data, and be difficult to reduce user make
With the flow cost of the terminal.
The content of the invention
In order to improve the effect of transmitting network data and reduce using the cost of the terminal, one is the embodiment of the invention provides
Plant transmitting network data method and device.The technical scheme is as follows:
First aspect, there is provided a kind of method of transmitting network data, methods described includes:
When the data-interface included by network connection management service detects the network data for the first application, root
The network capabilities of the network connection needed for determining the transmission network data according to the interface identifier of the data-interface, the network
Ability is used to illustrate the ability of network connection transmitting network data;
From be locally stored it is middle determine corresponding with network capabilities network white list, wherein, the network white list is used
The application identities of the application program of the network connection with the network capabilities can be used in storage;
When the network white list includes the application identities of first application, by with the network capabilities
Network connection transmits the network data.
Alternatively, it is described from before middle determination network white list corresponding with the network capabilities is locally stored, also include:
Carried in network request and the network request is received by the network connection management service and the net
During the corresponding capability information of network ability, it is determined that the shared model of the network connection with the network capabilities, based on described
Shared model determines at least one application identities, and the shared model is used to indicate that the net with the network capabilities can be shared
The application program of network connection, the capability information is used to illustrate the network capabilities of the network connection that request is set up;
Judge currently whether set up the network connection with the network capabilities based on the capability information;
If currently without the network connection with the network capabilities is set up, set up based on the capability information
Network connection with the network capabilities, net corresponding with the network capabilities is generated based at least one application identities
Network white list;
If the currently-established network connection with the network capabilities, by least one application identities addition
Into network white list corresponding with the network capabilities.
Alternatively, it is described that at least one application identities are determined based on the shared model, including:
When the shared model is group mode, the application identities of the second application are determined, second application is transmission
The application program of the network request, the group mode is used to indicate to belong to answering for same application group with the described second application
The network connection with the network capabilities can be shared with program;
Between the capability information and application group of storage in corresponding relation, it is determined that with the capability information pair
Answer and including the application group of the described second application identities applied;
The application identities that the application group includes are defined as at least one application identities.
Alternatively, between the capability information and application group from storage in corresponding relation, it is determined that with the net
Before the application group of network ability information correspondence and the application identities including the described second application, also include:
Obtain the application identities of current mounted all application programs;
At least one application group is determined based on the capability information and the application identities for getting, each applies group
Group includes that at least one can send the network request to ask to set up answering for the network connection with the network capabilities
With the application identities of program;
The capability information and at least one application group are stored in the capability information and application
In corresponding relation between group.
Alternatively, it is described that at least one application identities are determined based on the shared model, including:
When the shared model is privately owned pattern, the application identities of the second application are determined, the privately owned pattern is used to refer to
Show that second application be able to can not be shared with institute using network connection but other application programs with the network capabilities
The network connection of network capabilities is stated, the application identities of the described second application are defined as at least one application identities;Or,
When the shared model is global schema, the application identities of current mounted each application are defined as institute
At least one application identities are stated, all application programs that the global schema is used for instruction installation can be shared with the net
The network connection of network ability.
Alternatively, the shared model for determining the network connection with the network capabilities, including:
The shared model that will be pre-set is defined as the shared model of the network connection with the network capabilities;Or,
The multiple shared models of display, when shared model selection instruction is received based on the multiple shared model, by institute
State the shared model that the selected shared model of shared model selection instruction is defined as the network connection with the network capabilities;
Or,
When shared model information is carried in the network request, determine that there is the net based on the shared model information
The shared model of the network connection of network ability;Or,
Based on the second application for sending the network request, it is determined that the shared mould of the network connection with the network capabilities
Formula.
Second aspect, there is provided a kind of device of transmitting network data, described device includes:
First determining module, for being answered for first when the data-interface included by network connection management service is detected
During network data, the interface identifier according to the data-interface determines the network connection needed for transmitting the network data
Network capabilities, the network capabilities is used to illustrate the ability of network connection transmitting network data;
Second determining module, for from be locally stored it is middle determine corresponding with network capabilities network white list, wherein,
The network white list is used to store can use the application identities of the application program of the network connection with the network capabilities;
Transport module, during for including the application identities of first application when the network white list, by having
The network connection of the network capabilities transmits the network data.
Alternatively, described device also includes:
3rd determining module, for asking when receiving network request and the network by the network connection management service
When seeking middle carrying capability information corresponding with the network capabilities, it is determined that network connection with the network capabilities is total to
Pattern is enjoyed, at least one application identities are determined based on the shared model, the shared model can be shared for instruction to be had
The application program of the network connection of the network capabilities, the capability information is used to illustrate the network connection that request is set up
Network capabilities;
Judge module, for judging currently whether set up with the network capabilities based on the capability information
Network connection;
Module is set up, if for currently without the network connection with the network capabilities is set up, based on the net
Network ability information sets up the network connection with the network capabilities, based at least one application identities generation and the net
The corresponding network white list of network ability;
Add module, if for the currently-established network connection with the network capabilities, at least one by described in
Individual application identities are added in network white list corresponding with the network capabilities.
Alternatively, the 3rd determining module includes:
First determination sub-module, for when the shared model is group mode, determining the application identities of the second application,
Second application is the application program of the transmission network request, and the group mode is used to indicate and the described second application category
The network connection with the network capabilities can be shared in the application program of same application group;
Second determination sub-module, between the capability information and application group of storage in corresponding relation, it is determined that
The application group of application identities corresponding with the capability information and including the described second application;
3rd determination sub-module, for the application identities that the application group includes to be defined as at least one application
Mark.
Alternatively, the 3rd determining module also includes:
Acquisition submodule, the application identities for obtaining current mounted all application programs;
4th determination sub-module, for determining at least one based on the capability information and the application identities for getting
Application group, each application group includes that at least one can send the network request to ask to set up with the network
The application identities of the application program of the network connection of ability;
Sub-module stored, for the capability information to be stored in the network with least one application group
In corresponding relation between ability information and application group.
Alternatively, the 3rd determining module includes:
5th determination sub-module, for when the shared model is privately owned pattern, determining the application identities of the second application,
The privately owned pattern can use network connection but other application with the network capabilities for indicating second application
Program can not share the network connection with the network capabilities, by the application identities of the described second application be defined as it is described at least
One application identities;Or,
6th determination sub-module, for when the shared model is global schema, by current mounted each application
The application identities of program are defined as at least one application identities, and the global schema is used for all applications for indicating to install
Program can share the network connection with the network capabilities.
Alternatively, the 3rd determining module includes:
7th determination sub-module, the shared model for that will pre-set is defined as the network with the network capabilities and connects
The shared model for connecing;Or,
Display sub-module, for showing multiple shared models, when receiving shared model based on the multiple shared model
During selection instruction, the selected shared model of shared model selection instruction is defined as the network with the network capabilities
The shared model of connection;Or,
8th determination sub-module, for when shared model information is carried in the network request, based on the shared mould
Formula information determines the shared model of the network connection with the network capabilities;Or,
9th determination sub-module, for based on the second application for sending the network request, it is determined that having the network energy
The shared model of the network connection of power.
The device of the method and transmitting network data of implementing the transmitting network data that the present invention is provided at least has with following
Beneficial effect:
It is possible, firstly, to when the network data for the first application is detected by data-interface, according to the data-interface
Interface identifier determine transmit the network data needed for network connection network capabilities, afterwards, it may be determined that with the network energy
The corresponding network white list of power, and when the network white list includes the application identities of the first application, by with the network
The network connection of ability transmits the network data, that is to say, can be by network white list corresponding with the network capabilities, to making
Filtered with the application program of the network connection with the network capabilities, any application program can in reducing the terminal
By the probability of the network connection transmitting network data with the network capabilities, with the existing network data transmission side without filtering
Method is compared, and can reduce multiple application programs while being transmitted using the network connection of consolidated network ability such that it is able to carry
The effect of high-transmission network data, saves the flow cost of terminal.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be to that will make needed for embodiment description
Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for
For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings
Accompanying drawing.
Fig. 1 is a kind of flow chart of transmitting network data method provided in an embodiment of the present invention;
Fig. 2 is the flow chart of another transmitting network data method provided in an embodiment of the present invention;
Fig. 3 is a kind of apparatus structure schematic diagram of transmitting network data provided in an embodiment of the present invention;
Fig. 4 is the apparatus structure schematic diagram of another transmitting network data provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention
Formula is described in further detail.
Fig. 1 is a kind of flow chart of transmitting network data method provided in an embodiment of the present invention, referring to Fig. 1, the method bag
Include:
Step 101:When the data-interface included by network connection management service detects the network for the first application
During data, the interface identifier according to the data-interface determines the network capabilities of the network connection needed for transmitting the network data, should
Network capabilities is used to illustrate the ability of network connection transmitting network data.
Step 102:From be locally stored it is middle determine corresponding with network capabilities network white list, wherein, the white name of the network
It is alone to use the application identities of the application program of the network connection with the network capabilities in storage.
Step 103:When the network white list includes the application identities of first application, by with the network capabilities
Network connection transmit the network data.
In embodiments of the present invention, it is possible, firstly, to be detected for first using (the first application can by data-interface
To be any application program of installation in terminal, for example, MMS (Multimedia Messaging Service, multimedia messages
Service) application, its application identities be UID (User Identification, user identity is proved) 1) network data (for example,
Multimedia messages) when, the interface identifier (for example, rm.net.data0) according to the data-interface determines to transmit the network data institute
The network capabilities (for example, MMS) of the network connection for needing, afterwards, it may be determined that network white list corresponding with the network capabilities (should
Network white list be used for store can using with the network capabilities network connection application program mark, for example, with net
Can be stored in the corresponding network white lists of network ability MMS can use the application identities of the application program with MMS abilities),
And when the network white list includes the application identities of the first application, being transmitted by the network connection with the network capabilities should
Network data (for example, multimedia messages are transmitted by the network connection with MMS abilities, i.e., by data-interface
Rm.net.data0 transmits multimedia messages), that is to say, can be by network white list corresponding with the network capabilities, to making
Filtered with the application program of the network connection with network capabilities, any application program can lead in reducing the terminal
The probability of the network connection transmitting network data with the network capabilities is crossed (for example, when in the corresponding network white list of MMS abilities
Only be stored with UID1 when, only have MMS applications to transmit multimedia by network connection with the MMS abilities in the terminal
Information), compared with the existing network data transmission method without filtering, multiple application programs can be reduced simultaneously using same
The network connection of network capabilities is transmitted, and improves the effect of transmitting network data, saves the flow cost of the terminal.
Fig. 2 is a kind of method flow diagram of transmitting network data provided in an embodiment of the present invention, and referring to Fig. 2, the method is used
In terminal, the method includes:
Step 201:Carried in the terminal receives network request and the network request by network connection management service
During capability information, it is determined that the shared model of the network connection with network capabilities corresponding with the capability information, should
Shared model is used for the application program for indicating that the network connection with the network capabilities can be shared.
Because the terminal is during certain application program is run, it usually needs by the net with certain network capabilities
Network connection transmission is directed to the network data of the application program, including receiving network data or transmission network data, and in this process
In, if being directed to the network data of other application program also by the network connection transmission with the network capabilities, i.e., other should
Also can cause terminal transmission for the network number of the application program using the network connection with the network capabilities with program
According to poor effect, and improve user use the terminal cost.Therefore, it can when network request is received, based on the net
The capability information that network request is carried, it is determined that network connection with network capabilities corresponding with the capability information is total to
Pattern is enjoyed, so as to be based on the shared model, the application program using the network connection with the network capabilities is determined to.
Wherein, the terminal can be the terminals such as mobile phone, panel computer, intelligent watch, certainly, in actual applications, the end
End can also be that other can install application program and can set up network connection, so that the terminal of transmitting network data, the end
The application program installed in end can be the application program for needing to use network connection.
It should be noted that the network connection management service can be service built-in in the terminal, such as, when the terminal
During for the terminal for being provided with Android operation system, the network connection management service can include Connectivity Service
(Connection Service).
Also, it should be noted that the network request can be installed by the terminal it is any with initiating network request ability
Application program sends, and the network request can carry capability information, so as to ask to set up have and the capability information
The network connection of corresponding network capabilities.Certainly, in actual applications, the network request can also carry other information, such as,
The network request can also carry the application identities of the second application for sending the network request, have the network capabilities for explanation
The shared model information of shared model of network connection etc..
Wherein, the second application can be the mounted any application program of the terminal.Application identities are used for unique mark one
Individual application program, application identities can be the UID of the application program or Package Name (bag name) of application program.Certainly, exist
In practical application, application identities can also be that other being capable of one mark of application program of unique mark.
It should be noted that the capability information is used to illustrate the network capabilities of the network connection that request is set up, the net
Network ability is used to illustrate the ability of network connection transmitting network data.Such as, capability information is
During NetworkCapabilities.NET_CAPABILITY_MMS, the network capabilities for illustrating the network connection that request is set up is
MMS.Certainly, in practical application, the capability information can also be other forms, and the capability information asks to set up
The network capabilities of network connection can be other network capabilities, such as Internet (internet), SUPL (Secure User
Plane Location, secure user plane positioning service), (Firmware Over-The-Air, download software to FOTA in the air
Upgrading) etc. network capabilities.
Further, because when by network connection transmitting network data with heterogeneous networks ability, required is total to
Enjoy pattern generally also different, such as, when certain has the application program of positioning function in the terminal, by with SUPL abilities
Network connection transmitting network data, so as to when being the terminal positioning, can only allow transmission that there is answering for positioning function for this
With the network data of program.Therefore, in order to improve the effect of transmitting network data, and the cost that user uses the terminal is reduced,
The terminal can determine the shared model of the network connection with the network capabilities.
Wherein, the shared model can include one or more in privately owned pattern, group mode and global schema.Group
Pattern is used to indicate share the net with the network capabilities using the application program for belonging to same application group with second
Network is connected, and the privately owned pattern is used for the second application of instruction can use network connection but other application journey with the network capabilities
Sequence can not share the network connection with the network capabilities, and the global schema is used to indicate all application programs installed can
The shared network connection with the network capabilities.From the foregoing it will be appreciated that the second application is the application program of the transmission network request, because
This, for group mode, the application program for belonging to same application group with the second application can be shared with the network capabilities
Network connection, that is, refer to only with send the request application program be in same application group application program can share tool
There is the network connection of the network capabilities.For privately owned pattern, the second application can use the network connection with the network capabilities
But other application programs can not share the network connection with the network capabilities, that is, refer to the application journey for only sending the network request
Sequence can use the network connection with the network capabilities.
It should be noted that the shared model such as, can use numeral 0 by a character or string representation
Privately owned pattern is represented, group mode is represented with numeral 1, represents global schema for numeral 2.Certainly, in actual applications, may be used also
To identify the shared model by the character or character string of other forms or species.
Wherein, the terminal at least can determine the network connection with the network capabilities by following four kinds of implementations
Shared model:
The first implementation, in order to reduce interacting between user, improves the efficiency for determining shared model, will be advance
The shared model of setting is defined as the shared model of the network connection with the network capabilities.
Wherein, the terminal can in advance for each network capabilities sets a shared model, and afterwards, the terminal can be direct
The shared model that the network capabilities is pre-set determines the shared model of the network connection with the network capabilities.
For example, the corresponding network capabilities of capability information that the network request is carried is SUPL, and network capabilities SUPL
The shared model for pre-setting is privately owned pattern, therefore, the terminal can be by the shared mould of the network connection with SUPL abilities
Formula is defined as privately owned pattern.
Second implementation, the accuracy rate of shared model is determined to improve, and then improve the effect of transmitting network data
Really, the shared model with the network connection of the network capabilities can be determined by user, i.e., when network request is received every time
The multiple shared models of display, when shared model selection instruction is received based on the plurality of shared model, by shared model choosing
Select the shared model that the selected shared model of instruction is defined as the network connection with the network capabilities.
Wherein, the terminal can show the plurality of shared model by way of window or pop-up, certainly, in practical application
In, the terminal can also otherwise show the plurality of shared model.
It should be noted that the shared model selection instruction is used to select a shared model, shared model selection refers to
Order can be triggered by user by performing predetermined registration operation, and the predetermined registration operation can be clicking operation, touch operation, button operation
Deng, certainly, in actual applications, the predetermined registration operation can also be other operate.
The third implementation, in order to reduce interacting between user, improves the efficiency for determining shared model, when the net
When carrying shared model information in network request, being total to for the network connection with the network capabilities is determined based on the shared model information
Enjoy pattern.
Wherein, the shared model information is used to illustrate that the network request asks the network with the network capabilities set up
The shared model of connection.Such as, when the shared model information is " shared model:When 0 ", it is determined that the network request asks to build
The shared model of the vertical network connection with the network capabilities is privately owned pattern.
4th kind of implementation, the accuracy rate of shared model is determined to improve, and then improve the effect of transmitting network data
Really, can be based on sending the second application of the network request, it is determined that the shared model of the network connection with the network capabilities.
Wherein, each application program installed for the terminal, the terminal can pre-set the application program and can
The shared model of the network connection of foundation is asked, therefore, when the terminal receives the network request, can be based on the transmission network
The second of request applies to determine the shared model of the network connection with the network capabilities.That is to say, same application institute
The shared model of the network connection of foundation can be asked identical.
For example, the terminal receives the net that APP (Application, using) 1 sends by the network connection management service
Network is asked, and the terminal is group's mould for APP1 that APP1 pre-sets to be asked the shared model of the network connection set up
Formula, therefore, the shared model of the network connection with the network capabilities that the terminal sets up APP1 current requests is defined as group
Group pattern.
Further, since all application programs that the global schema is used for instruction installation can be shared with the network capabilities
Network connection, therefore, when the shared model be global schema when, the terminal can not also perform following step 202-203 institutes
The operation stated, but directly judge currently whether set up the network connection with the network capabilities, have if set up without if
There is the network connection of the network capabilities, if then being deleted network white list corresponding with the network data.
Wherein, the terminal can be judged by the network connection management service in currently-established network connection whether
Including the network connection with the network capabilities, if currently-established network connection includes the net with the network capabilities
Network is connected, it is determined that currently-established to have the network connection with the network capabilities, if in currently-established network connection
Do not include the network connection with the network capabilities, it is determined that currently do not set up the network connection with the network capabilities.
For example, when the terminal is the terminal for being provided with Android operation system, the terminal can be by Connectivity
Whether Service judges currently to have set up the network connection with the network capabilities, if it is not, passing through Network
Factory (network factory) sets up the network connection with the network capabilities.
In addition, the terminal is when the network connection with the network capabilities is set up, can be the net with the network capabilities
Network connection determines a data-interface, and the data-interface transmitting network data is passed through in order to after.
Wherein, the terminal can (such as, the plurality of data-interface can be related from the multiple data-interfaces for pre-setting
The data-interface that technical staff pre-sets, and each data-interface corresponds to a kind of network capabilities respectively) select to the network energy
The corresponding data-interface of power.
It should be noted that the terminal can determine each data-interface institute when the plurality of data-interface is pre-set
Corresponding network capabilities, and by the interface identifier of the data-interface and the network capabilities store to interface identifier and network capabilities it
Between corresponding relation in.Afterwards, the terminal can be based on the network capabilities, the corresponding pass between interface identifier and network capabilities
In system, it is determined that data-interface corresponding with the network capabilities.
Certainly, in actual applications, when the terminal sets up the network connection with the network capabilities, it is also possible to by other
Mode determines a FPDP, (such as, the terminal can also be the newly-generated FPDP of the network capabilities) and will
The interface identifier of the data-interface of determination and the network capabilities are stored into the corresponding relation between interface identifier and network capabilities.
Step 202:The terminal determines at least one application identities based on the shared model.
It should be noted that the network white list is used to store to be currently able to use the network connection with the network capabilities
Application program application identities.
Because the application that can use the network connection with the network capabilities indicated by different shared models is different,
Therefore need to determine at least one application identities based on the shared model, to ensure that at least one application identities can use tool
There is the network connection of the network capabilities.
Wherein, one or more in privately owned pattern, group mode and global schema can be included due to shared model, because
This, when the shared model is privately owned pattern, determines the application identities of the second application, and the application identities of second application are determined
It is at least one application identities.When the shared model is global schema, by answering for current mounted each application program
It is defined as at least one application identities with mark.When the shared model is group mode, the application of the second application is determined
Mark, between the network capabilities and application group of storage in corresponding relation, it is determined that it is corresponding with the capability information and including
The application identities that the application group includes are defined as at least one application by the application group of the application identities of second application
Mark.
For example, the terminal receives the network request that APP1 sends, the network request by the network connection management service
The corresponding network capabilities of the network information of carrying is MMS, and the terminal determines the shared model of the network connection 1 that APP1 requests are set up
It is group mode, wherein, network connection 1 is the network connection with MMS abilities.Therefore, the terminal is based on the application of the APP1
Mark UID1, between the network capabilities being described in table 1 below and application group of storage in corresponding relation, it is determined that corresponding with MMS
Application group be group 1 and group 2, the application identities that wherein group 1 includes be UID1, UID2, UID3, what group 2 included
Application identities are UID4, UID5, UID6.Because group 1 includes UID1, therefore, UID1 that the terminal includes group 1,
UID2, UID3 are defined as at least one application identities.
Table 1
It should be noted that the embodiment of the present invention is only with the corresponding pass between the network capabilities described in table 1 and application group
Illustrated as a example by system, above-mentioned table 1 is not constituted to the embodiment of the present invention and limited.
Further, the terminal can between the network capabilities and application group of storage in corresponding relation, it is determined that with
Before the application group of capability information correspondence and the application identities including second application, current mounted institute is obtained
There are the application identities of application program, at least one application group is determined based on the network capabilities and the application identities for getting, often
Individual application group includes that at least one can send the network request and ask answering for the network connection with the network capabilities
With the application identities of program, by the network capabilities and at least one application group store the network capabilities and application group it
Between corresponding relation in.
For example, the application identities that get of the terminal be UID1, UID2, UID3, UID4, UID5, UID6, UID7, UID8,
UID9, UID10, UID11 and UID12, wherein, UID n are the application identities of APP n.If APP1 and APP4 has sent
So as to ask to set up the ability of network connection 1, APP 1, APP 2, APP 3, APP 4, APP 5 and APP 6 need network request
Using the transmitting network data of network connection 1, therefore, the terminal can be based on MMS and 12 application identities for getting, it is determined that with
Corresponding 2 application groups of network capabilities MMS are respectively group 1 and group 2, and wherein group 1 includes UID1, UID2 and UID3,
Group 2 includes UID4, UID5 and UID6.
Wherein, the terminal can show packet prompt message, and the packet prompt message includes the application identities for getting, should
Packet prompt message is used to point out application identities of the user to getting to be grouped, when the packet prompt message based on display connects
When receiving packet instruction, at least one application group is determined based on packet instruction.
It should be noted that the terminal can show the network configuration prompt message by modes such as window or pop-ups, when
So, in actual applications, the terminal can otherwise show the network configuration prompt message.
Also, it should be noted that the packet is instructed being grouped for the application identities to getting, packet instruction can
Triggered by performing predetermined registration operation with by user.
Wherein, each application program in all application programs mounted for the terminal, the terminal can be based on
The network capabilities and the application identities for getting (such as, are installed before determining at least one application group in the application program
Into when or when running first), network configuration prompt message is shown, to point out the user application program whether to need to use network
Whether connection, network connection is used if desired, the network capabilities of the network connection needed for the application program, can initiate network
If asking, network request can be initiated, the network capabilities corresponding to capability information that the network request initiated is carried
Etc. information.Certainly, in actual applications, the terminal can also otherwise point out whether the user application program needs
Whether using network connection, network connection is used if desired, the network capabilities of the network connection needed for the application program, can
If initiating network request, network request can be initiated, corresponding to the capability information that the network request initiated is carried
The information such as network capabilities.
It should be noted that the terminal can show the network configuration prompt message by modes such as window or pop-ups, when
So, in actual applications, the terminal can otherwise show the network configuration prompt message.
Further, the accuracy rate of at least one application identities is got to improve, each application program can be only
It is present in a group at least one group, that is to say, will not in any two group at least one group
Application identities including same application program.
Further, due to can generally also include that the network capabilities need not be used in the mounted all applications of the terminal
Network connection application program, therefore, in order to improve determine at least one application group flexibility, this at least one group
The number of the application identities that group includes can be less than or equal to the number of the application identities that the terminal gets, and that is to say, this is extremely
A few group can not include the application identities of mounted certain application program of the terminal.
In addition, the network connection with any network capabilities that can be set up for the terminal, the terminal can be based on
The network capabilities and the application identities for getting, it is determined that at least one application group corresponding with the capability information.
Step 203:Judge currently whether set up the network connection with the network capabilities based on the capability information,
If currently without the network connection with the network capabilities is set up, being set up based on the capability information has the network energy
The network connection of power, generates network white list corresponding with the network capabilities, if currently based at least one application identities
The network connection with the network capabilities is set up, has then been added at least one application identities corresponding with the network capabilities
In network white list.
Due to that when the network request of the second application is received, currently-established may have the network with the network capabilities
Connection, it is also possible to without network connection of the foundation with the ability, therefore, there is consolidated network ability in order to reduce repetition and set up
Network connection probability, so as to reduce the system resource for wasting the terminal, whether what the terminal may determine that current has set up
Network connection with the network capabilities.
Wherein, the terminal can create network white list corresponding with the network capabilities, by least one application identities
Added in the network white list, so as to generate the white name of network corresponding with the network capabilities based at least one application identities
It is single.
If it should be noted that the currently-established network connection with the network capabilities, illustrates currently to have created
There is network white list corresponding with the network capabilities, therefore, it can directly be added to currently at least one application identities
The network white list corresponding with the network capabilities having.Certainly, ensure that and be added at least one application identities
The accuracy rate of white list corresponding with the network capabilities, so as to improve the effect of transmitting network data, the terminal by this at least one
Before individual application identities are added to current existing network white list corresponding with the network capabilities, can first judge currently whether
Network white list corresponding with the network capabilities is created, if being then added to currently at least one application identities
The network white list corresponding with the network capabilities having, if the establishment network white list corresponding with the network capabilities without if,
At least one application identities are added in the network white list.
Further, if the number of application identities that includes of network white list corresponding with the network capabilities and the terminal
The number for being currently installed on the program of being applied is identical, that is to say, network white list corresponding with the network capabilities includes the end
The application identities of each application program that end is currently installed on, the terminal can delete the white name of network corresponding with the network capabilities
It is single.
Further, after step 203, the terminal is also based at least one application identities, notifies this at least
The network connection that the corresponding application program of one application identities has the network capabilities has built up completion, so that it is guaranteed that this is at least
The corresponding application program of one application identities can use the network connection with the network capabilities.
Wherein, the terminal can be led to by the form broadcasted to the corresponding application program of at least one application identities
Know, it is of course also possible to sent a notification message respectively to corresponding each application program of at least one application identities respectively, with right
The corresponding application program of at least one application identities is notified.
By above-mentioned steps 201-203, the terminal have received the network request of the second application, it is determined that second applies institute
The network capabilities and the shared model with the network connection with the network capabilities of the network connection of foundation are asked, and based on this
Shared model determines network white list corresponding with the network capabilities, therefore, in following step 204-205, can be with
Based on network white list corresponding with the network capabilities, the application program using the network connection with the network capabilities is carried out
Filtering, so as to reduce multiple application programs while being transmitted using the network connection of consolidated network ability, improves transmission network
The effect of data, saves the flow cost of the terminal.
Step 204:When the terminal is detected for the first application by the data-interface that network connection management service includes
Network data when, interface identifier according to the data-interface determines the network energy of the network connection needed for transmitting the network data
Power.
Wherein, the terminal can be according to the interface identifier of the data-interface, from interface identifier and the network capabilities of storage
In corresponding relation, it is determined that the network capabilities of the network connection needed for transmitting the network data.
It should be noted that the first application described above can be same application program with the second application, also may be used
Being different application programs.
Step 205:When the network capabilities of the network connection needed for transmitting the network data is the network capabilities, the terminal
From middle determination network white list corresponding with the network capabilities is locally stored, when the network white list includes first application
During application identities, the network data is transmitted by the network connection with the network capabilities.
For example, when the terminal is the terminal for being provided with Android operation system, the terminal can be by (anti-in Iptables
Wall with flues) addition correspondingly filtering rule in the Filter Chain (filtering chain) that include, so that it is guaranteed that there was only the net in the terminal
The application program corresponding to application identities that network white list includes, can use the network connection with the network capabilities.
Wherein, when the application identities of application program are only included in network white list corresponding with the network capabilities,
The shared model of the network connection with the network capabilities can be privately owned pattern, and the first application is same application with the second application
Program, i.e., only the application program of network connection of the request foundation with the network capabilities could be used with the network capabilities
Network connection.If only including the application mark of more than one application program in network white list corresponding with the network capabilities
Know, when network request is initiated in the second application, the shared model of the network connection with the network capabilities that the terminal determines can
With including three kinds of situations:The first situation, the shared model of the network connection with the network capabilities is privately owned pattern, this
Application program above have sent the network request, so as to ask to set up the network connection with the network capabilities;Second
Situation, the shared model of the network connection with the network capabilities is group mode, and the more than one application program can be
Application program in same application or same group, i.e., certain application requests is set up to have and is somebody's turn to do in same application group
After the network connection of network capabilities, the other application program of the application group can share the network with the network capabilities
Connection;The third situation, the shared model of the network connection with the network capabilities is global schema, the more than one application
Program can be the current mounted any application of the terminal, as long as that is, any application program have sent the net in the terminal
Network is asked, and current mounted each application program of the terminal can use the network connection with the network capabilities.
For example, the application identities of the current mounted application program of the terminal be UID1, UID2, UID3, UID4, UID5,
UID6, UID7, UID8, UID9, UID10, UID11 and UID12.If wrapped in network white list corresponding with network capabilities MMS
UID1 and UID4 is included, can be that APP1 and APP 4 have sent the network request that network connection 1 is set up in request, and terminal logical
When crossing network connection management service and receiving the network request that APP1 and APP 4 send, equal shared of network connection 1 is determined
Pattern is privately owned pattern.If network white list corresponding with network capabilities MMS includes UID1, UID2, UID3, UID4, can
To be that APP1 and APP 4 have sent the network request, and terminal is receiving APP1 transmissions by network connection management service
The network request when, the shared model of network connection 1 is determined for group mode, so that APP1, APP 2 and APP 3 can
Using network connection 1, terminal determines network when the network request that APP4 sends is received by network connection management service
The shared model of connection 1 is privately owned pattern, i.e., only have APP4 to use network connection 1 in the group where APP4.If
Network white list corresponding with network capabilities MMS includes UID1, UID2, UID3, UID4, UID5 and UID6, can be APP1
The network request is have sent with APP 4, the terminal is receiving what APP1 and APP 4 sent by network connection management service
During the network request, the shared model for determining network connection 1 is group mode.If network corresponding with network capabilities MMS
White list includes UID1, UID2, UID3, UID4, UID5, UID6, UID7, UID8, UID9, UID10, UID11 and UID12,
Can be that APP1 or APP 4 have sent the network request, the terminal is receiving APP1 or APP by network connection management service
During the network request of 4 transmissions, the shared model for determining network connection 1 is global schema.
It should be noted that when the terminal cannot determine network white list corresponding with the network capabilities, that is to say, currently
When not created network white list corresponding with the network capabilities, the terminal can also directly by the net with the network capabilities
The network data is transmitted in network connection, be that is to say, the application program using the network connection with the network capabilities is not carried out
Filter.
Further, for cost-effective or other reasons, the terminal can also connect to the network with the network capabilities
Disconnection is connect, such as, when the free time length for detecting the network connection with the network capabilities is more than preset duration, the terminal can
To disconnect the network connection with the network capabilities.
For example, when the terminal is the terminal for being provided with Android operation system, the terminal can pass through
IBinder.DeathRecipient call back functions disconnect the network connection with the network capabilities.
In embodiments of the present invention, it is possible, firstly, to detect the network data for the first application by data-interface
When, the interface identifier according to the data-interface determines the network capabilities of the network connection needed for transmitting the network data, afterwards, can
To determine network white list corresponding with the network capabilities, and include the application identities of the first application in the network white list
When, the network data is transmitted by the network connection with the network capabilities, that is to say, can be by corresponding with the network capabilities
Network white list, to being filtered using the application program of network connection with network capabilities, reducing appoint in the terminal
One application program can be by the probability of the network connection transmitting network data with the network capabilities, with existing without filtering
Network data transmission method compare, multiple application programs can be reduced while carried out using the network connection of consolidated network ability
Transmission, improves the effect of transmitting network data, saves the flow cost of the terminal.Secondly, the terminal is being received to having
During the request of the network connection of the network capabilities, it may be determined that the shared model of the network connection with the network capabilities, and base
Determine at least one application identities in the shared model, at least one application identities are added to corresponding with the network capabilities
In network white list, because when the shared model is different, network white list corresponding from the network capabilities can include different
Application identities, so that it is guaranteed that under different shared models, the terminal can be white based on network corresponding with the network capabilities
List, filters to the application program using the network connection with the network capabilities, further increases transmission network number
According to effect.In addition, when the shared model is privately owned pattern, the terminal can only allow to send the application journey of the network request
Using the network connection with the network capabilities, when the shared model is group mode, the terminal can be allowed only and hair sequence
The application program of the network request is given to be in the application program of same application group using the network connection with the network capabilities,
Any application program can further be reduced using the probability of the network connection with the network capabilities in reducing the terminal
Use the flow cost of the terminal.
The method of transmission view data of the invention is illustrated above in conjunction with specific embodiment and accompanying drawing, below
To be illustrated with reference to accompanying drawing pair device corresponding with the above method.
Fig. 3 is a kind of block diagram of the device of transmitting network data provided in an embodiment of the present invention, referring to Fig. 3, the device bag
Include:First determining module 301, the second determining module 302 and transport module 303.
First determining module 301, for being detected for the when the data-interface that be included by network connection management service
During the network data of one application, the interface identifier according to the data-interface determines the network connection needed for transmitting the network data
Network capabilities, the network capabilities is used to illustrate the ability of network connection transmitting network data;
Second determining module 302, for from be locally stored it is middle determine corresponding with network capabilities network white list, its
In, the network white list is used to store can use the application identities of the application program of the network connection with the network capabilities;
Transport module 303, during for including the application identities of first application when the network white list, by with this
The network connection of network capabilities transmits the network data.
Alternatively, the device also includes:
3rd determining module, in network request and the network request is received by the network connection management service
When carrying capability information corresponding with the network capabilities, it is determined that the shared model of the network connection with the network capabilities,
At least one application identities are determined based on the shared model, the shared model is used to indicate to share with the network capabilities
The application program of network connection, the capability information is used to illustrate the network capabilities of the network connection that request is set up;
Judge module, for judging currently whether set up the network with the network capabilities based on the capability information
Connection;
Module is set up, if for currently without the network connection with the network capabilities is set up, based on the network energy
Force information sets up the network connection with the network capabilities, is generated based at least one application identities corresponding with the network capabilities
Network white list;
Add module, if for the currently-established network connection with the network capabilities, at least one should by this
It is added in network white list corresponding with the network capabilities with mark.
Alternatively, the 3rd determining module includes:
First determination sub-module, for when the shared model is group mode, determining the application identities of the second application, should
Second application is the application program of the transmission network request, and the group mode is used to indicate to belong to same application with second application
The application program of group can share the network connection with the network capabilities;
Second determination sub-module, between the capability information and application group of storage in corresponding relation, it is determined that
The application group of application identities corresponding with the capability information and including second application;
3rd determination sub-module, for the application identities that the application group includes to be defined as at least one application mark
Know.
Alternatively, the 3rd determining module also includes:
Acquisition submodule, the application identities for obtaining current mounted all application programs;
4th determination sub-module, for determining that at least one should based on the capability information and the application identities for getting
With group, each application group includes that at least one can send the network request to ask to set up with the network capabilities
The application identities of the application program of network connection;
Sub-module stored, for the capability information and at least one application group to be stored in network capabilities letter
In corresponding relation between breath and application group.
Alternatively, the 3rd determining module includes:
5th determination sub-module, for when the shared model is privately owned pattern, determining the application identities of the second application, should
For indicating, second application can use the network connection with the network capabilities to privately owned pattern but other application programs can not
The application identities of second application are defined as at least one application identities by the shared network connection with the network capabilities;
Or,
6th determination sub-module, for when the shared model is global schema, by it is current it is mounted each apply journey
The application identities of sequence are defined as at least one application identities, and the global schema is used to indicate all application programs installed equal
The network connection with the network capabilities can be shared.
Alternatively, the 3rd determining module includes:
7th determination sub-module, the shared model for that will pre-set is defined as the network connection with the network capabilities
Shared model;Or,
Display sub-module, for showing multiple shared models, selects when shared model is received based on the plurality of shared model
When selecting instruction, the selected shared model of shared model selection instruction is defined as having the network connection of the network capabilities
Shared model;Or,
8th determination sub-module, for when shared model information is carried in the network request, based on shared model letter
Breath determines the shared model of the network connection with the network capabilities;Or,
9th determination sub-module, for based on the second application for sending the network request, it is determined that with the network capabilities
The shared model of network connection.
In embodiments of the present invention, it is possible, firstly, to detect the network data for the first application by data-interface
When, the interface identifier according to the data-interface determines the network capabilities of the network connection needed for transmitting the network data, afterwards, can
To determine network white list corresponding with the network capabilities, and include the application identities of the first application in the network white list
When, the network data is transmitted by the network connection with the network capabilities, that is to say, can be by corresponding with the network capabilities
Network white list, to being filtered using the application program of network connection with network capabilities, reducing appoint in the terminal
One application program can be by the probability of the network connection transmitting network data with the network capabilities, with existing without filtering
Network data transmission method compare, multiple application programs can be reduced while carried out using the network connection of consolidated network ability
Transmission, improves the effect of transmitting network data, saves the flow cost of the terminal.
It should be noted that:Above-described embodiment provide transmitting network data device in transmitting network data, only with
The division of above-mentioned each functional module is carried out for example, in practical application, as needed can distribute by not above-mentioned functions
With functional module complete, will the internal structure of equipment be divided into different functional modules, to complete whole described above
Or partial function.In addition, the device of transmitting network data that above-described embodiment is provided is implemented with the method for transmitting network data
Example belongs to same design, and it implements process and refers to embodiment of the method, repeats no more here.
Fig. 4 is a kind of apparatus structure schematic diagram of transmitting network data provided in an embodiment of the present invention.Referring to Fig. 4, device
400 memory 420, the inputs that can include communication unit 410, include one or more computer-readable recording mediums
Unit 430, display unit 440, sensor 450, voicefrequency circuit 460, WIFI (Wireless Fidelity, Wireless Fidelity) mould
Block 470, include the part such as or the processor 480 and power supply 490 of more than one processing core.Art technology
Personnel are appreciated that the restriction of the apparatus structure shown in Fig. 4 not structure twin installation, can include more more or less than illustrating
Part, or combine some parts, or different part arrangements.Wherein:
Communication unit 410 can be used to receiving and sending messages or communication process in, the reception and transmission of signal, the communication unit 410
Can for RF (Radio Frequency, radio frequency) circuit, router, modem, etc. network communication equipment.Especially, when
When communication unit 410 is RF circuits, after the downlink information of base station is received, transfer at one or more than one processor 480
Reason;In addition, up data is activation will be related to base station.Usually as communication unit RF circuits include but is not limited to antenna,
At least one amplifier, tuner, one or more oscillators, subscriber identity module (SIM) card, transceiver, coupler,
LNA (Low Noise Amplifier, low-noise amplifier), duplexer etc..Additionally, communication unit 410 can also be by wireless
Communication communicates with network and other equipment.The radio communication can use any communication standard or agreement, including but not limited to
GSM (Global System of Mobile communication, global system for mobile communications), GPRS (General
Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, code
Point multiple access), WCDMA (Wideband Code Division Multiple Access, WCDMA), LTE (Long
Term Evolution, Long Term Evolution), Email, SMS (Short Messaging Service, Short Message Service) etc..
Memory 420 can be used to store software program and module, and processor 480 is by running software journey of the storage in memory 420
Sequence and module, so as to perform various function application and data processing.Memory 420 can mainly include storing program area and deposit
Storage data field, wherein, the application program that storing program area can be needed for storage program area, at least one function (such as broadcast by sound
Playing function, image player function etc.) etc.;Storage data field can be stored and use created data (such as sound according to device 400
Frequency evidence, phone directory etc.) etc..Additionally, memory 420 can include high-speed random access memory, can also include non-volatile
Property memory, for example, at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, deposit
Reservoir 420 can also include Memory Controller, to provide the access of processor 480 and input block 430 to memory 420.
Input block 430 can be used to receive the numeral or character information of input, and generation is set and function with user
The relevant keyboard of control, mouse, action bars, optics or trace ball signal input.Preferably, input block 430 may include to touch
Sensitive surfaces 431 and other input equipments 432.Touch sensitive surface 431, also referred to as touch display screen or Trackpad, can collect use
Family thereon or neighbouring touch operation (such as user is using any suitable objects such as finger, stylus or annex in touch-sensitive table
Operation on face 431 or near Touch sensitive surface 431), and corresponding attachment means are driven according to formula set in advance.It is optional
, Touch sensitive surface 431 may include two parts of touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used
The touch orientation at family, and the signal that touch operation brings is detected, transmit a signal to touch controller;Touch controller is from touch
Touch information is received in detection means, and is converted into contact coordinate, then give processor 480, and can receiving processor 480
The order sent simultaneously is performed.Furthermore, it is possible to using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves
Realize Touch sensitive surface 431.Except Touch sensitive surface 431, input block 430 can also include other input equipments 432.Preferably,
Other input equipments 432 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.),
One or more in trace ball, mouse, action bars etc..
Display unit 440 can be used to showing by user input information or be supplied to the information and device 400 of user
Various graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its any combination.
Display unit 440 may include display panel 441, optionally, can use LCD (Liquid Crystal Display, liquid crystal
Show device), the form such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) configure display panel
441.Further, Touch sensitive surface 431 can cover display panel 441, when Touch sensitive surface 431 is detected thereon or neighbouring is touched
After touching operation, processor 480 is sent to determine the type of touch event, with preprocessor 480 according to the type of touch event
Corresponding visual output is provided on display panel 441.Although in fig. 4, Touch sensitive surface 431 and display panel 441 are conducts
Two independent parts come realize input and input function, but in some embodiments it is possible to by Touch sensitive surface 431 with display
Panel 441 is integrated and realization is input into and output function.
Device 400 may also include at least one sensor 450, such as optical sensor, motion sensor and other sensings
Device.Optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to the bright of ambient light
The brightness of display panel 441 secretly is adjusted, proximity transducer can close display panel 441 when device 400 is moved in one's ear
And/or backlight.Used as one kind of motion sensor, (generally three axles) add in the detectable all directions of Gravity accelerometer
The size of speed, can detect that size and the direction of gravity when static, can be used to recognize application (the such as horizontal/vertical screen of mobile phone attitude
Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;As for device 400
The other sensors such as gyroscope, barometer, hygrometer, thermometer, the infrared ray sensor that can also configure, will not be repeated here.
Voicefrequency circuit 460, loudspeaker 461, microphone 462 can provide the COBBAIF between user and device 400.Audio
Electric signal after the voice data conversion that circuit 460 will can be received, is transferred to loudspeaker 461, and sound is converted to by loudspeaker 461
Sound signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 462, after being received by voicefrequency circuit 460
Be converted to voice data, then after voice data output processor 480 is processed, it is such as another to be sent to through communication unit 410
Device, or voice data is exported to memory 420 so as to further treatment.Voicefrequency circuit 460 is also possible that earplug is inserted
Hole, to provide the communication of peripheral hardware earphone and device 400.
In order to realize radio communication, wireless communication unit 470 can be configured with the device, the wireless communication unit 470
It can be WIFI module.WIFI belongs to short range wireless transmission technology, and device 400 can be helped by wireless communication unit 470
User sends and receive e-mail, browses webpage and access streaming video etc., and it has provided the user wireless broadband internet and has accessed.
Although showing wireless communication unit 470 in figure, but it is understood that, it is simultaneously not belonging to must be configured into for device 400, complete
Can be omitted in the essential scope for do not change invention as needed entirely.
Processor 480 is the control centre of device 400, using various interfaces and each portion of connection whole mobile phone
Point, by running or performing software program and/or module of the storage in memory 420, and storage is called in memory 420
Interior data, the various functions and processing data of performs device 400, so as to carry out integral monitoring to mobile phone.Optionally, processor
480 may include one or more processing cores;Preferably, processor 480 can integrated application processor and modem processor,
Wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes nothing
Line communicates.It is understood that above-mentioned modem processor can not also be integrated into processor 480.
Device 400 also includes the power supply 490 (such as battery) powered to all parts, it is preferred that power supply can be by electricity
Management system is logically contiguous with processor 480, so as to realize management charging, electric discharge and power consumption by power-supply management system
The functions such as management.Power supply 460 can also include one or more direct current or AC power, recharging system, power supply event
The random component such as barrier detection circuit, power supply changeover device or inverter, power supply status indicator.
Although not shown, device 400 can also will not be repeated here including camera, bluetooth module etc..
In the present embodiment, device also includes one or more than one program, this or more than one journey
Sequence is stored in memory, and is configured to by one or more than one computing device, it is one or more than one
Program bag contains the instruction for carrying out transmitting network data as described below provided in an embodiment of the present invention, including:
When the data-interface included by network connection management service detects the network data for the first application, root
The network capabilities of the network connection needed for determining to transmit the network data according to the interface identifier of the data-interface, the network capabilities is used
In the ability of explanation network connection transmitting network data;
From be locally stored it is middle determine corresponding with network capabilities network white list, wherein, the network white list is for depositing
Energy storage enough uses the application identities of the application program of the network connection with the network capabilities;
When the network white list includes the application identities of first application, connected by the network with the network capabilities
Connect and transmit the network data.
Alternatively, from before middle determination network white list corresponding with the network capabilities is locally stored, also include:
Carried and the network capabilities in network request and the network request is received by the network connection management service
During corresponding capability information, it is determined that the shared model of the network connection with the network capabilities, true based on the shared model
Fixed at least one application identities, the shared model is used for the application journey for indicating that the network connection with the network capabilities can be shared
Sequence, the capability information is used to illustrate the network capabilities of the network connection that request is set up;
Judge currently whether set up the network connection with the network capabilities based on the capability information;
If currently without the network connection with the network capabilities is set up, being set up based on the capability information is had
The network connection of the network capabilities, network white list corresponding with the network capabilities is generated based at least one application identities;
If the currently-established network connection with the network capabilities, by least one application identities be added to
In the corresponding network white list of the network capabilities.
Alternatively, at least one application identities are determined based on the shared model, including:
When the shared model is group mode, the application identities of the second application are determined, second application is the transmission net
The application program of network request, the group mode is used to indicate be total to the application that second application belongs to same application group
Enjoy the network connection with the network capabilities;
Between the capability information and application group of storage in corresponding relation, it is determined that corresponding with the capability information
And the application group of the application identities including second application;
The application identities that the application group includes are defined as at least one application identities.
Alternatively, between the capability information and application group of storage in corresponding relation, it is determined that with the network capabilities
Before the application group of information correspondence and the application identities including second application, also include:
Obtain the application identities of current mounted all application programs;
At least one application group is determined based on the capability information and the application identities for getting, each application group
Including at least one can send the network request to ask the application program of network connection of the foundation with the network capabilities
Application identities;
By the capability information and at least one application group store the capability information and application group it
Between corresponding relation in.
Alternatively, at least one application identities are determined based on the shared model, including:
When the shared model is privately owned pattern, the application identities of the second application are determined, the privately owned pattern is used to indicate this
Second application be able to can not be shared with the network capabilities using network connection but other application programs with the network capabilities
Network connection, by this second application application identities be defined as at least one application identities;Or,
When the shared model is global schema, the application identities of current mounted each application program are defined as
At least one application identities, all application programs that the global schema is used for instruction installation can be shared with the network energy
The network connection of power.
Optionally it is determined that the shared model of the network connection with the network capabilities, including:
The shared model that will be pre-set is defined as the shared model of the network connection with the network capabilities;Or,
The multiple shared models of display, when shared model selection instruction is received based on the plurality of shared model, this are total to
Enjoy the shared model that the selected shared model of mode selection command is defined as the network connection with the network capabilities;Or,
When shared model information is carried in the network request, determine that there is the network capabilities based on the shared model information
Network connection shared model;Or,
Based on the second application for sending the network request, it is determined that the shared model of the network connection with the network capabilities.
In embodiments of the present invention, it is possible, firstly, to detect the network data for the first application by data-interface
When, the interface identifier according to the data-interface determines the network capabilities of the network connection needed for transmitting the network data, afterwards, can
To determine network white list corresponding with the network capabilities, and include the application identities of the first application in the network white list
When, the network data is transmitted by the network connection with the network capabilities, that is to say, can be by corresponding with the network capabilities
Network white list, to being filtered using the application program of network connection with network capabilities, reducing appoint in the terminal
One application program can be by the probability of the network connection transmitting network data with the network capabilities, with existing without filtering
Network data transmission method compare, multiple application programs can be reduced while carried out using the network connection of consolidated network ability
Transmission, improves the effect of transmitting network data, saves flow cost.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can be by hardware
To complete, it is also possible to instruct the hardware of correlation to complete by program, described program can be stored in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all it is of the invention spirit and
Within principle, any modification, equivalent substitution and improvements made etc. should be included within the scope of the present invention.
Claims (10)
1. a kind of method of transmitting network data, it is characterised in that methods described includes:
When the data-interface included by network connection management service detects the network data for the first application, according to institute
The interface identifier for stating data-interface determines the network capabilities of the network connection needed for transmitting the network data, wherein, the net
Network ability is used to illustrate the ability of network connection transmitting network data;
From be locally stored it is middle determine corresponding with network capabilities network white list, wherein, the network white list is used to deposit
Energy storage enough uses the application identities of the application program of the network connection with the network capabilities;
When the network white list includes the application identities of first application, by the network with the network capabilities
The connection transmission network data.
2. the method for claim 1, it is characterised in that it is described from be locally stored it is middle determine it is corresponding with the network capabilities
Network white list before, also include:
Carried in network request and the network request is received by the network connection management service and the network energy
During the corresponding capability information of power, it is determined that the shared model of the network connection with the network capabilities, based on described shared
Pattern determines at least one application identities, and the shared model is used to indicate to share the network company with the network capabilities
The application program for connecing, the capability information is used to illustrate the network capabilities of the network connection that request is set up;
Judge currently whether set up the network connection with the network capabilities based on the capability information;
If currently without the network connection with the network capabilities is set up, being set up based on the capability information is had
The network connection of the network capabilities, generates network corresponding with the network capabilities white based at least one application identities
List;
If the currently-established network connection with the network capabilities, by least one application identities be added to
In the corresponding network white list of the network capabilities.
3. method as claimed in claim 2, it is characterised in that described that at least one application mark is determined based on the shared model
Know, including:
When the shared model is group mode, the application identities of the second application are determined, second application is described to send
The application program of network request, the group mode is used for the application journey for indicating to belong to same application group with the described second application
Sequence can share the network connection with the network capabilities;
Between the capability information and application group of storage in corresponding relation, it is determined that it is corresponding with the capability information and
The application group of the application identities including the described second application;
The application identities that the application group includes are defined as at least one application identities.
4. method as claimed in claim 3, it is characterised in that between the capability information and application group from storage
In corresponding relation, it is determined that it is corresponding with the capability information and including described second application application identities application group it
Before, also include:
Obtain the application identities of current mounted all application programs;
At least one application group is determined based on the capability information and the application identities for getting, in each application group
The network request can be sent including at least one to ask the application journey of network connection of the foundation with the network capabilities
The application identities of sequence;
The capability information is stored in the capability information and application group with least one application group
Between corresponding relation in.
5. method as claimed in claim 2, it is characterised in that described that at least one application mark is determined based on the shared model
Know, including:
When the shared model is privately owned pattern, the application identities of the second application are determined, the privately owned pattern is used to indicate institute
Stating the second application be able to can not be shared with the net using network connection but other application programs with the network capabilities
The application identities of the described second application are defined as at least one application identities by the network connection of network ability;Or,
When the shared model is global schema, by application identities of current mounted each application be defined as it is described extremely
Few application identities, all application programs that the global schema is used for instruction installation can be shared with the network energy
The network connection of power.
6. a kind of device of transmitting network data, it is characterised in that described device includes:
First determining module, for being detected for the first application when the data-interface included by network connection management service
During network data, the interface identifier according to the data-interface determines the network of the network connection needed for transmitting the network data
Ability, the network capabilities is used to illustrate the ability of network connection transmitting network data;
Second determining module, for from be locally stored it is middle determine corresponding with network capabilities network white list, wherein, it is described
Network white list is used to store can use the application identities of the application program of the network connection with the network capabilities;
Transport module, during for including the application identities of first application when the network white list, by with described
The network connection of network capabilities transmits the network data.
7. device as claimed in claim 6, it is characterised in that described device also includes:
3rd determining module, in network request and the network request is received by the network connection management service
When carrying capability information corresponding with the network capabilities, it is determined that the shared mould of the network connection with the network capabilities
Formula, at least one application identities are determined based on the shared model, and the shared model can be shared with described for instruction
The application program of the network connection of network capabilities, the capability information is used to illustrate the network of the network connection that request is set up
Ability;
Judge module, for judging currently whether set up the network with the network capabilities based on the capability information
Connection;
Module is set up, if for currently without the network connection with the network capabilities is set up, based on the network energy
Force information sets up the network connection with the network capabilities, based at least one application identities generation and the network energy
The corresponding network white list of power;
Add module, if for the currently-established network connection with the network capabilities, should by described at least one
It is added in network white list corresponding with the network capabilities with mark.
8. device as claimed in claim 7, it is characterised in that the 3rd determining module includes:
First determination sub-module, it is described for when the shared model is group mode, determining the application identities of the second application
Second application is the application program of the transmission network request, and the group mode is used to indicate to belong to same with the described second application
The application program of one application group can share the network connection with the network capabilities;
Second determination sub-module, between the capability information and application group of storage in corresponding relation, it is determined that and institute
State the application group of capability information correspondence and the application identities including the described second application;
3rd determination sub-module, for the application identities that the application group includes to be defined as at least one application mark
Know.
9. device as claimed in claim 8, it is characterised in that the 3rd determining module also includes:
Acquisition submodule, the application identities for obtaining current mounted all application programs;
4th determination sub-module, for determining at least one application based on the capability information and the application identities for getting
Group, each application group includes that at least one can send the network request to ask to set up with the network capabilities
Network connection application program application identities;
Sub-module stored, for the capability information to be stored in the network capabilities with least one application group
In corresponding relation between information and application group.
10. device as claimed in claim 7, it is characterised in that the 3rd determining module includes:
5th determination sub-module, it is described for when the shared model is privately owned pattern, determining the application identities of the second application
Privately owned pattern can use network connection but other application programs with the network capabilities for indicating second application
The network connection with the network capabilities can not be shared, the application identities of the described second application are defined as described at least one
Application identities;Or,
6th determination sub-module, for when the shared model is global schema, by answering for current mounted each application
It is defined as at least one application identities with mark, the global schema is used for the equal energy of all application programs for indicating to install
Enough shared network connections with the network capabilities.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710034840.3A CN106817370B (en) | 2017-01-18 | 2017-01-18 | Method and device for transmitting network data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710034840.3A CN106817370B (en) | 2017-01-18 | 2017-01-18 | Method and device for transmitting network data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106817370A true CN106817370A (en) | 2017-06-09 |
CN106817370B CN106817370B (en) | 2020-03-03 |
Family
ID=59113163
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710034840.3A Active CN106817370B (en) | 2017-01-18 | 2017-01-18 | Method and device for transmitting network data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106817370B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107566398A (en) * | 2017-09-30 | 2018-01-09 | 广东欧珀移动通信有限公司 | Flow control methods and device, computer equipment, computer-readable recording medium |
CN112153633A (en) * | 2019-06-29 | 2020-12-29 | 华为技术有限公司 | Method and equipment for sending and receiving capability information |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1878083A (en) * | 2005-06-09 | 2006-12-13 | 华为技术有限公司 | Method and system for recording usage network capability and application therefor |
CN103634470A (en) * | 2013-12-02 | 2014-03-12 | 无锡交大联云科技有限公司 | Human-computer interaction prediction method based on terminal mobile data access network Qos |
CN105704066A (en) * | 2016-01-12 | 2016-06-22 | 北京奇虎科技有限公司 | Networking control method, device and system, security gateway and mobile terminal |
-
2017
- 2017-01-18 CN CN201710034840.3A patent/CN106817370B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1878083A (en) * | 2005-06-09 | 2006-12-13 | 华为技术有限公司 | Method and system for recording usage network capability and application therefor |
CN103634470A (en) * | 2013-12-02 | 2014-03-12 | 无锡交大联云科技有限公司 | Human-computer interaction prediction method based on terminal mobile data access network Qos |
CN105704066A (en) * | 2016-01-12 | 2016-06-22 | 北京奇虎科技有限公司 | Networking control method, device and system, security gateway and mobile terminal |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107566398A (en) * | 2017-09-30 | 2018-01-09 | 广东欧珀移动通信有限公司 | Flow control methods and device, computer equipment, computer-readable recording medium |
CN107566398B (en) * | 2017-09-30 | 2019-02-05 | Oppo广东移动通信有限公司 | Flow control methods and device, computer equipment, computer readable storage medium |
CN112153633A (en) * | 2019-06-29 | 2020-12-29 | 华为技术有限公司 | Method and equipment for sending and receiving capability information |
CN112153633B (en) * | 2019-06-29 | 2021-12-03 | 华为技术有限公司 | Method and equipment for sending and receiving capability information |
Also Published As
Publication number | Publication date |
---|---|
CN106817370B (en) | 2020-03-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106851654A (en) | Pseudo-base station recognition methods, device and terminal | |
CN103414982B (en) | A kind of method and apparatus that sound is provided | |
CN103294515B (en) | A kind of methods, devices and systems for obtaining application program | |
CN104142868B (en) | Establish the method and device of connection | |
CN103473092B (en) | A kind of download the processing method of application, device and terminal unit | |
CN103645837B (en) | The method and apparatus amplifying display font | |
CN107071779A (en) | Pseudo-base station recognition methods, device and terminal | |
CN103475914B (en) | Video playing method, video playing device, terminal equipment and server | |
CN104348943B (en) | A kind of method and apparatus of incoming call prompting | |
CN104135728B (en) | Method for connecting network and device | |
CN106502906A (en) | A kind of method and apparatus of test application program | |
CN103593247B (en) | Method and device for data transmission | |
CN106506321A (en) | One population message treatment method and terminal device | |
CN106254910A (en) | A kind of method and apparatus recording image | |
CN104378488A (en) | Harassing call processing method and device | |
CN106658657A (en) | Network access method and device | |
CN106603740A (en) | Network connection abnormality processing method and terminal equipment | |
CN104702678B (en) | Document transmission method and device | |
CN106303605A (en) | A kind of methods, devices and systems sent a notification message | |
CN110020386A (en) | Application page sharing method, mobile terminal and computer readable storage medium | |
CN106878153A (en) | A kind of message sharing method and device and mobile terminal, server | |
CN106210838A (en) | Caption presentation method and device | |
CN104869550A (en) | Communication event processing method and device | |
CN105391870A (en) | Timing reminding method and device | |
CN106817370A (en) | The method and device of transmitting network data |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder | ||
CP01 | Change in the name or title of a patent holder |
Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11 Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd. Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11 Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd. |