CN107480980A - A kind of method of virtual resource allocation, server and system - Google Patents

A kind of method of virtual resource allocation, server and system Download PDF

Info

Publication number
CN107480980A
CN107480980A CN201610404901.6A CN201610404901A CN107480980A CN 107480980 A CN107480980 A CN 107480980A CN 201610404901 A CN201610404901 A CN 201610404901A CN 107480980 A CN107480980 A CN 107480980A
Authority
CN
China
Prior art keywords
client
virtual resource
resource allocation
virtual
sound waves
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610404901.6A
Other languages
Chinese (zh)
Inventor
张洁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201610404901.6A priority Critical patent/CN107480980A/en
Publication of CN107480980A publication Critical patent/CN107480980A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/32Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
    • G06Q20/327Short range or proximity payments by means of M-devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/36Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B11/00Transmission systems employing sonic, ultrasonic or infrasonic waves

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Accounting & Taxation (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Finance (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application provides a kind of method of virtual resource allocation, server and system, wherein, methods described includes:Receive the virtual resource allocation request that the first client is sent;Checking mark is generated according to preset rules;The checking mark is sent to first client;Receive the virtual resource that at least one second client is sent and obtain request, the virtual resource, which obtains request, includes the frequency information of identification information and sound wave;When the identification information matches with the checking mark, destination client is determined from least one second client according to the frequency information of the sound wave;Concentrated virtual resource corresponding to virtual resource allocation to the destination client is preset corresponding to virtual resource allocation request.Method, server and the system for a kind of virtual resource allocation that the application embodiment provides, the virtual resource allocation process of orientation can be realized.

Description

Virtual resource allocation method, server and system
Technical Field
The present application relates to the field of near field communication technologies, and in particular, to a method, a server, and a system for virtual resource allocation.
Background
In recent years, the near field communication technology has been popular because it enables users to conveniently allocate virtual resources, such as data held by users and allocated among different users, for example, the amount of money stored in a user's value card, or consumable data such as the amount of money and points stored in a user's network account, via a mobile terminal.
One relatively common way of near field communication may be acoustic communication. Namely, the sound wave is used as a carrier of virtual resource allocation, and communication connection and virtual resource allocation among mobile terminals and between the mobile terminals and the server are realized. Specifically, an existing sound wave payment function is taken as an example for explanation. When payment is needed, the payer user's Payment client can establish communication connection with the server and generate a transaction number, and then the payer user's mobile phone generates a specific sound wave according to the transaction number and sends the sound wave to the outside through the mobile phone speaker. The Payment client of the receiver user receives the sound wave, analyzes the sound wave to obtain the transaction number, and sends the transaction number to the server, so that subsequent payment operation can be completed, and the virtual resource of the payer user is distributed to the receiver user.
However, the sound wave payment method implemented by sound wave communication in the prior art cannot directionally select the receiving user. For example, when the sound wave generated according to the transaction number is sent out through the speaker of the mobile phone of the payer user, if a plurality of payment client terminals running the payment function module exist around the payment client terminal, the plurality of payment client terminals can all receive the sound wave. As such, it will be difficult for the server to identify which recipient user's paymate client is the client that should accept the virtual resource allocation. In order to realize the orientation of the sound wave propagation, a sound wave directional propagation device (for example, a directional ultrasonic probe) may be further configured on the mobile terminal, but this way not only needs to modify the structure of the mobile terminal device, but also increases the manufacturing cost of the mobile terminal device.
As can be seen from the above, the method for implementing virtual resource allocation in the prior art cannot directionally select a virtual resource receiver user.
It should be noted that the above background description is only for the convenience of clear and complete description of the technical solutions of the present application and for the understanding of those skilled in the art. Such solutions are not considered to be known to the person skilled in the art merely because they have been set forth in the background section of the present application.
Disclosure of Invention
The embodiment of the application aims to provide a method, a server and a system for allocating virtual resources, so as to realize a directional virtual resource allocation process.
To achieve the above object, an aspect of the present application provides a method for virtual resource allocation, where the method includes: receiving a virtual resource allocation request sent by a first client; responding to the virtual resource allocation request, and generating a verification identifier according to a preset rule; sending the verification identification to the first client; receiving a virtual resource acquisition request sent by at least one second client, wherein the virtual resource acquisition request comprises identification information and frequency information of sound waves sent by the first client and received by the second client; when the identification information is matched with the verification identification, determining a target client from the at least one second client according to the frequency information of the sound waves; and allocating the preset virtual resource corresponding to the virtual resource allocation request to the virtual resource set corresponding to the target client.
To achieve the above object, another aspect of the present application provides a server for virtual resource allocation, including: a virtual resource allocation request receiving unit, configured to receive a virtual resource allocation request sent by a first client; the verification identifier generating unit is used for responding to the virtual resource allocation request and generating a verification identifier according to a preset rule; a verification identifier sending unit, configured to send the verification identifier to the first client; a virtual resource acquisition request receiving unit, configured to receive a virtual resource acquisition request sent by at least one second client, where the virtual resource acquisition request includes identification information and frequency information of a sound wave sent by a first client and received by the second client; the target client determining unit is used for determining a target client from the at least one second client according to the frequency information of the sound waves when the identification information is matched with the verification identification; and the virtual resource allocation unit is used for allocating preset virtual resources corresponding to the virtual resource allocation request to a virtual resource set corresponding to the target client.
The embodiment of the present application further provides a method for allocating virtual resources, where the method includes: receiving a virtual resource allocation request sent by a first client, wherein the virtual resource allocation request comprises a verification identifier; receiving a virtual resource acquisition request sent by at least one second client, wherein the virtual resource acquisition request comprises identification information and frequency information of sound waves sent by the first client and received by the second client; when the identification information is matched with the verification identification, determining a target client from the at least one second client according to the frequency information of the sound waves; and allocating the preset virtual resource corresponding to the virtual resource allocation request to the virtual resource set corresponding to the target client.
An embodiment of the present application further provides a server for allocating virtual resources, where the server includes: a virtual resource allocation request receiving unit, configured to receive a virtual resource allocation request sent by a first client, where the virtual resource allocation request includes a verification identifier; a virtual resource acquisition request receiving unit, configured to receive a virtual resource acquisition request sent by at least one second client, where the virtual resource acquisition request includes identification information and frequency information of a sound wave sent by a first client and received by the second client; the target client determining unit is used for determining a target client from the at least one second client according to the frequency information of the sound waves when the identification information is matched with the verification identification; and the virtual resource allocation unit is used for allocating preset virtual resources corresponding to the virtual resource allocation request to a virtual resource set corresponding to the target client.
The embodiment of the present application further provides a method for allocating virtual resources, where the method includes: the server receives a virtual resource allocation request sent by a first client; responding to the virtual resource allocation request, and generating a verification identifier by the server according to a preset rule; the server sends the verification identification to the first client; the first client generates sound waves corresponding to the verification identification and sends the sound waves to at least one second client in the moving process; the at least one second client receives the sound waves and analyzes the sound waves to obtain identification information carried by the sound waves; the at least one second client acquires frequency information corresponding to the sound waves; the server receives a virtual resource acquisition request sent by the at least one second client, wherein the virtual resource acquisition request comprises the identification information and the frequency information of the sound waves; when the identification information is matched with the verification identification, the server determines a target client from the at least one second client according to the frequency information of the sound waves; the server associates the validation identifier with the virtual resource allocation request and sends the validation identifier to the first client.
The embodiment of the present application further provides a system for allocating virtual resources, where the system includes: server, first client and at least one second client, wherein: the server is used for receiving a virtual resource allocation request sent by a first client; responding to the virtual resource allocation request, and generating a verification identifier according to a preset rule; sending the verification identification to the first client; the first client is used for generating sound waves corresponding to the verification identification and sending the sound waves to at least one second client in the moving process; the at least one second client is used for receiving the sound waves and analyzing the sound waves to obtain identification information carried by the sound waves; acquiring frequency information corresponding to the sound waves; the server is further configured to receive a virtual resource acquisition request sent by the at least one second client, where the virtual resource acquisition request includes the identifier information and the frequency information of the sound wave obtained through analysis; when the identification information is matched with the verification identification, determining a target client from the at least one second client according to the frequency information of the sound waves; and allocating the preset virtual resource corresponding to the virtual resource allocation request to the virtual resource set corresponding to the target client.
The embodiment of the present application further provides a method for allocating virtual resources, where the method includes: a first client generates a verification identifier and sends a virtual resource allocation request containing the verification identifier to a server; the first client generates sound waves corresponding to the verification identification and sends the sound waves to at least one second client in the moving process; the at least one second client receives the sound waves and analyzes the sound waves to obtain identification information carried by the sound waves; the at least one second client acquires frequency information corresponding to the sound waves; the server receives a virtual resource acquisition request sent by the at least one second client, wherein the virtual resource acquisition request comprises the identification information and the frequency information of the sound waves obtained through analysis; when the identification information is matched with the verification identification, the server determines a target client from the at least one second client according to the frequency information of the sound waves; and the server allocates the preset virtual resource corresponding to the virtual resource allocation request to the virtual resource set corresponding to the target client.
The embodiment of the present application further provides a system for allocating virtual resources, where the system includes a server, a first client, and at least one second client, where: the first client is used for generating a verification identifier and sending a virtual resource allocation request containing the verification identifier to a server; generating sound waves corresponding to the verification identification, and sending the sound waves to at least one second client in the moving process; the at least one second client is used for receiving the sound waves and analyzing the sound waves to obtain identification information carried by the sound waves; acquiring frequency information corresponding to the sound waves; the server is used for receiving a virtual resource acquisition request sent by the at least one second client, wherein the virtual resource acquisition request comprises the identification information and the frequency information of the sound waves obtained through analysis; when the identification information is matched with the verification identification, determining a target client from the at least one second client according to the frequency information of the sound waves; and allocating the preset virtual resource corresponding to the virtual resource allocation request to the virtual resource set corresponding to the target client.
As can be seen from the foregoing embodiments of the present application, according to the virtual resource allocation method, server, and system provided by the present application, the verification identifier is encoded by the sound wave, and the encoded sound wave information is sent to the at least one second client in a doppler shift manner, and the frequency information of the sound wave after the frequency shift is decoded by the at least one second client, so that the verification identifier corresponding to the sound wave signal after the frequency shift can be obtained. And analyzing the sound wave frequency information sent by at least one second client by using the server, so that a target client in the virtual resource allocation process can be determined from a plurality of second clients, and finally, the preset virtual resources corresponding to the virtual resource allocation request can be allocated to the virtual resource set corresponding to the target client, thereby realizing the directional virtual resource allocation process.
Specific embodiments of the present application are disclosed in detail with reference to the following description and drawings, indicating the manner in which the principles of the application may be employed. It should be understood that the embodiments of the present application are not so limited in scope. The embodiments of the application include many variations, modifications and equivalents within the spirit and scope of the appended claims.
Features that are described and/or illustrated with respect to one embodiment may be used in the same way or in a similar way in one or more other embodiments, in combination with or instead of the features of the other embodiments.
It should be emphasized that the term "comprises/comprising" when used herein, is taken to specify the presence of stated features, integers, steps or components but does not preclude the presence or addition of one or more other features, integers, steps or components.
Drawings
The accompanying drawings, which are included to provide a further understanding of the embodiments of the application, are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the principles of the application. It should be apparent that the drawings in the following description are merely some embodiments of the present application, and that other drawings may be obtained by those skilled in the art without inventive exercise. In the drawings:
fig. 1 is a flowchart of a method for allocating virtual resources according to an embodiment of the present disclosure;
fig. 2 is an interaction flowchart of a server and a client in a method for virtual resource allocation according to an embodiment of the present application;
fig. 3 is an interaction flowchart of a server and a client in a method for virtual resource allocation according to another embodiment of the present application;
FIG. 4 is a functional block diagram of a server for virtual resource allocation according to an embodiment of the present application;
fig. 5 is a flowchart of a method for allocating virtual resources according to an embodiment of the present application;
fig. 6 is an interaction flowchart of a server and a client in a method for virtual resource allocation according to an embodiment of the present application;
fig. 7 is an interaction flowchart of a server and a client in a method for virtual resource allocation according to another embodiment of the present application;
FIG. 8 is a functional block diagram of a server for virtual resource allocation according to an embodiment of the present application;
fig. 9 is a flowchart of a method for allocating virtual resources according to an embodiment of the present application;
FIG. 10 is a system framework diagram of virtual resource allocation according to an embodiment of the present application;
fig. 11 is a flowchart of a method for allocating virtual resources according to an embodiment of the present application;
fig. 12 is a system framework diagram of virtual resource allocation according to an embodiment of the present application.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art without any inventive work based on the embodiments in the present application shall fall within the scope of protection of the present application.
Please refer to fig. 1. Fig. 1 is a flowchart of a method for allocating virtual resources according to an embodiment of the present disclosure. As shown in fig. 1, the method may include the following steps.
Step S11: a virtual resource allocation request sent by a first client is received.
In this embodiment, the server may receive a virtual resource allocation request from the first client. The server may include a hardware device having a data information processing function and necessary software for driving the hardware device to operate, and may analyze the received virtual resource allocation request, thereby performing allocation of virtual resources between the corresponding clients. The server may be provided with a predetermined port through which a virtual resource allocation request provided by the first client may be received. For example, the server may perform network data interaction with the first client based on a network protocol such as HTTP, TCP/IP or FTP and a network communication module.
In this embodiment, the first client may be a terminal device capable of accessing a communication network based on a network protocol. Specifically, for example, the first client may be a mobile smart phone, a computer (including a laptop computer and a desktop computer), a tablet electronic device, a Personal Digital Assistant (PDA), or a smart wearable device. In addition, the first client may also be software running on any one of the above listed devices, such as a pay bank client, a mobile phone panning client, and the like.
In this embodiment, when the user of the first client wants to perform virtual resource allocation with another user, a virtual resource allocation request may be generated in the first client. The first client may be software having a resource management function. For example: WeChat, Paibao, Jingdong, etc., and may also be client software for various banks. In one specific embodiment, for example, the first client is a paymate client, and when a user of the first client needs to pay another user, a payment request may be initiated in the paymate client, and the payment request may be used to allocate the virtual resource.
In this embodiment, after the first client generates the virtual resource allocation request, the virtual resource allocation request may be sent to the server. In one specific embodiment, for example, the server may be a background business server of the payment client, and the business server may store various data associated with the payment client and may perform instruction interaction with the payment client.
In this embodiment, the virtual resource may be data held by a user and distributed among different users, for example, the virtual resource may be an amount stored in a user stored value card, an available amount in a user credit card, or consumable data such as an amount and a credit stored in a user network account.
In an embodiment of the present application, the virtual resource allocation request received by the server may include a virtual resource allocation amount and a first account id of the first client. The virtual resource allocation amount may be used to represent the amount of the virtual resource to be allocated, for example, the virtual resource allocation amount may be a payment amount, or the amount of credit to be allocated. The first account id may be a character string preset by a user of the first client or preset by the first client for the user. For example, the first account identification may be a user's pay for treasures account or a Taobao account.
In this embodiment, the first account id may be associated with a first set of virtual resources. The set of virtual resources may be a set of virtual resources, such as an account balance of a user in a payment bank, a balance in a stored value card bound to the payment bank, or an available credit line in a credit card bound to the payment bank. In this embodiment, the first account id may be a key (key), and the first virtual resource set associated with the first account id may be a value (value), so that the associated account id and virtual resource set may be stored in the server in the form of a key-value pair (key-value). The server may query, according to the obtained account id, a virtual resource set associated with the account id, so as to allocate virtual resources in the first virtual resource set according to a virtual resource allocation request sent by the first client.
Step S13: and responding to the virtual resource allocation request, and generating a verification identifier according to a preset rule.
In this embodiment, after receiving the virtual resource allocation request, the server may generate a verification identifier according to a preset rule in response to the request.
In this embodiment, the verification identifier has uniqueness, and may be a character string calculated by the server according to the first account identifier and the date and time of the current time according to a preset algorithm. The character string may be coded in decimal digits such as 801295, or in binary digits such as 0110, for example. In this embodiment, the verification flag may further have timeliness, where the timeliness refers to: after a preset time length from the moment of generating the verification identifier, the verification identifier loses effectiveness and cannot be recognized by the server or the client. For example, after generating 801295 such a validation token, the validation token is valid for 2 minutes, and then the validation token will be invalid after 2 minutes. When the failed verification identifier is provided to the server or the client, the server or the client cannot recognize the failed verification identifier, and therefore subsequent virtual resource allocation operation cannot be performed according to the verification identifier.
In this embodiment, a character string including the first account id and the current time date and time may be obtained, where the character string may be "xiaoyijiang 20160406150825", where "xiaoyijiang" may be the first account id, "20160406" may be the current time date, and "150825" may indicate that the current time is 3 pm, 08 min 25 sec, so that the character string may be converted into a hash value according to a preset hash algorithm, and the converted hash value is determined as the verification id.
Step S15: and sending the verification identification to the first client.
In this embodiment, since the validation identifier is generated in response to the virtual resource allocation request sent by the first client, the server may associate the validation identifier with the virtual resource allocation request. In this way, in the virtual resource allocation process of this time, within the valid time limit of the verification identifier, the verification identifier may be used as a password or a credential for virtual resource allocation. The two parties performing virtual resource allocation can perform virtual resource allocation only through the verification identifier.
In this embodiment, the server may store the validation identifier and the virtual resource allocation request in association by way of a data table, where one column in the data table may store the validation identifier, and another column may store the virtual resource allocation request, and the associated validation identifier and the virtual resource allocation request may be in the same row. Of course, the way of verifying that the identifier is associated with the virtual resource allocation request is not limited to the above example, and other modifications are possible for those skilled in the art in light of the technical spirit of the present application, but all that can be achieved by the method and the device are intended to be covered by the scope of the present application.
In this embodiment, after associating the validation identifier with the virtual resource allocation request, the server may send the validation identifier to the first client. Specifically, the server may send the authentication identifier to the first client through a predetermined port.
In this embodiment, after receiving the verification identifier, the first client may perform sound wave encoding on each character in the verification identifier according to a preset correspondence between the character and the sound wave frequency. For example, the characters may include numerals 0 to 9 and subtitles a to f, and the correspondence between the characters and the sound wave frequency may be as shown in table 1.
TABLE 1 correspondence between characters and acoustic frequencies
In this way, the first client may send the sound wave corresponding to the verification identifier to the second client in a sound wave coding manner. In this embodiment, the second client may be a terminal device capable of accessing the communication network based on a network protocol. Specifically, for example, the second client may be a mobile smart phone, a computer (including a laptop computer and a desktop computer), a tablet electronic device, a Personal Digital Assistant (PDA), or a smart wearable device. In addition, the second client may be software having a resource management function. For example: WeChat, Paibao, Jingdong, etc., and may also be client software for various banks. In one particular embodiment, for example, the second client may be a pay for you client. It should be noted that, in an actual application scenario, there may be a plurality of second clients around the first client, and when the first client sends a sound wave signal through a speaker of the terminal device, at least one second client around the first client may receive the sound wave signal. Specifically, when a first client needs to send a verification identification of 8a67 to at least one second client, four segments of sound waves of different frequencies will be generated. The first client may sequentially send the four sound waves with different frequencies according to an order from left to right of the characters in the verification identifier. In this embodiment, the first client may set the duration of each sound wave, which may be, for example, 100ms, so that when the first client transmits the sound waves in sequence, the authentication mark 8a67 will correspond to a 400ms sound wave band.
When the first client and the second client are both still, the second client, after receiving the sound wave, may analyze the sound wave, identify frequencies corresponding to the four sound waves, and then may decode the four sound waves into the verification identifier 8a67 according to a correspondence between the sound wave frequencies and the characters. However, in a practical application scenario, the number of the second clients may be more than one, and each second client may receive the four sound waves sent by the first client and may decode to obtain the verification identifier. In this case, if each second client can obtain the virtual resource to be allocated from the first client through the authentication identifier, confusion may be caused in virtual resource allocation, and the first client may suffer considerable loss.
In view of the above, in the present embodiment, the first client and the second client may have relative motion, and then, according to the doppler effect, when the sound wave source and the sound wave receiving object have relative motion, the frequency of the sound wave received by the sound wave receiving object may increase; when the sound wave source and the sound wave receiving object move away from each other, the frequency of the sound wave received by the sound wave receiving object decreases. The increase or decrease of the frequency information of the sound wave generated by the doppler effect may be referred to as a doppler offset value (denoted as Δ f), and the doppler offset value may have a positive correlation with the speed of the relative motion between the sound wave source and the sound wave receiving object, specifically, the positive correlation may be as follows:
wherein v is a relative movement speed between the sound wave source and the sound wave receiving object, λ is a sound wave wavelength, and θ is an included angle between a connecting line direction between the sound wave source and the sound wave receiving object and a relative movement direction between the sound wave source and the sound wave receiving object. The value of the frequency of the sound wave finally received by the sound wave receiving object can be obtained from the frequency information of the sound wave generated by the sound wave source and the doppler frequency offset value. Taking the example that the sound wave source and the sound wave receiving object move in opposite directions, the frequency of the sound wave finally received by the sound wave receiving object can be obtained by adding the value of the frequency of the sound wave generated by the sound wave source and the doppler frequency offset value. In this embodiment, the source of the sound waves due to the at least one second client may be the first client. Therefore, in the process of transmitting the sound wave to the at least one second client by the first client, if relative motion occurs between the first client and the at least one second client, the frequency of the sound wave received by the at least one second client may increase due to the doppler effect. In an actual application scenario, the relative operation between the first client and the second client may be, for example: the first user holds the terminal device and swings towards the second client, so that relative motion can be generated between the two terminal devices, the values of the included angles are different along with the difference of the positions between the second client and the first client, and the Doppler frequency offset values generated due to the relative motion between the first client and the second client can be different, so that different second clients can be identified according to the difference of the Doppler frequency offset values.
In this embodiment, after the at least one second client receives the sound wave with frequency offset, the received sound wave may also be decoded. In a practical application scenario, a relative movement direction between the first client and the second client may be predefined, for example, a movement direction of the first client towards the second client may be predefined. In this way, the frequency information of the sound wave received by the second client is higher than the frequency information of the sound wave sent by the first client. In this case, after the second client receives the sound wave with frequency offset, the frequency offset sound wave frequency information may be compared with the original sound wave frequency information, so as to determine the original sound wave frequency information matched with the frequency offset sound wave frequency information, and then the characters corresponding to the sound wave may be queried according to the determined original sound wave frequency information through the relationship table shown in table 1.
Step S17: and receiving a virtual resource acquisition request sent by at least one second client, wherein the virtual resource acquisition request comprises identification information and frequency information of the sound wave sent by the first client and received by the second client.
In this embodiment, when at least one second client receives the sound wave sent by the first client, the sound wave frequency information corresponding to the sound wave can be identified, and the corresponding verification identifier can be obtained by decoding according to the sound wave frequency information. Then, the at least one second client may send the decoded authentication identifier and the frequency information of the sound wave to the server. It should be noted that, in an actual application scenario, in order to ensure the security of data transmission between the client and the server, the authentication identifier sent from the second client may be encrypted by a preset encryption rule, so that the authentication identifier is converted into another character string. In the present embodiment, the encryption rule may be, for example, the DES3 algorithm or the AES algorithm. As described above, in the present embodiment, the character string obtained by encrypting the authentication identifier may be referred to as identifier information. Then, after generating the identification information, the at least one second client may send a virtual resource acquisition request to the server. The virtual resource acquisition request may include the identification information, a second account id of the second client, and frequency information of the sound wave. The second account id is similar to the first account id, and may be a character string preset by a user of the second client or preset by the second client for the user. For example, the second account identification may be a user's pay for treasures account or a Taobao account. The frequency information of the sound wave may be obtained by the second client through identification according to the received sound wave, and the frequency information of the sound wave may be, for example, frequency information after doppler frequency shift occurs. For example, the frequency information sent by the first client is 18kHz, 19kHz and 19.4kHz, and since relative motion occurs between the first client and the second client, the second client can obtain frequency information of frequency offset of three frequencies, namely 18.12kHz, 19.12kHz and 19.52kHz, after recognizing according to the received sound wave signal. The second client may send the three frequency information with frequency offset to the server.
In this embodiment, the frequency information of the acoustic wave may also be a doppler frequency offset value, that is, a difference value between frequency information after frequency offset occurs and original frequency information. Specifically, assuming that the frequency information sent by the first client is 18kHz, 19kHz and 19.4kHz, since the first client and the second client perform relative motion, the second client can obtain frequency information of frequency offset of three frequencies, namely 18.12kHz, 19.12kHz and 19.52kHz, after recognizing according to the received sound wave signal. Then, the second client may calculate that a doppler frequency offset value between the frequency information where the frequency offset occurs and the original frequency information is 0.12kHz, so that the second client may send 0.12kHz to the server.
In this embodiment, the second account id may be associated with a second set of virtual resources. It should be noted that, in an actual application scenario, the number of the second clients may be more than one, and the number of the second account id and the number of the second virtual resource set may also be more than one, except that each account id may correspond to one virtual resource set. The second set of virtual resources, similar to the first set of virtual resources, may be a set of virtual resources, such as an account balance of the user in the payment bank, a balance in a stored value card bound to the payment bank, or an available amount in a credit card bound to the payment bank. In this embodiment, the second account id may be a key (key), and the second set of virtual resources associated with the second account id may be a value (value), so that the associated account id and set of virtual resources may be stored in the server in the form of a key-value pair (key-value). The server can query a virtual resource set associated with the account identifier according to the acquired account identifier.
Step S19: and when the identification information is matched with the verification identification, determining a target client from the at least one second client according to the frequency information of the sound wave.
In this embodiment, when the identification information matches the verification identification, the virtual resource allocation process initiated by the first client may be engaged. If the identification information is not matched with the verification identification, it is indicated that the second client is possibly too far away from the first client, the received sound wave signal is inaccurate, and the identified character string is also inaccurate. Or the acoustic signal received by the second client is sent by other clients instead of the first client, in which case the second client should also be unable to participate in the virtual resource allocation process initiated by the first client.
In this embodiment, the way of matching the identification information with the verification identification may include at least one of the following: the identification information is the same as the verification identifier, and specifically, the identification information and the verification identifier may have the same content. Or, the identification information and the verification identifier satisfy a predetermined algorithm corresponding relationship, specifically, the received identification information may be decrypted according to a predetermined decryption algorithm, for example, DES3 algorithm or AES algorithm, to obtain decrypted identification information, and when the decrypted identification information is identical to the verification identifier, it may be determined that the identification information matches the verification identifier. Alternatively, the received identification information may be subjected to a weighting operation, for example, a binary number of the identification information may be subjected to a weighting operation to obtain the identification information after the weighting operation, and it may be determined that the identification information matches the verification identification when the identification information after the weighting operation is the same as the verification identification. Of course, matching the identification information with the verification identification may also include other ways, and the embodiments of the present application are not limited to the above list.
In an actual application scenario, when a virtual resource allocation process is performed between two clients, the distance between the two clients is often short. In this case, an included angle between a connection direction between the two clients and a direction of the relative motion is often small, and then the doppler frequency offset generated between the two clients is often large. Thus, as the distance between two clients increases, the corresponding doppler frequency offset tends to become smaller. In this embodiment, the server may select a target client from the at least one second client after determining the target client based on frequency information of the sound wave transmitted from the at least one second client. The target client can be a virtual resource receiver in the virtual resource allocation process. Specifically, for example, the server may sort the frequency information of the received sound waves, and take the second client corresponding to the sound wave with the largest frequency information as the target client.
Step S111: and allocating the preset virtual resource corresponding to the virtual resource allocation request to the virtual resource set corresponding to the target client.
In this embodiment, after determining the target client from the at least one second client, the server may start performing the virtual resource allocation procedure between the first client and the target client.
In an embodiment of the present application, when the resource allocation request includes a virtual resource allocation amount and a first account id of the first client, and the first account id is associated with a first virtual resource set, the server may obtain the virtual resource allocation request associated with the verification id. By analyzing the source address of the sending party of the virtual resource allocation request, it can be determined that the initiating party of the virtual resource allocation request is the first client. In this way, in the present embodiment, the target virtual resource equal to the virtual resource allocation amount may be acquired from the first virtual resource set associated with the first account id of the first client. In particular, the server may deduct the target virtual resource from the first set of virtual resources and add the target virtual resource to a set of virtual resources associated with an account identification of the target client. For example, the validation token is 8a67, and it is known from analysis of the virtual resource allocation request associated with the validation token that the virtual resource allocation request is initiated by a first client identified by a first account number "135 x 23", and the first account number is bound to a preset stored value card, so that the balance in the stored value card can be the first virtual resource set associated with the first account number. In this embodiment, after the first virtual resource set is acquired, a target virtual resource equal to the virtual resource allocation amount may be acquired from the first virtual resource set according to the virtual resource allocation amount included in the virtual resource allocation request. For example, if the virtual resource allocation amount is 158 yuan, the server may deduct 158 yuan from the stored value card balance and add 158 yuan to the virtual resource set associated with the account id of the target client.
As can be seen from the foregoing embodiments of the present application, in the virtual resource allocation method provided by the present application, the verification identifier is encoded by the sound wave, and the encoded sound wave information is sent to the at least one second client in a doppler shift manner, and the frequency information of the sound wave after frequency shift is decoded by the at least one second client, so that the verification identifier corresponding to the sound wave signal after frequency shift can be obtained. And analyzing the sound wave frequency information sent by at least one second client by using the server, so that a target client in the virtual resource allocation process can be determined from a plurality of second clients, and finally, the preset virtual resources corresponding to the virtual resource allocation request can be allocated to the virtual resource set corresponding to the target client, thereby realizing the directional virtual resource allocation process.
Please refer to fig. 2. In an embodiment of the application, a first user initiates a close-range payment request through a payer client running on a first mobile terminal, the payment amount is 158 yuan, the payment request can be sent to a background service server of a payer, the payment request can include a first payer account of the first user, and the first payer account is bound with a credit card. After receiving the payment request, the service server may calculate a verification identifier 8972 according to the first payroll account and the date and time of the current time by using a hash algorithm, and bind the verification identifier with the virtual resource allocation request and send the verification identifier to the payroll client on the first mobile terminal.
After the pay client on the first mobile terminal receives the verification identifier, the speaker of the first mobile terminal can be automatically turned on, and sound waves of frequency information corresponding to all numbers in 8972 can be sequentially played according to the preset corresponding relation between the characters and the sound wave frequency information. At this time, the first user may hold the first mobile terminal and swing towards a second mobile terminal held by a second user, so that the frequency information of the sound waves received by the second mobile terminal is subjected to doppler shift. The pay bank client in the second mobile terminal may decode the frequency information of the frequency-shifted sound wave to obtain the verification identifier 8972. The payer client on the second mobile terminal may use 8972 as identification information, and send the identification information, the frequency information of the received sound wave, and the account id of the payer client to the service server as a virtual resource acquisition request.
The service server can receive the virtual resource acquisition request sent by the Payment treasure client on the other mobile terminal besides the virtual resource acquisition request sent by the Payment treasure client on the second mobile terminal. The service server extracts a virtual resource acquisition request with identification information matched with the verification identification from a plurality of requests, and takes the client corresponding to the sound wave with the maximum frequency information as a target client. Since the second mobile terminal is closest to the first mobile terminal, the target client may be a pay bank client on the second mobile terminal, and the pay bank client on the second mobile terminal may be associated with a second pay bank account. In this way, the transaction server may transfer the amount of money 158 from the credit card bound to the first PAU to the second PAU.
It can be understood that, in the embodiments of the present application, a plurality of portions are exemplified by payroll software, which is only for facilitating understanding of the technical solutions protected by the present application. The application is not limited to a specific product, and the technical application range of the application includes but is not limited to: the system comprises an online shopping platform, a payment platform, a bank and the like. Of course, other modifications can be made by those skilled in the art in light of the teachings of the present disclosure, and all such modifications as would achieve the same or similar purpose as the present disclosure should be considered within the scope of the present disclosure.
In an embodiment of the present application, in order to avoid that, in a virtual resource allocation process, virtual resources in the first virtual resource set are insufficient to be allocated according to the virtual resource allocation amount due to a change of virtual resources in the first virtual resource set. Therefore, in this embodiment, after receiving the virtual resource allocation request sent by the first client, the pre-stored virtual resources equal to the virtual resource allocation amount may be locked in the first virtual resource set. In this way, the preset virtual resources equal to the virtual resource allocation amount can be used only in the current virtual resource allocation process within a certain time, so as to avoid the situation of virtual resource allocation failure. In this way, when the server performs virtual resource allocation between the first client and the target client, the server may deduct the preset virtual resource from the first virtual resource set, and add a virtual resource equal to the virtual resource allocation amount in the virtual resource set corresponding to the target client.
In an embodiment of the present application, if after a first client initiates a virtual resource allocation request, virtual resources in the first virtual resource set are not enough to be allocated according to the virtual resource allocation amount, the server may send a prompt that virtual resource allocation fails to the first client. Specifically, in this embodiment, after receiving a virtual resource allocation request sent by a first client, the server may compare the amount of virtual resources in the first virtual resource set with the size of the virtual resource allocation amount, and when the amount of virtual resources in the first virtual resource set is smaller than the virtual resource allocation amount, the server may send a virtual resource allocation failure prompt to the first client.
In an embodiment of the application, after the server determines a target client from at least one second client, the server may further send an account id of the target client to the first client, so that a user of the first client can confirm whether the account id of the target client is an account of a resource receiver in the current virtual resource allocation process. When the first client confirms that the account id of the target client is correct, a confirmation instruction may be sent to the server. In this way, after receiving the confirmation instruction sent by the first client, the server allocates the preset virtual resource corresponding to the virtual resource allocation request to the virtual resource set corresponding to the target client, so as to avoid the virtual resource from being allocated incorrectly.
Please refer to fig. 3. In another embodiment of the present application, the virtual resource allocation request initiated by the first client to the server may not include the virtual resource allocation amount and the first account id of the first client, and the virtual resource allocation request may be only one field written according to a preset format, where a type of the request and a source IP address of a request initiator may be indicated in the field. In this way, after the server receives the virtual resource allocation request, a verification identifier may be generated in response to the request, and a specific manner of generating the verification identifier is consistent with the description in the above embodiment. After the verification identifier is generated, the server may send the verification identifier to the first client, and the first client generates a corresponding sound wave signal according to the verification identifier and sends the sound wave signal to at least one second client in a doppler shift manner. After decoding the received sound wave, the at least one second client may obtain a resource acquisition identifier, and send a resource acquisition request to the server, where the resource acquisition request may include the resource acquisition identifier obtained by decoding and frequency information of the received sound wave. In this way, the server may determine the target client from the at least one second client. At this time, the server may send the account id corresponding to the target client to the first client, so as to enable a user of the first client to confirm whether the account id of the target client is an account of a resource receiver in the virtual resource allocation process. When the first client confirms that the account id of the target client is correct, the first client may send the first account id of the first client and the virtual resource allocation amount in the virtual resource allocation to the server, where the first account id is associated with a first virtual resource set. In this way, the server may receive the first account id and the virtual resource allocation amount provided by the first client, deduct the virtual resource equal to the virtual resource allocation amount from the first virtual resource set, and add the virtual resource equal to the virtual resource allocation amount to the virtual resource set corresponding to the target client, so as to complete the current virtual resource allocation request.
In an embodiment of the present application, in the step of selecting one of the at least one second client as the target client according to the frequency information, the second client corresponding to the sound wave with the largest frequency information may be used as the target client.
In this embodiment, as can be seen from the above description, when the first client and the at least one second client move in the opposite direction, due to the doppler effect and the difference between the speeds of the first client and the at least one second client moving in the opposite direction, the values of the frequency rise of the sound waves received by the at least one second client are different, so that the frequency information of the at least one sound waves received by the at least one second client has the maximum value. Therefore, when the at least one second client sends the arrangement of the respective received sound waves to the service server, the service server may determine, according to the frequency information of the received at least one sound wave, the second client corresponding to the maximum frequency information, and the second client corresponding to the sound wave of the maximum frequency information is the target client.
In an embodiment of the present application, in the step of receiving frequency information of the sound wave provided by the at least one second client, the frequency information of the sound wave may include a doppler frequency offset value.
In this embodiment, as can be seen from the above description, when the first client and the at least one second client move in the opposite direction, due to the doppler effect, the frequency information of the sound wave received by the at least one second client is increased, and the difference between the increased frequency information and the original frequency information may be the doppler frequency offset value. Therefore, at least one second client may only send the doppler bias value to the server, and the server may determine the doppler bias value according to the received doppler bias value, thereby determining the corresponding second client.
In an embodiment of the present application, in the step of receiving frequency information of the sound wave provided by the at least one second client, the frequency information of the sound wave may include an average value of frequencies of the sound wave received by the second client within a predetermined time period.
In this embodiment, the first client may transmit sound waves to the at least one second client. When relative motion occurs between the first client and the at least one second client, the frequency of the sound wave received by the at least one second client will increase or decrease due to the doppler effect. And the doppler frequency offset values are different according to the difference of the relative movement speeds, so that the rising or falling values of the frequency of the sound wave received by the at least one second client are also different, and thus the average values of the frequency of the sound wave within the preset time period are also different. For example, the first client sends four sound waves with frequencies of 19kHz, 20kHz, 20.2kHz and 20.4kHz to the second client a and the second client B within 400ms, the frequency offset value of the second client a due to the doppler effect is 500Hz, and the frequency offset value of the second client B due to the doppler effect is 200 Hz. The average value of the frequency of the sound wave received by the second client a is higher than the average value of the frequency of the sound wave received by the second client B within 400 ms. Therefore, after the server receives the frequency information sent by the two second clients, the client corresponding to the maximum frequency information can be determined to be the second client a, and the second client a is the target client.
The embodiment of the application also provides a server for distributing the virtual resources. Referring to fig. 4, the server may include:
a virtual resource allocation request receiving unit 10, configured to receive a virtual resource allocation request sent by a first client;
a verification identifier generating unit 20, configured to generate a verification identifier according to a preset rule in response to the virtual resource allocation request;
a verification identifier sending unit 30, configured to send the verification identifier to the first client;
a virtual resource acquisition request receiving unit 40, configured to receive a virtual resource acquisition request sent by at least one second client, where the virtual resource acquisition request includes identification information and frequency information of a sound wave sent by a first client and received by the second client;
a target client determining unit 50, configured to determine a target client from the at least one second client according to the frequency information of the sound wave when the identification information matches the verification identification;
a virtual resource allocation unit 60, configured to allocate a preset virtual resource corresponding to the virtual resource allocation request to a virtual resource set corresponding to the target client.
In an embodiment of the present application, the authentication identifier may also be generated by the first client, instead of being generated by the server. Referring to fig. 5, in this embodiment, the method for allocating virtual resources may include the following steps.
Step S21: receiving a virtual resource allocation request sent by a first client, wherein the virtual resource allocation request comprises a verification identifier;
step S23: receiving a virtual resource acquisition request sent by at least one second client, wherein the virtual resource acquisition request comprises identification information and frequency information of sound waves sent by the first client and received by the second client;
step S25: when the identification information is matched with the verification identification, determining a target client from the at least one second client according to the frequency information of the sound waves;
step S27: and allocating the preset virtual resource corresponding to the virtual resource allocation request to the virtual resource set corresponding to the target client.
In this embodiment, the authentication identifier may be generated by the first client. The specific method for generating the verification identifier is consistent with the description in the above embodiment. After the first client generates the verification identifier, a virtual resource allocation request including the verification identifier may be sent to the server.
In this embodiment, after the first client generates the verification identifier, the verification identifier may be converted into a sound wave having different frequency information according to the correspondence between the characters and the sound wave frequency in step S15, and the sound wave is transmitted to at least one second client by means of doppler shift. After decoding the received sound wave, the at least one second client may obtain a resource acquisition identifier, and send a resource acquisition request to the server, where the resource acquisition request may include the resource acquisition identifier obtained by decoding and frequency information of the received sound wave. In this way, the server may determine the target client from the at least one second client and allocate the preset virtual resource corresponding to the virtual resource allocation request to the virtual resource set corresponding to the target client.
Referring to fig. 6, in an embodiment of the present application, the virtual resource allocation request may further include a virtual resource allocation amount and a first account id of the first client, where the first account id is associated with a first virtual resource set. For example, after the first user generates the verification identifier 8972 through the pao client running on the first mobile terminal, the first user may initiate a close-range payment request, the payment amount is 158 yuan, the payment request may be sent to the background service server of the pao, the payment request may include the verification identifier, the payment amount, and a first pao account number of the first user, and the first pao account number may be bound to a credit card. In this way, after receiving the virtual resource allocation request sent by the first client, the server may determine that the initiator of the virtual resource allocation request is the first client by analyzing the source address of the sender of the virtual resource allocation request.
In this embodiment, the first client may generate a corresponding acoustic signal according to the verification identifier, and send the acoustic signal to the at least one second client by means of doppler shift. After decoding the received sound wave, the at least one second client may obtain a resource acquisition identifier, and send a resource acquisition request to the server, where the resource acquisition request may include the resource acquisition identifier obtained by decoding and frequency information of the received sound wave. In this way, the server may determine the target client from the at least one second client. In this way, the server may deduct the virtual resource equal to the virtual resource allocation amount from the first virtual resource set and add the virtual resource equal to the virtual resource allocation amount to the virtual resource set corresponding to the target client, so as to complete the current virtual resource allocation request.
In an embodiment of the present application, if after a first client initiates a virtual resource allocation request, virtual resources in the first virtual resource set are not enough to be allocated according to the virtual resource allocation amount, the server may send a prompt that virtual resource allocation fails to the first client. Specifically, in this embodiment, after receiving a virtual resource allocation request sent by a first client, the server may compare the amount of virtual resources in the first virtual resource set with the size of the virtual resource allocation amount, and when the amount of virtual resources in the first virtual resource set is smaller than the virtual resource allocation amount, the server may send a virtual resource allocation failure prompt to the first client.
In an embodiment of the application, after the server determines a target client from at least one second client, the server may further send an account id of the target client to the first client, so that a user of the first client can confirm whether the account id of the target client is an account of a resource receiver in the current virtual resource allocation process. When the first client confirms that the account id of the target client is correct, a confirmation instruction may be sent to the server. In this way, after receiving the confirmation instruction sent by the first client, the server allocates the preset virtual resource corresponding to the virtual resource allocation request to the virtual resource set corresponding to the target client, so as to avoid the virtual resource from being allocated incorrectly.
Referring to fig. 7, in another embodiment of the present application, the virtual resource allocation request may include only the verification identifier generated by the first client, but does not include the first account identifier and the virtual resource allocation amount of the first client. The virtual resource allocation request may be a field written in a preset format, a type of the request and a source IP address of a request initiator may be indicated in the field, and the authentication identifier may be filled in a reserved position of the field. After generating the verification identifier, the first client may generate a corresponding acoustic signal according to the verification identifier, and send the acoustic signal to at least one second client in a doppler shift manner. After decoding the received sound wave, the at least one second client may obtain a resource acquisition identifier, and send a resource acquisition request to the server, where the resource acquisition request may include the resource acquisition identifier obtained by decoding and frequency information of the received sound wave. In this way, the server may determine the target client from the at least one second client. At this time, the server may send the account id corresponding to the target client to the first client, so as to enable a user of the first client to confirm whether the account id of the target client is an account of a resource receiver in the virtual resource allocation process. When the first client confirms that the account id of the target client is correct, the first client may send the first account id of the first client and the virtual resource allocation amount in the virtual resource allocation to the server, where the first account id is associated with a first virtual resource set. In this way, the server may receive the first account id and the virtual resource allocation amount provided by the first client, deduct the virtual resource equal to the virtual resource allocation amount from the first virtual resource set, and add the virtual resource equal to the virtual resource allocation amount to the virtual resource set corresponding to the target client, so as to complete the current virtual resource allocation request.
In an embodiment of the present application, in the step of selecting one of the at least one second client as the target client according to the frequency information, the second client corresponding to the sound wave with the largest frequency information may be used as the target client.
In this embodiment, as can be seen from the above description, when the first client and the at least one second client move in the opposite direction, due to the doppler effect and the difference between the speeds of the first client and the at least one second client moving in the opposite direction, the values of the frequency rise of the sound waves received by the at least one second client are different, so that the frequency information of the at least one sound waves received by the at least one second client has the maximum value. Therefore, when the at least one second client sends the arrangement of the respective received sound waves to the service server, the service server may determine, according to the frequency information of the received at least one sound wave, the second client corresponding to the maximum frequency information, and the second client corresponding to the sound wave of the maximum frequency information is the target client.
In an embodiment of the present application, in the step of receiving frequency information of the sound wave provided by the at least one second client, the frequency information of the sound wave may include a doppler frequency offset value.
In this embodiment, as can be seen from the above description, when the first client and the at least one second client move in the opposite direction, due to the doppler effect, the frequency information of the sound wave received by the at least one second client is increased, and the difference between the increased frequency information and the original frequency information may be the doppler frequency offset value. Therefore, at least one second client may only send the doppler bias value to the server, and the server may determine the doppler bias value according to the received doppler bias value, thereby determining the corresponding second client.
In an embodiment of the present application, in the step of receiving frequency information of the sound wave provided by the at least one second client, the frequency information of the sound wave may include an average value of frequencies of the sound wave received by the second client within a predetermined time period.
In this embodiment, the first client may transmit sound waves to the at least one second client. When relative motion occurs between the first client and the at least one second client, the frequency of the sound wave received by the at least one second client will increase or decrease due to the doppler effect. And the doppler frequency offset values are different according to the difference of the relative movement speeds, so that the rising or falling values of the frequency of the sound wave received by the at least one second client are also different, and thus the average values of the frequency of the sound wave within the preset time period are also different. For example, the first client sends four sound waves with frequencies of 19kHz, 20kHz, 20.2kHz and 20.4kHz to the second client a and the second client B within 400ms, the frequency offset value of the second client a due to the doppler effect is 500Hz, and the frequency offset value of the second client B due to the doppler effect is 200 Hz. The average value of the frequency of the sound wave received by the second client a is higher than the average value of the frequency of the sound wave received by the second client B within 400 ms. Therefore, after the server receives the frequency information sent by the two second clients, the client corresponding to the maximum frequency information can be determined to be the second client a, and the second client a is the target client.
Referring to fig. 8, the present application further provides a server for allocating virtual resources. As shown in fig. 8, the server may include:
a virtual resource allocation request receiving unit 100, configured to receive a virtual resource allocation request sent by a first client, where the virtual resource allocation request includes a verification identifier;
a virtual resource acquisition request receiving unit 200, configured to receive a virtual resource acquisition request sent by at least one second client, where the virtual resource acquisition request includes identification information and frequency information of a sound wave sent by a first client and received by the second client;
a target client determining unit 300, configured to determine a target client from the at least one second client according to the frequency information of the sound wave when the identification information matches the verification identification;
a virtual resource allocation unit 400, configured to allocate a preset virtual resource corresponding to the virtual resource allocation request to a virtual resource set corresponding to the target client.
Referring to fig. 9, the present application further provides a method for allocating virtual resources. As shown in fig. 9, the method may include the following steps.
Step S01: the server receives a virtual resource allocation request sent by a first client;
step S02: responding to the virtual resource allocation request, and generating a verification identifier by the server according to a preset rule;
step S03: the server sends the verification identification to the first client;
step S04: the first client generates sound waves corresponding to the verification identification and sends the sound waves to at least one second client in the moving process;
step S05: the at least one second client receives the sound waves and analyzes the sound waves to obtain identification information carried by the sound waves; the at least one second client acquires frequency information corresponding to the sound waves;
step S06: the server receives a virtual resource acquisition request sent by the at least one second client, wherein the virtual resource acquisition request comprises the identification information and the frequency information of the sound waves;
step S07: when the identification information is matched with the verification identification, the server determines a target client from the at least one second client according to the frequency information of the sound waves;
step S08: the server associates the validation identifier with the virtual resource allocation request and sends the validation identifier to the first client.
The specific implementation manner of each method step is consistent with the description of steps S11 to S111, and is not described herein again.
Correspondingly, the application also provides a system for distributing the virtual resources. Referring to fig. 10, the system may include a server 10, a first client 20, and at least one second client 30, wherein:
the server 10 is configured to receive a virtual resource allocation request sent by a first client; responding to the virtual resource allocation request, and generating a verification identifier according to a preset rule; associating the validation identifier with the virtual resource allocation request and sending the validation identifier to the first client;
the first client 20 is configured to generate a sound wave corresponding to the authentication identifier, and send the sound wave to at least one second client during the movement;
the at least one second client 30 is configured to receive the sound wave and analyze the sound wave to obtain identification information carried by the sound wave; acquiring frequency information corresponding to the sound waves;
the server 10 is further configured to receive a virtual resource acquisition request sent by the at least one second client, where the virtual resource acquisition request includes the identifier information and the frequency information of the sound wave obtained through analysis; when the identification information is matched with the verification identification, determining a target client from the at least one second client according to the frequency information of the sound waves; and allocating the preset virtual resource corresponding to the virtual resource allocation request to the virtual resource set corresponding to the target client.
Referring to fig. 11, a method for allocating virtual resources is also provided. As shown in fig. 11, the method may include the following steps.
Step S010: a first client generates a verification identifier and sends a virtual resource allocation request containing the verification identifier to a server;
step S020: the first client generates sound waves corresponding to the verification identification and sends the sound waves to at least one second client in the moving process;
step S030: the at least one second client receives the sound waves and analyzes the sound waves to obtain identification information carried by the sound waves; the at least one second client acquires frequency information corresponding to the sound waves;
step S040: the server receives a virtual resource acquisition request sent by the at least one second client, wherein the virtual resource acquisition request comprises the identification information and the frequency information of the sound waves obtained through analysis;
step S050: when the identification information is matched with the verification identification, the server determines a target client from the at least one second client according to the frequency information of the sound waves;
step S060: and the server allocates the preset virtual resource corresponding to the virtual resource allocation request to the virtual resource set corresponding to the target client.
It should be noted that the specific implementation method of the steps S010 to S060 is consistent with the description of the steps S21 to S27, and will not be described again here.
Correspondingly, the application also provides a system for distributing the virtual resources. Referring to fig. 12, the system may include a server 100, a first client 200, and at least one second client 300, wherein:
the first client 200 is configured to generate a verification identifier, and send a virtual resource allocation request including the verification identifier to a server; generating sound waves corresponding to the verification identification, and sending the sound waves to at least one second client in the moving process;
the at least one second client 300 is configured to receive the sound wave and analyze the sound wave to obtain identification information carried by the sound wave; acquiring a frequency signal corresponding to the sound wave;
the server 100 is configured to receive a virtual resource acquisition request sent by the at least one second client, where the virtual resource acquisition request includes the identifier information and the frequency information of the sound wave obtained through analysis; when the identification information is matched with the verification identification, determining a target client from the at least one second client according to the frequency information of the sound waves; and allocating the preset virtual resource corresponding to the virtual resource allocation request to the virtual resource set corresponding to the target client.
It should be noted that, in the present specification, each embodiment is described in a progressive manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment is described with emphasis on differences from other embodiments. In particular, as for the server and system embodiments, since they are substantially similar to the method embodiments, the description is simple, and for the relevant points, reference may be made to part of the description of the method embodiments.
As can be seen from the foregoing embodiments of the present application, according to the virtual resource allocation method, server, and system provided by the present application, the verification identifier is encoded by the sound wave, and the encoded sound wave information is sent to the at least one second client in a doppler shift manner, and the frequency information of the sound wave after the frequency shift is decoded by the at least one second client, so that the verification identifier corresponding to the sound wave signal after the frequency shift can be obtained. And analyzing the sound wave frequency information sent by at least one second client by using the server, so that a target client in the virtual resource allocation process can be determined from a plurality of second clients, and finally, the preset virtual resources corresponding to the virtual resource allocation request can be allocated to the virtual resource set corresponding to the target client, thereby realizing the directional virtual resource allocation process.
In this specification, adjectives such as first and second may only be used to distinguish one element or action from another, without necessarily requiring or implying any actual such relationship or order. References to an element or component or step (etc.) should not be construed as limited to only one of the element, component, or step, but rather to one or more of the element, component, or step, etc., where the context permits.
The foregoing description of various embodiments of the present application is provided for the purpose of illustration to those skilled in the art. It is not intended to be exhaustive or to limit the invention to a single disclosed embodiment. As described above, various alternatives and modifications of the present application will be apparent to those skilled in the art to which the above-described technology pertains. Thus, while some alternative embodiments have been discussed in detail, other embodiments will be apparent or relatively easy to derive by those of ordinary skill in the art. This application is intended to cover all alternatives, modifications, and variations of the invention that have been discussed herein, as well as other embodiments that fall within the spirit and scope of the above-described application.
The units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions.
Although the present application has been described in terms of embodiments, those of ordinary skill in the art will recognize that there are numerous variations and permutations of the present application without departing from the spirit of the application, and it is intended that the appended claims encompass such variations and permutations without departing from the spirit of the application.

Claims (28)

1. A system for virtual resource allocation, the system comprising a server, a first client and at least one second client, characterized in that:
the server is used for receiving a virtual resource allocation request sent by a first client; responding to the virtual resource allocation request, and generating a verification identifier according to a preset rule; sending the verification identification to the first client;
the first client is used for generating sound waves corresponding to the verification identification and sending the sound waves to at least one second client in the moving process;
the at least one second client is used for receiving the sound waves and analyzing the sound waves to obtain identification information carried by the sound waves; acquiring frequency information corresponding to the sound waves;
the server is further configured to receive a virtual resource acquisition request sent by the at least one second client, where the virtual resource acquisition request includes the identifier information and the frequency information of the sound wave obtained through analysis; when the identification information is matched with the verification identification, determining a target client from the at least one second client according to the frequency information of the sound waves; and allocating the preset virtual resource corresponding to the virtual resource allocation request to the virtual resource set corresponding to the target client.
2. A system for virtual resource allocation, the system comprising a server, a first client and at least one second client, characterized in that:
the first client is used for generating a verification identifier and sending a virtual resource allocation request containing the verification identifier to a server; generating sound waves corresponding to the verification identification, and sending the sound waves to at least one second client in the moving process;
the at least one second client is used for receiving the sound waves and analyzing the sound waves to obtain identification information carried by the sound waves; acquiring frequency information corresponding to the sound waves;
the server is used for receiving a virtual resource acquisition request sent by the at least one second client, wherein the virtual resource acquisition request comprises the identification information and the frequency information of the sound waves obtained through analysis; when the identification information is matched with the verification identification, determining a target client from the at least one second client according to the frequency information of the sound waves; and allocating the preset virtual resource corresponding to the virtual resource allocation request to the virtual resource set corresponding to the target client.
3. A method of virtual resource allocation, comprising:
receiving a virtual resource allocation request sent by a first client;
responding to the virtual resource allocation request, and generating a verification identifier according to a preset rule;
sending the verification identification to the first client;
receiving a virtual resource acquisition request sent by at least one second client, wherein the virtual resource acquisition request comprises identification information and frequency information of sound waves sent by the first client and received by the second client;
when the identification information is matched with the verification identification, determining a target client from the at least one second client according to the frequency information of the sound waves;
and allocating the preset virtual resource corresponding to the virtual resource allocation request to the virtual resource set corresponding to the target client.
4. The method according to claim 3, wherein the virtual resource allocation request further includes a virtual resource allocation amount and a first account id of the first client, and the first account id is associated with a first virtual resource set.
5. The method of claim 4, wherein after receiving the virtual resource allocation request from the first client, the method further comprises: pre-stored virtual resources with the same allocation amount as the virtual resources are locked in the first virtual resource set;
correspondingly, allocating the preset virtual resource corresponding to the virtual resource allocation request to the virtual resource set corresponding to the target client specifically includes:
deducting the preset virtual resources from the first virtual resource set, and adding virtual resources with the same distribution amount as the virtual resources in the virtual resource set corresponding to the target client.
6. The method of claim 4, wherein after receiving the virtual resource allocation request from the first client, the method further comprises:
and comparing the virtual resource amount in the first virtual resource set with the virtual resource allocation amount, and sending a virtual resource allocation failure prompt to the first client when the virtual resource amount in the first virtual resource set is smaller than the virtual resource allocation amount.
7. The method according to claim 4, wherein before allocating the preset virtual resource corresponding to the virtual resource allocation request to the virtual resource set corresponding to the target client, the method further comprises:
sending the account identification of the target client to the first client;
correspondingly, after receiving the confirmation instruction sent by the first client, the preset virtual resource corresponding to the virtual resource allocation request is allocated to the virtual resource set corresponding to the target client.
8. The method according to claim 3, wherein before allocating the preset virtual resource corresponding to the virtual resource allocation request to the virtual resource set corresponding to the target client, the method further comprises:
sending the account identification of the target client to the first client;
correspondingly, allocating the preset virtual resource corresponding to the virtual resource allocation request to the virtual resource set corresponding to the target client specifically includes:
receiving a first account identifier and a virtual resource allocation amount provided by the first client, wherein the first account identifier is associated with a first virtual resource set;
and deducting the virtual resources with the same distribution amount as the virtual resources from the first virtual resource set, and adding the virtual resources with the same distribution amount as the virtual resources in the virtual resource set corresponding to the target client.
9. The method of claim 3, wherein the identification information matching the authentication identification comprises at least one of:
the identification information is the same as the verification identification; or,
the identification information and the verification identification meet a preset algorithm corresponding relation.
10. The method according to claim 3, wherein determining the target client from the at least one second client according to the frequency information of the sound wave specifically comprises: and determining the second client corresponding to the sound wave with the maximum frequency information as the target client.
11. The method of claim 3 or 10, wherein the frequency information comprises a doppler bias value.
12. The method according to claim 10, characterized by further comprising an intensity value of the sound wave in the virtual resource acquisition request;
correspondingly, when the maximum frequency information is multiple, the second client corresponding to the sound wave with the maximum frequency information and the maximum intensity value is taken as the target client.
13. The method of claim 3, wherein the frequency information of the sound wave comprises an average value of the frequency of the sound wave received by the second client within a predetermined time period.
14. A server for virtual resource allocation, comprising:
a virtual resource allocation request receiving unit, configured to receive a virtual resource allocation request sent by a first client;
the verification identifier generating unit is used for responding to the virtual resource allocation request and generating a verification identifier according to a preset rule;
a verification identifier sending unit, configured to send the verification identifier to the first client;
a virtual resource acquisition request receiving unit, configured to receive a virtual resource acquisition request sent by at least one second client, where the virtual resource acquisition request includes identification information and frequency information of a sound wave sent by a first client and received by the second client;
the target client determining unit is used for determining a target client from the at least one second client according to the frequency information of the sound waves when the identification information is matched with the verification identification;
and the virtual resource allocation unit is used for allocating preset virtual resources corresponding to the virtual resource allocation request to a virtual resource set corresponding to the target client.
15. A method of virtual resource allocation, comprising:
receiving a virtual resource allocation request sent by a first client, wherein the virtual resource allocation request comprises a verification identifier;
receiving a virtual resource acquisition request sent by at least one second client, wherein the virtual resource acquisition request comprises identification information and frequency information of sound waves sent by the first client and received by the second client;
when the identification information is matched with the verification identification, determining a target client from the at least one second client according to the frequency information of the sound waves;
and allocating the preset virtual resource corresponding to the virtual resource allocation request to the virtual resource set corresponding to the target client.
16. The method of claim 15, wherein the virtual resource allocation request further includes a virtual resource allocation amount and a first account id of the first client, and the first account id is associated with a first virtual resource set.
17. The method of claim 16, wherein after receiving the virtual resource allocation request from the first client, the method further comprises: pre-stored virtual resources with the same allocation amount as the virtual resources are locked in the first virtual resource set;
correspondingly, allocating the preset virtual resource corresponding to the virtual resource allocation request to the virtual resource set corresponding to the target client specifically includes:
deducting the preset virtual resources from the first virtual resource set, and adding virtual resources with the same distribution amount as the virtual resources in the virtual resource set corresponding to the target client.
18. The method of claim 16, wherein after receiving the virtual resource allocation request from the first client, the method further comprises:
and comparing the virtual resource amount in the first virtual resource set with the virtual resource allocation amount, and sending a virtual resource allocation failure prompt to the first client when the virtual resource amount in the first virtual resource set is smaller than the virtual resource allocation amount.
19. The method according to claim 16, wherein before allocating the preset virtual resource corresponding to the virtual resource allocation request to the virtual resource set corresponding to the target client, the method further comprises:
sending the account identification of the target client to the first client;
correspondingly, after receiving the confirmation instruction sent by the first client, the preset virtual resource corresponding to the virtual resource allocation request is allocated to the virtual resource set corresponding to the target client.
20. The method according to claim 15, wherein before allocating the preset virtual resource corresponding to the virtual resource allocation request to the virtual resource set corresponding to the target client, the method further comprises:
sending the account identification of the target client to the first client;
correspondingly, allocating the preset virtual resource corresponding to the virtual resource allocation request to the virtual resource set corresponding to the target client specifically includes:
receiving a first account identifier and a virtual resource allocation amount provided by the first client, wherein the first account identifier is associated with a first virtual resource set;
and deducting the virtual resources with the same distribution amount as the virtual resources from the first virtual resource set, and adding the virtual resources with the same distribution amount as the virtual resources in the virtual resource set corresponding to the target client.
21. The method of claim 15, wherein the identification information matching the authentication identification comprises at least one of:
the identification information is the same as the verification identification; or,
the identification information and the verification identification meet a preset algorithm corresponding relation.
22. The method according to claim 15, wherein determining the target client from the at least one second client according to the frequency information of the sound wave specifically comprises: and determining the second client corresponding to the sound wave with the maximum frequency information as the target client.
23. The method of claim 15 or 22, wherein the frequency information comprises a doppler bias value.
24. The method according to claim 22, wherein an intensity value of the sound wave is further included in the virtual resource acquisition request;
correspondingly, when the maximum frequency information is multiple, the second client corresponding to the sound wave with the maximum frequency information and the maximum intensity value is taken as the target client.
25. The method of claim 15, wherein the frequency information of the sound wave comprises an average value of the frequency of the sound wave received by the second client within a predetermined time period.
26. A server for virtual resource allocation, comprising:
a virtual resource allocation request receiving unit, configured to receive a virtual resource allocation request sent by a first client, where the virtual resource allocation request includes a verification identifier;
a virtual resource acquisition request receiving unit, configured to receive a virtual resource acquisition request sent by at least one second client, where the virtual resource acquisition request includes identification information and frequency information of a sound wave sent by a first client and received by the second client;
the target client determining unit is used for determining a target client from the at least one second client according to the frequency information of the sound waves when the identification information is matched with the verification identification;
and the virtual resource allocation unit is used for allocating preset virtual resources corresponding to the virtual resource allocation request to a virtual resource set corresponding to the target client.
27. A method of virtual resource allocation, comprising:
the server receives a virtual resource allocation request sent by a first client;
responding to the virtual resource allocation request, and generating a verification identifier by the server according to a preset rule;
the server sends the verification identification to the first client;
the first client generates sound waves corresponding to the verification identification and sends the sound waves to at least one second client in the moving process;
the at least one second client receives the sound waves and analyzes the sound waves to obtain identification information carried by the sound waves;
the at least one second client acquires frequency information corresponding to the sound waves;
the server receives a virtual resource acquisition request sent by the at least one second client, wherein the virtual resource acquisition request comprises the identification information and the frequency information of the sound waves;
when the identification information is matched with the verification identification, the server determines a target client from the at least one second client according to the frequency information of the sound waves;
the server associates the validation identifier with the virtual resource allocation request and sends the validation identifier to the first client.
28. A method of virtual resource allocation, comprising:
a first client generates a verification identifier and sends a virtual resource allocation request containing the verification identifier to a server;
the first client generates sound waves corresponding to the verification identification and sends the sound waves to at least one second client in the moving process;
the at least one second client receives the sound waves and analyzes the sound waves to obtain identification information carried by the sound waves;
the at least one second client acquires frequency information corresponding to the sound waves; the server receives a virtual resource acquisition request sent by the at least one second client, wherein the virtual resource acquisition request comprises the identification information and the frequency information of the sound waves obtained through analysis;
when the identification information is matched with the verification identification, the server determines a target client from the at least one second client according to the frequency information of the sound waves;
and the server allocates the preset virtual resource corresponding to the virtual resource allocation request to the virtual resource set corresponding to the target client.
CN201610404901.6A 2016-06-08 2016-06-08 A kind of method of virtual resource allocation, server and system Pending CN107480980A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610404901.6A CN107480980A (en) 2016-06-08 2016-06-08 A kind of method of virtual resource allocation, server and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610404901.6A CN107480980A (en) 2016-06-08 2016-06-08 A kind of method of virtual resource allocation, server and system

Publications (1)

Publication Number Publication Date
CN107480980A true CN107480980A (en) 2017-12-15

Family

ID=60594561

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610404901.6A Pending CN107480980A (en) 2016-06-08 2016-06-08 A kind of method of virtual resource allocation, server and system

Country Status (1)

Country Link
CN (1) CN107480980A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109951548A (en) * 2019-03-19 2019-06-28 深信服科技股份有限公司 The management method and cloud Guan Pingtai of the resource of cloud platform
CN111611075A (en) * 2020-05-19 2020-09-01 北京达佳互联信息技术有限公司 Virtual resource request processing method and device, electronic equipment and storage medium
CN113517152A (en) * 2021-05-16 2021-10-19 武汉领普科技有限公司 Switch control method, receiving end control method, self-generating switch and receiving end
CN114374671A (en) * 2021-12-31 2022-04-19 重庆集诚汽车电子有限责任公司 Method, medium and equipment for distributing LIN address of reversing radar

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102722812A (en) * 2012-05-22 2012-10-10 朱建 Method and device for transmitting consumption certificate number through audio signal to realize spot transaction
CN103761648A (en) * 2014-02-11 2014-04-30 中国银行股份有限公司 Sound wave payment method and related devices
CN103856886A (en) * 2012-11-30 2014-06-11 王方淇 Target terminal selection method, system and mobile terminal
CN103955822A (en) * 2014-05-19 2014-07-30 刘飞 Method for mobile payment by transmitting data through variable frequency sound waves

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102722812A (en) * 2012-05-22 2012-10-10 朱建 Method and device for transmitting consumption certificate number through audio signal to realize spot transaction
CN103856886A (en) * 2012-11-30 2014-06-11 王方淇 Target terminal selection method, system and mobile terminal
CN103761648A (en) * 2014-02-11 2014-04-30 中国银行股份有限公司 Sound wave payment method and related devices
CN103955822A (en) * 2014-05-19 2014-07-30 刘飞 Method for mobile payment by transmitting data through variable frequency sound waves

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109951548A (en) * 2019-03-19 2019-06-28 深信服科技股份有限公司 The management method and cloud Guan Pingtai of the resource of cloud platform
CN109951548B (en) * 2019-03-19 2021-11-19 深信服科技股份有限公司 Resource management method of cloud platform and cloud management platform
CN111611075A (en) * 2020-05-19 2020-09-01 北京达佳互联信息技术有限公司 Virtual resource request processing method and device, electronic equipment and storage medium
CN111611075B (en) * 2020-05-19 2024-03-05 北京达佳互联信息技术有限公司 Virtual resource request processing method and device, electronic equipment and storage medium
CN113517152A (en) * 2021-05-16 2021-10-19 武汉领普科技有限公司 Switch control method, receiving end control method, self-generating switch and receiving end
CN113517152B (en) * 2021-05-16 2022-08-16 武汉领普科技有限公司 Switch control method, receiving end control method, self-generating switch and receiving end
CN114374671A (en) * 2021-12-31 2022-04-19 重庆集诚汽车电子有限责任公司 Method, medium and equipment for distributing LIN address of reversing radar

Similar Documents

Publication Publication Date Title
US11277394B2 (en) Managing credentials of multiple users on an electronic device
US20180331837A1 (en) Secure information transmitting system and method for personal identity authentication
CN105245541B (en) Authentication method, equipment and system
CN104994114B (en) A kind of identity authorization system and method based on electronic ID card
US9537861B2 (en) Method of mutual verification between a client and a server
CN106657152B (en) Authentication method, server and access control device
CN106533687B (en) A kind of identity identifying method and equipment
CN111130803B (en) Method, system and device for digital signature
US20190251561A1 (en) Verifying an association between a communication device and a user
CN107181714B (en) Verification method and device based on service code and generation method and device of service code
US20180324152A1 (en) Securely recognizing mobile devices
TW201545526A (en) Method, apparatus, and system for providing a security check
US11483155B2 (en) Access control using proof-of-possession token
CN111131300B (en) Communication method, terminal and server
CN105868970B (en) authentication method and electronic equipment
CN111615105A (en) Information providing method, information obtaining method, information providing device, information obtaining device and terminal
CN107480980A (en) A kind of method of virtual resource allocation, server and system
CN114338247B (en) Data transmission method and apparatus, electronic device, storage medium, and program product
CN111161056A (en) Method, system and equipment for improving transaction security of digital assets
CN102802150A (en) Phone number validation method and system as well as terminal
CN116074023A (en) Authentication method and communication device
CN108449568A (en) Identity identifying method and device for video conference
CN108769038B (en) Data processing method and device based on block chain
CN116647345A (en) Method and device for generating permission token, storage medium and computer equipment
WO2023142437A1 (en) Identity authentication method and apparatus, device, and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1248020

Country of ref document: HK

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20171215