Summary of the invention
For this reason, it may be necessary to provide the scheme that a kind of POS terminal is pushed as the information of Wi-Fi hotspot, existing information push is solved
The problem of structure is complicated, at high cost, flow wastes.
To achieve the above object, a kind of information-pushing method of POS terminal as Wi-Fi hotspot is inventor provided, it is described
POS terminal has the function of Wi-Fi hotspot, the described method comprises the following steps:
POS terminal opens Wi-Fi hotspot function,
POS terminal receives the WiFi connection request of mobile terminal transmission, and sets up WiFi with mobile terminal and connect;
POS terminal receives the network connecting request of mobile terminal, sends a multimedia messages to mobile terminal.
Optionally, " POS terminal receives the network connecting request of mobile terminal, and it is whole to movement to send a multimedia messages
End " includes:
POS terminal receives mobile terminal and initiates a http request, which is redirected to POS terminal built-in services
On the URL of device;
When the URL of POS terminal built-in services device is requested, POS terminal built-in services device sends the corresponding page letter of the URL
Cease mobile terminal.
Optionally, " sending a multimedia messages to information of mobile terminal " includes step:
POS terminal according to the relevant information of mobile terminal inquire the mobile terminal corresponding to account history consumption letter
Breath, and corresponding multimedia messages are sent to mobile terminal according to the history consumer record of the account.
It optionally, further include following steps:
POS terminal forwards the relevant information of the mobile terminal to background server;
It is true according to the relevant information of preset wide area network access rules and mobile terminal institute that POS terminal receives background server
Fixed access authority,
POS terminal is according to the access authority to the open corresponding function of surfing the Net of the mobile terminal.
And it the present invention also provides a kind of POS terminal for carrying out information push using Wi-Fi hotspot, comprises the following modules:
Hot spot opening module:For opening Wi-Fi hotspot function;
Connection establishment module:For receiving the WiFi connection request of mobile terminal transmission, and set up with mobile terminal
WiFi connection;
Network connection sensing module:For detecting the network connecting request of mobile terminal;
Multimedia sending module:After for detecting the network connecting request of mobile terminal when network connection sensing module,
A multimedia messages are sent to mobile terminal.
Optionally, multimedia sending module includes such as lower unit:
Redirect unit:A http request is initiated for receiving mobile terminal, which is redirected to POS terminal
On the URL of built-in services device;
Built-in services device unit:When URL for POS terminal built-in services device is requested, POS terminal built-in services device hair
Give the corresponding page info of the URL to mobile terminal.
Optionally, multimedia sending module further includes for inquiring the mobile terminal according to the relevant information of mobile terminal
The history consumption information of corresponding account, and corresponding multimedia messages are sent to shifting according to the history consumer record of the account
Dynamic terminal.
It optionally, further include following module:
End message forwarding module:For forwarding the relevant information of the mobile terminal to background server;
Access authority receiving module:For receiving background server according to preset wide area network access rules and mobile terminal
Relevant information determined by access authority,
Function of surfing the Net opens module:For opening corresponding function of surfing the Net to the mobile terminal according to the access authority.
It is different from the prior art, above-mentioned technical proposal receives the network connecting request of mobile terminal by POS terminal, concurrently
It send and is played out on multimedia messages to mobile terminal, it is only necessary to which the push of information can be completed in a POS terminal, compared to existing
There is mode, does not need in addition to buy Wifi advertising router, structure is simple, at low cost.In some simple occasions, can be not required to
There is background server to provide content, can directly be pushed using the resource inside POS terminal, reduce system
Complexity.
Specific embodiment
Technology contents, construction feature, the objects and the effects for detailed description technical solution, below in conjunction with specific reality
It applies example and attached drawing is cooperated to be explained in detail.
Please referring to Fig. 2 to Fig. 5, the present embodiment provides a kind of information-pushing method of POS terminal as Wi-Fi hotspot first,
This method can be applied in information transmission system as shown in Figure 2.The system may include having POS terminal 100, mobile terminal
120 and background server 140.Wherein, POS terminal 100 can be Android device etc..POS terminal has generally comprised bank card
It swipes the card module, display module, Keysheet module and communication module for being communicated with banking system etc..POS terminal can be complete
At the on-line payment function of bank card.In the present embodiment, POS terminal further includes having the WiFi mould that can be used as WIFI hot spot
Block, Wi-Fi hotspot can externally send WiFi signal, and other equipment can be set up by search WiFi signal with POS terminal
WiFi connection, after WiFi connection is established, POS terminal and the other equipment having connected can communicate, can carry out information
Interaction.The Wi-Fi hotspot of POS terminal can be encryption (as WPA, WEP are encrypted) or open, other are set if encryption
It could complete to connect for needing to input correct password in connection.
Mobile terminal 120 can be tablet computer or mobile phone etc..Mobile terminal includes display module, can be with display
Mode content is presented to the user.In the present embodiment, mobile terminal further includes having WiFi module, and mobile terminal passes through WiFi
Module can set up WiFi with POS terminal and connect.And information transmission system further includes having background service in the present embodiment
Device 140, certainly, background server 140 be in order to realize more functions, be not it is necessary, in certain embodiments, information
Supplying system can only have POS terminal 100 and mobile terminal 120.Background server 140 and the connection of POS terminal 100 can lead to
It crosses wired or wireless mode to be attached, wired can be cable connection, and wireless connection can pass through POS terminal 100
WiFi module and the WiFi module of background server set up connection.
Since information push typically occurs in the more place of passenger flow, such as market, supermarket, these places generally have
POS terminal.And user generally has the mobile terminals such as mobile phone or plate.When POS terminal will push information to mobile terminal, such as
Shown in Fig. 3, initially enters POS terminal described in step S301 and open Wi-Fi hotspot function, the mobile terminal of such user passes through shifting
WiFi module in dynamic terminal may search for the hot spot of POS terminal offer.User is connecting Wi-Fi hotspot using mobile terminal
When, the WiFi management software carried on mobile terminal can be used and be attached, or in some embodiments, software can be passed through
Realizing automatic connection.Because there are a large amount of Wi-Fi hotspots in existing environment, in order to avoid user is connected to the WiFi of mistake
Hot spot, the SSID of POS terminal can be include specific character title, it is false if SSID name includes market name
It is set as A, then user is when searching for Wi-Fi hotspot, it is seen that the SSID of the Wi-Fi hotspot searched is A, then can carry out Wi-Fi hotspot
Connection.
For Wi-Fi hotspot in connection, mobile terminal can send WiFi connection request, and request is connected to the WiFi heat of POS terminal
Point.If Wi-Fi hotspot is encryption, user needs to input password in connection, and mobile terminal request is same when connection
When send the password, in order to the verifying of Wi-Fi hotspot.Certainly, if verifying does not pass through, WiFi connection can not be carried out and gone forward side by side
The subsequent step of row.After being proved to be successful, the WiFi connection request that S402POS equipment receives mobile terminal transmission is entered step,
And WiFi is set up with mobile terminal and is connect.
After WiFi connection is set up, mobile terminal can send network connecting request to POS terminal by WiFi connection.
This network connecting request, that is, mobile terminal sends network connection to POS terminal, this network connecting request can be browser
Webpage open information etc..Network connecting request is different from WiFi connection, and WiFi connection, which is equivalent to, sets up interface channel, mobile
Terminal can be connected to the network, and there will be no network connecting requests.And network connecting request is carried out, mobile terminal is wanted first
WiFi is set up with POS terminal to connect.S403 is then entered step when POS terminal detects mobile terminal network connection request
Afterwards, POS terminal sends a multimedia messages to mobile terminal.The multimedia messages that POS terminal is sent can be connect by mobile terminal
It receives.Then mobile terminal can receive and play the multimedia messages.These multimedia messages can be video information, text
Information, pictorial information or audio-frequency information, user can receive these information by the display module of mobile terminal, thus
POS terminal is completed to push the information of mobile device.Then the present embodiment receives the network connection of mobile terminal by POS terminal
Request, and send and played out on multimedia messages to mobile terminal, it is only necessary to pushing away for information can be completed in a POS terminal
It send, compared to existing way, does not need in addition to buy Wifi advertising router, structure is simple, at low cost.
POS terminal and mobile terminal realize that network connecting request has various ways, as shown in Fig. 2, network connecting request
It can be what browser module in mobile terminal issued, i.e., user can set when carrying out web browsing using browser to POS
Preparation sends out network connecting request.In certain embodiments, as shown in figure 4, clothes built in one can be provided on a pos device
Business device, built-in services device can be with HTTP server.Then the specific flow chart of the above method can be as shown in figure 5, then user exists
When browsing webpage using browser, S501 can be entered step and send a http request to POS terminal.POS terminal receives shifting
Dynamic terminal initiates a http request, enters step S502 and is redirected to the request on the URL of POS terminal built-in services device.
After redirection, the URL can be re-requested in the browser of step S503 mobile terminal, then POS terminal built-in services
When the URL of device is requested, POS terminal built-in services device sends the corresponding page info of the URL to mobile terminal in step S504.
It can wrap on the corresponding page info of URL containing above-mentioned multimedia messages, advertising information, coupon information or login page.
The embodiment of Fig. 4 be using page info as login page as an example.By built-in services device, POS terminal can be to network
Connection request carries out response and parsing, while sending multimedia messages on the browser of mobile terminal.POS terminal is held simultaneously
It has carried on a shoulder pole hot spot and the function of the content server of multimedia messages is provided.To mobile terminal pushed information content just mainly by
The built-in services device of POS terminal is completed, to save the consumption of the flow of POS terminal and Advertisement Server communication.
And in certain implementations, on login page, the input of username and password can be shown on login page
Frame, user can input the authentication informations such as user name password.After authenticating successfully, mobile terminal will be redirected to gateway
In Web page, and with one property token.Mobile terminal utilizes the token access gateway got;Gateway is to certification
The validity of server inquiry token;Certificate server confirms the validity of token, and gateway, which is sent, to be redirected to mobile terminal,
Make to obtain success page from certificate server, certificate server notifies mobile terminal request success, can normally surf the Internet.Pass through
Token can allow certification safer.
It further include as follows after POS terminal detects mobile terminal network connection request to realize accurately information push
Step:POS terminal according to the relevant information of the mobile terminal inquire the mobile terminal corresponding to account history consumption
Information, and corresponding multimedia messages are sent to mobile terminal according to the history consumer record of the account.The correlation of mobile terminal
Information can be the hardware information of mobile terminal device, such as MAC Address, or be also possible to mobile terminal software information,
The authentication information for the user that login page is sent either subscriber identity information, these information can be associated with using mobile terminal
User information.According to the consumer record of user information, the consumption habit of user can be known, to practise according to the consumption of user
The used push for carrying out message, meets the consumption demand of user.Such as the consumer record of user can be subjected to commodity classification, obtain quotient
The high merchandise classification of the frequency of occurrences in product classification, and corresponding multimedia messages, these multimedias are inquired according to the merchandise classification
Information can be favor information either new product information of the merchandise classification etc., and these multimedia messages are sent to movement
Terminal, user can get the information, and then user can obtain oneself from the multimedia messages according to their needs
The information needed, so as to complete the push of accurately information.
If user is to receive advertising information, the mood of detest may be generated, may result in user's refusal in this way
These information are received, in order to solve this problem, some benefits of user can be given.The present embodiment is opened by the terminal device to user
Logical function of surfing the Net is realized.Specifically, can be after POS terminal detect mobile terminal network connection request, POS terminal is backward
Platform server forwards the relevant information of the mobile terminal;Background server is whole according to preset wide area network access rules and movement
The relevant information at end, determines the access authority of account corresponding to the mobile terminal, and by account corresponding to mobile terminal
Access authority be sent to POS terminal;The access authority of POS terminal account according to corresponding to mobile terminal is to described mobile whole
The open corresponding function of surfing the Net in end.These access authorities can be user and connect the time permission of internet, the range of access
Permission, speed permission of connection etc. can give the longer surf time if user receives the information push of longer time
Deng.Under different permissions, user just enjoys different function of surfing the Net.In this way, by the management of different rights, more convenient for user
Come during mostly participating in information push, so that information push is more effectively.
Above embodiments realize the control to user's function of surfing the Net by POS terminal, can also lead in certain embodiments
Cross control of the background server realization to user's function of surfing the Net.Then after POS terminal detects mobile terminal network connection request,
It further include following steps:POS terminal forwards the relevant information of the mobile terminal to background server;Background server is according to pre-
If wide area network access rules and mobile terminal relevant information, determine account corresponding to the mobile terminal online power
Limit, background server is according to the access authority to the open corresponding function of surfing the Net of the mobile terminal.POS terminal can incite somebody to action at this time
All internet connection requests of mobile terminal are sent to background server, and background server is according to the relevant information of mobile terminal
Open corresponding function of surfing the Net, and judge whether the internet connection request of mobile terminal is to meet online according to the function of surfing the Net
Functional requirement, if met, forward the internet connection request to internet, otherwise, refuses the internet connection request.
It realizes that the function of surfing the Net access authority easy to control to mobile terminal carries out unified management by background server, and passes through
POS terminal realizes that function of surfing the Net control can mitigate the pressure of background server.
In above-mentioned all embodiments, multimedia messages are stored in POS terminal, facilitate POS it is quick push and can
To save flow.Certainly, the multimedia messages in POS terminal can be carried out more by online or offline mode
Newly.Online mode can be updated by the update of background server, offline mode by USB flash disk.
And the present invention also provides a kind of POS terminal 100 based on Wi-Fi hotspot, for pushing information to mobile terminal
120.As shown in Fig. 2, POS terminal 100 includes following module:Hot spot opening module 102:For opening Wi-Fi hotspot function;Even
It connects and establishes module 104:For receiving the WiFi connection request of mobile terminal transmission, and WiFi is set up with mobile terminal and is connected
It connects;Network connection sensing module 106:For detecting the network connecting request of mobile terminal;Multimedia sending module 110:For
After network connection sensing module detects the network connecting request of mobile terminal, a multimedia messages are sent to mobile terminal.
Wherein, mobile terminal can be the common mobile phone with browser or plate etc..Mobile terminal can be used browser into
Row browses, and in the meeting pushed information to browser of POS terminal 100 and is shown or is played.Compared to existing way, do not need another
Outer purchase Wifi advertising router, structure is simple, at low cost.
Wherein, multimedia sending module includes such as lower unit:Redirect unit:One is initiated for receiving mobile terminal
The request is redirected on the URL of POS terminal built-in services device by http request;Built-in services device unit:For POS terminal
When the URL of built-in services device is requested, POS terminal built-in services device sends the corresponding page info of the URL to mobile terminal.It is logical
Crossing built-in services device can be completed the push of information, reduce the application of Advertisement Server, and structure is simple.
In order to realize, accurately information push, these multimedia messages can be associated with the relevant information of user.?
In some embodiments, multimedia sending module further includes for inquiring the mobile terminal institute according to the relevant information of mobile terminal
The history consumption information of corresponding account, and corresponding multimedia messages are sent to movement according to the history consumer record of the account
Terminal.Relevant multimedia messages are determined according to the consumer record of user, so as to the information needed to user, are avoided
The case where transmitting excessive invalid information.
It further include following module to realize management of the POS terminal to terminal access authority:End message forwarding module
114:For forwarding the relevant information of the mobile terminal to background server;Access authority receiving module 116:After receiving
Platform server access authority according to determined by the relevant information of preset wide area network access rules and mobile terminal, function of surfing the Net
Open module 118:For opening corresponding function of surfing the Net to the mobile terminal according to the access authority.POS terminal 100 in this way
The control to mobile terminal Internet access may be implemented, alleviate the pressure of background server.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or the terminal device that include a series of elements not only include those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or end
The intrinsic element of end equipment.In the absence of more restrictions, being limited by sentence " including ... " or " including ... "
Element, it is not excluded that there is also other elements in process, method, article or the terminal device for including the element.This
Outside, herein, " being greater than ", " being less than ", " being more than " etc. are interpreted as not including this number;" more than ", " following ", " within " etc. understand
Being includes this number.
It should be understood by those skilled in the art that, the various embodiments described above can provide as method, apparatus or computer program production
Product.Complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in these embodiments
Form.The all or part of the steps in method that the various embodiments described above are related to can be instructed by program relevant hardware come
It completes, the program can store in the storage medium that computer equipment can be read, for executing the various embodiments described above side
All or part of the steps described in method.The computer equipment, including but not limited to:Personal computer, server, general-purpose computations
It is machine, special purpose computer, the network equipment, embedded device, programmable device, intelligent mobile terminal, smart home device, wearable
Smart machine, vehicle intelligent equipment etc.;The storage medium, including but not limited to:RAM, ROM, magnetic disk, tape, CD, sudden strain of a muscle
It deposits, USB flash disk, mobile hard disk, storage card, memory stick, webserver storage, network cloud storage etc..
The various embodiments described above are referring to the method according to embodiment, equipment (system) and computer program product
Flowchart and/or the block diagram describes.It should be understood that can be realized by computer program instructions every in flowchart and/or the block diagram
The combination of process and/or box in one process and/or box and flowchart and/or the block diagram.It can provide these computers
Program instruction generates a machine to the processor of computer equipment, so that the finger executed by the processor of computer equipment
It enables and generates to specify in one or more flows of the flowchart and/or one or more blocks of the block diagram
The device of function.
These computer program instructions, which may also be stored in, to be able to guide computer equipment computer operate in a specific manner and sets
In standby readable memory, so that the instruction being stored in the computer equipment readable memory generates the manufacture including command device
Product, command device realization refer in one or more flows of the flowchart and/or one or more blocks of the block diagram
Fixed function.
These computer program instructions can also be loaded into computer equipment, so that executing on a computing device a series of
Operating procedure is to generate computer implemented processing, so that the instruction executed on a computing device is provided for realizing in process
The step of function of being specified in figure one process or multiple processes and/or block diagrams one box or multiple boxes.
Although the various embodiments described above are described, once a person skilled in the art knows basic wounds
The property made concept, then additional changes and modifications can be made to these embodiments, so the above description is only an embodiment of the present invention,
It is not intended to limit scope of patent protection of the invention, it is all to utilize equivalent structure made by description of the invention and accompanying drawing content
Or equivalent process transformation, being applied directly or indirectly in other relevant technical fields, similarly includes in patent of the invention
Within protection scope.