Summary of the invention
In view of this, it is an object of the invention to provide a kind of data processing method and device, so that vending machine can be operated by operating body by mobile terminal, it is achieved the network of vending machine is sold goods.
In order to realize above-mentioned purpose, the present invention provides following technical scheme:
First aspect, the present invention provides a kind of data processing method, is applied in mobile terminal, and described method comprises:
Taking the position of described mobile terminal as benchmark, the vending machine of the distance between search and described mobile terminal in predeterminable range;
A vending machine is determined from the whole vending machines searched, and the goods that determination operation body is chosen in determined vending machine;
After receiving payment request, pay the payment that described payment request comprises;
After receiving successfully response of paying the bill, send shopping request, wherein said shopping carries the information of determined vending machine, the goods information of selected goods and payment information in asking, so that the consistent goods of described goods information told out by determined vending machine.
Preferably, a vending machine determined by described whole vending machines from searching, comprising:
Obtain the service condition of each vending machine searched, and from the whole vending machines searched, determine a vending machine based on described service condition.
Preferably, described after receiving successfully response of paying the bill, send shopping request to comprise: be sent in determined vending machine by the near-field communication module in mobile terminal by described shopping request, so that described shopping request is verified by described vending machine, and after being verified, tell out the goods consistent with described goods information.
Preferably, described method also comprises: the information preserving the vending machine that described operating body used, to be shown before the information of other vending machines not used by the information arrangement of the vending machine used when next time is done shopping by mobile terminal;
And/or
Described method also comprises: receiving prompting message, wherein said prompting message is used to indicate vending machine and tells goods situation;
After receiving described prompting message, transmission monitor video obtains request, and wherein said monitor video obtains the take over party asking to be used to indicate monitor video acquisition request and transmits the video information that when goods told by described vending machine, described vending machine photographs;
Receive the monitoring message carrying described video information.
Second aspect, the present invention provides a kind of data processing method, is applied in vending machine, and described method comprises:
Receive shopping request, wherein said shopping request carries the information of vending machine, goods information and payment information;
Based on the information of described vending machine, it is determined that whether described shopping request is the request for self and determines that whether described payment information is consistent with the price in described goods information;
When determining that described shopping request is the request for self, and when described payment information is consistent with the price in described goods information, tell out the goods consistent with described goods information.
The third aspect, the present invention provides a kind of data processing equipment, is applied in mobile terminal, and described device comprises:
Search unit, for taking the position of described mobile terminal as benchmark, searching for the vending machine of the distance between described mobile terminal in predeterminable range;
Determining unit, for determining a vending machine from the whole vending machines searched, and the goods that determination operation body is chosen in determined vending machine;
Running unit, for, after receiving payment request, paying the payment that described payment request comprises;
Send unit, for after receiving successfully response of paying the bill, send shopping request, wherein said shopping carries the information of determined vending machine, the goods information of selected goods and payment information in asking, so that the goods consistent with described goods information told out by determined vending machine.
Preferably, the service condition of each vending machine that described search unit searches specifically for obtaining, and from the whole vending machines searched, determine a vending machine based on described service condition.
Preferably, described shopping request is sent in determined vending machine by the near-field communication module in mobile terminal by described transmission unit, so that described shopping request is verified by described vending machine, and after being verified, tell out the goods consistent with described goods information.
Preferably, described device also comprises: storage unit, for preserving the information of the vending machine that described operating body used, the information arrangement of the vending machine used was shown before the information of other vending machines not used when next time is done shopping by mobile terminal;
And/or
Described device also comprises: receive unit, for receiving prompting message, wherein said prompting message is used to indicate vending machine and tells goods situation, and trigger described transmission unit and send monitor video acquisition request, wherein said monitor video obtains the take over party asking to be used to indicate monitor video acquisition request and transmits the video information that when goods told by described vending machine, described vending machine photographs, and described video information is carried in monitoring message and receives by described reception unit.
Fourth aspect, the present invention provides a kind of data processing equipment, is applied in vending machine, and described device comprises:
Receive unit, for receiving shopping request, wherein said shopping request carries the information of vending machine, goods information and payment information;
Determining unit, for the information based on described vending machine, it is determined that whether described shopping request is the request for self and determines that whether described payment information is consistent with the price in described goods information;
For working as, control unit, determines that described shopping request is the request for self, and when described payment information is consistent with the price in described goods information, tells out the goods consistent with described goods information.
Compared with prior art, the advantage of the present invention is as follows:
Technique scheme provided by the invention, can taking the position of mobile terminal as benchmark, the vending machine of distance between search and mobile terminal in predeterminable range, to determine a vending machine from the whole vending machines searched, and the goods that determination operation body is chosen in determined vending machine. The payment that payment request comprises after receiving payment request, and after receiving successfully response of paying the bill, send shopping request, wherein shopping request carries the information of determined vending machine, the goods information of selected goods and payment information, so that vending machine can tell out the goods consistent with goods information, therefore vending machine can be operated by operating body by mobile terminal, it is achieved the network of vending machine is sold goods.
And this kind of network mode of selling goods can make operating body do not need again to the operation instruction with reference to vending machine to operate vending machine, make the use of vending machine more convenient, and solve the problem that cannot complete transaction when feeling that user does not carry the coin of vending machine requirement.
Embodiment
In order to make those skilled in the art better understand the embodiment of the present invention, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments. Based on the embodiment in the present invention, those of ordinary skill in the art, not making other embodiments all obtained under creative work prerequisite, belong to the scope of protection of the invention.
Refer to Fig. 1, it illustrates a kind of schema of the data processing method that the embodiment of the present invention provides, described data processing method is applied in mobile terminal, vending machine can be operated by operating body by mobile terminal, it is achieved the network of vending machine is sold goods. Wherein the data processing method shown in Fig. 1 can comprise the following steps:
101: taking the position of mobile terminal as benchmark, the vending machine of the distance between search and mobile terminal in predeterminable range. Wherein (GlobalPositioningSystem can be located by GPS in the position of mobile terminal, global positioning system (GPS)) or the mode such as architecture get, after getting the position of mobile terminal, can centered by its position point, be that radius search is positioned at vending machine near mobile terminal taking predeterminable range.
In embodiments of the present invention, predeterminable range can be set by user oneself, naturally it is also possible to sets according to the geographical environment of user present position and present position, and this embodiment of the present invention does not limit its concrete value.
102: from the whole vending machines searched, determine a vending machine, and the goods that determination operation body is chosen in determined vending machine. When the quantity of the vending machine searched is one, then directly it can be used as determined vending machine; When the multiple vending machine searched, it is possible to determine a vending machine from multiple vending machine at random, naturally it is also possible to based on the distance between vending machine and mobile terminal, choose from the nearest vending machine of mobile terminal. Above-mentioned determine that the process of vending machine can be completed automatically by mobile terminal, can also complete under the operation of operating body, the vending machine searched is displayed in the display screen of mobile terminal by such as mobile terminal, operating body is when clicking a certain vending machine, mobile terminal carrys out, according to click location, the vending machine that determination operation body chooses, and show the goods information of each goods on the vending machine chosen on a display screen, described goods information at least comprises the picture of goods, title and price.
In addition when the multiple vending machine searched, determine can also with reference to the service condition of each vending machine in vending machine process. Detailed process is: the service condition obtaining each vending machine searched, and determines a vending machine from the whole vending machines searched based on service condition.Wherein the service condition of vending machine is used to indicate the current number of users and the vending machine need order data to be processed that use vending machine, therefore service condition based on vending machine can choose a comparatively faster vending machine of shipment speed, to accelerate shipment speed. Certainly outside based on the service condition of vending machine, it is also possible to the distance between its with vending machine and mobile terminal is combined and determines vending machine, this embodiment of the present invention is no longer set forth.
Aforesaid operations body can be hand-held certain equipment of the finger of user or user, when the goods information of each goods on determined vending machine is shown on a display screen by mobile terminal, operating body can click the goods that user wants from shown goods information, and such mobile terminal then can determine the goods chosen according to the click location of operating body.
103: after receiving payment request, the payment that payment request comprises, wherein payment is consistent with the price of selected goods.
After determining goods, mobile terminal transfers out acknowledgement of orders interface automatically, and selected goods is confirmed for pointing out user and determines whether to be paid the bill by described acknowledgement of orders interface. After mobile terminal detects that in acknowledgement of orders interface, set button is triggered really, and determining that the payment request that button associates can trigger, now mobile terminal receives payment request, to point out user to pay the bill.
Mobile terminal is after receiving payment request, it is possible to starts and runs and pay application, and shows multiple payment instrument in the interface that payment application is corresponding, so that operating body chooses the payment instrument that user commonly uses from multiple payment instrument. After the payment instrument selected by determination operation body, the relevant information of the payment instrument selected by showing on a display screen, after the payment interface entering into selected payment instrument, in payment interface, input the payment consistent with the price of selected goods by operating body. Certain mobile terminal can also adopt the payment that other means of payment carry out payment request and comprise, as the SIM (SubscriberIdentityModule, client identification module) that installs from mobile terminal deducts certain payment in remaining communication expense in blocking.
In embodiments of the present invention, mobile terminal receives another kind of mode of payment request: receive the payment request that the server with communication of mobile terminal sends, wherein server is the server managing multiple vending machine, after mobile terminal is determined vending machine and is chosen acquisition, first can send to server and once select goods request, described select the information carrying determined vending machine in goods request and the goods information of selected goods, server after these Information Authentications are passed through to mobile terminal payment request.
104: after receiving successfully response of paying the bill, send shopping request.
In embodiments of the present invention, to be bank server corresponding to payment interface be sent to mobile terminal detecting to pay after successfully in successfully response of paying the bill.
Generally, after mobile terminal determines vending machine, user can move to vending machine place according to the position of vending machine suggested on mobile terminal, therefore when user before vending machine shipment is before vending machine, now mobile terminal is after receiving successfully response of paying the bill, it is possible to send shopping request to the server communicated with.
Wherein shopping request carries the information of determined vending machine, the goods information of selected goods and payment information, the information of vending machine is used to indicate server and shopping request is sent to determined vending machine, so that determined vending machine is after receiving shopping request, telling out the goods consistent with goods information, payment information is used to indicate the consistent payment of the price of the operating body goods of success selected by Zhi Fuyu.The information of vending machine at least comprises vending machine mark in embodiments of the present invention, different for vending machine mark different vending machine, vending machine can be distinguished with this, so that shopping request can be accurately sent to determined vending machine by server. And determine that in order to user can be made vending machine is gone out goods goods selected by oneself, showing the transaction odd numbers of current shipment goods on vending machine, user, by being compared by the transaction odd numbers of the transaction odd numbers on vending machine and display on mobile terminal, can determine whether currently gone out goods is goods selected by oneself.
Certainly before vending machine shipment user not situation before vending machine can not be got rid of, therefore in order to improve the security of goods, mobile terminal is after receiving successfully response of paying the bill, can by the NFC module (NearFieldCommunication in mobile terminal, near-field communication) shopping request is sent to determined vending machine, shopping request can be verified and determine this time whether shopping is the shopping for self by such vending machine, if being verified, then tell out the goods consistent with described goods information.
Above-mentioned near-field communication requires that mobile terminal and vending machine distance are shorter, and like this after vending machine is to shopping requests verification success, user just before vending machine, thus may improve the security of goods.
From technique scheme, the data processing method that the embodiment of the present invention provides can taking the position of mobile terminal as benchmark, the vending machine of distance between search and mobile terminal in predeterminable range, to determine a vending machine from the whole vending machines searched, and the goods that determination operation body is chosen in determined vending machine. The payment that payment request comprises after receiving payment request, and send shopping request after receiving successfully response of paying the bill, wherein shopping request carries the information of determined vending machine, the goods information of selected goods and payment information, so that the goods consistent with goods information told out by vending machine, therefore vending machine can be operated by operating body by mobile terminal, it is achieved the network of vending machine is sold goods.
And this kind of network mode of selling goods can make operating body do not need again to the operation instruction with reference to vending machine to operate vending machine, make the use of vending machine more convenient, and solve the problem that cannot complete transaction when feeling that user does not carry the coin of vending machine requirement.
After the goods consistent with goods information told out by vending machine, operating body can be designated the vending machine that operating body used on mobile terminals, the data processing method that such embodiment of the present invention provides can also comprise step 105: preserves the information of vending machine that operating body used in mobile terminal, as shown in Figure 2. When user is done shopping by mobile terminal next time, the information arrangement of the vending machine used can be shown by mobile terminal before the information of other vending machines not used. The vending machine used under normal circumstances is the vending machine that user is conventional and user likes, therefore before being arranged in other vending machines not used display can directly choose conventional vending machine by convenient operation body, it is to increase operating body choose efficiency.
In above-mentioned all embodiments of the method, the situation of receiving of vending machine can also be monitored by the data processing method that the embodiment of the present invention provides, and as shown in Figure 3, the data processing method that the embodiment of the present invention provides can also comprise the following steps:
106: receive prompting message, wherein point out message to be used to indicate vending machine and tell goods situation, described in tell goods situation and be used to indicate vending machine and tell goods and be success or failure.
107: receive prompting message after, send monitor video obtain request, wherein monitor video obtain request be used to indicate monitor video obtain request take over party transmit the video information that when goods told by described vending machine, vending machine photographs. In embodiments of the present invention, monitor video obtains in request can carry transaction odd numbers, so that server is based on transaction time corresponding to odd numbers, searches the video information that vending machine photographs
108: receive the monitoring message carrying video information. Mobile terminal is after receiving monitoring message, it is possible to the video information carried in it is displayed in the display screen of mobile terminal so that user to telling goods situation inquire about.
In addition, the embodiment of the present invention also provides a kind of data processing method being applied in vending machine, as shown in Figure 4, it is possible to comprise the following steps:
201: receive shopping request, information, goods information and the payment information wherein done shopping and carry vending machine in asking. Shopping request successfully pays vending machine on mobile terminals and is sold goods and send after thing in embodiments of the present invention. Namely mobile terminal described above sends shopping request after receiving successfully response of paying the bill, and shopping request can be sent by server or directly be sent to vending machine by the NFC module in mobile terminal.
202: based on the information of vending machine, it is determined that whether shopping request is the request for self and determines that whether payment information is consistent with the price in goods information. Wherein self refer to receive the vending machine of shopping request, to determine that whether self sold goods the request of thing by user's this time shopping request. The information of vending machine at least comprises vending machine mark, different for vending machine mark different vending machine, can be distinguished by vending machine with this, based on vending machine mark, such vending machine can determine whether shopping request is the request for self.
203: when determining that shopping request is the request for self, and when payment information is consistent with the price in goods information, tell out the goods consistent with goods information.
Corresponding with aforesaid method embodiment, the embodiment of the present invention also provides a kind of data processing equipment being applied in mobile terminal, and its structural representation is as shown in Figure 5, it is possible to comprising: search unit 11, determining unit 12, running unit 13 and transmission unit 14.
Search unit 11, for taking the position of mobile terminal as benchmark, searching for the vending machine of the distance between mobile terminal in predeterminable range. Wherein (GlobalPositioningSystem can be located by GPS in the position of mobile terminal, global positioning system (GPS)) or the mode such as architecture get, after getting the position of mobile terminal, can centered by its position point, be that radius search is positioned at vending machine near mobile terminal taking predeterminable range. Predeterminable range can be set by user oneself, naturally it is also possible to sets according to the geographical environment of user present position and present position, and this embodiment of the present invention does not limit its concrete value. The service condition of each vending machine that search unit 11 searches specifically for obtaining, and from the whole vending machines searched, determine a vending machine based on described service condition.
Determining unit 12, for determining a vending machine from the whole vending machines searched, and the goods that determination operation body is chosen in determined vending machine. Wherein search unit 12 in the service condition getting each vending machine searched, can determine a vending machine based on service condition from the whole vending machines searched. The service condition of vending machine is used to indicate the number of users currently using vending machine and vending machine needs order data to be processed, therefore service condition based on vending machine can choose a comparatively faster vending machine of shipment speed, to accelerate shipment speed. Certainly outside based on the service condition of vending machine, it is also possible to the distance between its with vending machine and mobile terminal is combined and determines vending machine, this embodiment of the present invention is no longer set forth.
Running unit 13, for, after receiving payment request, paying the payment that described payment request comprises, wherein said payment is consistent with the price of selected goods.
Send unit 14, for after receiving successfully response of paying the bill, send shopping request, wherein shopping request carries the information of determined vending machine, the goods information of selected goods and payment information, so that the goods consistent with goods information told out by determined vending machine, payment information is used to indicate the consistent payment of the price of the operating body goods of success selected by Zhi Fuyu. Sending unit 14 is sent in determined vending machine especially by the near-field communication module in mobile terminal by described shopping request, so that described shopping request is verified by described vending machine, and after being verified, tell out the goods consistent with described goods information.
Shopping request can be sent to vending machine by with the server of communication of mobile terminal and management vending machine in embodiments of the present invention, or by the NFC module in mobile terminal, the information of determined vending machine, the goods information of selected goods and the payment information that carry in shopping request are sent to determined vending machine, so that shopping request is verified by vending machine, and after being verified, choose the outlet that the goods consistent with goods information is slided out to automatically vending machine.
From technique scheme, the data processing equipment that the embodiment of the present invention provides can taking the position of mobile terminal as benchmark, the vending machine of distance between search and mobile terminal in predeterminable range, to determine a vending machine from the whole vending machines searched, and the goods that determination operation body is chosen in determined vending machine. The payment that described payment request comprises is paid after receiving payment request, and send shopping request after receiving successfully response of paying the bill, wherein shopping request carries the information of determined vending machine, the goods information of selected goods and payment information, so that the goods consistent with goods information told out by vending machine, therefore vending machine can be operated by operating body by mobile terminal, it is achieved the network of vending machine is sold goods.
And this kind of network mode of selling goods can make operating body do not need again to the operation instruction with reference to vending machine to operate vending machine, make the use of vending machine more convenient, and solve the problem that cannot complete transaction when feeling that user does not carry the coin of vending machine requirement.
After the goods consistent with goods information told out by vending machine, operating body can be designated the vending machine that operating body used on mobile terminals, the data processing equipment that such embodiment of the present invention provides can also comprise: storage unit 15, as shown in Figure 6. Wherein storage unit 15 is for preserving the information of the vending machine that operating body used, when user is done shopping by mobile terminal next time, the information arrangement of the vending machine used can be shown by mobile terminal before the information of other vending machines not used. The vending machine used under normal circumstances is the vending machine that user is conventional and user likes, therefore before being arranged in other vending machines not used display can directly choose conventional vending machine by convenient operation body, it is to increase operating body choose efficiency.
In above-mentioned all device embodiments, the situation of receiving of vending machine can also be monitored by the data processing equipment that the embodiment of the present invention provides, the data processing equipment that the embodiment of the present invention provides can also comprise reception unit, for receiving prompting message, wherein said prompting message is used to indicate vending machine and tells goods situation, and trigger described transmission unit and send monitor video acquisition request, wherein said monitor video obtains the take over party asking to be used to indicate monitor video acquisition request and transmits the video information that when goods told by described vending machine, described vending machine photographs, described video information is carried in monitoring message and receives by described reception unit.
Refer to Fig. 7, it illustrates the data processing equipment being applied in vending machine that the embodiment of the present invention provides, it is possible to comprising: receive unit 21, determining unit 22 and control unit 23.
Receive unit 21, for receiving shopping request, information, goods information and the payment information wherein done shopping and carry vending machine in asking. Request of doing shopping in embodiments of the present invention successfully pays vending machine on mobile terminals to be sold goods after thing, sends by mobile terminal. Namely mobile terminal described above sends shopping request after receiving successfully response of paying the bill, and shopping request can be sent by server or directly be sent to vending machine by the NFC module in mobile terminal.
Determining unit 22, for the information based on vending machine, it is determined that whether shopping request is the request for self and determines that whether payment information is consistent with the price in goods information. Wherein self refer to receive the vending machine of shopping request, to determine that whether self sold goods the request of thing by user's this time shopping request. The information of vending machine at least comprises vending machine mark, different for vending machine mark different vending machine, can be distinguished by vending machine with this, based on vending machine mark, such vending machine can determine whether shopping request is the request for self.
Control unit 23, for asking to be the request for self when determining to do shopping, and when payment information is consistent with the price in goods information, tells out the goods consistent with goods information.
It should be noted that, each embodiment in this specification sheets all adopts the mode gone forward one by one to describe, each embodiment emphasis illustrate be the difference with other embodiments, between each embodiment identical similar part mutually see. For device class embodiment, due to itself and embodiment of the method basic simlarity, so what describe is fairly simple, relevant part illustrates see the part of embodiment of the method.
Finally, also it should be noted that, herein, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, so that comprise the process of a series of key element, method, article or equipment not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise the key element intrinsic for this kind of process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
To the above-mentioned explanation of the disclosed embodiments, those skilled in the art are enable to realize or use the present invention. To be apparent for a person skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments. Therefore, the present invention can not be limited in these embodiments shown in this article, but be met the widest scope consistent with principle disclosed herein and features of novelty.