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 kinds of typical cell phone bill inquiry services have:
1, through the inquiry of phone customer service hot line
The user listens to cell phone bill through calling the customer service hot line through the mode of automatic speech, or through the manual service mode, by the customer service assistant director to the instruction manual cell phone bill;
2, through the SMS business hall inquiry
The user sends certain content to telecom operators service specified numbers, and the guide of the information that issues according to SMS business hall is sent certain content to particular number, so back and forth, finally obtains Query Result;
3, through the inquiry of WAP (Wireless Application Protocol) business hall
WAP so-called WAP (Wireless Application Protocol) that surfs the Net is a WAP, is a global network communication protocol.Be widely used under multiple cell phone network, service on net being provided;
The WAP website of user capture telecom operators appointment according to the guide of web site url, jumps to corresponding bill interface;
4, through the Internet online business hall inquiry
user is through 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 through authentication after, get into 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 through the inquiry mode of customer service hot line;
2, the inquiry mode through SMS business hall; Because will send certain content to particular number; Be not easy to the user and remember the mode of inquiry, and the general inquiry process need up and down reciprocatingly many notes just can find the note result, in addition because note institute can 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 inquiry;
3, the inquiry mode through the 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 through redirect repeatedly.The cell phone bill content possibly 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 through mobile phone.
Summary of the invention
the objective of the invention is to, and 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 through wireless network;
Enquiry module is used to resolve the query statement that download module is downloaded, and implements query statement through 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, through 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
above-mentioned cell phone bill inquiring device, said 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
aforesaid cell phone bill inquiring device; Said 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, assist definite on-site module of user through mobile phone present base station information for the sms center through mobile phone number comes the operator and ownership province of judges.
In
aforesaid cell phone bill inquiring device, said business support server is that stored user information is inquired about the query statement of bill each item content and the server of masterplate accordingly.
In
aforesaid cell phone bill inquiring device, said 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
aforesaid cell phone bill inquiring device, said 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
aforesaid cell phone bill inquiring device, said 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, combined to be used for the download module of download and inquiry instruction and template, be used to resolve the query statement that download module is downloaded, and through 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 through 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.Through test, the present invention inquires about the bill of one whole and can in one minute, accomplish the soonest, and uses message search, need send 5 notes at least, therefore needs 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
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
are further described the present invention below in conjunction with accompanying drawing and embodiment, 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 through wireless network;
Enquiry module 4 is used to resolve the query statement that download module 2 is downloaded, and implements query statement through 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, through 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, assist definite on-site module of user through mobile phone present base station information for the sms center through mobile phone number comes the operator and ownership province of judges.
business support server 3 is inquired about the query statement of bill each item content 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 professional supporting device 3 download and inquiry bill each item contents; 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 through SMS business hall inquiry bill item purpose query statement, and a kind of is through WAP business hall inquiry bill item purpose query statement.Wherein the main contents of the query statement through 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 like 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 through 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 like 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 to 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 yuan;
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 through the query statement of WAP business hall inquiry, forwards step S50 to.If this instruction is the query statement through 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 matees the WAP content of pages and the masterplate that obtain, obtains the bill contents of a project;
step S70 because the character code of the different WAP pages is different, 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, whether detection module 5 inspections have the query statement of 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 through handset displays equipment (can be mobile phone display screen).