CN104967758B - A kind of method and user terminal for controlling data transfer - Google Patents
A kind of method and user terminal for controlling data transfer Download PDFInfo
- Publication number
- CN104967758B CN104967758B CN201510279835.XA CN201510279835A CN104967758B CN 104967758 B CN104967758 B CN 104967758B CN 201510279835 A CN201510279835 A CN 201510279835A CN 104967758 B CN104967758 B CN 104967758B
- Authority
- CN
- China
- Prior art keywords
- data
- type
- user terminal
- transmitted
- detecting
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 230000005540 biological transmission Effects 0.000 claims abstract description 102
- 238000001514 detection method Methods 0.000 claims abstract description 84
- GOLXNESZZPUPJE-UHFFFAOYSA-N spiromesifen Chemical compound CC1=CC(C)=CC(C)=C1C(C(O1)=O)=C(OC(=O)CC(C)(C)C)C11CCCC1 GOLXNESZZPUPJE-UHFFFAOYSA-N 0.000 claims abstract description 10
- 235000012054 meals Nutrition 0.000 claims description 23
- 238000010586 diagram Methods 0.000 description 9
- 230000006870 function Effects 0.000 description 5
- 238000007689 inspection Methods 0.000 description 4
- 238000013500 data storage Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000005538 encapsulation Methods 0.000 description 1
- 238000000465 moulding Methods 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 230000035755 proliferation Effects 0.000 description 1
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention discloses a kind of method and user terminal for controlling data transfer, including:When the type for detecting the connection of user terminal current data includes rate type, the data type of data to be transmitted content is identified;Whether the data type for detecting data to be transmitted content is the pre-set data type for allowing transmission;When detection data to be transmitted content data type for it is pre-set allow transmission data type, then forbid transmit data to be transmitted content.Implement the embodiment of the present invention, can solve the problems, such as that flow is largely consumed.
Description
Technical field
The present invention relates to field of terminal technology, more particularly to a kind of method and user terminal for controlling data transfer.
Background technology
With the fast development of internet and the rapid proliferation of terminal, the function of terminal is become stronger day by day.For example, user can
With using terminal access external network data resource, take pictures and contact etc. with good friend.However, when user utilizes terminal
, it is necessary to first establish data connection with external network when accessing external network data resource.Since operation commercial city is with data now
The form of flow package gives the authority of user terminal access external network data resource, also means that, more than data traffic
Data traffic beyond set meal needs user to pay extra-pay.Therefore it provides a kind of method for controlling data transfer, to keep away
Exempt from flow largely consume it is particularly important.
The content of the invention
An embodiment of the present invention provides a kind of method and user terminal for controlling data transfer, it is a large amount of flow can be solved
The problem of consumption.
In a first aspect, the embodiment of the invention discloses a kind of method for controlling data transfer, including:
When the type for detecting the connection of user terminal current data includes rate type, the number of data to be transmitted content is identified
According to type;
Detect the data to be transmitted content data type whether be it is pre-set allow transmission data type, institute
State and permitted when allowing the data type of transmission to include the rate type by the type connected in the user terminal current data
Perhaps the data type transmitted;
When the data type for detecting the data to be transmitted content is not the pre-set data type for allowing transmission, then
Forbid transmitting the data to be transmitted content.
Implementation with reference to first aspect, in the first possible implementation of first aspect, can also include
Following steps:
When the data type for detecting the data to be transmitted content is the pre-set data type for allowing transmission, then obtain
Take the data traffic surplus of the current set meal of the user terminal;
Detect whether the data traffic surplus is less than flow threshold set in advance;
If detecting the data traffic surplus is less than the flow threshold set in advance, whether output is used for prompting
Transmit the prompt message of the data to be transmitted content.
The possible implementation of with reference to first aspect the first, in second of possible implementation of first aspect
In, it can also comprise the following steps:
If detecting the data traffic surplus is higher than the flow threshold set in advance, the number to be transmitted is transmitted
According to content, and obtain the data volume of the transmitted per unit time during the data to be transmitted content is transmitted;
Whether the data volume for detecting the transmitted per unit time is higher than data-quantity threshold set in advance;
If the data volume for detecting the transmitted per unit time is higher than data-quantity threshold set in advance, output is used to carry
Show the prompt message for deleting the data type of the data to be transmitted content from the data type for allowing transmission.
The possible implementation of with reference to first aspect the first, in the third possible implementation of first aspect
In, it can also comprise the following steps:
If detecting the data traffic surplus is higher than the flow threshold set in advance, the number to be transmitted is transmitted
According to content;
If the data traffic that the current set meal of the user terminal is detected during the data to be transmitted content is transmitted remains
Surplus is less than the flow threshold set in advance, then output is used to prompt the prompting for whether transmitting the data to be transmitted content
Information.
Implementation with reference to first aspect, the first possible implementation of first aspect, the second of first aspect
The third possible implementation of the possible implementation of kind and first aspect, in the 4th kind of possible reality of first aspect
In existing mode, step is identified in data to be transmitted when the type for detecting the connection of user terminal current data includes rate type
After the data type of appearance, whether the data type that step detects the data to be transmitted content is pre-set to allow to transmit
Data type before, the method can also comprise the following steps:
Detecting the user terminal, whether turn-on data transmits control model;
If detecting the user terminal opens the data transfer control mode, the detection number to be transmitted is performed
Whether it is pre-set the step of allowing the data type transmitted according to the data type of content;
If detecting the user terminal does not open the data transfer control mode, output is used to prompt to open the number
According to the prompt message of transmission control model.
Second aspect, the embodiment of the invention discloses a kind of user terminal, including:
Recognition unit, for when the type for detecting the connection of user terminal current data includes rate type, identification to be to be passed
The data type of transmission of data content;
First detection unit, for detect recognition unit identification data to be transmitted content data type whether be
The pre-set data type for allowing transmission, the data type for allowing transmission is in user terminal current data company
The type connect includes the data type for allowing transmission during the rate type;
Control unit, the data type for detecting the data to be transmitted content when the first detection unit is not pre-
What is first set allows the data type of transmission, then forbids transmitting the data to be transmitted content.
The user terminal provided with reference to second aspect, in the first possible user terminal of second aspect, the use
Family terminal further includes:
First acquisition unit, the data type for detecting the data to be transmitted content when the first detection unit are
The pre-set data type for allowing transmission, then obtain the data traffic surplus of the current set meal of the user terminal;
Whether second detection unit, be less than in advance for detecting the data traffic surplus that the first acquisition unit obtains
The flow threshold of setting;
First output unit, presets if detecting the data traffic surplus for the second detection unit and being less than
The flow threshold, then output is used to prompt whether to transmit the prompt message of the data to be transmitted content.
With reference to the first possible user terminal of second aspect, in second of possible user terminal of second aspect
In, the user terminal further includes:
Second acquisition unit, presets if detecting the data traffic surplus for the second detection unit and being higher than
The flow threshold, then transmit the data to be transmitted content, and obtain during the data to be transmitted content is transmitted
The data volume of transmitted per unit time;
3rd detection unit, whether the data volume of the transmitted per unit time obtained for detecting the second acquisition unit
Higher than data-quantity threshold set in advance;
Second output unit, if the data volume that the transmitted per unit time is detected for the 3rd detection unit is higher than
Data-quantity threshold set in advance, then output are used to prompt to allow to pass from described by the data type of the data to be transmitted content
The prompt message deleted in defeated data type.
With reference to the first possible user terminal of second aspect, in the third possible user terminal of second aspect
In, the user terminal further includes:
Transmission unit, if detecting the data traffic surplus for the second detection unit is higher than institute set in advance
Flow threshold is stated, then transmits the data to be transmitted content;
3rd output unit, if for described in detection during transmitting the data to be transmitted content in the transmission unit
The data traffic surplus of the current set meal of user terminal is less than the flow threshold set in advance, then whether output is used for prompting
Transmit the prompt message of the data to be transmitted content.
The first possible user terminal of user terminal, second aspect with reference to second aspect, the second of second aspect
Any one user terminal in the possible user terminal of kind and the third possible user terminal of second aspect, second
In 4th kind of possible user terminal of aspect, the user terminal further includes:
4th detection unit, for detecting the user terminal, whether turn-on data transmits control model, if the described 4th
Detection unit detects the user terminal and opens the data transfer control mode, then triggers the first detection unit detection institute
Whether the data type for stating data to be transmitted content is the pre-set data type for allowing transmission;
4th output unit, if detecting the user terminal for the 4th detection unit does not open the data transfer
Control model, then output are used to prompt the prompt message for opening the data transfer control mode.
In the embodiment of the present invention, when the type for detecting the connection of user terminal current data includes rate type, identification is treated
The data type of data content;Whether the data type for detecting the data to be transmitted content is pre-set to allow to pass
Defeated data type, the data type for allowing to transmit are the type in user terminal current data connection including described
Allow the data type of transmission during rate type;When the data type for detecting the data to be transmitted content is not to pre-set
Allow transmission data type, then forbid transmitting the data to be transmitted content.Implement the embodiment of the present invention, in user terminal
In preset the data type for allowing transmission, and detection data to be transmitted content data type to be pre-set
When allowing the data type of transmission, forbid transmitting data to be transmitted content, therefore, can solve that flow largely consumed asks
Topic.
Brief description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, below will be to needed in the embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, general for this area
For logical technical staff, without creative efforts, other attached drawings can also be obtained according to these attached drawings.
Fig. 1 is a kind of flow diagram of the method for control data transfer disclosed by the embodiments of the present invention;
Fig. 2 is the flow diagram of the method for another control data transfer disclosed by the embodiments of the present invention;
Fig. 3 is a kind of structure diagram of user terminal disclosed by the embodiments of the present invention;
Fig. 4 is the structure diagram of another user terminal disclosed by the embodiments of the present invention;
Fig. 5 is the structure diagram of another user terminal disclosed by the embodiments of the present invention.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without making creative work
Example, belongs to the scope of protection of the invention.
, can be pre- in the user terminal an embodiment of the present invention provides a kind of method and user terminal for controlling data transfer
First setting allows the data type of transmission, and is not pre-set permission in the data type of detection data to be transmitted content
During the data type of transmission, forbid transmitting data to be transmitted content, therefore, can solve the problems, such as that flow is largely consumed.
Referring to Fig. 1, Fig. 1 is a kind of flow diagram of the method for control data transfer disclosed by the embodiments of the present invention.
Wherein, the terminal involved by Fig. 1 can include but is not limited to smart mobile phone (such as Android phone, iOS mobile phones), tablet electricity
The user terminal such as brain, palm PC and mobile internet device (Mobile Internet Devices, MID), PAD.Such as figure
Shown in 1, the method for the control data transfer may comprise steps of:
S101, when detect user terminal current data connection type include rate type when, identification data to be transmitted in
The data type of appearance.
In the embodiment of the present invention, the type of data connection includes rate type and non-rate type, wherein, rate type master
To include the quantitative contract of quota signed with operator, that is, flow package.The data traffic of rate type is included in order
Set meal in data traffic and the data traffic outside the set meal of order.
In the embodiment of the present invention, the data type of data to be transmitted content can include accessing external network data resource
(downloading data resource and browse webpage etc.), application program updating and data resource is sent to other users terminal etc.
Type.For example, send one section of screen established to other users terminal, with other users terminal voice be connected or video company
Connect and upload or downloading data resource etc..
Whether S102, the data type of detection data to be transmitted content are the pre-set data type for allowing transmission.
In the embodiment of the present invention, it is allowed to which the data type of transmission is the type in the connection of user terminal current data including providing
Allow the data type of transmission when taking type.
In the embodiment of the present invention, the data type for allowing transmission can be pre-set in the user terminal.For example, when
When type of data connection is rate type, it is allowed to application program updating installed in user terminal, allow to send text information with
And voice messaging is to other-end etc..But do not allow the user's terminal to establish video with other users terminal and be connected.
In the embodiment of the present invention, the pre-set data type for allowing to transmit can be user according to certainly in user terminal
Body needs to be configured or user terminal sets record according to the history of user and carries out intelligent setting or use
Family terminal is set according to the type for the flow package ordered with operator, can also be user terminal according in current set meal
The surplus of data traffic is set, and the present invention is not construed as limiting.
In the embodiment of the present invention, when the pre-set data type for allowing to transmit is history of the user terminal according to user
When setting record carries out intelligence setting, it may comprise steps of:
11) the history setting record for the data type for allowing transmission in user terminal is obtained;
12) determine that the setting of the user's terminal is liked according to above-mentioned history setting record;
13) data type for allowing transmission is set to above-mentioned setting according to the setting rule prestored and likes phase
The data type matched somebody with somebody.
Implement the embodiment of the present invention, user terminal can intelligently set the data type for allowing transmission, manual without user
Setting, so as to substantially increase user experience.
S103, when detection data to be transmitted content data type for it is pre-set allow transmission data type,
Then forbid transmitting data to be transmitted content.
In the embodiment of the present invention, when the data type of detection data to be transmitted content does not allow what is transmitted to be pre-set
Data type, then it is to be limited the data type of transmission to illustrate the data type with data content.Therefore, user terminal
Forbid transmitting data to be transmitted content.For example, when user terminal allow application program A upgraded, without allowing to pass through
Application program A carries out carrying out screen chat with good friend.When user terminal receive it is input by user to other users terminal establish
During the connection request of Video chat, the request of user terminal meeting refusal respond, directly forbids sending.
In Fig. 1, when the type for detecting the connection of user terminal current data includes rate type, data to be transmitted is identified
The data type of content;Whether the data type for detecting data to be transmitted content is the pre-set data class for allowing transmission
Type, it is allowed to which the data type of transmission is allowed to pass when including the rate type by the type connected in user terminal current data
Defeated data type;When detection data to be transmitted content data type for it is pre-set allow transmission data type,
Then forbid transmitting data to be transmitted content.Implement the embodiment of the present invention, preset the number for allowing transmission in the user terminal
According to type, and detect data to be transmitted content data type for it is pre-set allow transmission data type when, prohibit
Data to be transmitted content is only transmitted, therefore, can solve the problems, such as that flow is largely consumed.
Referring to Fig. 2, Fig. 2 is the flow signal of the method for another control data transfer disclosed by the embodiments of the present invention
Figure.As shown in Fig. 2, the method for the control data transfer may comprise steps of:
S201, when detect user terminal current data connection type include rate type when, identification data to be transmitted in
The data type of appearance.
In the embodiment of the present invention, when the type for detecting the connection of user terminal current data includes rate type, identification is treated
After the data type of data content, whether the data type for detecting data to be transmitted content is pre-set to allow to pass
Before defeated data type, it can also comprise the following steps:Detecting user terminal, whether turn-on data transmits control model;If inspection
The non-turn-on data transmission control model of user terminal is surveyed, then output is used for the prompting letter for prompting turn-on data transmission control model
Breath.
Whether S202, the data type of detection data to be transmitted content are the pre-set data type for allowing transmission.
In the embodiment of the present invention, it is allowed to which the data type of transmission is the type in the connection of user terminal current data including providing
Allow the data type of transmission when taking type.
S203, when detection data to be transmitted content data type for it is pre-set allow transmission data type, then
Obtain the data traffic surplus of the current set meal of user terminal.
Whether S204, detection data traffic surplus are less than flow threshold set in advance.
In the embodiment of the present invention, flow threshold can be preset in the user terminal, wherein, the setting of flow threshold can
To be that user is set as needed or user terminal sets record according to the history of user and set, also may be used
To be that user is set according to the flow package that user terminal is ordered with operator, it can also be user terminal according to order
The flow surplus of flow package is set.
, can when user terminal sets record according to the history of user carries out setting flow threshold in the embodiment of the present invention
To comprise the following steps:
21) obtain the history for flow threshold stored in user terminal and set record;
22) determine that the threshold value of user terminal sets hobby according to history setting record;
23) according to the setting rule settings flow threshold prestored to the flow threshold to match with above-mentioned setting hobby
Value.
In the embodiment of the present invention, which is determined according to the history setting record for flow threshold stored in user terminal
The average value of flow threshold in the terminal of family.Wherein, the setting that also can determine that user according to the average value of flow threshold is liked.Finally
According to the setting rule settings flow threshold prestored to the flow threshold to match with above-mentioned setting hobby.For example,
When determining the flat of flow threshold in the user's terminal according to the history setting record stored in user terminal for flow threshold
Average is 15M, then user terminal this flow threshold can be set as to 20M or 15M.
If as an alternative embodiment, detection data traffic surplus be less than flow threshold set in advance,
Output is used to prompt the prompt message for whether transmitting data to be transmitted content.
If S205, detection data traffic surplus are higher than flow threshold set in advance, data to be transmitted content is transmitted,
And obtain the data volume of the transmitted per unit time during data to be transmitted content is transmitted.
, can according to the data volume of the transmitted per unit time during data to be transmitted content is transmitted in the embodiment of the present invention
To determine whether the data to be transmitted content is the high data type for consuming flow.For example, in same time, send voice and chat
It compared with sending Video chat, due to send Video chat when, it is necessary to which voice is also had picture simultaneous transmission.Therefore, send
Video chat is bigger in the data volume of transmitted per unit time than sending voice-enabled chat in the data volume of transmitted per unit time, then may be used
Think to send the data type that Video chat is high consumption flow.
As an alternative embodiment, if detection data traffic surplus is higher than the flow threshold set in advance
Value, then transmit data to be transmitted content;If the number of the current set meal of user terminal is detected during data to be transmitted content is transmitted
It is less than the flow threshold set in advance according to flow surplus, then output is used to prompt whether transmit data to be transmitted content
Prompt message.
Whether S206, the data volume of detection transmitted per unit time are higher than data-quantity threshold set in advance.
In the embodiment of the present invention, can preliminary setting data amount threshold value in the user terminal, when more than number set in advance
During according to amount threshold value, then user terminal judges that the data type is the data type of high consumption flow.
If S207, the data volume of detection transmitted per unit time are higher than data-quantity threshold set in advance, output is used for
The prompt message that prompting deletes the data type of data to be transmitted content from the data type for allowing transmission.
In the embodiment of the present invention, can preliminary setting data amount threshold value in the user terminal, when more than number set in advance
During according to amount threshold value, then user terminal judges that the data type is the data type of high consumption flow.In order not to make the set meal wink of order
Between be used up, then user terminal can export for prompt by the data type of data to be transmitted content from allow transmission number
According to the prompt message deleted in type.
In fig. 2, flow threshold and preliminary setting data amount can be preset in the user terminal by being described in detail
Threshold value, and if in data volume of the detection data traffic surplus higher than flow threshold set in advance and transmitted per unit time
During higher than data-quantity threshold set in advance, output be used for prompt by the data type of data to be transmitted content from allow transmission
The prompt message deleted in data type.Implement the embodiment of the present invention, can equally solve the problems, such as that flow is largely consumed.
Referring to Fig. 3, Fig. 3 is a kind of structure diagram of user terminal disclosed by the embodiments of the present invention, for execution
The method for stating control data transfer.Wherein, the terminal involved by Fig. 3 can include but is not limited to smart mobile phone (such as Android hands
Machine, iOS mobile phones etc.), tablet computer, palm PC and mobile internet device (Mobile Internet Devices,
MID), the user terminal such as PAD.As shown in figure 3, the user's terminal can include:Recognition unit 301, first detection unit 302 with
And control unit 303, wherein,
Recognition unit 301, for when the type for detecting the connection of user terminal current data includes rate type, identification to be treated
The data type of data content.
In the embodiment of the present invention, the type of data connection includes rate type and non-rate type, wherein, rate type master
To include the quantitative contract of quota signed with operator, that is, flow package.The data traffic of rate type is included in order
Set meal in data traffic and the data traffic outside the set meal of order.
In the embodiment of the present invention, the data type of data to be transmitted content can include accessing external network data resource
(downloading data resource and browse webpage etc.), application program updating and data resource is sent to other users terminal etc.
Type.For example, send one section of screen established to other users terminal, with other-end voice be connected or video connect with
And upload or downloading data resource etc..
First detection unit 302, the data type of the data to be transmitted content identified for detecting the recognition unit 301
Whether it is the pre-set data type for allowing transmission.
In the embodiment of the present invention, it is allowed to which the data type of transmission is the type in the connection of user terminal current data including providing
Allow the data type of transmission when taking type.
In the embodiment of the present invention, the data type for allowing transmission can be pre-set in the user terminal.For example, when
When type of data connection is rate type, it is allowed to application program updating installed in user terminal, allow to send text information with
And voice messaging is to other-end etc..But do not allow the user's terminal to establish video with other users terminal and be connected.
In the embodiment of the present invention, the pre-set data type for allowing to transmit can be user according to certainly in user terminal
Body needs to be configured or user terminal sets record according to the history of user and carries out intelligent setting or use
Family terminal is set according to the type for the flow package ordered with operator, can also be user terminal according in current set meal
The surplus of data traffic is set, and the present invention is not construed as limiting.
In the embodiment of the present invention, when the pre-set data type for allowing to transmit is history of the user terminal according to user
When setting record carries out intelligence setting, it may comprise steps of:
11) the history setting record for the data type for allowing transmission in user terminal is obtained;
12) determine that the setting of the user's terminal is liked according to above-mentioned history setting record;
13) data type for allowing transmission is set to above-mentioned setting according to the setting rule prestored and likes phase
The data type matched somebody with somebody.
Implement the embodiment of the present invention, user terminal can intelligently set the data type for allowing transmission, manual without user
Setting, so as to substantially increase user experience.
Control unit 303, the data type for detecting data to be transmitted content when first detection unit 302 is not advance
What is set allows the data type of transmission, then forbids transmitting data to be transmitted content.
In the embodiment of the present invention, when the data type that first detection unit 302 detects data to be transmitted content is not advance
What is set allows the data type of transmission, then it is to be limited the data class of transmission to illustrate the data type with data content
Type.Therefore, control unit 303 forbids transmitting data to be transmitted content.For example, when user terminal allow application program A into
Row upgrading, without allowing to carry out carrying out screen chat with good friend by application program A.When user terminal receive it is input by user
When establishing the connection request of Video chat to other users terminal, the request of user terminal meeting refusal respond, directly forbids sending.
In figure 3, when the type for detecting the connection of user terminal current data includes rate type, recognition unit 301 is known
The data type of other data to be transmitted content;First detection unit 302 detect data to be transmitted content data type whether be
The pre-set data type for allowing transmission, it is allowed to which the data type of transmission is the type in the connection of user terminal current data
Data type including allowing transmission during the rate type;When first detection unit 302 detects data to be transmitted content
Data type is not the pre-set data type for allowing transmission, then control unit 303 forbids transmitting data to be transmitted content.
Implement the embodiment of the present invention, preset the data type for allowing transmission in the user terminal, and in first detection unit 302
Detect data to be transmitted content data type for it is pre-set allow transmission data type when, control unit 303 is prohibited
Data to be transmitted content is only transmitted, therefore, can solve the problems, such as that flow is largely consumed.
Referring to Fig. 4, Fig. 4 is the structure diagram of another user terminal disclosed by the embodiments of the present invention, for performing
The method of above-mentioned control data transfer.Wherein, Fig. 4 is that further refinement obtains on the basis of Fig. 3, except including shown in Fig. 3
Outside all units.It can also include:First acquisition unit 304, second detection unit 305, the first output unit 306, second are obtained
Take unit 307, the 3rd detection unit 308, the second output unit 309, transmission unit 310, the inspection of the 3rd output unit the 311, the 4th
312 and the 4th output unit 313 of unit is surveyed, wherein,
First acquisition unit 304, for when the data type of the first detection unit 302 detection data to be transmitted content
For the data traffic surplus of the pre-set data type for allowing transmission, then the acquisition current set meal of user terminal.
Second detection unit 305, for whether detecting the data traffic surplus of the acquisition of first acquisition unit 304 less than pre-
The flow threshold first set.
In the embodiment of the present invention, flow threshold can be preset in the user terminal, wherein, the setting of flow threshold can
To be that user is set as needed or user terminal sets record according to the history of user and set, also may be used
To be that user is set according to the flow package that user terminal is ordered with operator, it can also be user terminal according to order
The flow surplus of flow package is set.
, can when user terminal sets record according to the history of user carries out setting flow threshold in the embodiment of the present invention
To comprise the following steps:
21) obtain the history for flow threshold stored in user terminal and set record;
22) determine that the threshold value of user terminal sets hobby according to history setting record;
23) according to the setting rule settings flow threshold prestored to the flow threshold to match with above-mentioned setting hobby
Value.
In the embodiment of the present invention, which is determined according to the history setting record for flow threshold stored in user terminal
The average value of flow threshold in the terminal of family.Wherein, the setting that also can determine that user according to the average value of flow threshold is liked.Finally
According to the setting rule settings flow threshold prestored to the flow threshold to match with above-mentioned setting hobby.For example,
When determining the flat of flow threshold in the user's terminal according to the history setting record stored in user terminal for flow threshold
Average is 15M, then user terminal this flow threshold can be set as to 20M or 15M.
First output unit 306, if detecting data traffic surplus less than set in advance for second detection unit 305
Flow threshold, then output are used to prompt the prompt message for whether transmitting data to be transmitted content.
Second acquisition unit 307, if detecting data traffic surplus higher than set in advance for second detection unit 305
Flow threshold, then transmit data to be transmitted content, and obtains the transmitted per unit time during data to be transmitted content is transmitted
Data volume.
3rd detection unit 308, the data volume of the transmitted per unit time for detecting the acquisition of second acquisition unit 307 are
It is no to be higher than data-quantity threshold set in advance.
Second output unit 309, if the data volume for the 3rd detection unit 308 detection transmitted per unit time is higher than pre-
The data-quantity threshold first set, then output be used for prompt by the data type of data to be transmitted content from allow transmission data class
The prompt message deleted in type.
, can according to the data volume of the transmitted per unit time during data to be transmitted content is transmitted in the embodiment of the present invention
To determine whether the data to be transmitted content is the high data type for consuming flow.For example, in same time, send voice and chat
It compared with sending Video chat, due to send Video chat when, it is necessary to which voice is also had picture simultaneous transmission.Therefore, send
Video chat is bigger in the data volume of transmitted per unit time than sending voice-enabled chat in the data volume of transmitted per unit time, then may be used
Think to send the data type that Video chat is high consumption flow.
In the embodiment of the present invention, can preliminary setting data amount threshold value in the user terminal, when more than number set in advance
During according to amount threshold value, then user terminal judges that the data type is the data type of high consumption flow.In order not to make the set meal wink of order
Between be used up, then user terminal can export for prompt by the data type of data to be transmitted content from allow transmission number
According to the prompt message deleted in type.
Transmission unit 310, if detecting data traffic surplus for second detection unit 305 is higher than flow set in advance
Threshold value, then transmit data to be transmitted content.
3rd output unit 311, if whole for detecting user during transmitting data to be transmitted content in transmission unit 310
The data traffic surplus of current set meal is held to be less than flow threshold set in advance, then whether output is used to prompt to transmit to be transmitted
The prompt message of data content.
4th detection unit 312, for detecting user terminal, whether turn-on data transmits control model, if the 4th detection is single
Member 312 detects user terminal turn-on data transmission control model, then triggers first detection unit 302 and detect data to be transmitted content
Data type whether be it is pre-set allow transmission data type.
4th output unit 313, if not opening the data transfer control for the 4th detection unit 312 detection user terminal
Molding formula, then output are used for the prompt message for prompting turn-on data transmission control model.
In Fig. 4, flow threshold and preliminary setting data amount can be preset in the user terminal by being described in detail
Threshold value, and if detecting data traffic surplus higher than flow threshold set in advance and the 3rd inspection in second detection unit 305
When the data volume that survey unit 308 detects transmitted per unit time is higher than data-quantity threshold set in advance, the second output unit 309
Output is used to prompt the prompt message for deleting the data type of data to be transmitted content from the data type for allowing transmission.It is real
The embodiment of the present invention is applied, can equally solve the problems, such as that flow is largely consumed.
Referring to Fig. 5, the structure diagram that Fig. 5 is another user terminal disclosed by the embodiments of the present invention is used to perform
The method for stating control data transfer.As shown in figure 5, the terminal 500 can include:At least one processor 501, it is at least one defeated
Enter device 502, at least one output device 503, the grade component of memory 505.Wherein, these components pass through one or more bus
504 are communicatively coupled.It will be understood by those skilled in the art that the structure of the terminal shown in Fig. 5 is not formed to the present invention
The restriction of embodiment, it can also include more more or less than illustrating either busbar network or hub-and-spoke configuration
Component, either combine some components or different components arrangement.Wherein:
Processor 501 is the control centre of terminal, using various interfaces and the various pieces of the whole terminal of connection, is led to
Cross operation or perform the program and/or module being stored in memory 505, and call the data being stored in memory 505,
To perform the various functions of terminal and processing data.Processor 501 can be by integrated circuit (Integrated Circuit, letter
Claim IC) composition, such as can be made of the IC of single encapsulation, can also be by the envelope of more identical functions of connection or difference in functionality
Fill IC and form.For example, processor 501 can only include central processing unit (Central Processing Unit, letter
Claim CPU) or CPU, digital signal processor (digital signal processor, abbreviation DSP), graphics process
The combination of device (Graphic Processing Unit, abbreviation GPU) and various control chips.In embodiments of the present invention,
CPU can be single operation core, can also include multioperation core.
Input unit 502 can include touch-screen, keyboard of standard etc., can also include wireline interface, wave point etc..
Output device 503 can include display screen, loudspeaker etc., can also include wireline interface, wave point etc..
Memory 505 can be used for storage software program and module, processor 501, input unit 502 and output device
503 are stored in software program and module in memory 505 by calling, thus perform terminal various functions application and
Realize data processing.Memory 505 mainly includes program storage area and data storage area, wherein, program storage area can store behaviour
Make system, application program needed at least one function etc.;Data storage area can be stored uses created number according to terminal
According to etc..In embodiments of the present invention, operating system can be android system, iOS system or Windows operating system etc..
Specifically, processor 501 calls the application program being stored in memory 505, for performing following operation:
When the type for detecting the connection of user terminal current data includes rate type, the number of data to be transmitted content is identified
According to type;
Whether the data type for detecting data to be transmitted content is the pre-set data type for allowing transmission, it is allowed to is passed
Defeated data type allows the data type of transmission when including rate type for the type connected in user terminal current data;
When detection data to be transmitted content data type for it is pre-set allow transmission data type, then forbid
Transmit data to be transmitted content.
In the embodiment of the present invention, processor 501, which calls, is stored in application program in memory 505, be additionally operable to perform with
Lower step:
When the data type of detection data to be transmitted content is the pre-set data type for allowing transmission, then acquisition is used
The data traffic surplus of the current set meal of family terminal;
Whether detection data traffic surplus is less than flow threshold set in advance;
If detection data traffic surplus is less than flow threshold set in advance, it is to be passed whether output is used to prompt to transmit
The prompt message of transmission of data content.
In the embodiment of the present invention, processor 501, which calls, is stored in application program in memory 505, be additionally operable to perform with
Lower step:
If detection data traffic surplus is higher than flow threshold set in advance, data to be transmitted content is transmitted, and obtain
Take the data volume of the transmitted per unit time during data to be transmitted content is transmitted;
Whether the data volume of detection transmitted per unit time is higher than data-quantity threshold set in advance;
If the data volume of detection transmitted per unit time is higher than data-quantity threshold set in advance, output is used for prompting will
The prompt message that the data type of data to be transmitted content is deleted from the data type for allowing transmission.
In the embodiment of the present invention, processor 501, which calls, is stored in application program in memory 505, be additionally operable to perform with
Lower step:
If detection data traffic surplus is higher than flow threshold set in advance, data to be transmitted content is transmitted;
If the data traffic surplus that the current set meal of user terminal is detected during data to be transmitted content is transmitted is less than
Flow threshold set in advance, then output are used to prompt the prompt message for whether transmitting data to be transmitted content.
In the embodiment of the present invention, processor 501 calls the application program being stored in memory 505, performs step when inspection
When surveying the type of user terminal current data connection includes rate type, after the data type for identifying data to be transmitted content,
Before whether the data type for performing step detection data to be transmitted content is the pre-set data type for allowing to transmit, also
It may comprise steps of:
Detecting user terminal, whether turn-on data transmits control model;
If detecting user terminal turn-on data transmission control model, the data of step detection data to be transmitted content are performed
Whether type is the pre-set data type for allowing transmission;
If detecting the non-turn-on data transmission control model of user terminal, output is used to prompt turn-on data transmission control mould
The prompt message of formula.
Specifically, the terminal introduced in the embodiment of the present invention can implement the control number that the present invention combines Fig. 1, Fig. 2 introduction
According to the part or all of flow in the embodiment of the method for transmission.
Module or submodule in all embodiments of the invention, can pass through universal integrated circuit, such as CPU (Central
Processing Unit, central processing unit), or pass through ASIC (Application Specific Integrated
Circuit, application-specific integrated circuit) realize.
The steps in the embodiment of the present invention can be sequentially adjusted, merged and deleted according to actual needs.
Unit in terminal of the embodiment of the present invention can be combined, divided and deleted according to actual needs.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer read/write memory medium
In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, abbreviation RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly
Enclose, therefore equivalent variations made according to the claims of the present invention, it is still within the scope of the present invention.
Claims (4)
- A kind of 1. method for controlling data transfer, it is characterised in that including:When the type for detecting the connection of user terminal current data includes rate type, the data class of data to be transmitted content is identified Type;The data type of the data to be transmitted content includes accessing external network data resource, application program updating and transmission Data resource is to other users terminal;Whether the data type for detecting the data to be transmitted content is the pre-set data type for allowing transmission, described to permit Perhaps the data type transmitted is allowed to pass when including the rate type by the type connected in the user terminal current data Defeated data type;When the data type for detecting the data to be transmitted content is not the pre-set data type for allowing transmission, then forbid Transmit the data to be transmitted content;When the data type for detecting the data to be transmitted content is the pre-set data type for allowing transmission, then institute is obtained State the data traffic surplus of the current set meal of user terminal;Detect whether the data traffic surplus is less than stream set in advance Measure threshold value;If it is not, then transmitting the data to be transmitted content, and obtain the unit during the data to be transmitted content is transmitted The data volume of transmission in time;Whether the data volume for detecting the transmitted per unit time is higher than data volume threshold set in advance Value;If the data volume for detecting the transmitted per unit time is higher than data-quantity threshold set in advance, output is used for prompting will The prompt message that the data type of the data to be transmitted content is deleted from the data type for allowing transmission;If detection institute State data traffic surplus and be less than the flow threshold set in advance, then output is used to prompt whether transmit the number to be transmitted According to the prompt message of content;When the type connected when detection user terminal current data includes rate type, the number of data to be transmitted content is identified After type, whether the data type of the detection data to be transmitted content is the pre-set data for allowing transmission Before type, the method further includes:Detecting the user terminal, whether turn-on data transmits control model;If detecting the user terminal opens the data transfer control mode, perform in the detection data to be transmitted Whether the data type of appearance is pre-set the step of allowing the data type transmitted;If detecting the user terminal does not open the data transfer control mode, output is used to prompt to open the data biography The prompt message of defeated control model.
- 2. according to the method described in claim 1, it is characterized in that, the method further includes:If detecting the data traffic surplus is higher than the flow threshold set in advance, transmit in the data to be transmitted Hold;If the data traffic surplus of the current set meal of the user terminal is detected during the data to be transmitted content is transmitted Less than the flow threshold set in advance, then output is used to prompt the prompting letter for whether transmitting the data to be transmitted content Breath.
- A kind of 3. user terminal, it is characterised in that including:Recognition unit, for when the type for detecting the connection of user terminal current data includes rate type, identifying number to be transmitted According to the data type of content;The data type of the data to be transmitted content includes access external network data resource, using journey Sequence upgrades and sends data resource to other users terminal;First detection unit, for detecting whether the data type of data to be transmitted content of the recognition unit identification is advance What is set allows the data type of transmission, and the data type for allowing transmission is in user terminal current data connection Type includes the data type for allowing transmission during the rate type;Control unit, the data type for detecting the data to be transmitted content when the first detection unit are not to set in advance That puts allows the data type of transmission, then forbids transmitting the data to be transmitted content;First acquisition unit, the data type for detecting the data to be transmitted content when the first detection unit is advance What is set allows the data type of transmission, then obtains the data traffic surplus of the current set meal of the user terminal;Second detection unit, whether the data traffic surplus for detecting the first acquisition unit acquisition, which is less than, presets Flow threshold;Second acquisition unit, if detecting the data traffic surplus for the second detection unit is higher than institute set in advance Flow threshold is stated, then transmits the data to be transmitted content, and obtain the unit during the data to be transmitted content is transmitted The data volume of transmission in time;Whether the 3rd detection unit, the data volume of the transmitted per unit time obtained for detecting the second acquisition unit are higher than Data-quantity threshold set in advance;Second output unit, if detecting the data volume of the transmitted per unit time higher than advance for the 3rd detection unit The data-quantity threshold of setting, then output are used to prompt the data type of the data to be transmitted content allowing what is transmitted from described The prompt message deleted in data type;The user terminal further includes:First output unit, remains if detecting the data traffic for the second detection unit Surplus is less than the flow threshold set in advance, then output is used to prompt the prompting for whether transmitting the data to be transmitted content Information;The user terminal further includes:4th detection unit, for detecting the user terminal, whether turn-on data transmits control model, if the 4th detection Unit detects the user terminal and opens the data transfer control mode, then triggers and treated described in the first detection unit detection Whether the data type of data content is the pre-set data type for allowing transmission;4th output unit, if detecting the user terminal for the 4th detection unit does not open the Data Transmission Controlling Pattern, then output are used to prompt the prompt message for opening the data transfer control mode.
- 4. user terminal according to claim 3, it is characterised in that the user terminal further includes:Transmission unit, if detecting the data traffic surplus for the second detection unit is higher than the stream set in advance Threshold value is measured, then transmits the data to be transmitted content;3rd output unit, if for detecting the user during transmitting the data to be transmitted content in the transmission unit The data traffic surplus of the current set meal of terminal is less than the flow threshold set in advance, then whether output is used to prompt to transmit The prompt message of the data to be transmitted content.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510279835.XA CN104967758B (en) | 2015-05-27 | 2015-05-27 | A kind of method and user terminal for controlling data transfer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510279835.XA CN104967758B (en) | 2015-05-27 | 2015-05-27 | A kind of method and user terminal for controlling data transfer |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104967758A CN104967758A (en) | 2015-10-07 |
CN104967758B true CN104967758B (en) | 2018-05-01 |
Family
ID=54221694
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510279835.XA Expired - Fee Related CN104967758B (en) | 2015-05-27 | 2015-05-27 | A kind of method and user terminal for controlling data transfer |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104967758B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105430722B (en) * | 2015-11-28 | 2018-09-04 | 广东欧珀移动通信有限公司 | A kind of control method and device of carrier wave polymerizable functional |
CN105554819A (en) * | 2015-11-30 | 2016-05-04 | 东莞酷派软件技术有限公司 | Data transmission method and device and mobile terminal |
CN105635133A (en) * | 2015-12-28 | 2016-06-01 | 深圳市金立通信设备有限公司 | Multimedia content transmission method and terminal |
CN105554820A (en) * | 2015-12-31 | 2016-05-04 | 宇龙计算机通信科技(深圳)有限公司 | WIFI hotspot traffic controlling method and system, and intelligent terminal |
CN106658455A (en) * | 2016-09-22 | 2017-05-10 | 宇龙计算机通信科技(深圳)有限公司 | Data transmission method, data transmission device and server |
WO2018216209A1 (en) * | 2017-05-26 | 2018-11-29 | 三菱電機株式会社 | Air conditioning data communication device, air conditioning data communication method and program |
CN107396365A (en) * | 2017-06-29 | 2017-11-24 | 宇龙计算机通信科技(深圳)有限公司 | Data transmission method and mobile terminal |
CN112039686B (en) * | 2019-06-03 | 2023-08-04 | 杭州海康威视系统技术有限公司 | Data stream transmission control method, device, monitoring equipment and storage medium |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102711093A (en) * | 2012-04-18 | 2012-10-03 | 奇智软件(北京)有限公司 | Method and device for downloading mobile terminal data |
CN103685330A (en) * | 2012-08-31 | 2014-03-26 | 腾讯科技(深圳)有限公司 | Data transmission method and data transmission device |
CN103209439B (en) * | 2013-03-14 | 2016-07-06 | 小米科技有限责任公司 | The method of a kind of data traffic monitoring, device and equipment |
CN104168608B (en) * | 2014-09-15 | 2018-04-10 | 宇龙计算机通信科技(深圳)有限公司 | Flow control methods, control system and electronic equipment |
CN104270526A (en) * | 2014-09-29 | 2015-01-07 | 广东欧珀移动通信有限公司 | Data traffic control method and system for mobile terminal |
CN104602223A (en) * | 2014-12-26 | 2015-05-06 | 北京奇虎科技有限公司 | Downloading method and device for audio file of mobile terminal |
-
2015
- 2015-05-27 CN CN201510279835.XA patent/CN104967758B/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN104967758A (en) | 2015-10-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104967758B (en) | A kind of method and user terminal for controlling data transfer | |
CN103246533B (en) | A kind of method for adding plug-in unit in address list, device and equipment | |
CN109408223A (en) | Resource allocation method, device, terminal and storage medium | |
CN105791560B (en) | A kind of access data network-based control method and user terminal | |
CN108990110A (en) | Network flux management method, device, storage medium and terminal | |
CN109388620A (en) | A kind of method and the first electronic equipment of striding equipment access data | |
CN107613091A (en) | A kind of method and terminal for establishing communication | |
CN106027486A (en) | Multimedia content transmission method and terminal | |
CN105549399A (en) | Indoor environment monitoring method and internet-of-things terminal | |
CN110557499B (en) | Information processing method and device and mobile terminal | |
CN107391020A (en) | The method, apparatus and terminal of virtual objects bag are got in triggering | |
CN108829444A (en) | A kind of method that background application is automatically closed, terminal and computer storage medium | |
CN107070670A (en) | Broadcast transmission person is controlled to send method, device and the terminal device of broadcast message | |
CN109246467A (en) | Label is to the method, apparatus of sharing video frequency, video camera and smart phone | |
CN105307078B (en) | A kind of speaker management method and user terminal | |
CN105138107B (en) | Downloading method of mobile terminal, device and mobile terminal | |
CN107592414A (en) | A kind of message back method, message method and system | |
CN107770845A (en) | The management method and device of mobile focus, terminal and storage medium | |
CN107193662A (en) | A kind of information synchronization method and mobile terminal based on dual system | |
CN106953852A (en) | Register method, device and the terminal device of radio receiver | |
CN105392087B (en) | A kind of speaker management method and user terminal | |
CN108763243A (en) | Application program recommends method, apparatus, mobile terminal and server | |
CN107948584A (en) | A kind of image-pickup method, terminal and computer-readable medium | |
CN107995645A (en) | Method for connecting network, mobile terminal and computer-readable recording medium | |
CN107018557A (en) | A kind of terminal control method and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into 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 |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CP01 | Change in the name or title of a patent holder | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180501 |