CN101141746B - Method and apparatus for implementing mobile phone call charging function - Google Patents
Method and apparatus for implementing mobile phone call charging function Download PDFInfo
- Publication number
- CN101141746B CN101141746B CN2007101762430A CN200710176243A CN101141746B CN 101141746 B CN101141746 B CN 101141746B CN 2007101762430 A CN2007101762430 A CN 2007101762430A CN 200710176243 A CN200710176243 A CN 200710176243A CN 101141746 B CN101141746 B CN 101141746B
- Authority
- CN
- China
- Prior art keywords
- mobile phone
- sim card
- remaining sum
- telephone expenses
- logging modle
- 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
Images
Abstract
The present invention provides a method for a mobile phone to realize the call charging function, and a device. The method comprises a logging module for logging the charging balance is increased in the mobile phone SIM card; the charging balance in the logging module is modified according to the state parameter of the mobile phone calling, and the mobile phone calling is permitted or cut off according to the charging balance. The present invention adopts the mobile phone and the SIM card to realize the call charging, the charging information is not required to be processed and restored on the network side, thus part of storage resource of the network side and the treater resource can be saved, and the demands of the special such as the short term calling user can simultaneously be met, and a value adding service can also be provided for the operator or the agent.
Description
Technical field
The present invention relates to field of mobile communication, refer more particularly to and utilize personal hand-held phone and the common method and apparatus of realizing call meters of SIM (Subscriber Identity Model client identification module) card.
Background technology
In the ordinary course of things, the call meters of personal hand-held phone (mobile phone) is to realize at network side, the details of the each conversation of user all can be recorded in the charging center of network side, handle the also call meters information of recording user by the charging center, this mode need depend on the storage and the disposal ability of network side, can take a lot of storage resources and the processor resource of network side, and be difficult to satisfy the demand of particular client, the for example needed flexible instant charging service based on mobile phone itself of the visiting client of short-term etc., therefore existing mode has not only taken the storage resources and the processor resource of network side, also be difficult to provide convenient and flexible charging service, be difficult to provide the value-added service of flexible immediately-charging for operator or agent.
Summary of the invention
The purpose of this invention is to provide a kind of method and apparatus of realizing mobile phone call charging function, solve storage resources and processor resource that prior art not only takies network side, also be difficult to provide the technical problem of convenient and flexible charging service.
To achieve these goals, the invention provides a kind of method that realizes mobile phone call charging function, wherein, comprise the steps:
Step 1 increases the logging modle that writes down the telephone expenses remaining sum in SIM cards of mobile phones;
Step 2 is revised telephone expenses remaining sum in the described logging modle according to the state parameter of mobile phone communication, allows or disconnect the conversation of described mobile phone according to described telephone expenses remaining sum, and described step 2 specifically comprises: step a, and mobile phone produces the conversation demand; Step b, mobile phone foreground application module sends signalisation by driver module to SIM card; Step c, SIM card is inquired about the telephone expenses remaining sum in the described logging modle; Steps d judges whether described telephone expenses remaining sum is enough conversed, and is execution in step e then, otherwise SIM card sends refusal or disconnect the order of conversation to mobile phone, and process ends; Step e, in communication process, SIM card is revised telephone expenses remaining sum in the described logging modle according to the air time; Step f, whether SIM card regular check mobile phone withdraws from talking state, forwards step c to if mobile phone still is in talking state, if mobile phone withdraws from talking state then process ends.
Above-mentioned method, wherein, described state parameter comprises air time and call type.
Above-mentioned method, wherein, among the described step a, described conversation demand comprises: external incoming call or user Enter Number the back by dial key initiation caller.
Above-mentioned method, wherein, among the described step f, SIM card checks by just sending to mobile phone at interval every preset time order comes the regular check mobile phone whether to withdraw from talking state.
Above-mentioned method, wherein, the file that described logging modle partly defines for the free space in SIM card, described file are provided with an initial value as the conversation remaining sum.
Above-mentioned method wherein, also comprises: revise described file by the short message that sends specific format and supplement with money to realize remaining sum.
In order to realize purpose of the present invention, the present invention also provides a kind of device of realizing mobile phone call charging function, wherein, comprising: logging modle, be arranged in the SIM card of mobile phone, and be used to write down the telephone expenses remaining sum of mobile phone; Operational module is used to carry out following steps: step a, and mobile phone produces the conversation demand; Step b, mobile phone foreground application module sends signalisation by driver module to SIM card; Step c, SIM card is inquired about the telephone expenses remaining sum in the described logging modle; Steps d judges whether described telephone expenses remaining sum is enough conversed, and is execution in step e then, otherwise SIM card sends refusal or disconnect the order of conversation to mobile phone, and process ends; Step e, in communication process, SIM card is revised telephone expenses remaining sum in the described logging modle according to the air time; Step f, whether SIM card regular check mobile phone withdraws from talking state, forwards step c to if mobile phone still is in talking state, if mobile phone withdraws from talking state then process ends.。
Technique effect of the present invention is:
The invention provides a kind of more convenient and flexible charging method, utilize mobile phone and SIM card to realize call meters jointly, user's charge information need not handled at network side, need be in network side preservation yet, can save the part storage resources and the processor resource of network side, also can satisfy simultaneously the visiting client's of particular client such as short-term demand, can also provide a kind of value-added service for operator or agent.
Description of drawings
Fig. 1. be the Organization Chart of mobile phone provided by the invention and SIM card charging processing correlation module;
Fig. 2. for provided by the invention in communication process mobile phone and SIM card flow chart of steps by chargeing alternately and handling.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, describe the present invention below in conjunction with the accompanying drawings and the specific embodiments.
The invention provides a kind of method and apparatus of realizing mobile phone call charging function, with reference to Fig. 1, mainly comprise: at first increase a call meters data file (logging modle) 101 in the SIM card, be used for preserving the telephone expenses remaining sum, and the program (operational module) 102 that increase is chargeed and handled in the SIM card code, be mainly used to the air time returned according to mobile phone and talking state and revise telephone expenses remaining sum in the card, and notify mobile phone to connect or hang up current talking according to the telephone expenses remaining sum; The mobile phone side increases an independently task, when conversation the state parameter of current talking is passed to SIM card, and SIM card is handled these parameters by the program of handling of chargeing after receiving these parameters, finishes the function of call meters.
Be the concrete steps of the inventive method below:
The first step, in SIM card, increase the call meters data file of a self-defining non-GSM (global mobile system) standard, as be called the new file of EFCFARE at free space file of 0xE0A0 location definition partly of SIM card, data type is the floating number of 4 Bytes (byte), and an initial value is set as the conversation remaining sum.Remaining sum is supplemented with money and can be realized by the short message that sends specific format.
Second step, custom command SIM_COMMAND_IS_CALLING, command format can mainly comprise with reference to the GSM standard form: SIM card order label (Proactive SIM command Tag), length (Length), command context (Command details), equipment identities several parts such as (Device identities).This order is that SIM issues mobile phone, is used for inquiring about current phone and whether is in talking state.
Custom command SIM_COMMAND_END_CALL, command format can mainly comprise with reference to the GSM standard form: command context (Command details), equipment identities (Device identities), result's several parts such as (Result).This order also is that SIM issues mobile phone, is used for notifying mobile phone to hang up current ongoing conversation.
The 3rd step, in mobile phone, create an independently task, as SIM-EXTEND Task, the special disposal billing function is handled the self-defining order from SIM card.
In the 4th step, mobile phone terminal incoming call or user initiate caller by dial key at the back that Enters Number, mobile phone foreground application module by driver module to the SIM card signaling, by calling control command ENVELOPE (CALL CONTROL) the notice SIM card of GSM standard;
The 5th step, inquire about the remaining sum in the call meters data file behind the notified signal of SIM card handling procedure earlier, if Sorry, your ticket has not enough value then SIM card sends the order SIM_COMMAND_END_CALL that disconnects conversation to mobile phone, mobile phone can finish call flow after receiving the SIM card order, and passes through standard commands Terminal Response (terminal response) the result notification SIM card of telephone operation; If also have remaining sum, then SIM card is done nothing, and mobile phone can carry out normal call flow automatically.
The 6th step, in communication process, SIM card can regularly send order SIM_COMMAND_IS_CALLING to mobile phone, check that current phone is whether in talking state, if in talking state, then SIM card can be revised remaining sum in the billing data file according to the air time, reduces remaining sum numerical value according to charging regulation.
In the 7th step, in communication process, SIM card also can regularly detect the remaining sum in the call meters data file, if Sorry, your ticket has not enough value then SIM card send to disconnect the order SIM_COMMAND_END_CALL of conversation to mobile phone, allows mobile phone withdraw from talking state.
Fig. 2. be the flow chart of steps by chargeing alternately and handling of mobile phone and SIM card in the communication process provided by the invention, it mainly is to the refinement of content between the 4th step to the 7th step, as figure, specifically comprises:
As from the foregoing, the invention provides a kind of more convenient and flexible charging method, utilize mobile phone and SIM card to realize call meters jointly, user's charge information need not handled at network side, need be in network side preservation yet, can save the part storage resources and the processor resource of network side, also can satisfy simultaneously the visiting client's of particular client such as short-term demand, can also provide a kind of value-added service for operator or agent.
The above only is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.
Claims (7)
1. a method that realizes mobile phone call charging function is characterized in that, comprises the steps:
Step 1 increases the logging modle that writes down the telephone expenses remaining sum in SIM cards of mobile phones;
Step 2 is revised telephone expenses remaining sum in the described logging modle according to the state parameter of mobile phone communication, allows or disconnect the conversation of described mobile phone according to described telephone expenses remaining sum, comprising: step a, and mobile phone produces the conversation demand; Step b, mobile phone foreground application module sends signalisation by driver module to SIM card; Step c, SIM card is inquired about the telephone expenses remaining sum in the described logging modle; Steps d judges whether described telephone expenses remaining sum is enough conversed, and is execution in step e then, otherwise SIM card sends refusal or disconnect the order of conversation to mobile phone, and process ends; Step e, in communication process, SIM card is revised telephone expenses remaining sum in the described logging modle according to the air time; Step f, whether SIM card regular check mobile phone withdraws from talking state, forwards step c to if mobile phone still is in talking state, if mobile phone withdraws from talking state then process ends.
2. method according to claim 1 is characterized in that described state parameter comprises air time and call type.
3. method according to claim 1 is characterized in that, among the described step a, described conversation demand comprises: external incoming call or user Enter Number the back by dial key initiation caller.
4. method according to claim 1 is characterized in that, among the described step f, SIM card checks by just sending to mobile phone at interval every preset time order comes the regular check mobile phone whether to withdraw from talking state.
5. method according to claim 1 is characterized in that, the file that described logging modle partly defines for the free space in SIM card, described file are provided with an initial value as the conversation remaining sum.
6. method according to claim 5 is characterized in that, also comprises: revise described file by the short message that sends specific format and supplement with money to realize remaining sum.
7. a device of realizing mobile phone call charging function is characterized in that, comprising:
Logging modle is arranged in the SIM card of mobile phone, is used to write down the telephone expenses remaining sum of mobile phone;
Operational module is used to carry out following steps: step a, and mobile phone produces the conversation demand; Step b, mobile phone foreground application module sends signalisation by driver module to SIM card; Step c, SIM card is inquired about the telephone expenses remaining sum in the described logging modle; Steps d judges whether described telephone expenses remaining sum is enough conversed, and is execution in step e then, otherwise SIM card sends refusal or disconnect the order of conversation to mobile phone, and process ends; Step e, in communication process, SIM card is revised telephone expenses remaining sum in the described logging modle according to the air time; Step f, whether SIM card regular check mobile phone withdraws from talking state, forwards step c to if mobile phone still is in talking state, if mobile phone withdraws from talking state then process ends.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2007101762430A CN101141746B (en) | 2007-10-23 | 2007-10-23 | Method and apparatus for implementing mobile phone call charging function |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2007101762430A CN101141746B (en) | 2007-10-23 | 2007-10-23 | Method and apparatus for implementing mobile phone call charging function |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101141746A CN101141746A (en) | 2008-03-12 |
CN101141746B true CN101141746B (en) | 2010-09-29 |
Family
ID=39193425
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2007101762430A Expired - Fee Related CN101141746B (en) | 2007-10-23 | 2007-10-23 | Method and apparatus for implementing mobile phone call charging function |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101141746B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102143472A (en) * | 2011-02-17 | 2011-08-03 | 西安闻泰电子科技有限公司 | Method for automatically adjusting call charge alarm clock based on call charges |
CN102833700A (en) * | 2011-06-14 | 2012-12-19 | 中兴通讯股份有限公司 | Method and system for calculating telephone charge of terminal |
CN105101130A (en) * | 2014-05-16 | 2015-11-25 | 中兴通讯股份有限公司 | Method and device of reducing mobile terminal shutdown probability, and mobile terminal |
CN106550340A (en) * | 2015-09-18 | 2017-03-29 | 中兴通讯股份有限公司 | A kind of method and apparatus for realizing charging |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1269036A (en) * | 1997-02-27 | 2000-10-04 | 实时编帐公司 | Real time subscriber billing system and method |
CN1276124A (en) * | 1997-11-07 | 2000-12-06 | 瑞士电信公司 | Clearing method in a telecommuniation system |
-
2007
- 2007-10-23 CN CN2007101762430A patent/CN101141746B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1269036A (en) * | 1997-02-27 | 2000-10-04 | 实时编帐公司 | Real time subscriber billing system and method |
CN1276124A (en) * | 1997-11-07 | 2000-12-06 | 瑞士电信公司 | Clearing method in a telecommuniation system |
Also Published As
Publication number | Publication date |
---|---|
CN101141746A (en) | 2008-03-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103314624B (en) | Many SIM UE calls out and the method and apparatus of transmission busy state message in response to receiving | |
CA2227340C (en) | Radio mobile terminal provided with an additional reader of chip cards | |
US20130130646A1 (en) | Mobile communication terminal and method for managing sim cards | |
CN105049559A (en) | System and method for communication using wearable electronic equipment | |
CN101141746B (en) | Method and apparatus for implementing mobile phone call charging function | |
CN100534208C (en) | A method, apparatus and system for implementing individualized signature of short message | |
CN102780806A (en) | Method, device and system for identity information transmission in communication process | |
CN102238273A (en) | Communication device, power saving method thereof and computer program product | |
CN106534540B (en) | Communication information display methods and device | |
CN102638624A (en) | Mobile terminal capable of realizing automatic forwarding of incoming call information and forwarding method thereof | |
CN102469442A (en) | Method and device for determining service supported by user terminal | |
CN105430205A (en) | Call communication method and call communication device | |
CN102625262A (en) | Incoming-call reminding method, device and system | |
CN101931909A (en) | Method and system for generating and acquiring information of 3G terminal and 3G terminal thereof | |
CN101340642A (en) | Method, system and apparatus for transmitting electronic business card | |
CN101098501A (en) | Information recognition system method | |
CN103841508A (en) | User information obtaining method and information aggregation platform | |
CN103874028A (en) | Information control method and electronic device | |
CN101964833A (en) | Method, system and equipment for displaying personalized signature | |
EP2520078A1 (en) | Method for management of a voice mailbox of a mobile phone | |
CN101287235B (en) | Third call processing method and device based on Windows Mobile operating system | |
CN101321126A (en) | Method for automatically recording and informing user multimedia message | |
JP6248805B2 (en) | Notification method of traffic information related to communication charges | |
CN102958013A (en) | Methods and apparatus to send voice messages | |
CN102318380A (en) | Call control method and apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20100929 Termination date: 20201023 |
|
CF01 | Termination of patent right due to non-payment of annual fee |