Summary of the invention
A kind of apparatus control method and device are provided in the embodiment of the present invention, to solve in the prior art not convenient ask
Topic.
In order to solve the above-mentioned technical problem, the embodiment of the invention discloses following technical solutions:
A kind of apparatus control method is applied to payment terminal, which comprises
It detects whether to receive settlement request, includes product name, quantity and list to be paid in the settlement request
Valence;
When receiving settlement request, the wireless signal for receiving wearable device broadcast is detected whether;
When receiving the wireless signal of wearable device broadcast, according to default marker extraction mode from the wireless signal
Extract anonymous identification;
The anonymous identification is decrypted using default public key, obtains the identity of the wearable device;
Discount information corresponding with the requesting party of the settlement request is determined using the identity;
Settlement process is carried out to the settlement request using the discount information.
Optionally, described to determine discount information packet corresponding with the requesting party of the settlement request using the identity
It includes:
Obtain the corresponding relationship of pre-set identity and discount information;According to the corresponding relationship search with it is described
The corresponding discount information of identity;
And/or
Discount information acquisition request is generated, carries the identity in the discount information acquisition request;By the folding
Button information acquisition request is sent to predetermined server, so that the server is according to pre-set identity and discount information
Corresponding relationship, search corresponding with identity discount information, and be sent to the payment terminal;It receives described default
The discount information that server is sent.
Optionally, described to include: to settlement request progress settlement process using the discount information
Extract product name to be paid, quantity and the unit price in the settlement request;According to the trade name to be paid
Title, quantity, unit price and the discount information calculate total gold after single-piece discounted price corresponding with the settlement request and discount
Volume;
And/or
Establish the corresponding relationship in the settlement request between product name and quantity to be paid and the identity;It deposits
Store up the corresponding relationship in the settlement request between product name and quantity to be paid and the identity.
Optionally, described to detect whether that the wireless signal for receiving wearable device broadcast includes:
To progress Bluetooth signal scanning within the scope of pre-determined distance;
Detect whether to receive the Bluetooth signal that wearable device is sent within the scope of the pre-determined distance;
When receiving the Bluetooth signal that wearable device is sent within the scope of the pre-determined distance, determination receives wearable device
The wireless signal of broadcast.
A kind of apparatus control method is applied to wearable device, comprising:
Obtain the identity of the wearable device;
The identity is encrypted using default private key, obtains anonymous identification;
The anonymous identification is added in broadcast singal, and according to default broadcast mode to the broadcast singal into
Row broadcast.
Optionally, the method also includes:
It determines the default private key for being encrypted to obtain anonymous identification to identity and determines for hideing
The default public key that name identity is decrypted;
The default private key storage is wirelessly sent into the wearable device, and by the default public key
Default payment terminal, so that the default payment terminal solves the anonymous identification received using the default public key
It is close.
A kind of plant control unit, is applied to payment terminal, and described device includes:
Request detection unit includes quotient to be paid in the settlement request for detecting whether receiving settlement request
The name of an article claims, quantity and unit price;
Detecting signal unit receives the wireless of wearable device broadcast for detecting whether when receiving settlement request
Signal;
Marker extraction unit, for when receive wearable device broadcast wireless signal when, according to default marker extraction side
Formula extracts anonymous identification from the wireless signal;
Decryption unit obtains the wearable device for the anonymous identification to be decrypted using default public key
Identity;
Information determination unit, for determining discount corresponding with the requesting party of the settlement request using the identity
Information;
Clearing unit, for carrying out settlement process to the settlement request using the discount information.
Optionally, the information determination unit includes:
Subelement is obtained, for obtaining the corresponding relationship of pre-set identity and discount information;Subelement is searched,
For searching discount information corresponding with the identity according to the corresponding relationship;
And/or;
Request generates subelement and carries institute in the discount information acquisition request for generating discount information acquisition request
State identity;Transmission sub-unit is requested, for the discount information acquisition request to be sent to predetermined server, so that described
Server searches discount corresponding with the identity according to the corresponding relationship of pre-set identity and discount information
Information, and it is sent to the payment terminal;Receiving subelement, the discount information sent for receiving the predetermined server.
Optionally, the clearing unit includes:
Subelement is extracted, for extracting product name to be paid, quantity and unit price in the settlement request;Calculate son
Unit, for calculating and the settlement request according to product name, quantity, unit price and the discount information to be paid
Total amount after corresponding single-piece discounted price and discount;
And/or
Establish subelement, for establish in the settlement request product name and quantity to be paid and the identity it
Between corresponding relationship;Storing sub-units, for storing product name and quantity to be paid and the identity in the settlement request
Corresponding relationship between mark.
Optionally, the detecting signal unit includes:
Subelement is scanned, for progress Bluetooth signal scanning within the scope of pre-determined distance;
Bluetooth signal detection sub-unit, for detecting whether receiving what wearable device within the scope of the pre-determined distance was sent
Bluetooth signal;
Signal determines subelement, for when the Bluetooth signal for receiving wearable device transmission within the scope of the pre-determined distance
When, determine the wireless signal for receiving wearable device broadcast.
A kind of plant control unit, is applied to wearable device, and described device includes:
Acquiring unit, for obtaining the identity of the wearable device;
Encryption unit obtains anonymous identification for encrypting using default private key to the identity;
Radio unit, for the anonymous identification to be added in broadcast singal, and according to default broadcast mode pair
The broadcast singal is broadcasted.
Optionally, described device further include:
Determination unit, for determine default private key for being encrypted to obtain anonymous identification to identity and
Determine the default public key for anonymous identification to be decrypted;
Storage unit, for storing the default private key into the wearable device;
Transmission unit, for the default public key to be wirelessly sent to default payment terminal, so as to described pre-
If payment terminal is decrypted the anonymous identification received using the default public key.
The technical scheme provided by this disclosed embodiment can include the following benefits:
This method detects settlement request first, when receiving settlement request, the wireless signal of detection wearable device broadcast;
And it when receiving the wireless signal of wearable device broadcast, is extracted from the wireless signal according to default marker extraction mode
Anonymous identification;Then the anonymous identification is decrypted using default public key, obtains the body of the wearable device
Part mark;The identity is recycled, determines discount information corresponding with the requesting party of the settlement request;Finally recycle
The discount information carries out settlement process to the settlement request.So using this method, when being settled accounts, can quickly,
It easily determines discount information corresponding with the wearer of wearable device, is swept without user's brush member card, operation mobile terminal
Code or the operation such as quote member card, therefore this method can be paid in clearing with more convenient user.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The disclosure can be limited.
Specific embodiment
Technical solution in order to enable those skilled in the art to better understand the present invention, below in conjunction with of the invention real
The attached drawing in example is applied, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described implementation
Example is only a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, this field is common
Technical staff's every other embodiment obtained without making creative work, all should belong to protection of the present invention
Range.
Fig. 1 is a kind of flow diagram of apparatus control method provided in an embodiment of the present invention.
The apparatus control method can be applied in payment terminal, such as: the POS machine in market or the cash register of supermarket
Deng.As shown in Figure 1, the apparatus control method may comprise steps of.
S101 detects whether to receive settlement request.
It include product name, quantity and unit price to be paid in the settlement request.
Settlement request can be payment terminal oneself generation, such as: market cashier is direct after operating to cash register machine
It generates, is also possible to what the triggering of other equipment generated, such as: user swipes the card movement in POS machine, can trigger generation and settles accounts and ask
It asks.
S102 detects whether the wireless signal for receiving wearable device broadcast when receiving settlement request.
It when receiving settlement request, indicates to start formal settlement process, directly determines clearing gold under normal conditions at present
Then volume needs user to pay in cash or cCredit card payment.But in this application, after receiving settlement request, not directly
Settlement amounts are generated, but first detect whether to receive the wireless signal of wearable device.
Here the wireless signal of wearable device can also meet certain condition lower carry out extensively with periodic broadcast
It broadcasts, such as: when the location information of wearable device is located in the orientation range of default market or supermarket, start to broadcast, other feelings
It is not broadcasted under under condition.
In the embodiment of the present application, step S102 may comprise steps of:
S01, to progress Bluetooth signal scanning within the scope of pre-determined distance;
S02 detects whether to receive the Bluetooth signal that wearable device is sent within the scope of the pre-determined distance;
S03, when receiving the Bluetooth signal that wearable device is sent within the scope of the pre-determined distance, determination receives wearing
The wireless signal of device broadcasts.
S103, when receiving the wireless signal of wearable device broadcast, according to default marker extraction mode from described wireless
Anonymous identification is extracted in signal.
In the wireless signal of wearable device broadcast, identity can be carried, correspondingly, in this step, Ke Yigen
According to the marker extraction mode obtained in advance, the wireless signal received is extracted, anonymous identification is obtained.
Considering the safety of signal, it is generally the case that wearable device directly will not directly broadcast the identity of oneself,
Other malfeasances are carried out after avoiding unauthorized person from being truncated to the identity, and user is caused property loss occur.So at this
Apply in embodiment, identity can be encrypted in advance for wearable device, obtain an anonymous identification.Accordingly
Ground, when receiving the broadcast singal of wearable device, needs to extract the anonymous Identity mark from broadcast singal for payment terminal
Know.
S104 is decrypted the anonymous identification using default public key, obtains the identity mark of the wearable device
Know.
Default public key can be sent to payment terminal for wearable device in advance, be then store in payment terminal.In this way, one
Denier payment terminal is after extracting anonymous identification in the broadcast singal of wearable device, so that it may utilize pre-stored public key
The anonymous identification is decrypted, the identity of wearable device is obtained.
S105 determines discount information corresponding with the requesting party of the settlement request using the identity.
After payment terminal determines identity, so that it may determine discount information corresponding with the identity, it correspondingly, should
The corresponding discount information of the requesting party of discount information i.e. settlement request.
S106 carries out settlement process to the settlement request using the discount information.
Commodity to be settled accounts can be taken cashier by this method provided by the embodiments of the present application, in practical applications, user
It settles accounts, when cashier is scanned after settling accounts commodity, the total amount of this available commodity to be settled accounts, then user can be with
Wearable device is moved in the preset range of payment terminal, the broadcast letter that then payment terminal can be sent from wearable device
In number, obtain identity corresponding with wearable device, so it is available arrive discount information, and on the basis of total amount into
Row settlement process.Since under normal conditions, the transmission range of wireless signal is smaller between wearable device and payment terminal, only several
Centimetre, so actively wearable device is contacted with payment terminal only, can just complete to scan, without should in clearing
The other wearable devices walked about around payment terminal, which are scanned into, to be come.
Since this method detects settlement request first, when receiving settlement request, detection wearable device is broadcasted wireless
Signal;And when receiving the wireless signal of wearable device broadcast, according to default marker extraction mode from the wireless signal
Middle extraction anonymous identification;Then the anonymous identification is decrypted using default public key, obtains the wearing and sets
Standby identity;The identity is recycled, determines discount information corresponding with the requesting party of the settlement request;Finally
The discount information is recycled to carry out settlement process to the settlement request.It, can be with when being settled accounts so using this method
Quickly and conveniently determine discount information corresponding with the wearer of wearable device, it is mobile eventually without user's brush member card, operation
End barcode scanning or the operation such as quote member card, therefore this method can be paid in clearing with more convenient user.
It is aforementioned to utilize the determining requesting party couple with the settlement request of the identity in the application one embodiment
The step of discount information answered, may comprise steps of:
S11 obtains the corresponding relationship of pre-set identity and discount information;
S12 searches discount information corresponding with the identity according to the corresponding relationship.
It is aforementioned to utilize the determining requesting party couple with the settlement request of the identity in the application one embodiment
The step of discount information answered, may comprise steps of:
S21 generates discount information acquisition request, carries the identity in the discount information acquisition request;
The discount information acquisition request is sent to predetermined server by S22, so that the server is according to presetting
Identity and discount information corresponding relationship, search corresponding with identity discount information, and described in being sent to
Payment terminal;
S23 receives the discount information that the predetermined server is sent.
In both of the aforesaid embodiment, in the corresponding embodiment of S11, mapping table is stored in payment terminal local, so
Directly it locally can search corresponding relationship.And in the corresponding embodiment of S21, mapping table stores in the server,
And then when payment terminal needs the discount information, it is necessary to send and request to server, so that server is searched according to request
Corresponding relationship simultaneously returns.
It is aforementioned that settlement process is carried out to the settlement request using the discount information in the application one embodiment
Step may comprise steps of:
S31 extracts product name to be paid, quantity and unit price in the settlement request;
S32, according to product name, quantity, unit price and the discount information to be paid, calculating is asked with the clearing
Seek total amount after corresponding single-piece discounted price and discount.
It is aforementioned that settlement process is carried out to the settlement request using the discount information in the application one embodiment
Step may comprise steps of:
S41 establishes the corresponding pass in the settlement request between product name and quantity to be paid and the identity
System;
S42 stores the corresponding pass in the settlement request between product name and quantity to be paid and the identity
System.
In the corresponding embodiment of aforementioned S31, the amount of money after directly giving one discount of user is convenient for user-pay.And S41
In corresponding embodiment, information of user this consumption can also be recorded, so as to the subsequent MassPay of user or right
Consumer record is added up.
Fig. 2 is the flow diagram of another apparatus control method provided by the embodiments of the present application.
The apparatus control method is applied in wearable device, as shown in Fig. 2, this method may comprise steps of.
S201 obtains the identity of the wearable device.
The identity of wearable device can be the hardware identifier of equipment itself, or operation system in the wearable device
It unites corresponding User ID etc..As long as the wearable device can be uniquely determined out, so that it may the identity as wearable device.
S202 encrypts the identity using default private key, obtains anonymous identification.
In the embodiment of the present application, when being encrypted, using well known to a person skilled in the art encryption technologies, so in advance
If private key and default public key be also it is known in those skilled in the art, details are not described herein.
The anonymous identification is added in broadcast singal by S203, and according to default broadcast mode to the broadcast
Signal is broadcasted.
Due in embodiment shown in FIG. 1, it is desirable that when user settles accounts at any time, can be convenient from portable
Identity is extracted in equipment, and then facilitates determining discount information.So require wearable device before clearing, can actively into
Row broadcast, rather than user is needed to trigger.The broadcast mode of this active can be periodical indifference broadcast, can also be in spy
Periodic broadcasting is carried out around fixed businessman, and is not broadcasted then in other positions.
In the embodiment of the present application, it after sending anonymous identification for the ease of wearable device, can accurately be decrypted, institute
With, this method before broadcasting broadcast singal, can with the following steps are included:
S301, determination to identity for being encrypted to obtain the default private key of anonymous identification and determine to be used for
The default public key that anonymous identification is decrypted;
S302, by the default private key storage into the wearable device, and wirelessly by the default public key
Be sent to default payment terminal, so as to the default payment terminal using the default public key to the anonymous identification received
It is decrypted.
Through the above steps, the corresponding default public key of identity can be sent to payment terminal in advance, so when into
When row clearing, as long as wearable device sends anonymous identification, payment terminal can decrypt to obtain identity.
Fig. 3 is a kind of structural schematic diagram of plant control unit provided by the embodiments of the present application.
The plant control unit shown in Fig. 3 is applied to payment terminal, as shown in figure 3, the apparatus may include:
Request detection unit 11 includes to be paid in the settlement request for detecting whether receiving settlement request
Product name, quantity and unit price;
Detecting signal unit 12, for when receiving settlement request, detecting whether to receive the nothing of wearable device broadcast
Line signal;
Marker extraction unit 13, for when receive wearable device broadcast wireless signal when, according to default marker extraction
Mode extracts anonymous identification from the wireless signal;
Decryption unit 14 is obtained the wearing and set for the anonymous identification to be decrypted using default public key
Standby identity;
Information determination unit 15, for determining folding corresponding with the requesting party of the settlement request using the identity
Detain information;
Clearing unit 16, for carrying out settlement process to the settlement request using the discount information.
In the application one embodiment, information determination unit may include:
Subelement is obtained, for obtaining the corresponding relationship of pre-set identity and discount information;Subelement is searched,
For searching discount information corresponding with the identity according to the corresponding relationship;
In another embodiment of the application, information determination unit may include:
Request generates subelement and carries institute in the discount information acquisition request for generating discount information acquisition request
State identity;Transmission sub-unit is requested, for the discount information acquisition request to be sent to predetermined server, so that described
Server searches discount corresponding with the identity according to the corresponding relationship of pre-set identity and discount information
Information, and it is sent to the payment terminal;Receiving subelement, the discount information sent for receiving the predetermined server.
In the application one embodiment, clearing unit may include:
Subelement is extracted, for extracting product name to be paid, quantity and unit price in the settlement request;
Computation subunit, for calculating according to product name, quantity, unit price and the discount information to be paid
Total amount after single-piece discounted price corresponding with the settlement request and discount.
In another embodiment of the application, clearing unit may include:
Establish subelement, for establish in the settlement request product name and quantity to be paid and the identity it
Between corresponding relationship;Storing sub-units, for storing product name and quantity to be paid and the identity in the settlement request
Corresponding relationship between mark.
In the application one embodiment, detecting signal unit may include:
Subelement is scanned, for progress Bluetooth signal scanning within the scope of pre-determined distance;
Bluetooth signal detection sub-unit, for detecting whether receiving what wearable device within the scope of the pre-determined distance was sent
Bluetooth signal;
Signal determines subelement, for when the Bluetooth signal for receiving wearable device transmission within the scope of the pre-determined distance
When, determine the wireless signal for receiving wearable device broadcast.
Fig. 4 is a kind of structural schematic diagram of plant control unit provided by the embodiments of the present application.
The plant control unit shown in Fig. 4 is applied to wearable device, as shown in figure 4, the apparatus may include:
Acquiring unit 21, for obtaining the identity of the wearable device;
Encryption unit 22 obtains anonymous identification for encrypting using default private key to the identity;
Radio unit 23, for the anonymous identification to be added in broadcast singal, and according to default broadcast mode
The broadcast singal is broadcasted.
In the application one embodiment, shown in Fig. 4 the apparatus may include:
Determination unit, for determine default private key for being encrypted to obtain anonymous identification to identity and
Determine the default public key for anonymous identification to be decrypted;
Storage unit, for storing the default private key into the wearable device;
Transmission unit, for the default public key to be wirelessly sent to default payment terminal, so as to described pre-
If payment terminal is decrypted the anonymous identification received using the default public key.
It should be noted that, in this document, the relational terms of such as " first " and " second " or the like are used merely to one
A entity or operation with another entity or operate distinguish, without necessarily requiring or implying these entities or operation it
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant are intended to
Cover non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or setting
Standby intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in the process, method, article or apparatus that includes the element.
The above is only the specific embodiment of the application, is made skilled artisans appreciate that or realizing this Shen
Please.Various modifications to these embodiments will be apparent to one skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the application.Therefore, the application
It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one
The widest scope of cause.