Summary of the invention
In order to solve the problems of the technologies described above, the object of this invention is to provide a kind of information-pushing method based on POS terminal.
Another object of the present invention is to provide a kind of information transmission system based on POS terminal.
The technical solution adopted in the present invention is: a kind of information-pushing method based on POS terminal, and the method comprises:
POS terminal is registered;
The configuration information being used for customized push information is sent to POS terminal pushed information customization server by POS terminal;
According to the configuration information obtained, POS terminal pushed information customization server generates the pushed information meeting the POS terminal corresponding with this configuration information;
The pushed information of generation is sent in POS terminal.
Further, described POS terminal carries out this step of registering, it is specially: after POS terminal start, establish a communications link between POS terminal and POS terminal pushed information customization server, and the facility information of self to be sent on POS terminal pushed information customization server thus to register by POS terminal.
Further, the described configuration information according to acquisition, POS terminal pushed information customization server generates this step of pushed information meeting the POS terminal corresponding with this configuration information, and it comprises:
POS terminal pushed information customization server obtains Back ground Information, and this Back ground Information is generated the source document of pushed information;
According to configuration information, thus obtain the receiving ability of the POS terminal corresponding with this configuration information;
According to the receiving ability of the POS terminal obtained, thus format reduction and conversion are carried out, to generate the pushed information meeting the POS terminal corresponding with this configuration information to the source document of pushed information.
Further, the described pushed information of generation being sent in POS terminal is also provided with following steps before this step:
POS terminal periodic wakeup, and POS terminal judges whether after waking up to reach the time interval sending heartbeat packet, if so, then send heartbeat packet on POS terminal pushed information customization server, otherwise then this POS terminal reenters low power consumpting state.
Further, described is sent to this step in POS terminal by the pushed information of generation, it is specially: after POS terminal pushed information customization server receives heartbeat packet, the pushed information of generation is pushed in POS terminal by the communication server within the time interval that heartbeat packet receives.
Further, described is pushed to this step in POS terminal by the pushed information of generation by the communication server, and it is specially:
According to the type of pushed information, call corresponding Information Push Service unit thus by the communication server, the pushed information of generation be sent in POS terminal, then, judge whether this POS terminal is in low power consumpting state, if, this pushed information is carried out buffer memory by the wireless module then in POS terminal, otherwise, then direct this pushed information to be received.
Further, the method also comprises: the update process of configuration information.
Further, this step of the update process of described configuration information, it comprises:
POS terminal obtains new configuration information, and is saved on specified file by new configuration information;
POS terminal will have the files passe of new configuration information on POS terminal pushed information customization server;
POS terminal pushed information customization server receives the file uploaded, and read in this file the new configuration information stored, then, whether the new configuration information relatively read out is consistent with the configuration information had in POS terminal pushed information customization server, if inconsistent, then upgrade configuration information file corresponding with this POS terminal in POS terminal pushed information customization server, thus generate the configuration information corresponding with this POS terminal.
Another technical scheme of the present invention is: a kind of information transmission system based on POS terminal, and this system comprises:
POS terminal, for sending the configuration information for customized push information, and receives pushed information;
POS terminal pushed information customization server, for the configuration information according to acquisition, thus generates the pushed information meeting the POS terminal corresponding with this configuration information, and is sent in POS terminal by the pushed information of generation;
The communication server, for realizing the communication between POS terminal and POS terminal pushed information customization server.
Further, described POS terminal is by GPRS wireless communication mode and then carries out communication with the communication server and be connected.
The invention has the beneficial effects as follows: by adopting method of the present invention, POS terminal can be made to receive pushed information, make the functional diversities of POS terminal, but also a kind of new propagate method can be provided for trade company, and realize sharing of different merchant information, thus offer convenience for the user of POS terminal.
Another beneficial effect of the present invention is: system of the present invention can realize pushing information in POS terminal, therefore, the function of POS terminal can not only be increased and improve the commerciality of POS terminal, but also a kind of new propagate method can be provided for trade company and realize sharing of different merchant information, thus offer convenience for the user of POS terminal.
Embodiment
As shown in Figure 1, a kind of information transmission system based on POS terminal, this system comprises:
POS terminal, for sending the configuration information for customized push information, and receives pushed information;
POS terminal pushed information customization server, for the configuration information according to acquisition, thus generates the pushed information meeting the POS terminal corresponding with this configuration information, and is sent in POS terminal by the pushed information of generation;
The communication server, for realizing the communication between POS terminal and POS terminal pushed information customization server.And described POS terminal is by GPRS wireless communication mode and then carries out communication with the communication server and be connected.
As shown in Figure 2, the step of a kind of information-pushing method based on POS terminal of the present invention comprises:
POS terminal is registered;
The configuration information being used for customized push information is sent to POS terminal pushed information customization server by POS terminal;
According to the configuration information obtained, POS terminal pushed information customization server generates the pushed information meeting the POS terminal corresponding with this configuration information;
The pushed information of generation is sent in POS terminal.
Be further used as preferred embodiment, described POS terminal carries out this step of registering, it is specially: after POS terminal start, establish a communications link between POS terminal and POS terminal pushed information customization server, and the facility information of self to be sent on POS terminal pushed information customization server thus to register by POS terminal.
Be further used as preferred embodiment, the described configuration information according to acquisition, POS terminal pushed information customization server generates this step of pushed information meeting the POS terminal corresponding with this configuration information, and it comprises:
POS terminal pushed information customization server obtains Back ground Information, and this Back ground Information is generated the source document of pushed information;
According to configuration information, thus obtain the receiving ability of the POS terminal corresponding with this configuration information;
According to the receiving ability of the POS terminal obtained, thus format reduction and conversion are carried out, to generate the pushed information meeting the POS terminal corresponding with this configuration information to the source document of pushed information.
Be further used as preferred embodiment, the described pushed information of generation being sent in POS terminal is also provided with following steps before this step:
POS terminal periodic wakeup, and POS terminal judges whether after waking up to reach the time interval sending heartbeat packet, if so, then send heartbeat packet on POS terminal pushed information customization server, otherwise then this POS terminal reenters low power consumpting state.
Be further used as preferred embodiment, described is sent to this step in POS terminal by the pushed information of generation, it is specially: after POS terminal pushed information customization server receives heartbeat packet, the pushed information of generation is pushed in POS terminal by the communication server within the time interval that heartbeat packet receives.
Be further used as preferred embodiment, described is pushed to this step in POS terminal by the pushed information of generation by the communication server, and it is specially:
According to the type of pushed information, call corresponding Information Push Service unit thus by the communication server, the pushed information of generation be sent in POS terminal, then, judge whether this POS terminal is in low power consumpting state, if, this pushed information is carried out buffer memory by the wireless module then in POS terminal, otherwise, then direct this pushed information to be received.It can thus be appreciated that, after POS terminal is waken up, also should judge whether wireless module is cached with pushed information, if having, then read out after pushed information from wireless module, then judge whether to reach the time interval sending heartbeat packet.
Be below two specific embodiments of the present invention, further method of the present invention be described in detail.
First specific embodiment of the inventive method.
As shown in Figure 3, the first specific embodiment of the present invention, its step comprises:
After POS terminal start, establish a communications link between POS terminal and POS terminal pushed information customization server, and the facility information of self to be sent on POS terminal pushed information customization server thus to register by POS terminal, and described facility information comprises IMEI, trade name, terminal models, the content such as software version and memory capacity of POS terminal;
Register successfully, the configuration information being used for customized push information is sent to POS terminal pushed information customization server by POS terminal, and the configuration information received is saved in corresponding database by POS terminal pushed information customization server;
POS terminal pushed information customization server obtains Back ground Information, and this Back ground Information is generated the source document of pushed information, and described Back ground Information is provided by trade company;
POS terminal pushed information customization server according to configuration information, thus obtains the receiving ability of the POS terminal corresponding with this configuration information;
According to the receiving ability of the POS terminal obtained, thus format reduction and conversion are carried out, to generate the pushed information meeting the POS terminal corresponding with this configuration information to the source document of pushed information;
The pushed information of generation is sent in POS terminal.
Second specific embodiment of the inventive method.
Because POS terminal is a kind of movable equipment, therefore it needs to keep low-power consumption, and when it enters low power consumpting state time, just can not receive the pushed information transmitted by POS terminal pushed information customization server again, now, then need to make POS terminal periodic wakeup, and receive the pushed information transmitted by POS terminal pushed information customization server.In order to ensure that POS terminal can not receive pushed information with omitting, therefore, wireless module in POS terminal must when POS terminal enters low power consumpting state, can the pushed information transmitted by POS terminal pushed information customization server be kept in the buffer zone of self, like this after POS terminal is waken up, the pushed information transmitted by POS terminal pushed information customization server before just can obtaining from wireless module.
Also have, because GPRS is a kind of wireless communication technology, its limited communications resources, when not using GPRS to communicate in mobile device a period of time, IP resource will be reclaimed in base station, therefore, when POS terminal does not carry out data communication with POS terminal pushed information customization server for a long time, now, IP resource will be reclaimed in base station, such POS terminal will because of loss IP resource, and cause waiting for communication overtime for a long time.It can thus be appreciated that, in this case should need to increase the communication that heartbeat packet mechanism maintains whole link, namely the object of this heartbeat packet is to ensure that IP resource is not recovered, and keeps the maintenance of the communication link between POS terminal and POS terminal pushed information customization server.
Therefore in order to meet above-mentioned situation, as shown in Figure 4, the step of second specific embodiment of the inventive method comprises:
After POS terminal start, establish a communications link between POS terminal and POS terminal pushed information customization server, and the facility information of self to be sent on POS terminal pushed information customization server thus to register by POS terminal, and described facility information comprises the contents such as the IMEI of POS terminal, trade name, terminal models, software version and memory capacity;
Register successfully, the configuration information being used for customized push information is sent to POS terminal pushed information customization server by POS terminal, and the configuration information received is saved in corresponding database by POS terminal pushed information customization server;
POS terminal pushed information customization server obtains Back ground Information, and this Back ground Information is generated the source document of pushed information, and described Back ground Information is provided by trade company;
POS terminal pushed information customization server according to configuration information, thus obtains the receiving ability of the POS terminal corresponding with this configuration information;
According to the receiving ability of the POS terminal obtained, thus format reduction and conversion are carried out, to generate the pushed information meeting the POS terminal corresponding with this configuration information to the source document of pushed information;
POS terminal carries out periodic wakeup, and POS terminal judges whether be cached with pushed information in the wireless module self arranged after waking up, if have, then from wireless module, read out this pushed information, and then judge whether to reach the time interval sending heartbeat packet, otherwise, then directly judge whether to reach the time interval sending heartbeat packet;
When judged result is reach the time interval sending heartbeat packet, then send heartbeat packet on POS terminal pushed information customization server, otherwise then this POS terminal reenters low power consumpting state;
After POS terminal pushed information customization server receives heartbeat packet, then within the time interval that heartbeat packet receives, according to the type of pushed information, call corresponding Information Push Service unit thus by the communication server, the pushed information of generation be sent in POS terminal, then, judge whether this POS terminal is in low power consumpting state, if, this pushed information is carried out buffer memory by the wireless module then in POS terminal, otherwise, then direct this pushed information to be received, and without the need to wireless module, buffer memory is carried out to this pushed information.Described POS terminal pushed information customization server is after receiving heartbeat packet, within a period of time (in the time interval that namely heartbeat packet receives), it to be sent in POS terminal by pushed information arbitrarily, but, when exceeding this period of time, POS terminal pushed information customization server does not also receive next heartbeat packet, so, POS terminal pushed information customization server will think that this POS terminal rolls off the production line, and no longer pushed information is sent to this POS terminal, until again receive heartbeat packet that this POS terminal transmits or this POS terminal re-starts the information of registering.
In addition, for method of the present invention, it also includes this step of update process of configuration information, and this step is applicable to any embodiment.And this step of the update process of described configuration information, it comprises:
POS terminal obtains new configuration information, and is saved on specified file by new configuration information, and to prevent information dropout, and described new configuration information obtains after changing input by user by the interface of POS terminal information of carrying out;
POS terminal will have the files passe of new configuration information on POS terminal pushed information customization server;
POS terminal pushed information customization server receives the file uploaded, and read in this file the new configuration information stored, then, whether the new configuration information relatively read out is consistent with the configuration information had in POS terminal pushed information customization server, if inconsistent, then upgrade configuration information file corresponding with this POS terminal in POS terminal pushed information customization server, thus generate the configuration information corresponding with this POS terminal.
Obtained by above-mentioned, by adopting method and system of the present invention, the functional diversities of POS terminal can not only be made, improve the commerciality of POS terminal, but also a kind of new propagate method can be provided for trade company, and realize sharing of merchant information, thus bring great convenience for the user of POS terminal.
More than that better enforcement of the present invention is illustrated, but the invention is not limited to described embodiment, those of ordinary skill in the art also can make all equivalent variations or replacement under the prerequisite without prejudice to spirit of the present invention, and these equivalent distortion or replacement are all included in the application's claim limited range.