A kind of cell phone bill inquiring device
Technical field
The present invention relates to a kind of cell phone bill inquiring device, the cell phone bill inquiring device that uses on particularly a kind of mobile phone.
Background technology
Cell phone bill is the content that each cellphone subscriber is concerned about.Along with mobile phone can provide increasing of service, the content that is comprised of cell phone bill is also more and more.The previous typical cell phone bill of order can comprise current telephone expenses, real-time balance, use the available online flow of residue in online flow, the set meal, order contents such as value-added service service lists.
Each telecom operation commercial city provides the service of cell phone bill inquiry to the user.Several typical cell phone bill inquiry services have:
1, by the inquiry of phone customer service hot line
The user listens to cell phone bill by calling the customer service hot line by the mode of automatic speech, or by the manual service mode, by the customer service assistant director to the instruction manual cell phone bill;
2, inquire about by SMS business hall
The user sends certain content to telecom operators service specified numbers, and the guide of the information that issues according to SMS business hall sends certain content to particular number, and so forth repeatedly, finally obtains Query Result;
3, by the inquiry of WAP (WirelessApplicationProtocol) business hall
The WAP so-called WAP(WirelessApplicationProtocol that surfs the Net) being WAP (wireless application protocol), is a global network communication protocol.Be widely used under multiple cell phone network, providing service on net;
The WAP website of user capture telecom operators appointment according to the guide of web site url, jumps to corresponding bill interface;
4, by the Internet online business hall inquiry
The user is by the online business hall, the Internet of cell-phone number or other ID login telecom operators, the specific authentication sign indicating number that input password or note issue by authentication after, enter online business hall and inquire about.
And existing four kinds of query schemes respectively have its shortcoming part:
1, is not easy to the record and the preservation of cell phone bill by the inquiry mode of customer service hot line;
2, the inquiry mode by SMS business hall, because will send certain content to particular number, be not easy to the user and remember the mode of inquiry, and general inquiry process need up and down reciprocatingly many notes just can be found the note result, in addition because note institute energy loaded information fewer (70 Chinese characters), article one, short message enquiry often can only be inquired about one or two content, and wanting to understand a complete cell phone bill often needs repeatedly to inquire about;
3, by the inquiry mode of WAP business hall, because will visit the specific page, network address is not easy to user's memory.And often to just can find the result, need the more time of cost by redirect repeatedly.The cell phone bill content may be distributed in a plurality of pages in addition, can't once look into complete;
Though 4, business hall, the Internet content is more complete, access speed is also very fast, is not suitable for visiting whenever and wherever possible by mobile phone.
Summary of the invention
The objective of the invention is to, a kind of cell phone bill inquiring device is provided.It can pass through mobile phone, inquires about cell phone bill whenever and wherever possible, quickly and easily.
Technical scheme of the present invention: a kind of cell phone bill inquiring device is characterized in that: comprise wireless network, business support server and mobile phone; Also comprise and being arranged on the mobile phone
Download module is used for download and inquiry instruction and template, links to each other with the business support server by wireless network;
Enquiry module is used to resolve the query statement that download module is downloaded, and implements query statement by the note and the function of surfing the Net of mobile phone;
Matching module is used for the template that the Query Result and the download module of enquiry module are downloaded is mated, and obtains the bill contents of a project; Matching module comprises except that the bill item purpose amount of money and the identical masterplate of enquiry module Query Result content, by relatively masterplate and Query Result, draws the bill item purpose amount of money;
Download module links to each other with matching module with enquiry module, and matching module links to each other with the memory module of storage matching result, and memory module links to each other with the display device of mobile phone.
In the above-mentioned cell phone bill inquiring device, described download module also links to each other with subscriber information module, and the user profile that subscriber information module provides to download module is the foundation that download module is downloaded content.
In the aforesaid cell phone bill inquiring device, described subscriber information module is artificial input or the module of selecting operator, mobile phone card ownership place, mobile phone card brand and user's location message, or number judge for the sms center by mobile phone and user's operator and ownership province assist definite on-site module of user by mobile phone present base station information.
In the aforesaid cell phone bill inquiring device, described business support server is that stored user information is inquired about the query statement of the every content of bill and the server of masterplate accordingly.
In the aforesaid cell phone bill inquiring device, described enquiry module comprises the inquiry of WAP business hall and two kinds of inquiry modes of SMS business hall inquiry, and two kinds of inquiry modes are corresponding with corresponding query statement.
In the aforesaid cell phone bill inquiring device, described detection module comprises the startup module, starts module detecting when not implementing query statement, starts enquiry module, implements the detected query statement of not implementing.
In the aforesaid cell phone bill inquiring device, described enquiry module also comprises the code conversion module, when using WAP business hall inquiry mode, Query Result is carried out code conversion, the unified UCS2 coded format that is transcoded into.
Compared with prior art, because the basic boom that has used wireless network, business support server and mobile phone to form, and on mobile phone, combine the download module that is used for download and inquiry instruction and template, be used to resolve the query statement that download module is downloaded, and by the note of mobile phone and the enquiry module of function of surfing the Net enforcement query statement, be used for the template that the Query Result and the download module of enquiry module are downloaded is mated, and obtain the matching module of the bill contents of a project; Make this practical information can on mobile phone, inquire about instant bill whenever and wherever possible, and less time of cost and can disposablely look into complete all bill contents, the present invention can also remove the user from need remember complex query instruction and the worries of repeatedly inquiring about.And can use by mobile phone whenever and wherever possible, need not to rely on computer and the Internet, also be convenient to the record and the preservation of cell phone bill.After tested, the fastest can in one minute, the finishing of bill that the present invention's inquiry is once complete, and use message search, and need to send 5 notes at least, therefore need cost 5 minutes even more.
Description of drawings
Fig. 1 is a structural representation of the present invention;
Fig. 2 is the workflow diagram of the embodiment of the invention.
Being labeled as in the accompanying drawing: 1-subscriber information module, 2-download module, 3-business support server, 4-enquiry module, 5-detection module, 6-matching module, 7-memory module, 8-display device.
Embodiment
The present invention is further illustrated below in conjunction with drawings and Examples, but not as the foundation to the present invention's restriction.
Embodiment
A kind of cell phone bill inquiring device is characterized in that: comprise wireless network, business support server 3 and mobile phone; Also comprise and being arranged on the mobile phone
Download module 2 is used for download and inquiry instruction and template, links to each other with business support server 3 by wireless network;
Enquiry module 4 is used to resolve the query statement that download module 2 is downloaded, and implements query statement by the note and the function of surfing the Net of mobile phone;
Matching module 6 is used for the template that the Query Result and the download module 2 of enquiry module 4 are downloaded is mated, and obtains the bill contents of a project; Matching module 6 comprises except that the bill item purpose amount of money and the identical masterplate of enquiry module 4 Query Result contents, by relatively masterplate and Query Result, draws the bill item purpose amount of money;
Download module 2 links to each other with matching module 6 with enquiry module 4, and matching module 6 links to each other with the memory module 7 of storage matching result, and memory module 7 links to each other with the display device 8 of mobile phone.
Download module 2 also links to each other with subscriber information module 1, and the user profile that subscriber information module 1 provides to download module 2 is the foundation that download module 2 is downloaded content.
Subscriber information module 1 is artificial input or the module of selecting operator, mobile phone card ownership place, mobile phone card brand and user's location message, or number judge for the sms center by mobile phone and user's operator and ownership province assist definite on-site module of user by mobile phone present base station information.
Business support server 3 is inquired about the query statement of the every content of bill and the server of masterplate accordingly for stored user information.
Enquiry module 4 comprises the inquiry of WAP business hall and two kinds of inquiry modes of SMS business hall inquiry, and two kinds of inquiry modes are corresponding with corresponding query statement.
Detection module 5 comprises that starts a module, starts module detecting when not implementing query statement, starts enquiry module 4, implements the detected query statement of not implementing.
Enquiry module 4 also comprises the code conversion module, when using WAP business hall inquiry mode, Query Result is carried out code conversion, the unified UCS2 coded format that is transcoded into.
Workflow of the present invention:
Step S10, in subscriber information module 1, the user selects information such as operator, ownership place, mobile phone card brand;
Step S20, download module 2 is according to the user profile of subscriber information module 1 query statement and the masterplate from the every content of professional supporting device 3 download and inquiry bills; Because bill contains multinomial content, need repeatedly inquire about in several ways, so the query statement of downloading has many.Query statement is divided into two kinds, and a kind of is by SMS business hall inquiry bill item purpose query statement, and a kind of is by WAP business hall inquiry bill item purpose query statement.Wherein the main contents of the query statement by SMS business hall inquiry comprise: 1, the telephone number of SMS business hall is 10086 such as China Mobile; 2, the note command content of business hall reception, instructing as the business hall of inquiry telephone expenses remaining sum is 105.In last example, send content and be 105 note to 10086 and can inquire the note remaining sum; The main contents of the query statement by WAP business hall inquiry comprise: 1, the referral web site of WAP business hall, for example wap.ha.chinamobile.com/yyt/61a.jsp; 2, the access mode of above network address is as GET or POST; When if 3 above access modes are POST, need send to the content of query page; Every corresponding one or more masterplates of instruction.Masterplate is used for mating at the reply content of query statement, therefrom extracts the bill contents of a project.As " your account balance is #BALANCE# to define masterplate.", masterplate and reply content coupling can be obtained BALANCE=13.2 unit;
Step S30, enquiry module order from the query statement of downloading is obtained a query statement, and resolves instruction;
Step S40 if this instruction is by the query statement of WAP business hall inquiry, forwards step S50 to.If this instruction is the query statement by SMS business hall, forward step S80 to;
Step S50, the WAP address of appointment in the access queries instruction obtains the content of the WAP page of this address.Promptly according to the description of WAP query statement, construct corresponding access request, the inquire address of appointment obtains the WAP content of pages of this address in the visit WAP query statement;
Step S60 mates WAP content of pages and the masterplate that obtains, and obtains the bill contents of a project;
Step S70, because the character code difference of the different WAP pages such as modes such as UCS2, UTF-8, GBK are arranged, therefore needs the statement contents of a project to carry out code conversion, the unified UCS2 that is transcoded into.Forward step S100 then to;
Step S80, transmission content and transmission number according to appointment in the query statement send note to SMS business hall;
Step S90 waits for downlink short message.After receiving note, short message content and masterplate are mated, obtain the bill contents of a project.Because the coded format of note is UCS2, therefore need not to carry out transcoding.Forward step S100 then to;
Step S100, with the bill project content stores that gets access in bill;
Step S110, detection module 5 is checked the query statement that whether has execution or not.If have the query statement of execution or not, forward step S30 to, carry out a new query statement.If all be finished, forward step S120 to;
Step S120, the arrangement bill represents to the user by handset displays equipment (can be mobile phone display screen).