The content of the invention
It is a primary object of the present invention to provide a kind of cash register settlement method, cash register settlement system, cash register and calculating
Machine readable storage medium storing program for executing, it is intended to solve large-scale professional cashier's machine in the presence of being inconvenient to carry, power consumption is big, usage experience difference
Technical problem.
To achieve the above object, the embodiment of the present invention provides a kind of cash register settlement method, applied to cash register front end, the receipts
Silver-colored settlement method includes:
Cash register front end obtains the commodity data of user's input, and commodity data is sent to server based on wireless connection;
The merchandise news that cash register front end receiver and display server are fed back based on commodity data;
When cash register front-end detection is to based on merchandise news generation gathering request, gathering request is sent to server;
When the gathering code that cash register front end receiver to server is fed back based on gathering request, the gathering code is shown.
Preferably, the step of commodity data of cash register front end acquisition user's input includes:
When cash register front-end detection to codeword value, which is set, to be instructed, the setting operation based on user is to the commodity data that prestores
Goods number carries out codeword value setting;
Cash register front end obtains the codeword value of user's input;
Cash register front end obtains commodity data corresponding with the goods number that codeword value is mutually matched.
Preferably, the merchandise news is shown in the form of commodity bill, and the cash register settlement method also includes:
When cash register front-end detection instructs to more bills, create and show new commodity bill, so that user is to commodity number
According to being settled accounts respectively.
Preferably, the cash register front end also includes before obtaining the step of commodity data of user's input:
When the pairing request that cash register front end receiver to server is sent, the first account identification in pairing request is obtained;
When cash register front-end detection to the first account identification and the second account identification to prestore are mutually matched, sent out to server
Send pairing check to instruct, and wireless data connection is established between cash register front end and server.
Preferably, the cash register front end is based in codeword value scan interface, codeword value typing interface and commodity identification interface
One or more of commodity datas for obtaining users' input.
The present invention provides a kind of cash register settlement method, and applied to server, the cash register settlement method includes:
Server receives the commodity data that cash register front end is sent based on wireless connection;
Server gets merchandise news based on commodity data, and merchandise news is sent to cash register based on wireless connection
End;
Server receives the gathering request that cash register front end is sent, and based on gathering request generation gathering code;
Server sends gathering code to cash register front end.
Preferably, the server also wraps before receiving the step of commodity data that cash register front end is sent based on wireless connection
Include:
Server sends pairing request to cash register front end, and the pairing request includes the first account identification;
When server receives the pairing check instruction of cash register front end transmission, established between server and cash register front end
Wireless data connects.
The present invention also provides a kind of cash register settlement system, and the cash register settlement system includes cash register front end, server, described
Cash register front end includes:
First sending module, sent for obtaining the commodity data of user's input, and by commodity data based on wireless connection
To server;
First receiving module, for the merchandise news received and display server is fed back based on commodity data;
Second sending module, for when detecting based on merchandise news generation gathering request, gathering request to be sent extremely
Server;
Display module, for when receiving gathering code of the server based on gathering request feedback, showing the gathering code;
The server includes:
Second receiving module, the commodity data sent for receiving cash register front end based on wireless connection;
3rd sending module, for getting merchandise news based on commodity data, and merchandise news is based on wireless connection
Send to cash register front end;
Generation module, for receiving the gathering request of cash register front end transmission, and based on gathering request generation gathering code;
4th sending module, for gathering code to be sent to cash register front end.
In addition, to achieve the above object, the present invention also provides a kind of cash register, and the cash register includes:Memory,
Processor, communication bus and the cash register clearing program being stored on the memory,
The communication bus is used to realize the communication connection between processor and memory;
The processor is used to perform the cash register clearing program, to realize following steps:
Cash register front end obtains the commodity data of user's input, and commodity data is sent to server based on wireless connection;
The merchandise news that cash register front end receiver and display server are fed back based on commodity data;
When cash register front-end detection is to based on merchandise news generation gathering request, gathering request is sent to server;
When the gathering code that cash register front end receiver to server is fed back based on gathering request, the gathering code is shown.
Preferably, the step of commodity data of cash register front end acquisition user's input includes:
When cash register front-end detection to codeword value, which is set, to be instructed, the setting operation based on user is to the commodity data that prestores
Goods number carries out codeword value setting;
Cash register front end obtains the codeword value of user's input;
Cash register front end obtains commodity data corresponding with the goods number that codeword value is mutually matched.
Preferably, the merchandise news is shown in the form of commodity bill, and the cash register settlement method also includes:
When cash register front-end detection instructs to more bills, create and show new commodity bill, so that user is to commodity number
According to being settled accounts respectively.
Preferably, the cash register front end also includes before obtaining the step of commodity data of user's input:
When the pairing request that cash register front end receiver to server is sent, the first account identification in pairing request is obtained;
When cash register front-end detection to the first account identification and the second account identification to prestore are mutually matched, sent out to server
Send pairing check to instruct, and wireless data connection is established between cash register front end and server.
Preferably, the cash register front end is based in codeword value scan interface, codeword value typing interface and commodity identification interface
One or more of commodity datas for obtaining users' input.
Preferably, the cash register settlement method includes:
Server receives the commodity data that cash register front end is sent based on wireless connection;
Server gets merchandise news based on commodity data, and merchandise news is sent to cash register based on wireless connection
End;
Server receives the gathering request that cash register front end is sent, and based on gathering request generation gathering code;
Server sends gathering code to cash register front end.
Preferably, the server also wraps before receiving the step of commodity data that cash register front end is sent based on wireless connection
Include:
Server sends pairing request to cash register front end, and the pairing request includes the first account identification;
When server receives the pairing check instruction of cash register front end transmission, established between server and cash register front end
Wireless data connects.
In addition, to achieve the above object, the present invention also provides a kind of computer-readable recording medium, described computer-readable
Storage medium is stored with one or more than one program, one either more than one program can by one or one with
On computing device for:
Cash register front end obtains the commodity data of user's input, and commodity data is sent to server based on wireless connection;
The merchandise news that cash register front end receiver and display server are fed back based on commodity data;
When cash register front-end detection is to based on merchandise news generation gathering request, gathering request is sent to server;
When the gathering code that cash register front end receiver to server is fed back based on gathering request, the gathering code is shown.
In technical scheme, cash register front end obtains the commodity data of user's input, and commodity data is based on into nothing
Line linkup transmit is to server;The merchandise news that cash register front end receiver and display server are fed back based on commodity data;Work as cash register
When front-end detection is to based on merchandise news generation gathering request, gathering request is sent to server;When cash register front end receiver arrives
During the gathering code that server is fed back based on gathering request, the gathering code is shown.Server receives cash register front end and is based on wirelessly connecting
The commodity data received and sent;Server gets merchandise news based on commodity data, and merchandise news is sent out based on wireless connection
Deliver to cash register front end;Server receives the gathering request that cash register front end is sent, and based on gathering request generation gathering code;Server
Gathering code is sent to cash register front end.The present invention is by Optimal Decomposition cash register statistical mechanism, before complete cash register flow is divided into
End and backstage are independently run, and greatly reduce requirement of the cash register front end to hardware, and function for receiving cash is integrated into server
On, the linkage of cash register front end and server is realized in a manner of infinitely connecting, solving large-scale professional cashier's machine is inconvenient to carry,
Power consumption is big, the technical problem of usage experience difference, improves the usage experience of businessman user.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of cash register settlement method, and the cash register settlement method is applied to cash register front end.
Reference picture 1, Fig. 1 are the schematic flow sheet of cash register settlement method preferred embodiment of the present invention.
In the present embodiment, there is provided the embodiment of cash register settlement method is, it is necessary to illustrate, although showing in flow charts
Go out logical order, but in some cases, can be with the step shown or described by being performed different from order herein.
The cash register settlement method includes:
Step S10, cash register front end obtain user input commodity data, and by commodity data based on wireless connection send to
Server;
Input equipment is collected in cash register front end as commodity data, and user can carry out the defeated of commodity data by cash register front end
Enter.Cash register front end can be accomplished in several ways the input of commodity data, such as be believed by the key of input through keyboard commodity data
Breath, such as commodity code, commodity amount;Or cash register front end obtains commodity data by the sensing of third party's interface, such as
One or more of acquisition users in the external codeword value scan interface in cash register front end, codeword value typing interface and commodity identification interface
The commodity data of input.
The codeword value scan interface can be barcode scanner, by being swept to the bar code in commodity packaging
Detection is retouched, by the Data Enter cash register front end of commodity bar code;The codeword value typing interface can be two-dimensional code scanning instrument, can
Identify the commodity Quick Response Code or discount Quick Response Code in commodity packaging;The commodity identification interface can be graphical analysis identification dress
Put, the feature such as packaging, form, color that can be by shooting and analyzing commodity, type, title of commodity etc. are identified, so as to obtain
Get corresponding commodity data.
In the present embodiment, cash register front end and server are the equipment for separating independent operating, therebetween by wirelessly connecting
The mode connect realizes the exchange transmission of data, so as to realize the separation of cash register flow, without integrating on the same device.Nothing
Line connected mode can be WiFi connections, bluetooth connection and infrared connection etc., the characteristics of using wireless connection, change tradition and receive
The defects of silver-colored equipment volume huge, heavy, inconvenient carrying.
Further, reference picture 2, the step of cash register front end obtains the commodity data of user's input, include:
Step S11, when cash register front-end detection to codeword value, which is set, to be instructed, the setting based on user operates the business to prestoring
The goods number of product data carries out codeword value setting;
Step S12, cash register front end obtain the codeword value of user's input;
Step S13, cash register front end obtain commodity data corresponding with the goods number that codeword value is mutually matched.
Generally, different commodity possess corresponding commodity code, and the commodity can be identified by the commodity code cash register front end
Corresponding merchandise news, but the digit of commodity code is relatively more, it is assumed that in the case of non-machine recognition, user is manually
When inputting commodity code, input error is easily caused, and step is numerous and diverse so that commodity data input is insufficient to quick, reduction
The efficiency of cash register flow.
Present embodiments provide a kind of codeword value and function is set, according to the setting demand of businessman user, commodity data is entered
Row simplify, so as to user when carrying out commodity data input more brisk smoothness.
User can trigger codeword value setting function by clicking on the modes such as codeword value settings button, and the codeword value is cash register
One of identification code of front end recognition commodity data.When cash register front-end detection to codeword value, which is set, to be instructed, it was demonstrated that active user is accurate
Standby to carry out codeword value setting to commodity, now, cash register front end is by the setting operation based on user to the commodity number in memory cell
According to goods number carry out codeword value setting.
For example, the present embodiment can be by setting a more brief codeword value, instead of the commodity volume for identification for commodity
Code, realized and rapidly input by less digit.For example, it is configured by way of " key combination ".
It is illustrated below, but and it is unlimited so arrangement, such as:
Commodity code original commodity A is " 1478523690 ", and commodity code of the user in input commodity A can be more numerous and diverse
It is time-consuming, it can be now improved by codeword value.
Cash register front end includes 0~9 totally 10 digital keys, and a kind of commodity are represented with 3 bit digitals.001 represents commodity
A。
Commodity A codeword value only need to be set as 001 by user in cash register front end, then cash register front end will establish 001 with
Mapping relations between commodity A, using codeword value 001 as one of commodity A identification code.
So, when user inputs 001 in cash register front end, so that it may obtain the merchandise newss such as commodity A price and title.
By that analogy, it similarly can obtain the merchandise news of other commodity.So, it can be achieved with very multi-quantity using seldom several keys
The cash register management of commodity, it enormously simplify the export of commodities flow of cash register front end.
The merchandise news that step S20, cash register front end receiver and display server are fed back based on commodity data;
Cash register front end, which is sent to the commodity data of server, to be needed by server process, and corresponding business is returned by server
Product information, the merchandise news refer to the complete commodity data corresponding with commodity data, including commodity classification, trade name
Title, commodity price, commodity stocks etc..Cash register front end shows the merchandise news on the display device, such as cash register front end
Built-in or externally connected with display screen curtain, so that cash register front end shows merchandise news.Display of commodity information can allow user to enter one
Step determines the correctness of merchandise news input.
Step S30, when cash register front-end detection based on merchandise news generation gathering to when being asked, the request that will collect money is sent to clothes
Business device;
The gathering request is the commodity price settlement request based on merchandise news.The gathering generated in cash register front end please
The data such as trade name, cargo price and commodity amount in merchandise news of the Seeking Truth according to before received by cash register front end
What COMPREHENSIVE CALCULATING formed.The gathering request can be triggered generation or cash register front end according to currently received by user
Merchandise news in real time and automatically generate.Because gathering request is generated according to the merchandise news on cash register front end, therefore it is not required to
Larger data analysis unit is relied on, individually can be generated in cash register front end.
Because cash register front end in volume and carries the restriction in convenience, its corresponding cash register flow will not be in cash register front end
Upper execution, but ask transmission to send to server cash register by way of wireless connection by cash register front end, by server pair
It is handled.
Step S40, when the gathering code that cash register front end receiver to server is fed back based on gathering request, show the gathering
Code.
The gathering request is that cash register front end is generated and sent to server, and it is handled by server.But paying party
It is the customer for buying commodity, therefore corresponding cash register payment process needs customer to participate in wherein.Server to gathering ask into
After row processing, cash register front end can receive gathering code of the server based on gathering request feedback.The gathering code can be gathering
Detailed bill, Quick Response Code, shroff account number etc. information of collecting money, it is mainly used in carrying out commodity payment for customer, to complete this business
The cash register bill of product information, therefore the gathering code is provided to customer, can be shown by the display device on cash register front end.
In technical scheme, cash register front end obtains the commodity data of user's input, and commodity data is based on into nothing
Line linkup transmit is to server;The merchandise news that cash register front end receiver and display server are fed back based on commodity data;Work as cash register
When front-end detection is to based on merchandise news generation gathering request, gathering request is sent to server;When cash register front end receiver arrives
During the gathering code that server is fed back based on gathering request, the gathering code is shown.Server receives cash register front end and is based on wirelessly connecting
The commodity data received and sent;Server gets merchandise news based on commodity data, and merchandise news is sent out based on wireless connection
Deliver to cash register front end;Server receives the gathering request that cash register front end is sent, and based on gathering request generation gathering code;Server
Gathering code is sent to cash register front end.The present invention is by Optimal Decomposition cash register statistical mechanism, before complete cash register flow is divided into
End and backstage are independently run, and greatly reduce requirement of the cash register front end to hardware, and function for receiving cash is integrated into server
On, the linkage of cash register front end and server is realized in a manner of infinitely connecting, solving large-scale professional cashier's machine is inconvenient to carry,
Power consumption is big, the technical problem of usage experience difference, improves the usage experience of businessman user.
Further, the another embodiment of cash register settlement method of the present invention is proposed, the merchandise news is with the shape of commodity bill
Formula shows that the cash register settlement method also includes:
Step S50, when cash register front-end detection instructs to more bills, create and show new commodity bill, for user
Commodity data is settled accounts respectively.
During being shown in cash register front end to merchandise news, it is mussily to arrange that merchandise news, which is not, but logical
The form for crossing commodity bill shows, will all merchandise newss shown successively with orderly putting in order, Ke Yiyi
Arranged according to input time order, can also arrange, can also be arranged according to other particular orders according to commodity price order.
Normally, the display device of cash register front end is once only able to display commodity bill once.In the present embodiment, cash register
Front end provides a kind of more billing functions.More billing functions are referred to outside the commodity bill currently generated, are regenerated
Cheng Xin commodity bill, so that user once operates two commodity bills simultaneously.
The instruction that more bill instructions generate when triggering more billing functions for user, specifically, user can be before cash register
Triggering performs the instruction of more bills and (such as more bill buttons is provided with cash register front end, user triggers more bill buttons and is on end
Can).When cash register front-end detection instructs to more bills simultaneously, it was demonstrated that active user performs commodity data input to multiple clients and received
Silver operation.Because the commodity bill information of different clients is that there is each self-corresponding commodity account by different, i.e., different clients
It is single, it is independent of each other independently of each other.Therefore effective coordination management is carried out to the commodity bill of multiple clients for the convenience of the user, before cash register
End can be outside current existing commodity bill, then creates a new commodity bill.New commodity bill can be displayed in existing
It on commodity bill, can also side by side be shown with existing commodity bill, or specific show is carried out according to the self-defined demand of user
Show.
So, cash register front end can meet user's needs while manage the application scenarios of the commodity bill of multiple clients, user
Coordinated management can be carried out to different commodity bills within the same time, to be settled accounts respectively to commodity data, so as to reach
Efficient cash register treatment effeciency.
Further, the another embodiment of cash register settlement method of the present invention is proposed, the cash register front end obtains user's input
Also include before the step of commodity data:
Step S60, when the pairing request that cash register front end receiver to server is sent, obtain the first account in pairing request
Family identifies;
Being established between cash register front end and server has radio link channel, can be achieved between cash register front end and server
Data message exchanges.But respective commodity bill or commodity data processing may be store between cash register front end and server
Record, it is assumed that a cash register front end carries out wireless connection with multiple servers, or a server enters with more cash register front ends
Row wireless connection, the privacy leakage of local terminal cash register data is all easily caused, it is certain to being caused on financial security and financial management
Potential safety hazard.Therefore a security mechanism is needed to avoid the privacy leakage of cash register data.
When cash register front end is by the pairing request for receiving server transmission, the first account mark in pairing request can be obtained
Know.In the present embodiment.One-to-one exclusive mapping relations, server and cash register front end are formed between cash register front end and server
Between carry out account safety matching.The pairing request refers to the connection request that server is sent to cash register front end, described to match somebody with somebody
The first account identification to including server in request.First account identification is the identification code of server, can be used as and receive
The checking reference data of silver-colored front end.
Step S70, when cash register front-end detection to the first account identification is mutually matched with the second account identification to prestore, to
Server sends pairing check instruction, and wireless data connection is established between cash register front end and server.
In cash register front end, the second account identification is prestored, second account identification can be used as cash register front end in checking the
Checking contrasting data during one account identification.By the angle of Information Security, only the first account identification and the second account
When mark is mutually matched, the one-to-one relationship of cash register front end and server can be just proved.And the first account identification and second
Matching relationship between account identification, mutual agreement or agreement therebetween need to be followed.
When cash register front-end detection to the first account identification and the second account identification to prestore are mutually matched, it was demonstrated that before cash register
One-to-one relationship can be formed between end and server, is relatively legitimate authentication equipment, now, cash register front end will be to server
Send pairing check instruction.Pairing check instruction is pairing authentication information of the cash register front end feedback to server, so as to cash register
Unimpeded wireless data interface channel can be established between front end and server.
The present invention further provides a kind of cash register settlement method, the cash register settlement method is applied to server.
Reference picture 3, the cash register settlement method include:
Step S80, server receive the commodity data that cash register front end is sent based on wireless connection;
Step S90, server gets merchandise news based on commodity data, and merchandise news is sent based on wireless connection
To cash register front end;
Server is exchanging transmission with data can be achieved in the radio link channel of cash register front end, therefore server can receive
The commodity data sent to cash register front end based on wireless connection.And the commodity data can be inquired according to commodity data, server
Corresponding merchandise news.For example, commodity data is goods number " BAS372159 ", and in the database of server,
Merchandise news corresponding to " BAS372159 " is " stationery:Pencil with 2B hardness, unit price:3 yuan, stock:53 ", these merchandise newss
Sent as important reference data based on wireless connection to cash register front end, so that cash register front end is called.
Step S100, server receive the gathering request that cash register front end is sent, and based on gathering request generation gathering code;
Step S110, server send gathering code to cash register front end.
The gathering request is generated by cash register front end, to ensure cash register front end small volume, characteristic easy to carry, cash desk
Reason flow will carry out execution processing by server.Server receives the gathering request that cash register front end is sent, and is asked according to gathering
Generation gathering code.It is understood that because gathering request is the commodity price settlement request based on merchandise news, that is,
Say, corresponding merchandise news, such as trade name, commodity amount, cargo price, commodity total price are contained in gathering request
Deng.And the information in being asked according to gathering, server can generate corresponding commodity gathering code in real time, it is this to collect money corresponding to code
The Receiving information of all commodity total prices in gathering request.Gathering code can be simple gathering detailed bill, for user or
Client carries out confirmation examination & verification;Either gathering Quick Response Code, is directly paid the bill online for client;An either shroff account number,
Enter payment etc. under line for client.
After server generates gathering code, gathering code need to be sent to cash register front end, so as to cash register based on wireless connection
Front end show corresponding to Receiving information.
Further, the another embodiment of cash register settlement method of the present invention is proposed, the server receives cash register front end and is based on
Also include before the step of commodity data that wireless connection is sent:
Step S120, server send pairing request to cash register front end, and the pairing request includes the first account identification;
Step S130, when server receives the pairing check instruction of cash register front end transmission, before server and cash register
Wireless data connection is established between end.
To ensure the data safety between cash register front end and server, avoid to causing one on financial security and financial management
Fixed potential safety hazard, server are provided with the privacy leakage that a security mechanism avoids cash register data.
Server can generate a pairing request, and send it to cash register front end before connection cash register front end.This is matched somebody with somebody
Include the first account number to request, the first account number is the equipment account verification reference data of server.Cash register front end
Analysis matching can be carried out according to first account number, and feed back corresponding the result.Assuming that before server receives cash register
The pairing check instruction that end is sent, that is, prove between server and cash register front end to be one-to-one pair relationhip, server with
Cash register front end legitimate authentication equipment each other.Now, server formally will be established wireless data with cash register front end and is connected.
The present invention further provides a kind of cash register settlement system.
Reference picture 4, Fig. 4 are the high-level schematic functional block diagram of the preferred embodiment of cash register settlement system of the present invention.
It is emphasized that it will be apparent to those skilled in the art that module map shown in Fig. 4 is only a preferred embodiment
Exemplary plot, the module of cash register settlement system of the those skilled in the art shown in Fig. 4, new module can be carried out easily
Supplement;The title of each module is self-defined title, is only used for each program function block that auxiliary understands the cash register settlement system, no
For limiting technical scheme, the core of technical solution of the present invention is, what the module of each self-defined title to be reached
Function.
Reference picture 5, the cash register settlement system include cash register front end, server, and the cash register front end includes:
First sending module 10, sent out for obtaining the commodity data of user's input, and by commodity data based on wireless connection
Deliver to server;
Input equipment is collected in cash register front end as commodity data, and user can carry out the defeated of commodity data by cash register front end
Enter.Cash register front end can be accomplished in several ways the input of commodity data, such as be believed by the key of input through keyboard commodity data
Breath, such as commodity code, commodity amount;Or cash register front end obtains commodity data by the sensing of third party's interface, such as
One or more of acquisition users in the external codeword value scan interface in cash register front end, codeword value typing interface and commodity identification interface
The commodity data of input.
The codeword value scan interface can be barcode scanner, by being swept to the bar code in commodity packaging
Detection is retouched, by the Data Enter cash register front end of commodity bar code;The codeword value typing interface can be two-dimensional code scanning instrument, can
Identify the commodity Quick Response Code or discount Quick Response Code in commodity packaging;The commodity identification interface can be graphical analysis identification dress
Put, the feature such as packaging, form, color that can be by shooting and analyzing commodity, type, title of commodity etc. are identified, so as to obtain
Get corresponding commodity data.
In the present embodiment, cash register front end and server are the equipment for separating independent operating, therebetween by wirelessly connecting
The mode connect realizes the exchange transmission of data, so as to realize the separation of cash register flow, without integrating on the same device.Nothing
Line connected mode can be WiFi connections, bluetooth connection and infrared connection etc., the characteristics of using wireless connection, change tradition and receive
The defects of silver-colored equipment volume huge, heavy, inconvenient carrying.
First receiving module 20, for the merchandise news received and display server is fed back based on commodity data;
First sending module, which is sent to the commodity data of server, to be needed by server process, is returned by server corresponding
Merchandise news, the merchandise news refers to the complete commodity data corresponding with commodity data, including commodity classification, business
The name of an article claims, commodity price, commodity stocks etc..First receiving module shows the merchandise news on the display device, such as
Cash register front end is built-in or externally connected with display screen curtain, so that cash register front end shows merchandise news.Display of commodity information can allow
User further determines that the correctness of merchandise news input.
Second sending module 30, for when detecting based on merchandise news generation gathering request, gathering request to be sent
To server;
The gathering request is the commodity price settlement request based on merchandise news.The receipts generated in the second sending module
Money request is the aggregation of data such as trade name, cargo price and commodity amount in received merchandise news before
Calculate what is formed.The gathering request can be triggered generation or cash register front end according to currently received business by user
Product information is real-time and automatically generates.Because gathering request is generated according to the merchandise news on cash register front end, therefore it is not required to rely on
Larger data analysis unit, individually it can be generated in cash register front end.
Because cash register front end in volume and carries the restriction in convenience, its corresponding cash register flow will not be in cash register front end
Upper execution, but ask transmission to send to server cash register by way of wireless connection by cash register front end, by server pair
It is handled.
Display module 40, for when receiving gathering code of the server based on gathering request feedback, showing the gathering
Code;
The gathering request is that cash register front end is generated and sent to server, and it is handled by server.But paying party
It is the customer for buying commodity, therefore corresponding cash register payment process needs customer to participate in wherein.Server to gathering ask into
After row processing, display module can receive gathering code of the server based on gathering request feedback.The gathering code can be gathering
Detailed bill, Quick Response Code, shroff account number etc. information of collecting money, it is mainly used in carrying out commodity payment for customer, to complete this business
The cash register bill of product information, therefore the gathering code is provided to customer, can be shown by the display device that display module connects
Come.
The server includes:
Second receiving module 80, the commodity data sent for receiving cash register front end based on wireless connection;
3rd sending module 90, for getting merchandise news based on commodity data, and merchandise news is based on wirelessly connecting
Cash register front end is delivered in sending and receiving;
Server is exchanging transmission with data can be achieved in the radio link channel of cash register front end, and the second of server connect
The commodity data that cash register front end is sent based on wireless connection can be received by receiving module.And according to commodity data, the 3rd sending module
Merchandise news corresponding to the commodity data can be inquired.For example, commodity data is goods number " BAS372159 ", and servicing
In the database of device memory cell, the merchandise news corresponding to " BAS372159 " is " stationery:Pencil with 2B hardness, unit price:3 yuan,
Stock:53 ", these merchandise newss are sent as important reference data to cash register front end, for cash register based on wireless connection
Front end is called.
Generation module 100, for receiving the gathering request of cash register front end transmission, and based on gathering request generation gathering code;
4th sending module 110, for gathering code to be sent to cash register front end.
The gathering request is generated by cash register front end, to ensure cash register front end small volume, characteristic easy to carry, cash desk
Reason flow will carry out execution processing by server.The generation module of server receives the gathering request that cash register front end is sent, and root
Generation gathering code is asked according to gathering.It is understood that because gathering request is that the commodity price clearing based on merchandise news please
Ask, that is to say, that corresponding merchandise news is contained in gathering request, such as trade name, commodity amount, cargo price, commodity
Total price etc..And the information in being asked according to gathering, generation module can generate corresponding commodity gathering code in real time, gathering code is right
What is answered is the Receiving information of all commodity total prices in this gathering request.Gathering code can be simple gathering detailed bill,
So that user or client carry out confirmation examination & verification;Either gathering Quick Response Code, is directly paid the bill online for client;Either one
Shroff account number, enter payment etc. under line for client.
After generation module generates gathering code, the 4th sending module need to be sent gathering code to cash register based on wireless connection
Front end, so as to cash register front end show corresponding to Receiving information.
In technical scheme, the first sending module obtains the commodity data of user's input, and by commodity data base
Sent in wireless connection to server;The commodity letter that first receiving module is received and display server is fed back based on commodity data
Breath;When the second sending module, which detects, generates gathering request based on merchandise news, gathering request is sent to server;When aobvious
When showing that module receives gathering code of the server based on gathering request feedback, the gathering code is shown.Second receiving module receives
The commodity data that cash register front end is sent based on wireless connection;3rd sending module gets merchandise news based on commodity data, and
Merchandise news is sent to cash register front end based on wireless connection;Generation module receives the gathering request that cash register front end is sent, and base
Generation gathering code is asked in gathering;4th sending module sends gathering code to cash register front end.The present invention is received by Optimal Decomposition
Silver-colored statistical mechanism, complete cash register flow is divided into front end and backstage and independently run, greatly reduces cash register front end to hard
The requirement of part, and function for receiving cash is integrated on server, the connection of cash register front end and server is realized in a manner of infinitely connecting
Dynamic, solving large-scale professional cashier's machine is inconvenient to carry, and power consumption is big, the technical problem of usage experience difference, improves businessman user
Usage experience.
The present invention further provides a kind of cash register, reference picture 6, Fig. 6 is the hardware that present invention method is related to
The device structure schematic diagram of running environment.
Terminal of the embodiment of the present invention can be PC or smart mobile phone, tablet personal computer, E-book reader, MP3
(Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio aspect 3)
Player, MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard sound
Frequency aspect 4) terminal device such as player, pocket computer.
As shown in fig. 6, the cash register can include:Processor 1001, such as CPU, memory 1005, communication bus
1002.Wherein, communication bus 1002 is used to realize the connection communication between processor 1001 and memory 1005.Memory 1005
Can be high-speed RAM memory or stable memory (non-volatile memory), such as magnetic disk storage.
Memory 1005 optionally can also be the storage device independently of aforementioned processor 1001.
Alternatively, the cash register can also include user interface, network interface, camera, RF
(RadioFrequency, radio frequency) circuit, sensor, voicefrequency circuit, WiFi module etc..User interface can include display screen
(Display), input block such as keyboard (Keyboard), optional user interface can also include wireline interface, the nothing of standard
Line interface.Network interface can optionally include wireline interface, the wave point (such as WI-FI interfaces) of standard.
It will be understood by those skilled in the art that the cash register structure shown in Fig. 6 does not form the limit to cash register
It is fixed, it can include than illustrating more or less parts, either combine some parts or different parts arrangement.
As shown in fig. 6, it can lead to as in a kind of memory 1005 of computer-readable storage medium including operating system, network
Believe module and cash register clearing program.Operating system is management and the program for controlling cash register hardware and software resource, is supported
Cash register settles accounts the operation of program and other softwares and/or program.Network communication module is used to realize that the inside of memory 1005 is each
Communication between component, and with being communicated in cash register between other hardware and softwares.
In the cash register shown in Fig. 6, processor 1001 is used to perform the cash register clearing journey stored in memory 1005
Sequence, realize following steps:
Cash register front end obtains the commodity data of user's input, and commodity data is sent to server based on wireless connection;
The merchandise news that cash register front end receiver and display server are fed back based on commodity data;
When cash register front-end detection is to based on merchandise news generation gathering request, gathering request is sent to server;
When the gathering code that cash register front end receiver to server is fed back based on gathering request, the gathering code is shown.
Further, the step of commodity data of cash register front end acquisition user's input includes:
When cash register front-end detection to codeword value, which is set, to be instructed, the setting operation based on user is to the commodity data that prestores
Goods number carries out codeword value setting;
Cash register front end obtains the codeword value of user's input;
Cash register front end obtains commodity data corresponding with the goods number that codeword value is mutually matched.
Further, the merchandise news is shown in the form of commodity bill, and the cash register settlement method also includes:
When cash register front-end detection instructs to more bills, create and show new commodity bill, so that user is to commodity number
According to being settled accounts respectively.
Further, the cash register front end also includes before obtaining the step of commodity data of user's input:
When the pairing request that cash register front end receiver to server is sent, the first account identification in pairing request is obtained;
When cash register front-end detection to the first account identification and the second account identification to prestore are mutually matched, sent out to server
Send pairing check to instruct, and wireless data connection is established between cash register front end and server.
Further, the cash register front end is based on codeword value scan interface, codeword value typing interface and commodity identification interface
In one or more of commodity datas for obtaining users' input.
Further, the cash register settlement method includes:
Server receives the commodity data that cash register front end is sent based on wireless connection;
Server gets merchandise news based on commodity data, and merchandise news is sent to cash register based on wireless connection
End;
Server receives the gathering request that cash register front end is sent, and based on gathering request generation gathering code;
Server sends gathering code to cash register front end.
Further, the server is gone back before receiving the step of commodity data that cash register front end is sent based on wireless connection
Including:
Server sends pairing request to cash register front end, and the pairing request includes the first account identification;
When server receives the pairing check instruction of cash register front end transmission, established between server and cash register front end
Wireless data connects.
The embodiment of cash register of the present invention and above-mentioned each embodiment of cash register settlement method are essentially identical, herein not
Repeat again.
Present invention also offers a kind of computer-readable recording medium, the computer-readable recording medium storage has one
Or more than one program, one either more than one program can also by one or more than one computing device with
For:
Cash register front end obtains the commodity data of user's input, and commodity data is sent to server based on wireless connection;
The merchandise news that cash register front end receiver and display server are fed back based on commodity data;
When cash register front-end detection is to based on merchandise news generation gathering request, gathering request is sent to server;
When the gathering code that cash register front end receiver to server is fed back based on gathering request, the gathering code is shown.
Computer-readable recording medium embodiment of the present invention and the basic phase of above-mentioned each embodiment of cash register settlement method
Together, will not be repeated here.
For convenience of the technical thought of the present invention is understood, will be explained below by a preferred embodiment:
Reference picture 7, the hardware device of cash register settlement system may include cash register front end and server, and the cash register front end includes
First chip, and input block, display unit and the first communication unit being connected respectively with the first chip signal, described first
Second communication unit wireless signal of communication unit and the background server matched with cash register front end is connected;
The background server includes the second chip, and be connected respectively with the second chip signal the second communication unit,
Data matching unit and cash register recording unit, second communication unit and matched with background server the first of cash register front end
Communication unit wireless signal connects.
Wherein, first chip and the second chip pass in respective equipment to the data between each unit respectively
It is defeated, forwarding and identifying processing.First communication unit and the second communication unit are set up wirelessly between cash register front end and server
Interface channel, and data transfer exchange (all sending/receivings i.e. in this cash register settlement system of real-time guarantees therebetween
Block).In cash register front end, display unit includes the display module in the present invention, is the medium for realizing man-machine interaction, passes through display
The step of exporting commodity data and guiding businessman user's progress merchandise news or the input finishing man-machine interaction of instruction, it is usually
Complete display screen;Input block can be keyboard, touch-screen, various sound identification modules etc.;And detection unit of collecting money
It is then the part steps function in generation module in the present invention.
And in the server, data matching unit can realize the function that merchandise news is obtained in the embodiment of the present invention, and receive
Money recording unit is generally memory, can be by under the All Activity order data complete documentations such as the gathering record of all commodity bills
Come, so that subsequent query is called.
Gathering unit includes the functional steps of generation gathering code in the embodiment of the present invention, may additionally include based on gathering
The payment payment flow of code, such as the checking confirmation to online payment flow of the customer based on gathering code.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements not only include those key elements, and
And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Other identical element also be present in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, computer, clothes
Be engaged in device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.