Background technology
In recent years, the application of mobile device such as various mobile phone, the PDA that has function of surfing the Net even portable electronic device etc. more and more widely, make that they no longer are simple communication tools, wherein people to utilize these equipment be exactly one of following important development trend as a news receiving terminal.
Want can every day content promptly and accurately with news or information service send on users' the mobile phone, a background server and a client software that is installed on the user mobile phone must be arranged, according to certain mode interaction, realize the delivery system of news content jointly.
In general, mobile device is used for receiving news and compares with traditional computer, and its characteristics are alone arranged, and this just requires must solve following several problems towards the news of mobile device dissemination method regularly, just can reach real practicality or satisfy the purpose of user's needs:
1. because the restriction that the performance of mobile device hardware is connected with network, once the news content of Fa Songing can not be excessive, otherwise download consuming time than growing or terminal software can't correctly be handled;
2. because mobile phone screen is less, and it is limited to represent the space, must subscribes to according to the user and only send the content that he is most interested in;
3. mobile phone is compared with computer, and is stronger with user's carry-on property, and the ordinary people almost can carry mobile phone in 24 hours, so the news briefing of mobile device must realize the repeatedly news briefing timely of whole day;
4. the operation cost of whole system must be cheap.The another kind of simple solution of similar system is at present, adopts all and sends way of short messages by server, triggers client and obtains news; The shortcoming of this mode is exactly the expense costliness.Supposing the system has 1,000,000 grades of users' words, average each user subscribes to 2-3 news channel, upgrade news content every day 5-6 time, and news of the every renewal of each user, server just needs to send out one and triggers note, is that quantity or the consequent expense that sends note every day all can be an astronomical figure so.
Based on these above-mentioned problems, also do not have at present a kind of efficiently, in time, cheaply towards the news of mobile device regularly dissemination method and system, the user usually also can only be passive accept the news that server sends, and can not subscribe to news according to the needs of oneself.
Summary of the invention
At existing defective in the prior art, the object of the present invention is to provide a kind of efficient, promptness strong, operation cost is lower towards the news of mobile device regularly dissemination method and system, and the client on the mobile device can also be subscribed to news channel and issuing time according to the needs of self.
In order to realize the foregoing invention purpose, the technical solution used in the present invention is: a kind of news timing dissemination method towards mobile device may further comprise the steps:
(1) on server, defines the different news channel and the issuing time of this news channel, and generate content and issuing time description document according to this definition;
(2) content and issuing time description document are sent on the mobile device that client is installed;
(3) client on the mobile device is resolved content and issuing time description document;
(4) user subscribes to news channel on the client of mobile device;
(5) after the issuing time that arrival is provided with, timer triggers client, and client is obtained the content of ordered news channel automatically and showed.
Further, in the step 1, when news channel and issuing time were set, each news channel was arranged to an issuing time, and perhaps each news channel is arranged to a plurality of issuing time.
In the step 1, if news channel on the server and issuing time information change, server will regenerate content and issuing time description document and resend to mobile device, make mobile device update content and issuing time description document.
The content and the issuing time description document that generate are encrypted.
Generate different content and issuing time description document at different customer groups.
Further, in the step 2, content and issuing time description document were compressed by server before sending, to reduce the flow of Network Transmission, by it being decompressed after the mobile device reception again.
In the step 2, the send mode of content and issuing time description document takes note to trigger the mode of downloading, the note of sending a special format for the mobile device client by server triggers the client downloads file, the note of described special format is intercepted by client, deletion after resolving, the user can not see this note in inbox.
Further, in the step 2, described content and issuing time description document will be stored in the mobile device after downloading always, and later mobile device obtains news at every turn, all will download automatically according to the timing information in content and the issuing time description document.
Further, in the step 4, after client parsed content in content and the issuing time description document, the user subscribed to all or part of news channel wherein, client records user's subscription information, only the timing information of those news channel that the user is subscribed to adds in the timer.
Further, in the step 5, the timer on the mobile device client is regularly obtained server time, and compares with the mobile device time, calculates both differences, thereby eliminates the time difference when regularly obtaining news.
Further, in the step 1, in content and issuing time description document, not only defined the issuing time of each channel, but also defined the time of delay of each channel; In the step 5, client is carried out random delay according to each channel and is downloaded after resolving content and issuing time description document defined time of delay.
A kind of news timed publishing system towards mobile device, packet server and mobile device also are provided with on server with lower device:
(1) is used on server, defining the different news channel and the issuing time of this news channel, and generates the generating apparatus of content and issuing time description document according to this definition;
(2) be used for content and issuing time description document are sent to dispensing device on the mobile device that client is installed;
On mobile device, also be provided with lower device:
(3) be used to resolve the resolver of content and issuing time description document;
(4) be used on the client of mobile device subscribing to the subscription device of news channel;
(5) be used for from server, downloading the content of obtaining ordered news channel and the timing download apparatus of showing automatically in the issuing time of setting.
Further, in the generating apparatus of described generation content and issuing time description document, also be provided with encrypting module, be used for the content and the issuing time description document that generate are encrypted, correspondingly, in the above resolver of mobile device, also be provided with and be used for deciphering module that content and issuing time description document are decrypted.
Further, also be provided with in the timing download apparatus on mobile device and be used for comparison server time and mobile device difference and the time difference adjusting device the in view of the above time of automatic download adjusted between the time.
Further again, the generating apparatus on the server has not only defined the issuing time of each channel, but also has defined the time of delay of each channel when generating content and issuing time description document; Resolver on the mobile device carries out random delay according to each channel and downloads after resolving content and issuing time description document defined time of delay.
Effect of the present invention is: adopt method and system of the present invention, NEWS SERVER can be efficiently, in time, regularly release news to mobile device at low cost, and the client on the mobile device can also be subscribed to news channel and issuing time according to the needs of self.
Embodiment
Below in conjunction with specification drawings and specific embodiments the present invention is explained in detail.
As shown in Figure 3, a kind of news timed publishing system towards mobile device of the present invention is made of two parts: news briefing server (hereinafter to be referred as server), generally by operator's operation that press service is provided; Receive client (or being called for short client) with news, the client software on the mobile devices such as a kind of mobile phone that is installed in the user, PDA.
In the present embodiment, on server, also be provided with lower device:
(1) is used on server, defining the different news channel and the issuing time of this news channel, and generates the generating apparatus of content and issuing time description document according to this definition;
(2) be used for content and issuing time description document are sent to dispensing device on the mobile device that client is installed;
On mobile device, also be provided with lower device:
(3) be used to resolve the resolver of content and issuing time description document;
(4) be used on the client of mobile device subscribing to the subscription device of news channel;
(5) be used for from server, downloading the content of obtaining ordered news channel and the timing download apparatus of showing automatically in the time of setting.
In the generating apparatus of described generation content and issuing time description document, also be provided with encrypting module, be used for the content and the issuing time description document that generate are encrypted, correspondingly, in the above resolver of mobile device, also be provided with and be used for deciphering module that content and issuing time description document are decrypted.
Also be provided with in the timing download apparatus on mobile device and be used for comparison server time and the mobile device time difference adjusting device that difference is also adjusted the time of automatic download in view of the above between the time.
Generating apparatus on the server has not only defined the issuing time of each channel, but also has defined the time of delay of each channel when generating content and issuing time description document; Resolver on the mobile device carries out random delay according to each channel and downloads after resolving content and issuing time description document defined time of delay.
As shown in Figure 1, a kind of in the news timing dissemination method of mobile device, may further comprise the steps:
1. on server, define the different news channel and the issuing time of this news channel, and generate content and issuing time description document according to this definition.
When server puts into effect, must on the news briefing server, define by the keeper different news channel, to each news channel a plurality of attributes can be set as required, but most important attribute is Id and issuing time.Id is used for identifying uniquely a news channel on server, the user is to be sign with Id to the various operations (as subscribing to, download latest news etc.) of news channel.Issuing time is to be used for defining certain news channel issue number of times and the concrete time of every day, and the client of installing on the mobile device can be downloaded latest news according to this time timing automatic.
In the present embodiment, when news channel and issuing time were set, each news channel can be arranged to an issuing time, also can be arranged to a plurality of issuing time, as was arranged to early that 9:00 and afternoon 16:00 issues twice every day altogether.
After defining the news channel information on the above-mentioned server, must use pass to client someway, in the present embodiment, the mode that we select to send file is transmitted.News channel information is stored in when beginning in the data in server storehouse, extracts when needed to generate content and issuing time description document from database.
As shown in Figure 2, Fig. 2 is the structural representation of content and issuing time description document, when generating content and issuing time description document, consider following 2 points.
(1) to file encryption, can guarantee that like this other softwares except that client can't the resolution file content, thus assurance system and safety of data.Specifically take which kind of cipher mode, need arrange jointly by server and client according to the computing capability of client.
(2) when generating content and issuing time description document, can comprise news channel whole on the server, also can only select the part news channel, can generate different contents and issuing time description document at different users flexibly like this.
In the present embodiment, content that is generated and issuing time description document are the binary file of text through generating after encrypting of structure as shown in Figure 2, the text formatting of description document and encryption method, with the common agreement of client software, the description document structure Design can guarantee maximum terseness, reduces mobile device and upgrades the flow that description document is brought.Be converted into binary file after the encryption other equipment can't be resolved, thereby guaranteed system and safety of data.
In addition, present embodiment can comprise whole news channel and also can comprise the part news channel when generating content and issuing time description document, and making provides the operation of press service more flexible.Such as, tens channels can be set on server, and generate different content and issuing time description document according to different customer group, and can include only topical news for the description document of domestic consumer, then may comprise value-added services such as financial and economic news for the paying customer.
If news channel on the server and issuing time information change, server will regenerate content and issuing time description document and resend to mobile device, make mobile device update content and issuing time description document.
2. content and issuing time description document are sent on the mobile device that client is installed.
Content and issuing time description document need be sent on the mobile device that client is installed by server after generating.The send mode of description document takes note to trigger the mode of downloading, and triggers the client downloads file by server to the note that client sends a special format.The note of special format is intercepted by client, deletion after resolving, and the user can not see note in inbox.
Content and issuing time description document will be stored in the mobile device after downloading always, and later mobile device obtains news at every turn, all will download automatically according to the timing information in content and the issuing time description document.Adopt the benefit of this method to be, server only just sends note in needs update content and issuing time description document, the existing method that all needs to send short messages is compared with release news at every turn, can save the quantity of note greatly, thereby reduce operating cost of operator to a great extent.
In the present embodiment, content and issuing time description document were compressed by server before sending, to reduce the flow of Network Transmission, by it being decompressed after the mobile device reception again.
3. the client on the mobile device is resolved content and issuing time description document.
After content and issuing time description document downloaded on the mobile device, the client software on the mobile device was resolved it, read information wherein.
4. the user subscribes to news channel on the client of mobile device.
By the content that parses in content and the issuing time description document, be the full content on the server sometimes, be partial content sometimes, but all can comprise a lot of news channel that these differ, and to establish a capital be the interested content of user.So the user can select subscription a part of channel wherein according to the hobby of oneself.The subscription information of client software meeting recording user, only the timing information of those channels that the user is chosen adds in the timer.
5. after arrival was provided with the time, timer triggered client, and client is obtained the content of ordered news channel automatically and showed.
When the time on the mobile device arrived the issuing time of stipulating in content and the issuing time description document, the timer of client will go the content of news channel ordered in the download step 4 automatically.In this step, mainly need solve two problems.
(1) time of mobile device and server time have error.Sometimes the time on the mobile device is not necessarily just in time identical with server time, it is inaccurate to cause timer to go to obtain time of news, if acquisition time is early than setting-up time, also not releasing news on the possible server causes and can't obtain, and if acquisition time can destroy the real-time of news too late.In the present embodiment, ways of addressing this issue is: timer can regularly be obtained server time, compares with the mobile device time, calculates difference, thereby eliminates the time difference when regularly obtaining news.
(2) a large amount of concurrent news of obtaining of clients while are brought pressure to server.Address this problem, can utilize the method that random delay time is set to solve.Length for time of delay can if number of users is more, can be provided with long time of delay according to the actual conditions setting; And if number of users is less or the real-time of content is had relatively high expectations, then can be set short time of delay, or is not set time of delay.
In the present embodiment, when client software goes to obtain news content on the server, need postpone to download, to alleviate the concurrent pressure of a large number of users to server.In content and issuing time description document, not only defined the issuing time of each channel, and defined the time of delay of each channel.Client is carried out random delay according to instruction and is downloaded after resolving description document.Be defined in early such as, channel for finance and economics that 8:00 releases news, be 15 minutes time of delay, and client can produce a random number within 0-15 minute, and such as being 9 minutes, then client can postpone to download at 8:09 in 9 minutes.With the random number difference of once downloading by the client generation of different user, therefore at server, all user's requests were evenly distributed in the time period of 8:00-8:15, had avoided the generation on concurrent peak in a flash.
After mobile device regularly gets access to news content, can show in client, read for the user in the mode that both pictures and texts are excellent.
By above embodiment as can be seen, method of the present invention at first generates content and issuing time description document, send it to the client on the mobile device then, realize that on the client on the mobile device news content obtains timer, content descriptor file combines with timer, realizes that jointly news content regularly issues.Method described in the present invention is applicable to the value-added service that press service and customized information are provided to the user.Wherein, different channel (or column) can be provided with the regularly frequency of issuing time according to actual needs flexibly.Such as, can be set to the every day of each issue sooner or later once, thereby realize being similar to the news service of evening paper early; And, can be set to issue in per 20 minutes once for the stronger content of real-time, realize the service of similar stock market scrolling information.
Method and system of the present invention are not limited to the embodiment described in the embodiment, and those skilled in the art's technical scheme according to the present invention draws other execution mode, belongs to technological innovation scope of the present invention equally.