Specific embodiment
In order to make those skilled in the art better understand the technical solutions in the application, below in conjunction with the application reality
The attached drawing in mode is applied, the technical solution in the application embodiment is clearly and completely described, it is clear that described
Embodiment is only a part of embodiment of the application, rather than whole embodiments.Based on the embodiment party in the application
Formula, every other embodiment obtained by those of ordinary skill in the art without making creative efforts, is all answered
When the range for belonging to the application protection.
The application embodiment provides a kind of method of payment, and the method for payment can be applied to client and payment terminal
System architecture in.The payment terminal can be the Cash collecting equipment with blue tooth communication function.It is carried out between client
When bluetooth communication, the payment terminal is generally in slave pattern, can issue the signal of Bluetooth band.Specifically, the payment
Terminal for example can be point of sale (Point of Sale, POS) equipment, public transport charge equipment, school with blue tooth communication function
The Cash collecting equipments such as garden charge equipment;Or run in the Cash collecting equipment, the software of support is provided for gathering.In this implementation
The quantity of the payment terminal is not limited in mode specifically.The payment terminal can be a payment terminal, can also be
Several payment terminals, alternatively, the payment terminal cluster that several payment terminals are formed.
In the present embodiment, the client can be for mobile payment and the electronics with blue tooth communication function is set
It is standby.When carrying out bluetooth communication between payment terminal, the client is generally in holotype, the available signal pair
The signal intensity profile data answered.Specifically, the client for example can be tablet computer, laptop, smart phone,
Digital assistants, intelligent wearable device etc..Alternatively, the client may be can run on it is soft in above-mentioned electronic equipment
Part.Specifically, the client can for example can be for the mobile application in electronic equipment, the mobile application wechat,
PayPal etc..
The application embodiment provides a kind of method of information exchange, and the method for the information exchange can be applied to above-mentioned
Client in.The method corresponding initial transmission threshold when can be provided with payment terminal progress payment data transmission
Value and initial signal intensity distributed data.
In the present embodiment, the initial transmission threshold value can be a signal strength instruction (Received Signal
Strength Indication, RSSI) value.The initial transmission threshold value can be client and the payment terminal for the first time into
Row payment data corresponding propagation threshold, that is, the propagation threshold initially set up when transmitting.In general, the transmission threshold initially set up
Value can be a lesser value, for example, -100 decibels above milliwatts (dbm), to guarantee different clients, such as different intelligence
Energy mobile phone, can trigger the payment data transfer function between the payment terminal.
Moreover, the initial transmission threshold value can also be carries out payment number in client and the payment terminal for the first time
After transmission, corresponding propagation threshold when payment data transmission is once carried out with the payment terminal.
In the present embodiment, the initial signal intensity distributed data can be a kind of RSSI distributed data.Wherein, institute
Stating RSSI distributed data can be the client Bluetooth signal correspondence that at the appointed time the interior payment terminal obtained of section issues
RSSI value.In this way, may include the corresponding frequency of different RSSI values in the RSSI distributed data.
In the present embodiment, the initial signal intensity distributed data can be client and the payment terminal for the first time
Carry out the signal intensity profile data that obtain when payment data transmission, can also be client and the payment terminal for the first time into
After the transmission of row payment data, with the primary signal intensity profile number obtained when payment data transmission of the payment terminal
According to.
In the present embodiment, meet the associated item of initial transmission threshold value in the initial signal intensity distributed data
In the case where part, client can carry out payment data transmission with the payment terminal.Specifically, the initial transmission threshold value is closed
The condition of connection may include that the signal strength average value in the initial signal intensity distributed data is greater than or equal to described initial
Propagation threshold.
In the present embodiment, after client carries out payment data transmission with the payment terminal every time, it can recorde this
Corresponding propagation threshold and signal intensity profile data when the secondary progress payment data transmission with the payment terminal, with update and institute
It states payment terminal and carries out corresponding object transmission threshold value when payment data transmission next time.
Referring to Fig. 3, the method may include following steps.
S11: according to the initial transmission threshold value and the initial signal intensity distributed data, object transmission threshold value is determined.
In the present embodiment, client can according to the payment terminal last time carry out payment data transmission when pair
The initial transmission threshold value and initial signal intensity distributed data answered, determine the object transmission threshold value, using as with the payment
Terminal carries out the judgment basis of payment data transmission again.Specifically, client can be based on the advance with the payment terminal
Row payment data transmission number, with the payment data transmit the associated specified parameter of number and the initial letter
Signal strength maximum value in number intensity distribution data, determines weight coefficient, so that according to the weight coefficient, the signal
The object transmission threshold value that signal strength maximum value and the initial transmission threshold value in intensity distribution data determine, with distance to a declared goal
The absolute value of the difference of the maximum signal strength indication of accounting is less than or equal to specified strong in corresponding signal intensity profile data
Angle value.Wherein, the distance to a declared goal can be at a distance from when client usually carries out payment data transmission with the payment terminal,
The distance can be set according to practical application scene.For example, user is paid on bus by certain smart phone
When, typically 5~10 centimetres of the distance between charge equipment on the smart phone and bus.Alternatively, user is learning
When the dining room in school is paid by the smart phone, the distance between charge equipment of the smart phone and dining room window is usually
It is 10~15 centimetres.The specified intensity value can be zero, or level off to zero lesser value.In this way, making in user
Client at a distance from the payment terminal close to the distance to a declared goal when, in acquired signal intensity profile data
Signal strength be greater than the object transmission threshold value probability it is bigger, in this way, client can quickly with the payment terminal into
Row connection, and payment data transmission is carried out, so as to improve payment speed.
It moreover, can also be on the basis of the embodiment of the above-mentioned determination object transmission threshold value, described in consideration
Signal strength average value in initial signal intensity distributed data.Specifically, client be also based on the payment terminal it
The preceding number for carrying out payment data transmission, with the associated specified parameter of number of payment data transmission and it is described at the beginning of
Signal strength average value and signal strength maximum value in beginning signal intensity profile data, determine weight coefficient, so that according to
The weight coefficient, the signal strength average value in the signal intensity profile data and signal strength maximum value and described
The object transmission threshold value that initial transmission threshold value determines, the maximum letter of accounting in signal intensity profile data corresponding with distance to a declared goal
The absolute value of the difference of number intensity value is less than or equal to specified intensity value.
In the present embodiment, when the signal strength maximum value in the initial signal intensity distributed data subtract it is described just
It, can be according to the initial transmission threshold value and the initial signal intensity when value obtained after beginning propagation threshold is greater than specified difference
Distributed data determines object transmission threshold value.For example, the signal strength maximum value in the initial signal intensity distributed data subtracts
When the value obtained after the initial transmission threshold value being gone to be greater than specified difference, i.e. VMn-Tn> p, wherein VMnIt indicates and the payment
Terminal n-th carries out signal strength maximum value when payment data transmission in corresponding initial signal intensity distributed data, TnTable
Corresponding initial transmission threshold value, p indicate the specified difference when showing with payment terminal n-th progress payment data transmission;
The object transmission threshold value T can be determined using following formulan+1:
Tn+1=α (VMn-q)+(1-α)Tn
Wherein, α indicates that the weight coefficient, b indicate specified ginseng associated with the frequency n that the payment data is transmitted
Number, for example, when the frequency n of payment data transmission is less than or equal to 2, b 2, when n is greater than 2, b 5;Q andIt is respectively
Parameter associated with the specified difference.For example, when the specified difference be 20dbm when, q andIt can be respectively 15 Hes
18。
After the signal strength maximum value in the initial signal intensity distributed data subtracts the initial transmission threshold value
When the value arrived is less than or equal to the specified difference, using the initial transmission threshold value as the object transmission threshold value, i.e., do not exist
Update propagation threshold.In practical applications, value range typically 15~20dbm of the specified difference.
S13: obtaining current signal intensity profile data, and judges whether the current signal intensity profile data are full
The foot associated condition of object transmission threshold value;If satisfied, carrying out payment data transmission again with the payment terminal.
It in the present embodiment, can before client needs to carry out payment data transmission again with the payment terminal
First to obtain current signal intensity profile data, and judge whether the current signal intensity profile data meet the mesh
Mark the associated condition of propagation threshold.If satisfied, payment data transmission can be carried out again with the payment terminal.The target
The associated condition of propagation threshold, can specifically include: the signal strength average value in the current signal intensity profile data
More than or equal to the object transmission threshold value.In this way, the signal strength in the current signal intensity profile data is average
In the case that value is greater than or equal to the object transmission threshold value, client can carry out payment data with the payment terminal again
Transmission.
In a concrete application scene, the client is smart phone, and the payment terminal is the receipts on bus
Money equipment, the gathering equipment and the smart phone are attached by bluetooth and are transmitted with payment data, wherein at the gathering equipment
In slave pattern, the signal of different frequency range is broadcasted, which scans the signal, and it is strong to obtain the corresponding signal of the signal
Spend distributed data.When taking bus last time, user carries out payment data transmission by the smart phone and the gathering equipment,
And it completes to pay, while smart phone record and corresponding initial transmission threshold value when gathering equipment progress payment data transmission
Next time and the gathering are calculated and according to initial transmission threshold value and initial signal intensity threshold value with initial signal intensity distributed data
Equipment carries out corresponding object transmission threshold value when payment data transmission.User takes bus again, and upper Chinese herbaceous peony is ready to pass through this
Smart phone carries out bus fee paying can pass through during user holds the smart phone close to the gathering equipment
The smart phone obtains current signal strength data, and judges that the signal strength average value in current signal strength data is big
In or be equal to object transmission threshold value determine to work as when the distance between the smart phone and the gathering equipment reach distance to a declared goal
Signal strength average value in preceding signal strength data is greater than object transmission threshold value, and at this moment, which can be with this
Gathering equipment carries out payment data transmission again.In this way, the propagation threshold being adapted with the smart phone can be automatically updated, with
So that user can be carried out normally paying using different smart phones, to improve user at common payment distance
Payment experience.
Moreover, for different gathering equipments, the smart phone can also automatically update respectively from different cashing machines
Tool carries out corresponding propagation threshold when payment data transmission, in this way, can be to avoid the signal issued by different gathering equipments
Compatibility issue caused by intensity is different.
In one embodiment of the application, since client transmits it in progress payment data with the payment terminal
Before, need first to establish connection, and typically set up connection and need 0.2 second~0.3 second, therefore, in order to further increase the branch of user
Experience is paid, client can also first be carried out with the payment terminal before carrying out payment data transmission with the payment terminal
Pre-connection.Specifically, judging it is associated whether the current signal intensity profile data meet the object transmission threshold value
Before condition, the method can also include the following steps.
S21: according to the object transmission threshold value, target pre-connection threshold value is determined;Wherein, the target pre-connection threshold value is small
In the object transmission threshold value.
In the present embodiment, it according to the object transmission threshold value, determines target pre-connection threshold value, can specifically include,
By the first prescribed coefficient multiplied by parameter associated with the object transmission threshold value, and the object transmission threshold value is subtracted into product
As a result, obtaining the target pre-connection threshold value.Wherein, the target pre-connection threshold value is less than the object transmission threshold value;With institute
Stating the associated parameter of object transmission threshold value can be logarithmic function associated with the object transmission threshold value.For example, can be with
The target pre-connection threshold value P is characterized using following formulan+1:
Pn+1=Tn+1-c1×Cn+1
Wherein, c1Indicate first prescribed coefficient, specific value can be set according to practical situations, for example, c1
Value can be 10;Cn+1Indicate parameter associated with the object transmission threshold value;Tn+1Indicate the object transmission threshold value.
Parameter C associated with the object transmission threshold value can be characterized using following formulan+1:
Wherein, a1And a2Respectively specified constant, specific value can be set according to practical situations, for example, a1With
a2It can be respectively 100 and 10.
S23: judge whether the current signal intensity profile data meet the associated item of target pre-connection threshold value
Part;If satisfied, establishing connection with the payment terminal.
In the present embodiment, after determining target pre-connection threshold value, the available current signal strength of client
Distributed data, and judge whether the current signal intensity profile data meet the associated item of target pre-connection threshold value
Part, if satisfied, establishing connection with the payment terminal.Wherein, the associated condition of target pre-connection threshold value, specifically can wrap
Include: the signal strength average value in the current signal intensity profile data is greater than or equal to the target pre-connection threshold value.
Since the target pre-connection threshold value is less than the object transmission threshold value, user using client before being paid, also
When being that the distance between client and the payment terminal are greater than the distance to a declared goal, client can first prepare and the payment
Terminal carries out pre-connection, in this way, during client is close to the payment terminal, client can have time enough with
The payment terminal establishes connection, so that reaching the distance to a declared goal at a distance from client is between the payment terminal
When, connection just is established with the payment terminal, meanwhile, just current signal intensity profile data meet the object transmission
The associated condition of threshold value, client directly can carry out payment data transmission with the payment terminal, no longer need to wait connection, from
And the time of payment can be shortened.For example, the distance to a declared goal is 10 centimetres, at a distance from client is between the payment terminal
When being 10 centimetres, payment data transmission can be carried out with the payment terminal;User holds client, constantly close to the payment
Terminal is ready for paying, when the distance between client and the payment terminal are 30 centimetres, the signal strength point of acquisition
Cloth data meet the associated condition of target pre-connection threshold value, can prepare to start to carry out pre-connection with the payment terminal,
Continue it is close, when the distance between client and the payment terminal be 10 centimetres when, just with the payment terminal establish connect
Connect, meanwhile, just current signal intensity profile data meet the associated condition of object transmission threshold value, can directly with
The payment terminal carries out payment data transmission.
In one embodiment of the application, client and the payment terminal establish connection and not with the payment end
In the case that end carries out data transmission, the client is occupied with the payment eventually caused by breaking away in order to prevent because of user
The phenomenon that connection resource at end.The method can also include the following steps.
S31: according to the object transmission threshold value, determine that target disconnects threshold value;Wherein, the target disconnects threshold
Value is less than the target pre-connection threshold value.
In the present embodiment, it according to the object transmission threshold value, determines that target disconnects threshold value, specifically can wrap
It includes, by the second prescribed coefficient multiplied by parameter associated with the object transmission threshold value, and the object transmission threshold value is subtracted
Result of product obtains the target pre-connection threshold value.Wherein, the target disconnects threshold value less than the target pre-connection threshold
Value;Second prescribed coefficient is greater than first prescribed coefficient.Parameter associated with the object transmission threshold value can be
Logarithmic function associated with the object transmission threshold value.It is disconnected for example, the target can be characterized using following formula
Threshold value Dn+1:
Dn+1=Tn+1-c2×Cn+1
Wherein, c2Indicate second prescribed coefficient, specific value can be set according to practical situations, for example, c2
Value can be 20;Cn+1Indicate parameter associated with the object transmission threshold value;Tn+1Indicate the object transmission threshold value.
Parameter C associated with the object transmission threshold value can be characterized using following formulan+1:
Wherein, a1And a2Respectively specified constant, specific value can be set according to practical situations, for example, a1With
a2It can be respectively 100 and 10.
S33: in the case where establishing connection with the payment terminal and not carrying out data transmission with the payment terminal, sentence
Whether the current signal intensity profile data of breaking, which meet the target, disconnects the associated condition of threshold value;If satisfied, with
The payment terminal disconnects.
In the present embodiment, after disconnecting threshold value described in the determination, the available current signal of client is strong
Spend distributed data.In the case where establishing connection with the payment terminal and not carrying out data transmission with the payment terminal, visitor
Family end may determine that whether the current signal intensity profile data meet the target and disconnect the associated condition of threshold value;
If satisfied, being disconnected with the payment terminal.Wherein, the target disconnects the associated condition of threshold value, specifically can wrap
Include: the signal strength average value in the current signal intensity profile data is less than or equal to the target pre-connection threshold value.
In this way, in the case where establishing connection with the payment terminal and not carrying out data transmission with the payment terminal, when user is prominent
When so leaving, client also far from the payment terminal, leads to the signal in acquired current signal intensity profile data
Average strength is less than the target pre-connection threshold value, and at this moment, client can be disconnected with the payment terminal, thus
It can prevent the phenomenon that occupying the connection resource with the payment terminal.
In one embodiment of the application, client and the payment terminal establish connection and not with the payment end
End carry out payment data transmission in the case where, since user is stopped over by other things and stagnate, cause client with it is described
Payment terminal establishes connection for a long time, but cannot carry out payment data transmission with the payment terminal, can waste the branch in this way
Pay the connection resource of terminal.In order to avoid such case generation, the method can also include: to establish with the payment terminal
In the case where connecting and not carrying out data transmission with the payment terminal, judge that the duration being continuously connected with the payment terminal is
It is no to be greater than or equal to specified connection duration;If be greater than or equal to specified connection with the duration that the payment terminal is continuously connected with
It is long, it is disconnected with the payment terminal.Wherein, the specified connection duration can be set according to practical situations, this
Place is not construed as limiting.
In one embodiment of the application, in practical applications, since the signal of payment terminal broadcast is by existing
Real field scape influences, and there are multipath refractions for propagation path, are will lead in signal intensity profile data acquired in client in this way
RSSI value with apart from not exclusively corresponding, or even the phenomenon that large error occur, that is, jump, paid so as to cause near field
Triggering distance is simultaneously unstable.For example, as shown in figure 4, what certain smart phone obtained when with certain payment terminal at a distance of distance to a declared goal
In signal intensity profile data, RSSI value is respectively hopping phenomenon occur near -62dbm and -53dbm.Wherein, in Fig. 4
Abscissa and ordinate be respectively RSSI value and accounting, unit is respectively decibels above milliwatt (dbm) and permillage.In order to reduce
Range error brought by RSSI value hopping phenomenon obtains current signal intensity profile data, can specifically include following step
Suddenly.
S41: current signal strength sampling point sequence is obtained;It wherein, include more in the signal strength sampling point sequence
A signal strength sampled point.
In the present embodiment, client can obtain what the payment terminal issued according to specified time interval
The corresponding signal strength sampled point of signal, in this way, client can obtain multiple signal strengths in current specified duration
Sampled point after these signal strength sampled points arrange sequentially in time, constitutes the current signal strength sampled point sequence
Column.Wherein, the value range of the specified duration can be 0.2 second~0.3 second, and the value range at the specified time interval can
Think 0.01~0.05 second.The usual specified duration and the specified time interval can be set according to practical situations
It is fixed.
In the present embodiment, client can store the sampling point sequence of the signal strength in specified duration, in the sequence
In the signal strength sampled point corresponding sampling time apart from current time be more than the specified duration, client can be by the sequence
Column are deleted, and obtain the sampling point sequence of the signal strength in the current specified duration again.
S43: signal strength sampling point sequence is divided at least one subsequence, and determines the letter of the subsequence
Number intensity intermediate value.
It in the present embodiment, can be according to finger timing window after obtaining the current signal strength sampling point sequence
Window is long to be divided at least one subsequence for signal strength sampling point sequence, can also be according to specified sampled point quantity, will
The signal strength sampling point sequence is divided at least one subsequence.Wherein, two neighboring subsequence has the signal of overlapping strong
Spend sampled point.For example, as shown in figure 5, two neighboring subsequence A1 and A2, in addition to first signal strength sampling of subsequence A1
Other than the last one signal strength sampled point of point and subsequence A2, other signal strength sampled points are all subsequence A1 and A2
The signal strength sampled point of middle overlapping, subsequence A2 are equivalent to subsequence A1 and move a signal strength sampled point.
It in the present embodiment, can after signal strength sampling point sequence is divided at least one subsequence
To determine the median signal strength of each subsequence respectively, i.e., the signal strength of multiple signal strength sampled points in each subsequence
Intermediate value.
S45: according to the median signal strength of the subsequence, the current signal intensity profile data are determined.
In the present embodiment, according to the median signal strength of the subsequence, the current signal strength point is determined
Cloth data, can specifically include, can be using the median signal strength of the subsequence as the middle position in the subsequence
The signal strength indication of the signal strength sampled point at place, or the signal strength as other specified locations in the subsequence
The signal strength indication of sampled point.To the median signal strength of each subsequence, handled in the manner described above, so as to
The signal strength sampled point that obtains that treated, and the signal that the signal strength indication of these treated signal strength samplings is constituted
Intensity distribution data is as the current signal intensity profile data.For example, as shown in fig. 6, certain smart phone and certain payment
When terminal is at a distance of distance to a declared goal, in the signal intensity profile data that are obtained in the manner described above in the specified duration, RSSI
The hopping phenomenon of value significantly reduces very much.
In one embodiment of the application, signal strength sampling point sequence is being divided at least one subsequence
Later, the signal strength average value of the subsequence can also be determined, and according to the signal strength average value of the subsequence, really
The fixed current signal intensity profile data.Alternatively, part signal intensity sampling point in the subsequence can also be determined
Signal strength average value, and according to the signal strength average value of part signal intensity sampling point in the subsequence, determine described in
Current signal intensity profile data.Wherein, the fraction of signal strength sampled point can be the middle section of the subsequence
Signal strength sampled point, the sampled point quantity of the fraction of signal strength sampled point can be the sampling number of the subsequence
50 the percent of amount.
In one embodiment of the application, in practical applications, client itself causes to be obtained it is possible that failure
The signal strength indication taken is always lesser value, even if the distance between client and the payment terminal are close, it is also possible to nothing
Method and the payment terminal carry out payment data transmission, but in this case, and client can still constantly update propagation threshold, pre-
Connection and disconnects threshold value at threshold value, the propagation threshold that is updated, pre-connection threshold value and to disconnect threshold value be lesser value, no
It is disconnected to attempt to carry out payment data transmission with the payment terminal, it can waste time in this way, be unfavorable for user and find the problem.In order to keep away
Exempt from such case, is disconnected in threshold value at least in the object transmission threshold value, the target pre-connection threshold value and the target
In the case that one threshold value is less than specified threshold, for example, the specified threshold is -100dbm, client is updated without threshold value
With the judgement of transmission conditions, and provide client payment failure prompt.
In one embodiment of the application, in practical applications, the client that user uses with the payment terminal
It is preceding carry out normal payment data transmission several times after, the protective case of metal material, and the major part of client are put on to client
Region is all wrapped up by the protective case, and in this case, the influence of the signal shielding due to being protected set, the client is again
The signal strength of acquisition may be smaller, the propagation threshold updated according to last time, it may be difficult to carry out again with the payment terminal
Payment data transmission.In order to avoid such case generation, propagation threshold can be restored to corresponding when using for the first time by client
Initial transmission threshold value, to update propagation threshold again.
Referring to Fig. 7, the application also provides a kind of client, include in the client memory module, propagation threshold more
New module, data acquisition module and transmission determination module.
The memory module can be used for storing when carrying out data transmission with payment terminal corresponding initial transmission threshold value and
Initial signal intensity distributed data.
The propagation threshold update module can be used for according to the initial transmission threshold value and the initial signal intensity point
Cloth data determine object transmission threshold value;
The data acquisition module can be used for obtaining current signal intensity profile data;
The transmission determines that transmission module can be used for judging whether the current signal intensity profile data meet institute
The associated condition of object transmission threshold value is stated, and in the case where judging result is to meet, is counted again with the payment terminal
According to transmission.
In the present embodiment, the data acquisition module is used to obtain current signal strength sampling point sequence, wherein
Include multiple signal strength sampled points in the signal strength sampling point sequence, signal strength sampling point sequence is divided into
At least one subsequence, and determine the median signal strength of the subsequence, according to the median signal strength of the subsequence, really
The fixed current signal intensity profile data.
In the present embodiment, the transmission determination module is for judging in the current signal intensity profile data
Whether signal strength average value is greater than or equal to the object transmission threshold value.
In the present embodiment, the propagation threshold update module is used to transmit based on the payment data number and
The associated specified parameter of number of payment data transmission and signal in the initial signal intensity distributed data are strong
Maximum value is spent, weight coefficient is determined, so that according to the signal strength in the weight coefficient, the signal intensity profile data
The object transmission threshold value that maximum value and the initial transmission threshold value determine, in signal intensity profile data corresponding with distance to a declared goal
The absolute value of the difference of the maximum signal strength indication of accounting is less than or equal to specified intensity value.
In one embodiment of the application, the client can also include: pre-connection threshold determination module and connection
Determination module.
The pre-connection threshold determination module is used to determine target pre-connection threshold value according to the object transmission threshold value;Its
In, the target pre-connection threshold value is less than the object transmission threshold value.
The connection determination module is pre- for judging whether the current signal intensity profile data meet the target
The associated condition of threshold value is connected, and in the case where judging result is to meet, establishes connection with the payment terminal.
In one embodiment of the application, the client further include: disconnect threshold determination module and the company of disconnection
Connect determination module.
The threshold determination module that disconnects is for determining that target disconnects threshold according to the object transmission threshold value
Value;Wherein, the target disconnects threshold value less than the target pre-connection threshold value.
It is described disconnect determination module for the payment terminal establish connection and not with the payment terminal into
In the case that row data are transmitted, judge whether the current signal intensity profile data meet the target and disconnect threshold value
Associated condition, and in the case where judging result is to meet, it is disconnected with the payment terminal.
In one embodiment of the application, the client further include: disconnect determination module.It is described to disconnect
Determination module is used in the case where establishing connection with the payment terminal and not carrying out data transmission with the payment terminal, is sentenced
It is disconnected whether to be greater than or equal to specified connection duration with the duration that the payment terminal is continuously connected with, if continuing with the payment terminal
The duration of connection is greater than or equal to specified connection duration, disconnects with the payment terminal.
The client that this specification embodiment provides, the concrete function that modules are realized, can be with this specification
In aforementioned embodiments contrast explanation, and the technical effect of aforementioned embodiments can be reached, just repeated no more here.
Referring to Fig. 8, the application also provides a kind of client, the server includes memory and processor, described to deposit
Corresponding initial transmission threshold value and initial signal intensity distributed data when carrying out data transmission with payment terminal are stored in reservoir,
And computer program performs the steps of when the computer program is executed by the processor
Step S11: according to the initial transmission threshold value and the initial signal intensity distributed data, object transmission threshold is determined
Value;
Step S13: obtaining current signal intensity profile data, and judges that the current signal intensity profile data are
It is no to meet the associated condition of object transmission threshold value;If satisfied, carrying out data transmission again with the payment terminal.
In the present embodiment, the memory may include the physical unit for storing information, usually by information
It is stored again with the media using the methods of electricity, magnetic or optics after digitlization.Memory described in present embodiment again may be used
To include: to store the device of information, such as RAM, ROM in the way of electric energy;The device of information is stored in the way of magnetic energy, it is such as hard
Disk, floppy disk, tape, core memory, magnetic bubble memory, USB flash disk;Using the device of optical mode storage information, such as CD or DVD.
Certainly, there are also memories of other modes, such as quantum memory, graphene memory etc..
In the present embodiment, the processor can be implemented in any suitable manner.For example, the processor can be with
Take such as microprocessor or processor and storage can by (micro-) processor execute computer readable program code (such as
Software or firmware) computer-readable medium, logic gate, switch, specific integrated circuit (Application Specific
Integrated Circuit, ASIC), programmable logic controller (PLC) and the form etc. for being embedded in microcontroller.
In one embodiment, it when the computer program is executed by the processor, also performs the steps of
Number, specified parameter associated with the number of payment data transmission based on payment data transmission,
And the signal strength maximum value in the initial signal intensity distributed data, weight coefficient is determined, so that according to the power
The object transmission that weight coefficient, the signal strength maximum value in the signal intensity profile data and the initial transmission threshold value determine
Threshold value, the absolute value of the difference of the signal strength indication of maximum probability is less than in signal intensity profile data corresponding with distance to a declared goal
Or it is equal to specified intensity value.
In one embodiment, judging whether the current signal intensity profile data meet the object transmission
Before the associated condition of threshold value, when the computer program is executed by the processor, also perform the steps of
According to the object transmission threshold value, target pre-connection threshold value is determined;Wherein, the target pre-connection threshold value is less than institute
State object transmission threshold value;
Judge whether the current signal intensity profile data meet the associated condition of target pre-connection threshold value;If
Meet, establishes connection with the payment terminal.
In one embodiment, it when the computer program is executed by the processor, also performs the steps of
According to the object transmission threshold value, determine that target disconnects threshold value;Wherein, it is small to disconnect threshold value for the target
In the target pre-connection threshold value;
In the case where establishing connection with the payment terminal and not carrying out data transmission with the payment terminal, institute is judged
It states current signal intensity profile data and whether meets the target and disconnect the associated condition of threshold value;If satisfied, with described
Payment terminal disconnects.
In one embodiment, it when the computer program is executed by the processor, also performs the steps of
In the case where establishing connection with the payment terminal and not carrying out data transmission with the payment terminal, judgement with
Whether the duration that the payment terminal is continuously connected with is greater than or equal to specified connection duration;If being continuously connected with the payment terminal
Duration be greater than or equal to specified connection duration, disconnected with the payment terminal.
The concrete function that the client that this specification embodiment provides, memory and processor are realized, can be with this
Aforementioned embodiments in specification contrast explanation, and can reach the technical effect of aforementioned embodiments, here just no longer
It repeats.
In one embodiment of the application, part steps in aforementioned embodiments can also be completed by server,
For example, the step of object transmission threshold value is determined according to the initial transmission threshold value and the initial signal intensity distributed data, it can
To be completed by server, object transmission threshold value is then sent to by the client by server, carries out subsequent processing.
Therefore in this application, the client used for user, such as smart phone, the smart phone can be with
Initial transmission threshold value and initial signal intensity distributed data when according to the last progress payment data transmission with payment terminal, more
The object transmission threshold value of payment data transmission is newly currently carried out with payment terminal.So, current signal intensity profile is being obtained
After data, which can judge whether the current signal intensity profile data meet the object transmission threshold
It is worth associated condition, if satisfied, payment data transmission can be carried out again with the payment terminal.In this way, being used for user
Smart phone, the propagation threshold being adapted with the smart phone can be automatically updated using the application method, so that logical
At normal payment distance, user can be carried out normally paying using different smart phones, to improve the payment body of user
It tests.
In the 1990s, the improvement of a technology can be distinguished clearly be on hardware improvement (for example,
Improvement to circuit structures such as diode, transistor, switches) or software on improvement (improvement for method flow).So
And with the development of technology, the improvement of current many method flows can be considered as directly improving for hardware circuit.
Designer nearly all obtains corresponding hardware circuit by the way that improved method flow to be programmed into hardware circuit.Cause
This, it cannot be said that the improvement of a method flow cannot be realized with hardware entities module.For example, programmable logic device
(Programmable Logic Device, PLD) (such as field programmable gate array (Field Programmable Gate
Array, FPGA)) it is exactly such a integrated circuit, logic function determines device programming by user.By designer
Voluntarily programming comes a digital display circuit " integrated " on a piece of PLD, designs and makes without asking chip maker
Dedicated IC chip.Moreover, nowadays, substitution manually makes IC chip, this programming is also used instead mostly " is patrolled
Volume compiler (logic compiler) " software realizes that software compiler used is similar when it writes with program development,
And the source code before compiling also write by handy specific programming language, this is referred to as hardware description language
(Hardware Description Language, HDL), and HDL is also not only a kind of, but there are many kind, such as ABEL
(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description
Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL
(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby
Hardware Description Language) etc., VHDL (Very-High-Speed is most generally used at present
Integrated Circuit Hardware Description Language) and Verilog2.Those skilled in the art
It will be apparent to the skilled artisan that only needing method flow slightly programming in logic and being programmed into integrated circuit with above-mentioned several hardware description languages
In, so that it may it is readily available the hardware circuit for realizing the logical method process.
It is also known in the art that in addition to realizing client, server in a manner of pure computer readable program code
In addition, completely can by by method and step carry out programming in logic come so that client, server with logic gate, switch, dedicated
The form of integrated circuit, programmable logic controller (PLC) and insertion microcontroller etc. realizes identical function.Therefore this client,
Server is considered a kind of hardware component, and can also be considered as to the device for realizing various functions for including in it
Structure in hardware component.Or even, can will be considered as realizing the device of various functions either implementation method
Software module can be the structure in hardware component again.
As seen through the above description of the embodiments, those skilled in the art can be understood that the application can
It realizes by means of software and necessary general hardware platform.Based on this understanding, the technical solution essence of the application
On in other words the part that contributes to existing technology can be embodied in the form of software products, the computer software product
It can store in storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions are used so that a computer equipment
(can be personal computer, server or the network equipment etc.) executes each embodiment of the application or embodiment
Method described in certain parts.
Each embodiment in this specification is described in a progressive manner, same and similar between each embodiment
Part may refer to each other, what each embodiment stressed is the difference with other embodiments.In particular, needle
For computer storage medium, the embodiment of server and client side, it is referred to the embodiment of preceding method
Control is introduced to explain.
The application can describe in the general context of computer-executable instructions executed by a computer, such as program
Module.Generally, program module includes routines performing specific tasks or implementing specific abstract data types, programs, objects, group
Part, data structure etc..The application can also be practiced in a distributed computing environment, in these distributed computing environments, by
Task is executed by the connected remote processing devices of communication network.In a distributed computing environment, program module can be with
In the local and remote computer storage media including storage equipment.
Although depicting the application by embodiment, it will be appreciated by the skilled addressee that there are many deformations by the application
With variation without departing from spirit herein, it is desirable to which the attached claims include these deformations and change without departing from the application
Spirit.