Embodiment
The invention provides a kind of mobile terminal data web archive system and method, moving communicating field is combined with internet arena, backup server and database server are set on the internet, the Short Message Service Gateway of backup server and mobile communications network interrelates, back up desiring the mode of backed up data in the user terminal by short message, and response user's inquiry and download request, Backup Data is reduced to the user by short message again.In addition, edit and download request in order to use multiple terminal equipment, the present invention can also be provided with Website server on the internet, be connected with database server with backup server, and being connected to user's PC by fire compartment wall and Internet, the user can use a computer the operation of Backup Data being carried out various editors, modification and download.
Referring to Fig. 2, it is the embodiment schematic diagram of mobile terminal data web archive provided by the present invention system.This system comprises portable terminal 202 and SIM card (or UIM card) 201, base station 203, switch 204, sms center 205, Short Message Service Gateway 206, backup server 207, Website server 208, database server 209, fire compartment wall 210 and personal computer terminal 211 compositions.
Wherein, backup server 207 is connected with Short Message Service Gateway 206, be used to back up the data of described portable terminal, database server 209 is used to store user's Backup Data, described portable terminal 202 has the SIM card (UIM card) 201 of supporting the STK function (the card end comprises coding module that terminal data is encoded and return data is carried out decoding module), need be converted to messaging format by Backup Data, write database by mobile network appliance via backup server 207, and can realize that the download of data recovers through anti-process, Website server 208 is connected with database server 209 with backup server 207, and be connected to the Internet by fire compartment wall 210, be connected to personal computer 211 again.
Certainly, if only need use portable terminal to inquire about or download the time marquis of Backup Data, Website server and fire compartment wall and personal computer have not just needed, and use them just to use a computer for convenience of the user and edit, inquire about or download Backup Data.
Referring to Fig. 3, be the structural representation of the backup server among Fig. 2, comprise: Short Message Service Gateway communication module 2071, configuration module 2072, coded combination module 2073, decoder module 2074, code conversion module 2075, database communication module 2076 and database retrieval module 2077.
Wherein, Short Message Service Gateway communication module 2071 links to each other with described Short Message Service Gateway 206, be used to finish and Short Message Service Gateway between communication and transceive data, it receives short message by receiving process/thread, be responsible for sending SMS message by another or a plurality of transmission process/thread, mainly finish and Short Message Service Gateway between Data Receiving, data distribution, functions such as data transmission; Configuration module 2072 links to each other with database communication module 2076 with Short Message Service Gateway communication module 2071, be used to finish the initialization connection of Short Message Service Gateway, the short message gateway server address configuration, short message encoding mode and code length setting, Service-Port is provided with, connect overtime setting, parameters such as database configuration; Coded combination module 2073 links to each other with described communication module, and the combination of the different coding piece content when being used to recover data download is to form note, the content of note is GB, UCS2, the combination of coding such as ASCII, it is the data provider of the transmission process of Short Message Service Gateway communication module 2071; Decoder module 2074 links to each other with described communication module, be used for the note data that the receives analysis of decoding, receive the data of Short Message Service Gateway communication module 2071 transmissions when system after, to the digital coding of the note analysis of decoding, decomposite each data block contents of Unified coding according to different decoding processes, it is the data receiver of the receiving process of Short Message Service Gateway communication module 2071; Code conversion module 2075 links to each other with decoder module with described coded combination module, be used for the database data of storage and the note data of transmission are carried out format conversion, be converted to the messaging format of server end storage format or transmission, for example, when communicating the book data backup, short message data is changed, extract each the address book information that wherein comprises, as number, name, classification, mark etc., be combined into the server end storage format, back up preservation so that submit to back-end data base, and when data were recovered to download, the data that will extract according to downloading request were messaging format according to the GSM03.40 protocol conversion from database; Database communication module 2076 links to each other with described code conversion module 2075, is used for the Backup Data through described code conversion module 2075 conversions is write database, and the customer requirements data downloaded is formed search condition, and receives the data that retrieve; Database retrieval module 2077 links to each other with described database communication module 2076, be used for data are carried out the retrieval of different modes and condition, and from database, extract data according to search condition, for example, name card pad is carried out the inquiry of name or number, user at the mobile phone end downloads Backup Data if desired, then needs to send download request to server end, and system is by database retrieval module 2077 this user's data of inquiry and return data records.
Referring to Fig. 4, be the structural representation of the Website server among Fig. 2, comprise security authentication module 2081, order analysis processing module 2082, database communication module 2083, database retrieval module 2084 and backup server communication module 2085.
Wherein, security authentication module 2081 is used to verify user's access rights; 2083 pairs of user's request execution commands of order analysis processing module by checking; The 2083 response user requests of database communication module also provide the user right data; Database retrieval module 2084 is carried out query requests, the Backup Data in the Query Database; Backup server communication module 2085, the request of response user's download is communicated by letter with backup server.
In practical operation, after the user submits solicit operation to, access rights by security authentication module 2081 checking users, security authentication module 2081 calls database communication module 2083, carry out the retrieval of permissions data, the data that security authentication module 2081 verifications are returned, by after, allow user access, operation according to the user requires call instruction analysis and processing module 2082, if be editor, query manipulation then calls database communication module 2083 and database retrieval module 2084 successively, carry out the inquiry and the edit operation of database, if user's operation requires then to call the database correlation module for download command, at first carry out the retrieval of data, call backup server communication module 2085 then, the data that retrieve are passed to backup server 207 with the form of data flow.
Referring to Fig. 5, flow chart for the present invention's mobile terminal data web archive method, at first portable terminal receives user's request, and according to request type generation keyword (step 501), when if user's request is backup request, terminal is encoded Backup Data by coding module, add the keyword of backup request then, be combined into short message, when if user's request is query requests, terminal is encoded querying condition by cataloged procedure, add the keyword of query requests then, be combined into short message, if when user's request was download request, terminal was combined into short message with download request; With described keyword and related data packing, and with short message format transmission (step 502), backup server receives this short message and this packing data of decoding, analyze keyword to determine request type (step 503), if backup request, then data content is converted to storage format and is stored into database, if query requests, then in database, inquire about and return results to terminal in the mode of short message according to querying condition, if download request, then carry out data base querying according to the download condition, and with qualified record with short message way, send to terminal by Short Message Service Gateway, the corresponding decoder module of terminal utilization stores reduction of data into corresponding position.
Wherein saidly data content is converted to storage format is stored into database, comprise the steps: to analyze data type according to data content; According to data type data content is decomposed; The decomposed data content is converted to storage format to be stored in the database.
Wherein saidly carry out data base querying, and qualified record is sent to portable terminal through Short Message Service Gateway, comprise the steps: to retrieve qualified data according to downloading the condition query database according to the download condition; Qualified data are converted to messaging format; Data after the conversion are made up and add data type sign; Note data after the combination is sent to Short Message Service Gateway, and Short Message Service Gateway is sent to portable terminal with note, and the corresponding decoder module of terminal utilization stores reduction of data into corresponding position.
The type of user request can comprise backup, inquiry and download request etc., the definition respectively as required and in advance of its keyword, as be defined as BK, CK all can.Referring to Fig. 6, for ask different disposal process of the present invention according to dissimilar users.When system provided by the invention (step 601) when short messaging gateway receives the Backup Data of SIM card, system decodes to short message, analyze keyword, determine action type (step 602), if action type does not belong to the native system process range, then abandon this information (step 603), if operation belongs to the system handles scope, then carry out the judgement of action type, whether belong to user data backup operation (step 604), if belong to this operation, then analyze the content (step 605) of backup, and be written to step 606 in the database), for the operation requests of non-backup, if query requests (step 607), need also to judge whether the data for inquiry require to download (step 608), if not download request, analysis and consult content (step 609) so, carry out data base querying (step 610), and return data.For download request (step 609), then in database, carry out user information retrieval (step 610) according to information, if there is this information (step 611), retrieve after data compress and pack, the result is sent to portable terminal (step 613) through short message gateway, if do not have this information record (step 611) in the database, then carry out null record prompting (step 612), and send to portable terminal (step 613).
Backup method provided by the present invention, need be at the mobile phone end to desiring backed up data and pack and being converted to messaging format, the data format of packing can define as required, Figure 7 shows that an embodiment, be used to explain data processing form of the present invention, in Fig. 7-1, the packet format of data backup is message header (keyword) with BK, record number and record are as message body, record the type of request, name, telephone number, data such as the grouping information of number, record can be set to regular length, between record 1 and record 2, separator can be set, can not be provided with yet, before record 1, can be marked with N bar record and record total number, be sent to backup server, the data decode of backup server to encrypt way of short messages through mobile network then receiving, carry out authorization check, decomposition data also is stored in the database; The operation requests of recovering to download from browser end as the user, or when the mobile phone end send to recover download command, system inquires data according to user's condition from database, the download command form that the mobile phone end sends is seen Fig. 7-2 and Fig. 7-3, the message header of bag is CKN and CKU, corresponding message body is name download command and number download command, after name download message head, can write down name format code 04 (English) 08 (Chinese character), data transaction after system's handle inquiry becomes the form of data SMS, sends to user mobile phone by mobile network; The data download formats that the mobile phone termination is received is seen Fig. 7-4, and the message header of bag is! SV, record and the additional information of message body for downloading can the record strip number message header after, information such as total number, number of times, total degree, and SIM cards of mobile phones reception note is handled, and finishes data unload function.
For application mode of the present invention, see also following embodiment explanation:
When carrying out the web archive operation, the cellphone subscriber at first selects to carry out the data of web archive, SIM card is converted to Backup Data the form of note, encrypt transmission, note is forwarded to backup server through Short Message Service Gateway, and the server receiving process carries out data decode, decomposites backed up data, backed up data is stored in the database, finishes the web archive function.
Carry out the recovery down operation of data, the present invention has two kinds of schemes to realize.
A kind of is to carry out down operation from the mobile phone end, the user at first selects the download function in the mobile phone menu, SIM card needs the user keyword of data download to be treated to messaging format, SIM card sends this note, note arrives backup server by Short Message Service Gateway, server end decomposes the data that receive, inquire about in database according to keyword wherein, if the data of inquiring, server is according to the messaging format definition of GSM03.40 agreement, data are converted to the form of note, backup server sends this note, through Short Message Service Gateway, sms center, the GSM network sends to the cellphone subscriber, after the SIM card of mobile phone receives note, carry out data processing and storage, finish the function of recovering download.
Another kind of scheme is the mode that customizes on the net, the user can carry out data edition or searches by Website login, determine to recover data downloaded, then by backup server deal with data and transmission, that is to say, the user can login www server, enterprising line data inquiry of browser end or editor, the user selects to want data downloaded, use download function, the request of www server process user is carried out alternately with backup server, backup server is according to the messaging format definition of GSM03.40 agreement, and the data processing that the user is selected is a messaging format; Backup server sends this note, sends to the cellphone subscriber through Short Message Service Gateway, sms center, GSM network, after the SIM card of mobile phone receives note, carries out data processing and storage, finishes the function of recovering download.
Online customization mode is carried out the editor's inquiry and the operation of data from browser end, can reduce the complicated degree of operating on the mobile phone greatly, and is convenient and swift, simple.Do not need the user that mobile phone is operated in whole process, the realization of function is finished by web browser end and server.The more interactive application that is customized to wireless device and the Internet on the net provide the foundation platform and realization mechanism as long as the user obtains authority, can carry out various functions expansions according to user's needs, for example realize functions such as mobile office, Adversaria prompting.
For data backup function of the present invention following several implementation is arranged:
A, single information back-up
The user selects data, and selected a certain needs backed up data selected single information back-up function, and data are sent to server, realize backup.
B, group's information back-up
All data on the current phone screen as a group, are selected group's backup functionality, and the data of this group are compressed encryption, are sent to server, realize backup.
C, full backup
By the full backup function key, certain classification, name card pad for example, all data are converted to messaging format and are sent to server through compression algorithm, realize the backup fully of data in mobile phone.
Recover download function for data following several implementation is arranged: with the cell-phone visiting card volume is example
A, single download of information
User certain contact person's that directly input hope is downloaded on mobile phone name or number, send to backup server with short message mode, server receives this request, searching database, qualified record is sent to mobile phone in the mode of short message, finish download.
B, group's download of information
The user contact person's that directly input hope is downloaded on mobile phone part name or number (fuzzy query) send to backup server with short message mode, and server receives this request, retrieve qualified record, carry out data compression, send to mobile phone, finish download in the mode of short message.
C, the full download
The user selects full download function on mobile phone, send to backup server with short message mode, and server receives this request, retrieves all records of this user, adopts the high efficiency algorithm to carry out data compression, sends to mobile phone in the mode of short message, finishes download.
D, online customization are downloaded
The user logins www server, and behind authorization check, the customization data downloaded of wanting on server realizes online the download by www server and backup server, can realize single download of information, group's download of information, full download function.
With a specific embodiment implementation of the present invention is described below:
The realization of the backup functionality of data:
For example, cellphone subscriber king Dong Dong has selected one group of contact person on the current phone screen, carries out the web archive of data with group's backup mode.The phone number of Wang Dongdong is 13899998888, and his contact person has: see Table one
Name | Mobile phone (M) | Office telephone (O) | Home Telephone (H) |
Zhao Yi | 13512345678 | | |
Money is bright | | 66668888 | |
Sun Shan | 13712345678 | | |
Lee department | | 88886666 | |
Zhou Wu | 13912345678 | | |
Zhao Liu | | | 87654321 |
Table one
After determining to carry out backed up data, SIM card is changed these data according to the form of note, and its data format can be with reference to shown in Fig. 7-1.
Transformation result sees Table two
+ | B | K | 1 | 1 | Zhao Yi 13512345678M | The bright 66668888O of money |
Sun Shan 66668888O | The 88886666O of Lee department | Military 13912345678M of week |
Zhao Liu 87654321H | | |
Table two
This transformation result adds short message centre number, other additional information, form whole short message contents after, SIM card is carried out encryption to short message content, sends to sms center by the mobile network, number is sent on the backup server according to service by Short Message Service Gateway again.Backup server is decoded the data that receive, and decomposites user login information, Backup Data etc., deposits database in.Table three for example
ID | LOGIN_ID (accession number) | LOGIN_PASSWORD (password) | LOGIN_NUM (login times) | LOGIN_TIME (last login time) |
1 | L001 | 12345678 | 4 | 2002-10-02 |
2 | L002 | …… | …… | …… |
Table three (1) user login information table
ID | USER_ID (user number) | LOGIN_ID (accession number) | USER_NAME (address name) | USER_PHONE (user mobile phone number) |
1 | U001 | L001 | Wang Dongdong | 13899998888 |
2 | U002 | L002 | …… | …… |
Table three (2) user message table
ID | USER_ID (user number) | LINKMAN_NAME (name of contact person) | LINKMAN_PHONE (contact phone number) | PHONE_TYPE (telephone class) |
1 | U001 | Zhao Yi | 13512345678 | MOBILE |
2 | U001 | Money is bright | 66668888 | OFFICE |
3 | U001 | Sun Shan | 13712345678 | MOBILE |
4 | U001 | Lee department | 88886666 | OFFICE |
5 | U001 | Zhou Wu | 13912345678 | MOBILE |
6 | U001 | Zhao Liu | 87654321 | HOME |
Table three (3) user ID tables of data
The realization of the recovery download function of data:
1) operation of mobile phone end realizes recovering download function:
The cellphone subscriber can realize on mobile phone that single download of information, group download, full download function.If realize single download of information, can import the user's that will download whole names or whole number; Download if realize the group, can import the user's that will download part name or part number; SIM card is converted to messaging format to the content of input according to the form of Fig. 7-2 and Fig. 7-3 definition.For example, need download to the data of the people of all surname Zhao among the contact person on the mobile phone,, and confirm then in mobile phone end input " Zhao ".SIM card is changed data by messaging format, conversion back data see Table four:
Table four
Download the telephone number of 13 beginnings if desired, then can import 13, by group's backup functionality key, SIM card is changed data by messaging format then, and conversion back data see Table five:
Table five
Transformation result adds other additional information, by SIM card note is mail to sms center, and data enter backup server through Short Message Service Gateway, and server is decoded, and decomposites user's operating data etc.And carry out data base querying according to the content of operating data.After finding data, server is changed Query Result according to the messaging format of Fig. 7-4 definition.
Transformation result such as table six (downloading the contact person's of surname Zhao information):
! | ! | ! | S | V | 1 | 1 | Zhao Yi 13512345678 | Zhao Liu 87654321 |
Table six
Server adds the additional informations such as number of receiving terminal after data transaction finishes, note is mail to Short Message Service Gateway, through the mobile network, is transferred on the mobile phone.After SIM card receives data, carry out data processing, store in the card, finish the recovery download function.
Online customization mode realizes recovering download function:
The user logins on www server, obtains the authority in visit its data district.The user can import the keyword query data, and as input " Zhao " in the name input frame or input " 13 " in the number frame, server accesses from database that name comprises " Zhao " or telephone number comprises the data of " 13 " character; The user can select to download according to the data of listing on the page, and backup server carries out the conversion of the messaging format of data, and note is mail to Short Message Service Gateway, is transferred on the mobile phone.After SIM card receives data, carry out data processing, store in the card, finish the recovery download function.
Backup Data of the present invention can comprise numbering directory, name card pad, note, memo pad, memorandum and storage data etc., and the storage data can be the novels, text of chat record, download etc.
Use system provided by the present invention and method, can generate multiple application model, the for example different machine download in strange land of notepad, the storage of online game chat data, Adversaria prompting and storage data etc., the user can be by editor's account note, reminding short message etc., form with the note data backup sends to backup server, is stored in the database server.For the account note, the user can require to download from mobile phone end or internet browser end, is user-friendly to.For reminding short message, when the operation that the user backs up, the database communication module 2076 of backup server is promptly carried out data processing and reminder time and is triggered processing etc.In arriving reminding during the time, the Time Triggered device is triggered, database communication module 2076 retrieves the data that need prompting by database retrieval module 2077, send to the user by code conversion module 2075, coded combination module 2073, Short Message Service Gateway communication module 2071, short messaging gateway 206 again, finish prompting function.
In addition, the user also can edit, browse, download, customize these data on the net from Internet, and implementation procedure is identical with the foregoing description mode.