CN106304196A - A kind of data flow control method based on FDN and system - Google Patents
A kind of data flow control method based on FDN and system Download PDFInfo
- Publication number
- CN106304196A CN106304196A CN201610627408.0A CN201610627408A CN106304196A CN 106304196 A CN106304196 A CN 106304196A CN 201610627408 A CN201610627408 A CN 201610627408A CN 106304196 A CN106304196 A CN 106304196A
- Authority
- CN
- China
- Prior art keywords
- fdn
- state
- mobile terminal
- data traffic
- identifier
- 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
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/10—Flow control between communication endpoints
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/02—Access restriction performed under specific conditions
-
- 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
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/18—Management of setup rejection or failure
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Telephone Function (AREA)
- Telephonic Communication Services (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a kind of data flow control method based on FDN and system, method includes: after mobile terminal-opening, monitors the state of SIM;When the state listening to SIM changes, mobile terminal reads the state of FDN, if detecting, FDN is in opening, then control mobile terminal disabling data traffic.The present invention can disable data traffic, thus prevent a large amount of losses of the flow of user, cause economic loss after the mobile terminal of user opens FDN pattern.
Description
Technical field
The present invention relates to technical field of mobile terminals, particularly relate to a kind of data flow control method based on FDN and be
System.
Background technology
FDN (Fixed dialer number) is also called Fixed Dialing, refers to after FDN opens, and user can only dial
Beat and answer number present in FDN list, in a lot of countries and regions, FDN can be extended some limitation functions.
This function in order to prevent unauthorized use when mobile phone is lent third-party.I.e. party A-subscriber borrows mobile phone
To party B-subscriber, only limiting party B-subscriber and dial the number that party A-subscriber specifies, non-designated number can not be transferred to, and this function is also fitted simultaneously
Prevent others from using for (being such as placed on dormitory charging) under the conditions of collective.
But prior art is opened after FDN function, the data traffic of mobile phone still in opening, other people possibly also with
Data traffic is surfed the Net, and causes the flow of user to run off in a large number, brings economic loss for user.
Therefore, prior art has yet to be improved and developed.
Summary of the invention
In view of the deficiencies in the prior art, present invention aim at providing a kind of data flow control method based on FDN and
System, it is intended to solving in prior art after mobile phone unlatching FDN function, data traffic is still in opening, and other people may profit
Surf the Net by data traffic, cause the defect that the flow of user runs off in a large number.
Technical scheme is as follows:
A kind of data flow control method based on FDN, wherein, method includes:
After A, mobile terminal-opening, monitor the state of SIM;
B, when the state listening to SIM changes, mobile terminal read FDN state, if detecting, FDN is in unlatching
State, then control mobile terminal disabling data traffic.
Described data flow control method based on FDN, wherein, also includes before described A:
S, data traffic is being set it is being in the corresponding identifier of opening or closed mode in advance.
Described data flow control method based on FDN, wherein, described S specifically includes:
S1, pre-set data traffic to be in the identifier of opening be true;
S2, to pre-set the identifier that data traffic is closed be false.
Described data flow control method based on FDN, wherein, described B specifically includes:
B1, when the state listening to SIM changes, mobile terminal read FDN state;
If B2 detects that FDN is in opening, it is judged that mobile terminal whether turn-on data flow, if opening, perform step
B3, if not opening, performs step B4;
B3, control mobile terminal disabling data traffic, and the identifier of current data flow is set to very;
The identifier of current data flow is set to very by B4, control.
Described data flow control method based on FDN, wherein, described step B also includes:
B11, when the state listening to SIM changes, mobile terminal read FDN state;
If B21 detects that FDN is closed, then the identifier of current data flow is set to false as.
A kind of data traffic control system based on FDN, wherein, system includes:
Monitor module, after mobile terminal-opening, monitor the state of SIM;
Detection & Controling module, for when the state listening to SIM changes, mobile terminal reads the state of FDN, if
Detect that FDN is in opening, then control mobile terminal disabling data traffic.
Described data traffic control system based on FDN, wherein, described system also includes:
Pre-set module, the identifier that data traffic is in the correspondence of opening or closed mode is being set in advance.
Described data traffic control system based on FDN, wherein, described in pre-set module and specifically include:
First arranges unit, and the identifier being in opening for pre-setting data traffic is true;
Second arranges unit, and the identifier being closed for pre-setting data traffic is false.
Described data traffic control system based on FDN, wherein, described Detection & Controling module specifically includes:
First monitors and reads unit, and for when the state listening to SIM changes, mobile terminal reads the shape of FDN
State;
Judging unit, if for detecting that FDN is in opening, it is judged that mobile terminal whether turn-on data flow;
First control unit, is used for controlling mobile terminal disabling data traffic, and is set to by the identifier of current data flow
Very;
Second control unit, is set to the identifier of current data flow very for control.
Described data traffic control system based on FDN, wherein, described Detection & Controling module also includes:
Second monitors and reads unit, and for when the state listening to SIM changes, mobile terminal reads the shape of FDN
State;
3rd control unit, if for detecting that FDN is closed, being then set to the identifier of current data flow
False.
The invention provides a kind of data flow control method based on FDN and system, the present invention can be in the movement of user
After terminal opens FDN pattern, disable data traffic, thus prevent a large amount of losses of the flow of user, cause economic loss.
Accompanying drawing explanation
Fig. 1 is the flow chart of the preferred embodiment of a kind of based on FDN data flow control method of the present invention.
Fig. 2 is the second thin of the concrete Application Example one of a kind of based on FDN data flow control method of the present invention
Change flow chart of steps.
Fig. 3 is the second refinement step of the preferred embodiment two of a kind of based on FDN data flow control method of the present invention
Rapid flow chart.
Fig. 4 is the functional schematic block diagram of the preferred embodiment of a kind of based on FDN data traffic control system of the present invention.
Detailed description of the invention
For making the purpose of the present invention, technical scheme and effect clearer, clear and definite, below to the present invention the most specifically
Bright.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
The invention provides the flow chart of the preferred embodiment of a kind of data flow control method based on FDN, such as Fig. 1 institute
Showing, wherein, method includes:
After step S100, mobile terminal-opening, monitor the state of SIM.
When being embodied as, the monitoring of SIM state includes: after after start, SIM is ready to, and plugs SIM, other SIM
The state of card changes.Listen to after SIM state changes, first determine whether currently whether can read the state of FDN,
Its state can not be obtained SIM pulls out or read appearance exception when.According to the state of FDN, decide whether to disable data
Flow and the value that disable_mobile_data is set of correspondence.
After monitoring starting up's SIM is ready to, plugs SIM, and the state change of other SIMs, therefrom obtain FDN
State be on or off, the attribute of disable_mobile_data is set, and accordingly can data traffic be used
Do and control.
The state of FDN is stored in SIM, so we need to obtain its value by the data in reading SIM card.
Such as by the state of manner below acquisition FDN:
boolean isFdnEnabled = Phone.getIccCard().getIccFdnEnabled()。
In further embodiment, also include before step S100:
Step S10, data traffic is being set it is being in the corresponding identifier of opening or closed mode in advance.It is embodied as
Time, it is true for pre-setting data traffic and being in the identifier of opening;Pre-set the mark that data traffic is closed
It is false for knowing symbol.
When being embodied as, the identifier of disabling flow opening is designated as enable_mobile_data, if disabling stream
Amount, then enable_mobile_data is true, and now user can not use flow, when enable_mobile_data is false,
User is then allowed to use flow.
Step S200, when the state listening to SIM changes, mobile terminal read FDN state, if detecting
FDN is in opening, then control mobile terminal disabling data traffic.
When being embodied as, after actively opening FDN, close data traffic, and global property disable_mobile_ is set
Data is true, if this attribute is true, does not the most allow turn-on data flow, after user closes FDN, by disable_
Mobile_data is set to false.
Implementation:
Obtaining telephonyManager, and close data traffic by telephonyManager, the overall situation sets a property
Disable_mobile_data preserves the value whether allowing to use data traffic.
// obtain telephonyManager
mTelephonyManager = (TelephonyManager) mContext.getSystemService
(Context.TELEPHONY_SERVICE);
// close data traffic
telephonyManager.setDataEnabledUsingSubId(subId[0], false)
// value of disable_mobile_data is set
Settings.Global.putInt(mContext.getContentResolver(), “disable_mobile_
data”, false)。
In further embodiment, as in figure 2 it is shown, be the tool of a kind of data flow control method based on FDN of the present invention
Second refinement step flow chart of body Application Example one, is FDN a kind of specific embodiment of being in opening, specifically,
Step S200 specifically includes:
Step S201, when the state listening to SIM changes, mobile terminal read FDN state;
If step S202 detects that FDN is in opening, it is judged that mobile terminal whether turn-on data flow, if opening, hold
Row step S203, if not opening, performs step S204;
Step S203, control mobile terminal disabling data traffic, and the identifier of current data flow is set to very;
The identifier of current data flow is set to very by step S204, control.
When being embodied as, the opening process of the FDN state needed in the present invention is specific as follows:
User asks to open FDN, and sends PIN code to operator, and operator's checking PIN code is the most correct, if PIN code is correct,
Judge currently the most whether turn-on data flow, if data traffic is opened, then close data traffic, and preserve or variable is set
Disable_mobile_data is true, if data traffic is not opened, the most directly preserves or arranges variable disable_
Mobile_data is true.If PIN code mistake, then FDN state is opened unsuccessfully.
In further embodiment, as it is shown on figure 3, be the tool of a kind of data flow control method based on FDN of the present invention
3rd refinement step flow chart of body Application Example one, is a kind of specific embodiment of being closed of FDN, specifically,
Step S200 specifically includes:
Step S211, when the state listening to SIM changes, mobile terminal read FDN state;
If step S221 detects that FDN is closed, then the identifier of current data flow is set to false as.
When being embodied as, detecting that user asks to close FDN, send PIN code to operator, operator's checking PIN code is
No correctly, if PIN code is correct, then arranging disable_mobile_data is false;If PIN code is incorrect, then FDN state is closed
Close unsuccessfully.
Do not preserve its current state when closing data traffic, do not do data traffic shape accordingly when FDN closes
The recovery of state, if user wants to use data traffic, then reopens, it is to avoid owing to recovering acquiescence opening, user does not has
Perceive, and cause expense to waste.Whether disable data traffic and depend on the state of FDN in SIM, and do not rely on certain electricity
The setting of subset, more accurately and meet use standard.
Owing to adding restriction, then it is necessary to according to enable_ when user opens or uses data traffic when
The value of mobile_data does corresponding process, and enable_mobile_data is that true then points out user can not use flow,
Enable_mobile_data is false, then allow user to use.
In the exemplary embodiment, device can be by one or more application specific integrated circuits (ASIC), digital signal
Processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components realize, be used for performing said method.
In the exemplary embodiment, a kind of non-provisional computer-readable recording medium including instruction is additionally provided, such as
Including the memorizer of instruction, above-mentioned instruction can be performed by the processor of device to complete said method.Such as, described non-transitory
Computer-readable recording medium can be ROM, random-access memory (ram), CD-ROM, tape, floppy disk and optical data storage
Equipment etc..
Present invention also offers the principle of work and power frame of the preferred embodiment of a kind of data traffic control system based on FDN
Figure, as shown in Figure 4, system includes:
Monitor module 100, after mobile terminal-opening, monitor the state of SIM;Specifically as shown in embodiment of the method.
Detection & Controling module 200, for when the state listening to SIM changes, mobile terminal reads FDN's
State, if detecting, FDN is in opening, then control mobile terminal disabling data traffic;Specifically as shown in embodiment of the method.
Described data traffic control system based on FDN, wherein, described system also includes:
Pre-set module, the identifier that data traffic is in the correspondence of opening or closed mode is being set in advance;
Specifically as shown in embodiment of the method.
Described data traffic control system based on FDN, wherein, described in pre-set module and specifically include:
First arranges unit, and the identifier being in opening for pre-setting data traffic is true;Specifically implement such as method
Shown in example.
Second arranges unit, and the identifier being closed for pre-setting data traffic is false;Concrete such as method
Shown in embodiment.
Described data traffic control system based on FDN, wherein, described Detection & Controling module specifically includes:
First monitors and reads unit, and for when the state listening to SIM changes, mobile terminal reads the shape of FDN
State;Specifically as shown in embodiment of the method.
Judging unit, if for detecting that FDN is in opening, it is judged that mobile terminal whether turn-on data flow;Tool
Body is as shown in embodiment of the method.
First control unit, is used for controlling mobile terminal disabling data traffic, and is set by the identifier of current data flow
It is set to true;Specifically as shown in embodiment of the method.
Second control unit, is set to the identifier of current data flow very for control;Concrete such as embodiment of the method
Shown in.
Described data traffic control system based on FDN, wherein, described Detection & Controling module also includes:
Second monitors and reads unit, and for when the state listening to SIM changes, mobile terminal reads the shape of FDN
State;Specifically as shown in embodiment of the method.
3rd control unit, if for detecting that FDN is closed, is then arranged the identifier of current data flow
It is false;Specifically as shown in embodiment of the method.
In sum, the invention provides a kind of data flow control method based on FDN and system, method includes: move
After dynamic starting up of terminal, monitor the state of SIM;When the state listening to SIM changes, mobile terminal reads FDN's
State, if detecting, FDN is in opening, then control mobile terminal disabling data traffic.The present invention can be in the movement of user
After terminal opens FDN pattern, disable data traffic, thus prevent a large amount of losses of the flow of user, cause economic loss.
It should be appreciated that the application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can
To be improved according to the above description or to convert, all these modifications and variations all should belong to the guarantor of claims of the present invention
Protect scope.
Claims (10)
1. a data flow control method based on FDN, it is characterised in that described method includes:
After A, mobile terminal-opening, monitor the state of SIM;
B, when the state listening to SIM changes, mobile terminal read FDN state, if detecting, FDN is in unlatching
State, then control mobile terminal disabling data traffic.
Data flow control method based on FDN the most according to claim 1, it is characterised in that also wrap before described A
Include:
S, data traffic is being set it is being in the corresponding identifier of opening or closed mode in advance.
Data flow control method based on FDN the most according to claim 2, it is characterised in that described S specifically includes:
S1, pre-set data traffic to be in the identifier of opening be true;
S2, to pre-set the identifier that data traffic is closed be false.
Data flow control method based on FDN the most according to claim 3, it is characterised in that described B specifically includes:
B1, when the state listening to SIM changes, mobile terminal read FDN state;
If B2 detects that FDN is in opening, it is judged that mobile terminal whether turn-on data flow, if opening, perform step
B3, if not opening, performs step B4;
B3, control mobile terminal disabling data traffic, and the identifier of current data flow is set to very;
The identifier of current data flow is set to very by B4, control.
Data flow control method based on FDN the most according to claim 3, it is characterised in that described step B is also wrapped
Include:
B11, when the state listening to SIM changes, mobile terminal read FDN state;
If B21 detects that FDN is closed, then the identifier of current data flow is set to false as.
6. a data traffic control system based on FDN, it is characterised in that system includes:
Monitor module, after mobile terminal-opening, monitor the state of SIM;
Detection & Controling module, for when the state listening to SIM changes, mobile terminal reads the state of FDN, if
Detect that FDN is in opening, then control mobile terminal disabling data traffic.
Data traffic control system based on FDN the most according to claim 6, it is characterised in that described system also includes:
Pre-set module, the identifier that data traffic is in the correspondence of opening or closed mode is being set in advance.
Data traffic control system based on FDN the most according to claim 7, it is characterised in that described in pre-set mould
Block specifically includes:
First arranges unit, and the identifier being in opening for pre-setting data traffic is true;
Second arranges unit, and the identifier being closed for pre-setting data traffic is false.
Data traffic control system based on FDN the most according to claim 8, it is characterised in that described Detection & Controling
Module specifically includes:
First monitors and reads unit, and for when the state listening to SIM changes, mobile terminal reads the shape of FDN
State;
Judging unit, if for detecting that FDN is in opening, it is judged that mobile terminal whether turn-on data flow;
First control unit, is used for controlling mobile terminal disabling data traffic, and is set to by the identifier of current data flow
Very;
Second control unit, is set to the identifier of current data flow very for control.
Data traffic control system based on FDN the most according to claim 9, it is characterised in that described Detection & Controling
Module also includes:
Second monitors and reads unit, and for when the state listening to SIM changes, mobile terminal reads the shape of FDN
State;
3rd control unit, if for detecting that FDN is closed, being then set to the identifier of current data flow
False.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610627408.0A CN106304196B (en) | 2016-08-03 | 2016-08-03 | FDN-based data flow control method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610627408.0A CN106304196B (en) | 2016-08-03 | 2016-08-03 | FDN-based data flow control method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106304196A true CN106304196A (en) | 2017-01-04 |
CN106304196B CN106304196B (en) | 2020-06-09 |
Family
ID=57664277
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610627408.0A Active CN106304196B (en) | 2016-08-03 | 2016-08-03 | FDN-based data flow control method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106304196B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107659715A (en) * | 2017-09-18 | 2018-02-02 | 惠州Tcl移动通信有限公司 | A kind of Fixed Dialing method to set up, storage medium and mobile terminal |
CN108901082A (en) * | 2018-06-20 | 2018-11-27 | 新华三技术有限公司 | A kind of cut-in method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE19807934A1 (en) * | 1998-02-25 | 1999-09-02 | Siemens Ag | SIM card with phone book entries for mobile phones |
CN1264524A (en) * | 1997-07-18 | 2000-08-23 | 奥林吉个人通讯服务公司 | Subscriber system with user station with removable data store |
CN1452763A (en) * | 2000-04-28 | 2003-10-29 | 株式会社日立制作所 | IC card |
CN102833811A (en) * | 2011-06-15 | 2012-12-19 | 中兴通讯股份有限公司 | Subscriber identity module and method for implementing call barring by same |
-
2016
- 2016-08-03 CN CN201610627408.0A patent/CN106304196B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1264524A (en) * | 1997-07-18 | 2000-08-23 | 奥林吉个人通讯服务公司 | Subscriber system with user station with removable data store |
DE19807934A1 (en) * | 1998-02-25 | 1999-09-02 | Siemens Ag | SIM card with phone book entries for mobile phones |
CN1452763A (en) * | 2000-04-28 | 2003-10-29 | 株式会社日立制作所 | IC card |
CN102833811A (en) * | 2011-06-15 | 2012-12-19 | 中兴通讯股份有限公司 | Subscriber identity module and method for implementing call barring by same |
Non-Patent Citations (2)
Title |
---|
JINYUAN690: "经验总结文档", 《道客巴巴》 * |
匿名: "MOTO ME打电话显示"去电受FDN的限制"", 《百度知道》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107659715A (en) * | 2017-09-18 | 2018-02-02 | 惠州Tcl移动通信有限公司 | A kind of Fixed Dialing method to set up, storage medium and mobile terminal |
CN107659715B (en) * | 2017-09-18 | 2021-01-08 | 惠州Tcl移动通信有限公司 | Fixed dialing setting method, storage medium and mobile terminal |
CN108901082A (en) * | 2018-06-20 | 2018-11-27 | 新华三技术有限公司 | A kind of cut-in method and device |
Also Published As
Publication number | Publication date |
---|---|
CN106304196B (en) | 2020-06-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20190199842A1 (en) | Method and system for automatically saving unknown number in mobile phone | |
CN102801869B (en) | Method and device for switching answer modes of mobile terminal | |
CN103369147B (en) | A kind of call mode changing method and mobile terminal | |
CN102625241B (en) | A kind of mobile phone location prompting processing method and mobile phone | |
CN105472126B (en) | Call privacy control method and device and mobile terminal | |
CN105896666A (en) | Charging method and device of terminal and terminal | |
CN104866212A (en) | Method for fast calling program or function and system thereof | |
CN105072261A (en) | Automatic mobile terminal subject switching method based on flip cover color and system | |
CN104065827A (en) | Terminal voice mode switching method and apparatus and terminal | |
CN105282832A (en) | Terminal power saving method and apparatus | |
CN106304196A (en) | A kind of data flow control method based on FDN and system | |
CN106771517A (en) | A kind of mobile terminal and its display screen over-current detecting method and system | |
CN106488036A (en) | Volume adjusting method and device | |
CN104580652B (en) | Mobile terminal and its session authentication method based on DTMF | |
CN105101125A (en) | Method and device for setting call forwarding | |
CN104252352A (en) | Information processing method and electronic equipment | |
CN105744089A (en) | Call prompt method and device | |
CN104836290B (en) | The detection method and detecting system that a kind of Mobile terminal charger insertion is extracted | |
CN105843392A (en) | Screen control method and device of mobile terminal | |
CN105611044A (en) | Conversation control method and device and terminal | |
CN104202463A (en) | Call filter method and intelligent terminal | |
CN105635419A (en) | Incoming call processing method and system, and terminal | |
CN102970440A (en) | Method and mobile communication terminal for prompting user to change call place | |
CN105744058A (en) | Method for automatically adjusting screen temperature of mobile terminal and mobile terminal | |
CN105072286A (en) | Reminding method for preventing call from being recorded and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | 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 |