Summary of the invention
In view of this, the present invention is primarily aimed at some problems of above-mentioned proposition, has proposed a kind ofly can carry out the system of information issue based on wireless router, thereby has made that the specific aim of information issue is stronger, and accuracy is also higher.This system comprises client, wireless router, Internet Service Provider (ISP) and WEB application server.Wherein said client is meant the terminal of the radio access module that contains Wi-Fi or WiMax or its derivatives.Its major function is the search wireless network, connect corresponding wireless network then, after the successful connection, client is initiated the HTTP request through wireless router, client is behind the result of the parent page of the request of receiving and information page, and the browser of client shows described result.The generation that the major function of described wireless router provides the routing forwarding of wireless access (AP) service, packet and is used for the script of information issue, and return to client after script is inserted into the HTTP request results.Described Internet Service Provider (ISP) mainly provides internet (Internet) access service, makes wireless router be linked into internet (Internet) via Asymmetrical Digital Subscriber Line (ADSL) or other connected mode.The major function of described WEB application server is the request that is used for reception information issue script, and analyze the back according to the positional information of URL(uniform resource locator) (URL) information of client terminal input, wireless router and web page contents and generate and want information releasing, and will information releasing return to client.
The invention provides a kind of client, it comprises and is used for searching for wireless network, connecting wireless network and wireless router carries out the Wi-Fi of radio communication or the radio access module of WiMax or its derivatives by the network signal of search wireless router, and initiates the HTTP request, and will return the result of request and browser (browser) that information releasing shows.
The invention provides a kind of wireless router, it comprises the central processing unit (CPU) of being responsible for data processing; The flash memory (flash) that under situation about not powering up, can keep canned data for a long time, the characteristics of its existing read-only memory (ROM), again have very high access speed and also be easy to wipe and rewriting, power consumption very little; Be used to store the synchronous DRAM (SDRAM) of dynamic data; Be used to finish the Switching Module (switch) of the function of exchanges data; Be used for the Ethernet interface that is connected with external the Internet; Be used to strengthen the wireless antenna of wireless signal; Be used to show the indicator light of the operating state of wireless router.
The invention provides a kind of wireless router, it has not only comprised the included parts of above-mentioned general wireless router, and it has also comprised (IP) packet filtration parts (netfilter/iptables) and act on behalf of parts (proxy) between net.Netfilter/iptables is mainly used in the HTTP through wireless router is asked to be transmitted to act on behalf of parts.Acting on behalf of parts receives after the HTTP request that forwards, its Internet Service Provider (ISP) to the outside sends request, after obtaining request results, the agency generates the code that is used to release news according to router id information, and the code with this generation joins in the described HTTP request results then.Can in the web application server, inquire the positional information of router by this router id.
The invention provides a kind of web application server, it has comprised the message processing module that is used for the request of response message issue script; Be used for extracting the data-mining module of keyword from the original web page; The route-map memory module of storage router ID and router position information corresponding relation; The information content memory module of storage key and information releasing content relation; The transmit time segments memory module is used for the transmit time segments memory module of storage key and the relation of transmission frequency and time period; The expression forms of information memory module of information releasing content and expression forms of information relation is wanted in storage.The keyword that message processing module obtains according to data-mining module earlier.Data mining, its essence are to use serial of methods to excavate, analyze data to the data in data or the data warehouse, therefrom discern and extract implicit, potential Useful Information, as data are summarized and overview; According to disaggregated model to the data sets classification; According to the different characteristic of data, it is divided into different classes; Find between the feature or the direct relation of interdependence of data is a correlation rule; Seek observed result and the direct significant difference of reference amount.Extract content from information content memory module then, extract the last information releasing content of wanting of form of expression generation from the expression forms of information module and return to wireless router.
The invention provides the method that a kind of system based on wireless router carries out the information issue, this system is made of client, wireless router, Internet Service Provider (ISP) and web application server, and this method comprises the steps:
Step S1) HTTP request step, wherein said client is initiated the HTTP request by wireless router, and described HTTP request step specifically comprises:
1-1) client client open any browser, the input network address is with browsing page;
1-2) browser is submitted the HTTP request to;
1-3) wireless router is received the HTTP request that browser is submitted to, and analyzes client URL information.
Step S2) information issue determining step, wireless router judges whether that according to relevant configuration information needs release news, and releases news if desired and then forwards step S4 to), otherwise proceed to step S3);
Step S3) information is obtained and is represented step, and wireless router obtains web information by the Internet Service Provider, and returns to client showing by wireless router, and described information is obtained and represented step and specifically comprise:
3-1) wireless router is transmitted to Internet Service Provider (ISP) with request;
3-2) Internet Service Provider (ISP) obtains web information from corresponding website, and will return to wireless router from the web content of pages that Website server obtains;
3-3) wireless router returns to client with the web content of pages;
3-4) client obtains the web content of pages and shows on browser.
Step S4) step is transmitted and is acted on behalf of in request, and wireless router is realized the forwarding of HTTP request and return to client by acting on behalf of will be used to generate after the script that releases news inserts the HTTP request results that described request is transmitted and acted on behalf of step and specifically comprises:
After 4-1) wherein said wireless router is received the request of client initiation, will ask to be transmitted to Agent by netfilters/iptables;
4-2) Agent elder generation instead of client is initiated the HTTP request to destination server, obtains parent page code (being the HTTP request results);
4-3) next, read the configuration in the wireless router, determine whether and to add the script that releases news at this HTTP request,, directly parent page code (being the HTTP request results) is returned to client if do not need;
4-4) otherwise, Agent will be used for generating the script that releases news and be inserted into parent page code (HTTP request results) according to the wireless router id information, then the code after adding together be returned to client.
Step S5) information processing step, the web application server receives the information from client, carries out returning to client after the respective handling, and described information processing step specifically comprises:
5-1) the client script that is used for information issue sends to the web application server by wireless router with page info and router id information;
5-2) message processing module of wherein said web application server obtains router id from the script of information issue, and it obtains the positional information of router from the route-map memory module according to router id then;
5-3) data-mining module of wherein said web application server obtains the parent page content by the script of information issue, goes out correspondent keyword according to router position information or parent page contents extraction then;
5-4) message processing module goes memory module Query Information content according to described keyword, and keyword and corresponding informance directly relation depend on time, router position, visitor IP information;
If 5-5) inquiry obtains the information content, the form of expression of then removing form of expression module Query Information again according to keyword;
5-6) after the form of expression that obtains the information content and information, return to client after generating last content of pages.
Step S6) information generates and step display, and client terminal will show the parent page content and want the information releasing content that described information generates with step display and specifically comprises in order according to the script that releases news:
6-1) the web application server receives the request that the script that is used for information issue sends, and generates new page info according to page info and router id information, promptly generates and wants information releasing;
6-2) the web application server will information releasing (being the Web content of pages) be transmitted to client through wireless router;
6-3) browser of wireless terminal will information releasing by the demonstration of the Web page.
According to a preferred embodiment of the invention, wherein said web server is the WiWide application server.
According to the description of above technical scheme, the present invention has following feature:
1: the present invention can provide the information of the multiple form of expression for the information publisher, comprises forms such as literal, picture, flash and video.
2: the present invention can control the sequencing of wanting information releasing and actual pages to show, both can show before actual pages, also can show after actual pages.
3: the present invention can control the position that is arranged in the page of wanting information releasing
4: the present invention is by data mining, and technology such as participle can be carried out information issue semantically.
5: the present invention can control information the period and the frequency of issue.
6: the present invention can be according to the position of the point-device positioning client terminal of information of wireless router, and the specific aim of information releasing is very strong like this, and precision will be far longer than locatees according to client ip information.
7: the present invention can support multiple client, as long as client has the radio access module of Wi-Fi or WiMax or its derivatives, comprises the terminal of the radio access module of the various Wi-Fi of containing such as PC, PSP, mobile phone or WiMax or its derivatives.
Other advantage of the present invention, target and feature will be set forth to a certain extent in the following description, and to a certain extent, based on being conspicuous to those skilled in the art, perhaps can obtain instruction from the practice of the present invention to investigating hereinafter.Target of the present invention and other advantages can be passed through following specification, claims, and the specifically noted structure realizes and obtains in the accompanying drawing.
Embodiment
The invention provides a kind of system that can carry out the information issue based on wireless router.In the process that this inventive method of enforcement information of carrying out is issued, used wireless router, Web Application Server, client (as long as contain the terminal of the radio access module of Wi-Fi or WiMax or its derivatives, and ISP the terminal that comprises the radio access module of the various Wi-Fi of containing such as PC, PSP, mobile phone or WiMax or its derivatives).
Fig. 1 shows the system principle diagram according to wireless router of the present invention.System shown in Figure 1 mainly comprises four parts: 1) wireless terminal: the terminal that refers to contain the radio access module of Wi-Fi or WiMax or its derivatives.Its major function is to search for wireless aps earlier, connects corresponding wireless router then, initiate the http request through wireless router after the successful connection, and the result that will ask shows at wireless terminal.2) wireless router: its main function is the generation of the script of wireless access (AP), route and information issue.It mainly comprises wireless communication module, central processing unit, IP packet filtration parts, agency and ethernet interface module.The detailed structure of wireless router illustrates referring to Fig. 2.3) Internet Service Provider (ISP): it mainly provides internet (Internet) access service, so that make wireless router be linked into internet (Internet) via Asymmetrical Digital Subscriber Line (ADSL) and other connection.4) web application server: its structure chart as shown in Figure 7, main function is the request of reception information issue script, and analyze the back according to the positional information of URL(uniform resource locator) (URL) information of client terminal input, wireless router and web page contents and generate and want information releasing, and will information releasing return to client.Wherein want the generative process of information releasing, be according to URL(uniform resource locator) (URL) information of client terminal input, the positional information of wireless router specifically, web page contents is carried out page analysis and one or more keyword is extracted in data mining, and last generating according to the one or more keywords that extract wanted information releasing.
According to a preferred embodiment of the invention, this system carries out the information issue based on wireless router, thereby makes that the specific aim of information issue is stronger, and accuracy is also higher.This system comprises client, wireless router, Internet Service Provider (ISP) and WEB application server.Wherein said client is meant the terminal of the radio access module that contains Wi-Fi or WiMax or its derivatives.Its major function is the search wireless network, connect corresponding wireless network then, after the successful connection, client is initiated the HTTP request through wireless router, client is behind the result of the parent page of the request of receiving and information page, and the browser of client shows described result.The generation that the major function of described wireless router provides the routing forwarding of wireless access (AP) service, packet and is used for the script of information issue, and return to client after script is inserted into the HTTP request results.Described Internet Service Provider (ISP) mainly provides internet (Internet) access service, makes wireless router be linked into internet (Internet) via Asymmetrical Digital Subscriber Line (ADSL) or other connected mode.The major function of described WEB application server is the request that is used for reception information issue script, and analyze the back according to the positional information of URL(uniform resource locator) (URL) information of client terminal input, wireless router and web page contents and generate and want information releasing, and will information releasing return to client.Wherein want the generative process of information releasing, be according to URL(uniform resource locator) (URL) information of client terminal input, the positional information of wireless router specifically, web page contents is carried out page analysis and one or more keyword is extracted in data mining, and last generating according to the one or more keywords that extract wanted information releasing.
According to a preferred embodiment of the invention, client comprises and is used for searching for wireless network, connecting wireless network and wireless router carries out the Wi-Fi of radio communication or the radio access module of WiMax or its derivatives by the network signal of search wireless router, and initiates the HTTP request, and will return the result of request and browser (browser) that information releasing shows.
Fig. 2 shows the structure chart according to wireless router of the present invention.According to the present invention, this wireless router mainly comprises the central processing unit (CPU) of being responsible for data processing; The flash memory (flash) that under situation about not powering up, can keep canned data for a long time, the characteristics of its existing read-only memory (ROM), again have very high access speed and also be easy to wipe and rewriting, power consumption very little; Be used to store the synchronous DRAM (SDRAM) of dynamic data; Be used to finish the Switching Module (switch) of the function of exchanges data; Be used for the Ethernet interface that is connected with external the Internet; Be used to strengthen the wireless antenna of wireless signal; Be used to show the indicator light of the operating state of wireless router, or the like.
Not only comprised the included parts of above-mentioned general wireless router according to wireless router of the present invention, it has also comprised (IP) packet filtration parts (netfilter/iptables) and act on behalf of parts (proxy) between net.Netfilter/iptables is mainly used in the HTTP through wireless router is asked to be transmitted to act on behalf of parts.Acting on behalf of parts receives after the HTTP request that forwards, its Internet Service Provider (ISP) to the outside sends request, after obtaining request results, the agency generates the code that is used to release news according to router id information, and the code with this generation joins in the described HTTP request results then.Can in the web application server, inquire the positional information of router by this router id.
Fig. 7 shows the block diagram according to web application server of the present invention, and it has comprised the message processing module that is used for the request of response message issue script; Be used for extracting the data-mining module of keyword from the original web page; The route-map memory module of storage router ID and router position information corresponding relation; The information content memory module of storage key and information releasing content relation; The transmit time segments memory module is used for the transmit time segments memory module of storage key and the relation of transmission frequency and time period; The expression forms of information memory module of information releasing content and expression forms of information relation is wanted in storage.The keyword that message processing module obtains according to data-mining module earlier.Data mining, its essence are to use serial of methods to excavate, analyze data to the data in data or the data warehouse, therefrom discern and extract implicit, potential Useful Information, as data are summarized and overview; According to disaggregated model to the data sets classification; According to the different characteristic of data, it is divided into different classes; Find between the feature or the direct relation of interdependence of data is a correlation rule; Seek observed result and the direct significant difference of reference amount.Extract content from information content memory module then, extract the last information releasing content of wanting of form of expression generation from the expression forms of information module and return to wireless router.
Consult Fig. 3, below will be described in detail first preferred embodiment of the present invention.According to first preferred embodiment, the method that provides a kind of system to carry out the information issue based on wireless router, this system is made of client, wireless router, Internet Service Provider (ISP) and web application server, and this method comprises the steps:
Step S1) HTTP request step, wherein said client is initiated the HTTP request by wireless router, and described HTTP request step specifically comprises:
1-1) client client open any browser, the input network address is with browsing page;
1-2) browser is submitted the HTTP request to;
1-3) wireless router is received the HTTP request that browser is submitted to.
Step S2) information issue determining step, wireless router judges whether that according to relevant configuration information needs release news, and releases news if desired and then forwards step S4 to), otherwise proceed to step S3);
Step S3) information is obtained and is represented step, and wireless router obtains web information by the Internet Service Provider, and returns to client showing by wireless router, and described information is obtained and represented step and specifically comprise:
3-1) wireless router is transmitted to Internet Service Provider (ISP) with request;
3-2) Internet Service Provider (ISP) obtains web information from corresponding website, and will return to wireless router from the web content of pages that Website server obtains;
3-3) wireless router returns to client with the web content of pages;
3-4) client obtains the web content of pages and shows on browser.
Step S4) step is transmitted and is acted on behalf of in request, and wireless router is realized the forwarding of HTTP request and return to client by acting on behalf of will be used to generate after the script that releases news inserts the HTTP request results that described request is transmitted and acted on behalf of step and specifically comprises:
After 4-1) wherein said wireless router is received the request of client initiation, will ask to be transmitted to Agent by netfilters/iptables;
4-2) Agent elder generation instead of client is initiated the HTTP request to destination server, obtains parent page code (being the HTTP request results);
4-3) next, read the configuration in the wireless router, determine whether and to add the script that releases news at this HTTP request,, directly parent page code (being the HTTP request results) is returned to client if do not need;
4-4) otherwise, Agent will be used for generating the script that releases news and be inserted into parent page code (HTTP request results) according to the wireless router id information, then the code after adding together be returned to client.
Step S5) information processing step (as shown in Figure 4), the web application server receives the information from client, carries out returning to client after the respective handling, and described information processing step specifically comprises:
5-1) the client script that is used for information issue sends to the web application server by wireless router with page info and router id information;
5-2) message processing module of wherein said web application server obtains router id from the script of information issue, and it obtains the positional information of router from the route-map memory module according to router id then;
5-3) data-mining module of wherein said web application server obtains the parent page content by the script of information issue, goes out correspondent keyword according to router position information or parent page contents extraction then;
5-4) message processing module goes content storage module Query Information content according to described keyword, and keyword and corresponding informance directly relation depend on time, router position, visitor IP information;
If 5-5) inquiry obtains the information content, the form of expression of then removing form of expression module Query Information again according to keyword;
5-6) after the form of expression that obtains the information content and information, return to client after generating last content of pages.
Step S6) information generates and step display, and client terminal will show the parent page content and want the information releasing content that described information generates with step display and specifically comprises in order according to the script that releases news:
6-1) the web application server receives the request that the script that is used for information issue sends, and generates new page info according to page info and router id information, promptly generates and wants information releasing;
6-2) the web application server will information releasing (being the Web content of pages) be transmitted to client through wireless router;
6-3) browser of wireless terminal will information releasing by the demonstration of the Web page.
Consult Fig. 5, will be described, a kind of method of carrying out the information issue based on wireless router is provided, may further comprise the steps second preferred embodiment of the present invention:
1) the client client connects wireless router;
2) client client open any browser, the input network address is with browsing page;
3) browser is submitted the HTTP request to;
4) at wireless router, after wireless router is received the HTTP request of client, forwarding, agency that wireless router realization HTTP asks and the script that will be used for the information issue join the result of HTTP request, and the HTTP request results that will add behind the script returns to client; This step specifically comprises
4-a): on wireless router, utilize netfilter/iptables that the HTTP request is forwarded to the specific parts of acting on behalf of;
4-b): act on behalf of parts and send request, act on behalf of parts then and obtain request results to destination server;
4-c): act on behalf of parts and generate according to the wireless router id information and be used for information issue script and join the HTTP request results;
4-d): wireless router returns to client with having added the HTTP request results that is used for information issue script;
5) script that is used for information issue in client sends to the web application server with the client with the website of browsing and client-side information and router id information;
6) after the web application server receives the request that the script that is used for information issue sends, generate and want information releasing; This step specifically comprises:
6-a): the web application server receives the request that the script that is used for information issue sends;
6-b): the web application server extracts URL(uniform resource locator) (URL) information;
6-c): the web application server generates according to URL(uniform resource locator) (URL), client ip information and router position information and wants information releasing;
7) the web server will information releasing return to client terminal;
8) client browser will information releasing show at the web page.
Consult Fig. 6 now, show the schematic flow sheet of third preferred embodiment of the invention, its flow process is:
The first step: the terminal searching wireless network connects certain wireless router then.
Second step: the client imports the target network address, with browsing page then by the terminal open any browser.
The 3rd step: browser is submitted the HTTP request to.
The 4th step: wireless router is received the HTTP request that browser is submitted to.
The 5th step: wireless router judges whether that according to relevant configuration information needs release news.Release news if desired and then jumped to for the tenth step, otherwise
The 6th step: wireless router is transmitted to Internet Service Provider (ISP) with request.
The 7th step: Internet Service Provider (ISP) obtains web information from corresponding website, and will return to wireless router from the web content of pages that Website server obtains.
The 8th step: wireless router returns to client with the web content of pages.
The 9th step: client obtains the web content of pages and shows on browser; Finish.
The tenth step: on wireless router, utilize netfilter/iptables that the HTTP request is forwarded to specific Agent; Agent sends request to destination server, and Agent obtains request results then; Agent generates according to the wireless router id information and is used for information issue script and joins the HTTP request results; Wireless router returns to client with having added the HTTP request results that is used for information issue script;
The 11 step: the script that client is used for the information issue sends to web application server (being the WiWide application server in this embodiment) by wireless router with page info and router id information.
The 12 step: web application server (being the WiWide application server in this embodiment) receives the request that the script that is used for information issue sends, generate new page info according to page info and router id information, promptly generate and want information releasing, and transmit http response.
It is as follows wherein to generate new page info step according to page info and router id information:
The message processing module of web application server obtains router id from the script of information issue, it obtains the positional information of router from the route-map memory module according to router id then.
The data-mining module of web application server obtains the parent page content by the script of information issue, goes out correspondent keyword according to router position information or parent page contents extraction then.
Message processing module goes the Query Information content according to described keyword to content storage module, and keyword and corresponding informance directly relation depend on time, router position, visitor IP information.If inquiry obtains the information content, the form of expression of then removing form of expression module Query Information again according to keyword.After the form of expression that obtains the information content and information, return to client after generating last content of pages.
Wherein want information releasing content take the form of diversifiedly, both can be literal and picture, also can be the forms of expression such as flash or video.The example of information releasing form is shown in Fig. 8,9.The information publisher can customize the content and form of wanting information releasing according to the demand of oneself.And the information publisher can do the issue of accurate information according to the position of wireless router, and the colleague can also be at the same page at the different different information of wireless router issue.Such information issue will be very targeted, and precision will be far longer than the situation of locating according to client ip information.
The 13 step: the web application server will information releasing (being the Web content of pages) be transmitted to wireless terminal through wireless router.
The 14 step: the browser of wireless terminal shows by the Web page will information releasing.
According to the present invention, can control the sequencing of wanting information releasing and actual pages to show by the script that is used for the information issue, both can before actual pages, show, also can after actual pages, show.Simultaneously, can also control the position that is arranged in the page of wanting information releasing.
The present invention is by data mining, and technology such as participle can be carried out information issue semantically.The period and the frequency of meanwhile all right control information issue.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and obviously, those skilled in the art can carry out various changes and modification and not break away from the spirit and scope of the present invention the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.