Data processing method, terminal device and data processing system

By using short-distance wireless communication connections and payment code prompts in bus payment scenarios, the problem of users being unable to instantly determine the success of code swiping is solved when the network is poor, improving user experience and reducing the risk of code swiping failure.

CN113743929BActive Publication Date: 2024-09-03ADVANCED NEW TECHNOLOGIES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111073291.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-01-24
Publication Date
2024-09-03
Estimated Expiration
2038-01-24

AI Technical Summary

Technical Problem

When the network condition is poor, users in the bus payment scenario cannot immediately receive a prompt that the QR code is successfully swiped, resulting in a poor user experience, and may cause multiple QR code swipes due to sound failure, resulting in user losses.

Method used

By generating payment codes containing connection information, using short-range wireless communication connections to establish между mobile terminal devices and bus POS machines, sending and receiving prompt information to inform users of the success or failure of swiping the code, improves user experience.

Benefits of technology

Users can easily determine whether the code swiping is successful or not, which improves the user experience, reduces the number of code swiping behaviors caused by sound failures, and reduces the user's inconvenience and risk of capital loss.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113743929B
    Figure CN113743929B
Patent Text Reader

Abstract

The embodiments of this specification provide a data processing method, a terminal device, and a data processing system. The method includes: a first terminal generates a payment code; wherein the payment code includes connection information; the connection information includes a connection identifier of the first terminal; a second terminal obtains the payment code; a wireless communication connection is established with the first terminal based on the connection identifier; a first prompt message is sent to the first terminal based on the wireless communication connection; wherein the first prompt message is used to prompt whether the payment is successful; the first terminal receives the first prompt message based on the wireless communication connection; and the first prompt message is displayed.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This invention is a divisional application of the invention patent application with application number 201810067565.X, application date January 24, 2018, and invention name “Data processing method, terminal equipment and data processing system”. Technical Field

[0002] The embodiments of the present specification relate to the field of computer technology, and in particular, to a data processing method, a terminal device, and a data processing system. Background Art

[0003] With the development of the Internet and the popularization of mobile terminal devices, QR codes have gradually been widely used in daily life, such as in public transportation payment scenarios.

[0004] Generally, the entities involved in the bus payment scenario may include a mobile terminal device, a bus POS machine, a server corresponding to the mobile terminal device (hereinafter referred to as the first server), and a server corresponding to the bus POS machine (hereinafter referred to as the second server). A user may use a mobile terminal device to generate a QR code for boarding, which may include payment information. The bus POS machine may scan the QR code for boarding and then identify the payment information; it may upload the payment information to the second server. The second server may receive the payment information; it may issue a deduction request to the first server. The first server may receive the deduction request and then perform a deduction operation; it may return a deduction prompt message to the mobile terminal device.

[0005] In order to enable users to board the bus when the network is not in good condition, the public transportation POS machine is usually configured to delay uploading the recognized payment information to the second server. In this way, after the user swipes the code, the mobile terminal device cannot immediately obtain the deduction prompt information, so that the user can only judge whether the code is swiped successfully by the sound emitted by the public transportation POS machine, resulting in poor user experience. In particular, when the public transportation POS machine has a sound failure, it may cause the user to swipe the code multiple times, resulting in user data loss. Summary of the invention

[0006] The purpose of the embodiments of this specification is to provide a data processing method, a terminal device, and a data processing system, so that the user can easily determine whether the code scanning is successful, thereby improving the user experience.

[0007] To achieve the above-mentioned purpose, an embodiment of this specification provides a data processing method, including: a first terminal generates a payment code; wherein the payment code includes connection information; the connection information includes a connection identifier of the first terminal; a second terminal obtains the payment code; a wireless communication connection is established with the first terminal based on the connection identifier; a first prompt message is sent to the first terminal based on the wireless communication connection; wherein the first prompt message is used to prompt whether the payment is successful; the first terminal receives the first prompt message based on the wireless communication connection; and the first prompt message is displayed.

[0008] To achieve the above-mentioned purpose, an embodiment of the present specification provides a data processing method, which is applied to a first terminal, including: generating a payment code; wherein the payment code includes connection information; the connection information includes a connection identifier of the first terminal; under the condition of establishing a wireless communication connection with a second terminal based on the connection identifier, receiving a first prompt message sent by the second terminal based on the wireless communication connection; wherein the first prompt message is used to prompt whether the payment is successful; and displaying the first prompt message.

[0009] To achieve the above-mentioned purpose, an embodiment of the present specification provides a terminal device, including: a generating unit, used to generate a payment code; wherein the payment code includes connection information; the connection information includes a connection identifier of the first terminal; a receiving unit, used to establish a wireless communication connection with the second terminal based on the connection identifier, and receive a first prompt message sent by the second terminal based on the wireless communication connection; wherein the first prompt message is used to prompt whether the payment is successful; and a display unit, used to display the first prompt message.

[0010] To achieve the above-mentioned purpose, an embodiment of the present specification provides a terminal device, including: a communication component, used to establish a wireless communication connection and transmit data; a display component, used to display a first prompt message; a processor, used to generate a payment code; wherein the payment code includes connection information; the connection information includes a connection identifier of the first terminal; under the condition of establishing a wireless communication connection with the second terminal based on the connection identifier, receiving a first prompt message sent by the second terminal based on the wireless communication connection; wherein the first prompt message is used to prompt whether the payment is successful; and controlling the display component to display the first prompt message.

[0011] To achieve the above-mentioned purpose, an embodiment of the present specification provides a data processing method, which is applied to a second terminal, including: obtaining a payment code; wherein the payment code includes connection information; the connection information includes a connection identifier of a first terminal; under the condition of establishing a wireless communication connection with the first terminal based on the connection identifier, sending a first prompt message to the first terminal based on the wireless communication connection; wherein the first prompt message is used to prompt whether the payment is successful.

[0012] To achieve the above-mentioned purpose, an embodiment of the present specification provides a terminal device, including: an acquisition unit, used to acquire a payment code; wherein the payment code includes connection information; the connection information includes a connection identifier of a first terminal; a sending unit, used to send a first prompt message to the first terminal based on the wireless communication connection under the condition of establishing a wireless communication connection with the first terminal based on the connection identifier; wherein the first prompt message is used to prompt whether the payment is successful.

[0013] To achieve the above-mentioned purpose, an embodiment of the present specification provides a terminal device, including: a communication component, used to establish a wireless communication connection and transmit data; a processor, used to obtain a payment code; wherein the payment code includes connection information; the connection information includes a connection identifier of a first terminal; under the condition of establishing a wireless communication connection with the first terminal based on the connection identifier, a first prompt message is sent to the first terminal based on the wireless communication connection; wherein the first prompt message is used to prompt whether the payment is successful.

[0014] To achieve the above purpose, an embodiment of this specification provides a data processing system, including a first terminal and a second terminal. The first terminal is used to generate a payment code; wherein the payment code includes connection information; the connection information includes a connection identifier of the first terminal. The second terminal is used to obtain the payment code; establish a wireless communication connection with the first terminal based on the connection identifier; send a first prompt message to the first terminal based on the wireless communication connection; wherein the first prompt message is used to prompt whether the payment is successful. The first terminal is also used to receive the first prompt message based on the wireless communication connection; and display the first prompt message.

[0015] It can be seen from the technical solutions provided in the above embodiments of this specification that, in the embodiments of this specification, the first terminal can generate a payment code; wherein the payment code includes connection information; the connection information includes a connection identifier of the first terminal. The second terminal can obtain the payment code; a wireless communication connection can be established with the first terminal based on the connection identifier; and a first prompt message can be sent to the first terminal based on the wireless communication connection. The first terminal can receive the first prompt message based on the wireless communication connection; and the first prompt message can be displayed. The first prompt message can be used to prompt whether the payment is successful. In this way, through the first prompt message displayed by the first terminal, the user can easily determine whether the code scan is successful, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0017] Figure 1 This is a schematic diagram of a short-range wireless communication connection between a first terminal and a second terminal in an embodiment of this specification;

[0018] Figure 2 This is a flow chart of a data processing method according to an embodiment of this specification;

[0019] Figure 3 A flowchart of another data processing method according to an embodiment of this specification;

[0020] Figure 4 A flowchart of another data processing method according to an embodiment of this specification;

[0021] Figure 5 This is a schematic diagram of a payment code according to an embodiment of this specification;

[0022] Figure 6 This is a schematic diagram of a prompt message of successful support according to an embodiment of this specification;

[0023] Figure 7 This is a schematic diagram of a payment failure prompt message according to an embodiment of this specification;

[0024] Figure 8 This is a functional structure diagram of a terminal device according to an embodiment of this specification;

[0025] Fig. 9 This is a functional structure diagram of another terminal device according to an embodiment of this specification;

[0026] Fig.10 This is a functional structure diagram of another terminal device according to an embodiment of this specification;

[0027] Fig.11 This is a functional structure diagram of another terminal device according to an embodiment of this specification. DETAILED DESCRIPTION

[0028] The following will be combined with the drawings in the embodiments of this specification to clearly and completely describe the technical solutions in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this specification.

[0029] The embodiment of this specification provides a data processing system.

[0030] In this embodiment, the data processing system may include a first terminal. The first terminal may have a payment code generation function. The payment code may include a graphical code and a sound wave code, etc., and the graphical code may include a bar code and a QR code, etc. The first terminal may also have a short-range wireless communication function. The short-range wireless communication may refer to communication within a relatively short distance, including but not limited to Bluetooth, infrared (IrDA), wireless fidelity (WI-FI), ultra-wideband communication (Ultra Wide Band), Zigbee, near field communication (Near Field Communication, NFC), etc. The first terminal may be a smart phone, a tablet electronic device, a portable computer, a personal digital assistant (PDA), or a smart wearable device, etc.

[0031] In this embodiment, the data processing system may further include a second terminal. The second terminal may have a payment code scanning function. The second terminal may also have a short-range wireless communication function. The second terminal may be a mobile device, such as a smart phone, a tablet electronic device, a portable computer, a personal digital assistant (PDA), a vehicle-mounted device, a POS machine (such as a merchant POS machine, a bus POS machine, etc.), or a smart wearable device, etc. The second terminal may also be a desktop device, such as a server, an industrial computer (industrial control computer), a personal computer (PC), an all-in-one machine, or an intelligent self-service terminal (kiosk) (such as a subway self-service ticket machine, a train ticket self-service ticket machine), etc. In one implementation of this embodiment, the second terminal may also have a speaker. The speaker may generate sound waves audible to humans.

[0032] In one implementation of this embodiment, the data processing system may further include a first server. The first server may be a server or a server cluster including a plurality of servers. The first server may be a server corresponding to the first terminal. For example, the first terminal may be a smart phone with an Alipay APP installed, and the first server may be an Alipay server.

[0033] In one implementation of this embodiment, the data set transmission system may further include a second server. The second server may be a single server or a server cluster including a plurality of servers. The second server may be a server corresponding to the second terminal. For example, the second terminal may be a bus POS terminal, and the second server may be a server corresponding to the bus POS terminal.

[0034] See also Figure 1 , Figure 2 , Figure 5 , Figure 6 and Figure 7 The embodiment of the present specification provides a data processing method. The subject implementing the data processing method may include a first terminal and a second terminal. In order to enable data transmission, the short-range wireless communication function of the first terminal and the second terminal may be turned on. The data processing method may include the following steps.

[0035] Step S10: The first terminal generates a payment code.

[0036] In this embodiment, the payment code may include a graphical code and a sound wave code, etc. The graphical code may include a bar code and a QR code, etc.

[0037] The payment code may include connection information. The connection information may include a connection identifier of the first terminal. The connection identifier may be used to establish a wireless communication connection. Depending on the wireless communication connection established, the connection identifiers may be the same or different. For example, when a wireless communication connection is established based on Bluetooth technology, the connection identifier may be the physical address (Media Access Control, MAC) of the first terminal. As another example, when a wireless communication connection is established based on Wi-Fi technology, the connection identifier may be the service set identifier (Service Set Identifier, SSID) of the first terminal. Of course, when a wireless communication connection is established based on other technologies, the connection identifier may be other identifiers of the first terminal, which are not listed here one by one.

[0038] The payment code may also include payment information. The payment information may include user identification information. The user identification information may be used to identify a user. The user identification information may be, for example, a user account, a code of a user account, or any other form of information from which a user account may be derived. Among them, the user account may be, for example, an Alipay account, a WeChat account, a bus card number, or a campus card number. Of course, the payment information may also include other information, such as at least one of a single transaction limit and an expiration time. The single transaction limit may be, for example, 10 yuan, or 20 yuan, etc.; the expiration time may be, for example, 10:30, or 11:15, etc.

[0039] In this embodiment, the first terminal may generate the payment code after receiving the payment instruction.

[0040] The first terminal may have a payment button; the payment instruction may be generated when the payment button is detected to be triggered. Here, the payment button being triggered includes but is not limited to the payment button being pressed, clicked, double-clicked, swiped, pressed for more than a predetermined time, etc. The payment button may be a physical button, or a virtual button, etc., and the virtual button includes but is not limited to a button control, a graphic control, a text control, etc. Alternatively, the first terminal may be pre-set with a gesture operation. The gesture operation may include a touch track on a display component (such as a touch display). The first terminal may generate the payment instruction when the preset gesture operation is recognized. Alternatively, the first terminal may have a sensor. The sensor may be used to sense a preset motion state, and may include, for example, a gyroscope and / or an acceleration sensor. The first terminal may generate the payment instruction when the preset motion state is sensed.

[0041] In this embodiment, the first terminal may obtain connection information and payment information; and may generate a payment code based on the obtained connection identifier and payment information using a payment code generation algorithm.

[0042] According to the wireless communication connection type pre-agreed between the first terminal and the second terminal, the first terminal can obtain the corresponding connection information. For example, when the pre-agreed wireless communication connection type is Bluetooth, the first terminal can obtain its own physical address. For another example, when the pre-agreed wireless communication connection type is Wireless Fidelity, the first terminal can obtain its own service set identifier.

[0043] The first terminal may obtain user identification information. For example, the first terminal may obtain the currently logged-in account or the historically logged-in account as user identification information. For another example, the first terminal may obtain the card number of a bus card or the card number of a campus card as user identification information. In one implementation of this embodiment, the first terminal may also obtain a single transaction limit. Specifically, the first terminal may be pre-set with a single transaction limit. The first terminal may obtain the pre-set single transaction limit. Alternatively, the first server may have a single transaction limit. The first terminal may send a data acquisition request to the first server. The first server may receive the data acquisition request, and may obtain and send the single transaction limit to the first terminal. The first terminal may receive the single transaction limit. In another implementation of this embodiment, the first terminal may also obtain the validity time of the payment code; the expiration time of the payment code may be calculated based on the current time and the validity time. The validity time of the payment code may come from the first terminal or the first server. Specifically, the first terminal may be pre-set with the validity time of the payment code. The first terminal may obtain the pre-set validity time. Alternatively, the first server may have the validity time of the payment code. The first terminal may send a data acquisition request to the first server. The first server may receive the data acquisition request, and may acquire and send the valid time to the first terminal. The first terminal may receive the valid time.

[0044] In this embodiment, the payment code generation algorithm may be the same or different depending on the payment code generated. For example, when generating a QR code, the payment code generation algorithm may be a Quick Response code (QR code) algorithm. Those skilled in the art should understand that the Quick Response code algorithm here is only an example, and in fact any algorithm that can generate a QR code can be applied here. Of course, when generating other payment codes, the payment code generation algorithm may also be other algorithms, which are not listed here one by one.

[0045] Step S12: The second terminal obtains the payment code.

[0046] In this embodiment, the user can use the payment code generated by the first terminal to perform a code scanning operation. The second terminal can scan and obtain the payment code. Those skilled in the art should understand that the second terminal can also use other methods to obtain the payment code generated by the first terminal, and this embodiment does not specifically limit this.

[0047] Step S14: the second terminal establishes a wireless communication connection with the first terminal based on the connection identifier; and sends first prompt information to the first terminal based on the wireless communication connection.

[0048] In this embodiment, the second terminal can parse the payment code to obtain connection information and payment information.

[0049] In this embodiment, the connection information may include a connection identifier of the first terminal. The first terminal may be understood as a device requesting to establish a wireless communication connection, and the second terminal may be understood as a device requested to establish a wireless communication connection. The second terminal may establish a wireless communication connection with the first terminal based on the connection identifier.

[0050] In this embodiment, the first prompt information may be used to prompt whether the payment is successful. Specifically, the first prompt information may include prompt information of successful payment or prompt information of failed payment. The prompt information of successful payment may include text, image, audio, video and any combination thereof. Further, the prompt information of successful payment may include the payment amount. The prompt information of failed payment may include text, image, audio, video and any combination thereof.

[0051] In this embodiment, after parsing the payment code, the second terminal may directly send a prompt message indicating successful payment to the first terminal. Alternatively, after parsing the payment code, the second terminal may verify the payment information; if the verification result is correct, it may send a prompt message indicating successful payment to the first terminal; if the verification result is wrong, it may send a prompt message indicating failed payment to the first terminal.

[0052] For example, the payment information may include an expiration time. After parsing the payment code, the second terminal may compare the current time with the expiration time; when the current time is less than or equal to the expiration time, the verification result may be considered correct; when the current time is greater than the expiration time, the verification result may be considered wrong.

[0053] As another example, the payment information may include a single transaction limit. After parsing the payment code, the second terminal may determine the payment amount; the payment amount may be compared with the single transaction limit; when the payment amount is less than or equal to the single transaction limit, the verification result may be considered correct; when the payment amount is greater than the single transaction limit, the verification result may be considered wrong. The payment amount may be a preset default amount. Alternatively, the payment amount may be determined by the second terminal based on information input by the user. The information input by the user may include, for example, the destination station, etc. Alternatively, the payment amount may be determined by the second terminal based on its current geographical location. For example, the second terminal may have a calculation rule. The second terminal may obtain its current geographical location; the payment amount may be calculated based on the obtained geographical location and the calculation rule.

[0054] Step S16: The first terminal receives the first prompt information based on a wireless communication connection; and displays the first prompt information.

[0055] In this embodiment, the first prompt information may include prompt information of successful payment or prompt information of failed payment. The first terminal may receive prompt information of successful payment or prompt information of failed payment; and may display prompt information of successful payment or prompt information of failed payment.

[0056] In one implementation of this embodiment, the first server may have at least one digital signature data. The digital signature data may be signed by a private key based on an asymmetric encryption technology. The asymmetric encryption technology includes but is not limited to an RSA algorithm, an Elgamal algorithm, a backpack algorithm, an ECC (elliptic curve encryption algorithm), and the like. Each digital signature data in the first server may correspond to a public key and a key identifier, the public key may be used to verify the digital signature data, and the key identifier may be used to identify the public key.

[0057] In this implementation, the first terminal may obtain digital signature data and a key identifier corresponding to the digital signature data; and may generate a payment code based on the connection information, payment information, the digital signature data, and the key identifier.

[0058] The first server may send at least one digital signature data and a key identifier corresponding to the digital signature data to the first terminal. In this way, the first terminal may have a digital signature data set. The digital signature data set may include at least one digital signature data, and each digital signature data may correspond to a key identifier. In this way, the first terminal may obtain a digital signature data and a key identifier corresponding to the digital signature data from the digital signature data set. Alternatively, the first terminal may send a data acquisition request to the first server. The first server may receive the data acquisition request; may obtain and send the digital signature data and the key identifier corresponding to the digital signature data to the first terminal. The first terminal may receive the digital signature data and the key identifier corresponding to the digital signature data.

[0059] In this embodiment, the second terminal can obtain the payment code; can parse the payment code to obtain connection information, payment information, digital signature data, and key identification; can obtain the public key of the key identification as the target public key; can use the target public key to verify the digital signature data. Further, after the signature verification, the second terminal can send a first prompt message to the first terminal. Specifically, after the signature verification is successful, the second terminal can send a prompt message of successful payment to the first terminal. After the signature verification fails, the second terminal can send a prompt message of failed payment to the first terminal.

[0060] The first server may send a public key corresponding to at least one digital signature data to the second terminal. In this way, the second terminal may have a public key set, and the public key set may include at least one public key. In this way, the second terminal may obtain a public key corresponding to a key identifier from the public key set as a target public key.

[0061] In one implementation of this embodiment, the second terminal may have a speaker. The second terminal may use the speaker to issue a voice prompt message. Specifically, after parsing the payment code, the second terminal may directly use the speaker to issue a voice prompt message indicating successful payment. Alternatively, after parsing the payment code, the second terminal may verify the payment information; when the verification result is correct, the speaker may issue a voice prompt message indicating successful payment; when the verification result is incorrect, the speaker may issue a voice prompt message indicating failed payment.

[0062] In one implementation of this embodiment, the second server may perform a deduction operation. Specifically, the second terminal may determine the payment amount; and may send payment information and the payment amount to the second server. The second server may receive the payment information and the payment amount. The payment information may include a user identification, and the second server may then perform a deduction operation based on the user identification information and the payment amount. Alternatively, the first server may perform a deduction operation. Specifically, after receiving the payment information and the payment amount from the second terminal, the second server may send a deduction request to the first server, and the deduction request may carry the user identification information and the payment amount. The first server may receive the deduction request; and may perform a deduction operation based on the user identification information and the payment amount. Further, after performing the deduction operation, the first server may also send a second prompt message to the first terminal, and the second prompt message may include a prompt message indicating that the deduction is successful. The first terminal may receive and display the second prompt message.

[0063] The second terminal may directly send the payment information and the payment amount to the second server. Alternatively, the second terminal may also send the payment information and the payment amount to the second server after detecting the sending instruction. The sending instruction may be automatically generated by the second terminal. For example, the second terminal may generate the sending instruction at a preset time. The preset time may be flexibly set according to actual needs, such as 12 o'clock in the evening, 4 o'clock in the morning, etc. As another example, the second terminal may also generate the sending instruction when it detects that its network connection is available. Of course, the sending instruction may also be generated by the user's active triggering. For example, the second terminal may have a sending button, and the second terminal may further generate the sending instruction when it detects that the sending button is triggered. Here, the sending button being triggered includes but is not limited to the sending button being pressed, clicked, double-clicked, swiped, pressed for more than a predetermined time, etc. The sending button may be a physical button or a virtual button, etc., and the virtual button includes but is not limited to a button control, a graphic control, a text control, etc.

[0064] In this embodiment, the first terminal can generate a payment code; wherein the payment code includes connection information; the connection information includes a connection identifier of the first terminal. The second terminal can obtain the payment code; a wireless communication connection can be established with the first terminal based on the connection identifier; and a first prompt message can be sent to the first terminal based on the wireless communication connection. The first terminal can receive the first prompt message based on the wireless communication connection; and the first prompt message can be displayed. The first prompt message can be used to prompt whether the payment is successful. In this way, through the first prompt message displayed by the first terminal, the user can easily determine whether the code scan is successful, thereby improving the user experience.

[0065] See also Figure 3 The embodiment of this specification also provides another data processing method. The subject implementing the data processing method may include a first terminal. In order to enable data transmission, the short-range wireless communication function of the first terminal may be in an on state. The data processing method may include the following steps.

[0066] Step S20: Generate a payment code.

[0067] In this embodiment, the first terminal may generate a payment code after receiving the payment instruction.

[0068] Step S22: Under the condition of establishing a wireless communication connection with the second terminal based on the connection identifier, receiving first prompt information sent by the second terminal based on the wireless communication connection.

[0069] In this embodiment, the first prompt information can be used to prompt whether the payment is successful. Specifically, the first prompt information can include prompt information of successful payment or prompt information of failed payment.

[0070] In this embodiment, the second terminal can obtain the payment code; can parse the payment code to obtain connection information; can establish a wireless communication connection with the first terminal based on the connection identifier in the connection information; can send the first prompt information to the first terminal based on the wireless communication connection. The first terminal can receive the first prompt information sent by the second terminal based on the wireless communication connection.

[0071] Step S24: displaying the first prompt information.

[0072] In one implementation of this embodiment, the first terminal may obtain digital signature data and a key identifier corresponding to the digital signature data; and may generate a payment code based on connection information, payment information, the digital signature data, and the key identifier.

[0073] In one implementation of this embodiment, the first terminal may receive a second prompt message sent by the first server and may display the second prompt message, wherein the second prompt message may include prompt message indicating successful deduction.

[0074] In this embodiment, the first terminal can generate a payment code; under the condition of establishing a wireless communication connection with the second terminal based on the connection identifier, the first prompt information sent by the second terminal can be received based on the wireless communication connection; the first prompt information can be displayed. The first prompt information can be used to prompt whether the payment is successful. In this way, through the first prompt information displayed by the first terminal, the user can easily determine whether the code scan is successful, thereby improving the user experience.

[0075] See also Figure 4 The embodiment of this specification also provides another data processing method. The subject implementing the data processing method may include a second terminal. In order to enable data transmission, the short-range wireless communication function of the second terminal may be in an on state. The data processing method may include the following steps.

[0076] Step S30: Obtain the payment code.

[0077] Step S32: under the condition that a wireless communication connection is established with the first terminal based on the connection identifier, first prompt information is sent to the first terminal based on the wireless communication connection.

[0078] In this embodiment, the first prompt information can be used to prompt whether the payment is successful. Specifically, the first prompt information can include prompt information of successful payment or prompt information of failed payment.

[0079] In this embodiment, the second terminal can parse the payment code to obtain connection information and payment information. The connection information may include a connection identifier of the first terminal. The first terminal can be understood as a device requesting to establish a wireless communication connection, and the second terminal can be understood as a device requested to establish a wireless communication connection. The second terminal can establish a wireless communication connection with the first terminal based on the connection identifier.

[0080] In this embodiment, after parsing the payment code, the second terminal may directly send a prompt message indicating successful payment to the first terminal. Alternatively, after parsing the payment code, the second terminal may verify the payment information; if the verification result is correct, it may send a prompt message indicating successful payment to the first terminal; if the verification result is wrong, it may send a prompt message indicating failed payment to the first terminal.

[0081] In one implementation of this embodiment, the second terminal can obtain the payment code; can parse the payment code to obtain connection information, payment information, digital signature data, and key identification; can obtain the public key of the key identification as the target public key; can use the target public key to verify the digital signature data. Further, after the signature verification, the second terminal can send a first prompt message to the first terminal. Specifically, after the signature verification is successful, the second terminal can send a prompt message of successful payment to the first terminal. After the signature verification fails, the second terminal can send a prompt message of failed payment to the first terminal.

[0082] In one implementation of this embodiment, the second terminal may have a speaker, and the second terminal may use the speaker to issue a voice prompt message.

[0083] In one implementation of this embodiment, the second terminal may determine the payment amount; and may send payment information and the payment amount to the second server. The second server may receive the payment information and the payment amount. The payment information may include user identification information, and the second server may perform a deduction operation based on the user identification information and the payment amount. Alternatively, after receiving the payment information and the payment amount from the second terminal, the second server may also send a deduction request to the first server, and the deduction request may carry the user identification information and the payment amount. The first server may receive the deduction request; and may perform a deduction operation based on the user identification information and the payment amount.

[0084] In this embodiment, the second terminal can obtain the payment code; under the condition of establishing a wireless communication connection with the first terminal based on the connection identifier, the first prompt information can be sent to the first terminal based on the wireless communication connection, so that the first terminal can display the first prompt information. The first prompt information can be used to prompt whether the payment is successful. In this way, through the first prompt information displayed by the first terminal, the user can easily determine whether the code scan is successful, thereby improving the user experience.

[0085] See also Figure 1 , Figure 2 , Figure 5 , Figure 6 and Figure 7 The following is an example of a scenario of an embodiment of this specification.

[0086] In this scenario embodiment, the data processing system may include a first terminal, a second terminal, a first server, and a second server. The first terminal may be a smart phone. The smart phone may be installed with an Alipay APP. The smart phone may have a Bluetooth communication function, and the Bluetooth communication function of the smart phone may be in an on state. The second terminal may be a public transportation POS machine. The public transportation POS machine may have a Bluetooth communication function, and the Bluetooth communication function of the public transportation POS machine may be in an on state. The public transportation POS machine may also have a speaker. The first server may be an Alipay server. The second server may be a server corresponding to the public transportation POS machine.

[0087] In the present scenario embodiment, the Alipay server may have at least one digital signature data. The digital signature data may be obtained by signing with a private key based on asymmetric encryption technology. Each digital signature data in the Alipay server may correspond to a public key and a key identifier, the public key may be used to verify the digital signature data, and the key identifier may be used to identify the public key. The Alipay server may send at least one digital signature data and a key identifier corresponding to the digital signature data to the smart phone. In this way, the smart phone may have a digital signature data set. The digital signature data set may include at least one digital signature data, and each digital signature data may correspond to a key identifier. The Alipay server may also send a public key corresponding to at least one digital signature data to the bus POS machine. In this way, the bus POS machine may have a public key set, and the public key set may include at least one public key.

[0088] In this scenario embodiment, when a user needs to take a bus, he can send a payment instruction to the smartphone. After receiving the payment instruction, the smartphone can obtain connection information and payment information; obtain a digital signature data and a key identifier corresponding to the digital signature data from the digital signature data set; and generate a payment code based on the connection information, the payment information, the obtained digital signature data, and the obtained key identifier.

[0089] In this scenario embodiment, the user can use the payment code to scan the bus POS terminal. The bus POS terminal can obtain the payment code and parse the payment code to obtain connection information, payment information, digital signature data, and key identification.

[0090] The connection information may include the physical address of the smart phone. Thus, the bus POS terminal may use the physical address in the connection information to establish a Bluetooth communication connection with the smart phone.

[0091] The bus POS machine can also obtain the public key of the key identifier from the public key set as the target public key; the target public key can be used to verify the digital signature data. After the verification is successful, the bus POS machine can send a prompt message of successful payment to the smartphone through the Bluetooth communication connection. Alternatively, after the verification fails, the bus POS machine can send a prompt message of failed payment to the smartphone through the Bluetooth communication connection. The smartphone can receive a prompt message of successful payment or a prompt message of failed payment; it can display a prompt message of successful payment or a prompt message of failed payment. In this way, the user can easily determine whether the code scan is successful through his or her smartphone.

[0092] In addition, after the signature verification is successful, the bus POS machine can also determine the payment amount; and can send the payment information and the payment amount to the second server. The second server can receive the payment information and the payment amount, and the payment information can include user identification information. The second server can then send a deduction request to the Alipay server, and the deduction request can carry the user identification information and the payment amount. The Alipay server can receive the deduction request; can perform a deduction operation based on the user identification information and the payment amount; and can send a prompt message of successful deduction to the smartphone. The smartphone can receive and display a prompt message of successful deduction.

[0093] See also Figure 8 The embodiment of the present specification provides a data processing device, including a generating unit 40 , a receiving unit 42 and a display unit 44 .

[0094] The generating unit 40 is used to generate a payment code; wherein the payment code includes connection information; the connection information includes a connection identifier of the first terminal;

[0095] A receiving unit 42 is configured to, under the condition that a wireless communication connection is established with the second terminal based on the connection identifier, receive first prompt information sent by the second terminal based on the wireless communication connection; wherein the first prompt information is used to prompt whether the payment is successful;

[0096] The display unit 44 is used to display the first prompt information.

[0097] See also Fig. 9 An embodiment of the present specification provides a terminal device, including a communication component, a display component and a processor.

[0098] In this embodiment, the communication component can be implemented in any appropriate manner, such as a wireless network card, a Bluetooth module, an infrared transceiver module, an ultra-wideband communication module, and a ZigBee protocol communication module, etc. The communication component can be used to establish a communication connection and perform data transmission.

[0099] In this embodiment, the display component includes but is not limited to a liquid crystal display (LCD), a cathode ray tube (CRT) display, and a light emitting diode (LED) display, etc. The display component can be used to display the first prompt information.

[0100] In this embodiment, the processor may be implemented in any suitable manner. For example, the processor may take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, a logic gate, a switch, an application specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller, etc.

[0101] The processor can be used to generate a payment code; wherein the payment code includes connection information; the connection information includes a connection identifier of the first terminal; under the condition of establishing a wireless communication connection with the second terminal based on the connection identifier, receiving a first prompt message sent by the second terminal based on the wireless communication connection; wherein the first prompt message is used to prompt whether the payment is successful; and controlling the display component to display the first prompt message.

[0102] The specific functions implemented by the communication component, display component and processor of the terminal device disclosed in this embodiment can be explained in comparison with the aforementioned embodiments in this specification.

[0103] See also Fig.10 A data processing device includes an acquisition unit 50 and a sending unit 52.

[0104] The acquisition unit 50 is used to acquire a payment code; wherein the payment code includes connection information; the connection information includes a connection identifier of the first terminal;

[0105] The sending unit 52 is used to send a first prompt message to the first terminal based on the wireless communication connection under the condition that a wireless communication connection is established with the first terminal based on the connection identifier; wherein the first prompt message is used to prompt whether the payment is successful.

[0106] See also Fig.11 An embodiment of the present specification provides a terminal device, including a communication component and a processor.

[0107] In this embodiment, the communication component can be implemented in any appropriate manner, such as a wireless network card, a Bluetooth module, an infrared transceiver module, an ultra-wideband communication module, and a ZigBee protocol communication module, etc. The communication component can be used to establish a communication connection and perform data transmission.

[0108] In this embodiment, the processor may be implemented in any suitable manner. For example, the processor may take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, a logic gate, a switch, an application specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller, etc.

[0109] The processor can be used to obtain a payment code; wherein the payment code includes connection information; the connection information includes a connection identifier of a first terminal; under the condition of establishing a wireless communication connection with the first terminal based on the connection identifier, a first prompt message is sent to the first terminal based on the wireless communication connection; wherein the first prompt message is used to prompt whether the payment is successful.

[0110] In one implementation of this embodiment, the terminal device may further include a speaker, which may generate sound waves audible to humans.

[0111] The terminal device disclosed in this embodiment, and the specific functions implemented by its communication components and processor, can be explained in comparison with the aforementioned embodiments in this specification.

[0112] It should be noted that the various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the terminal device embodiment, since it is basically similar to the data processing method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the data processing method embodiment.

[0113] In addition, it is understandable that after reading this specification, those skilled in the art can think of any combination of some or all of the embodiments listed in this specification without creative work, and these combinations are also within the scope of disclosure and protection of this specification.

[0114] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip2. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog2. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

[0115] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions.

[0116] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0117] It can be known from the above description of the implementation mode that the technicians in this field can clearly understand that the present specification can be implemented by means of software plus the necessary general hardware platform. Based on such an understanding, the technical solution of the present specification can be essentially or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present specification or some parts of the embodiments.

[0118] This specification can be used in many general or special computer system environments or configurations, such as personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, minicomputers, mainframe computers, and distributed computing environments that include any of the above systems or devices.

[0119] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0120] Although the present specification is described through embodiments, those skilled in the art will appreciate that there are many modifications and changes to the present specification without departing from the spirit of the present specification, and it is intended that the appended claims include these modifications and changes without departing from the spirit of the present specification.

Claims

1. A data processing method, applied to a first terminal, comprising: Generate a payment code, wherein the payment code includes connection information and payment information, and the connection information includes a connection identifier of the first terminal; Under the condition of establishing a wireless communication connection with the second terminal based on the connection identifier, receiving first prompt information sent by the second terminal based on the wireless communication connection, wherein the first prompt information is used to prompt whether the payment is successful; Receive a second prompt message sent by the first server, wherein the second prompt message is used to prompt whether the deduction is successful. The second prompt message is sent by the first server to the first terminal after executing the deduction operation based on the deduction request. The deduction request is generated by the second server based on the payment information sent by the second terminal. 2 . The method of claim 1 , wherein the connection identifier comprises at least one of a physical address and a service set identifier.

3. The method according to claim 1, wherein in the process of establishing a wireless communication connection, the second terminal is a device that initiates a wireless communication connection request, and the first terminal is a device that accepts a wireless communication connection request.

4. The method according to claim 1, wherein the first prompt information is sent by the second terminal to the first terminal according to the verification result after the second terminal verifies the payment information; Alternatively, the payment code also includes digital signature data and a key identifier; the first prompt information is sent to the first terminal by the second terminal according to the verification result after the second terminal verifies the digital signature data using the public key corresponding to the key identifier.

5. A terminal device, comprising: A generating unit, configured to generate a payment code, wherein the payment code includes connection information and payment information, and the connection information includes a connection identifier of the first terminal; A first receiving unit, configured to, under the condition that a wireless communication connection is established with the second terminal based on the connection identifier, receive first prompt information sent by the second terminal based on the wireless communication connection, wherein the first prompt information is used to prompt whether the payment is successful; The second receiving unit is used to receive a second prompt message sent by the first server, wherein the second prompt message is used to prompt whether the deduction is successful. The second prompt message is sent by the first server to the first terminal after executing the deduction operation based on the deduction request. The deduction request is generated by the second server based on the payment information sent by the second terminal.

6. A data processing method, applied to a second terminal, comprising: Obtaining a payment code, wherein the payment code includes connection information and payment information, and the connection information includes a connection identifier of the first terminal; Under the condition of establishing a wireless communication connection with the first terminal based on the connection identifier, sending first prompt information to the first terminal based on the wireless communication connection, where the first prompt information is used to prompt whether the payment is successful; The payment information is sent to the second server so that the second server generates a deduction request based on the payment information. The first server sends a second prompt message to the first terminal after executing the deduction operation based on the deduction request. The second prompt message is used to prompt whether the deduction is successful. The method of claim 6 , wherein the connection identifier comprises at least one of a physical address and a service set identifier.

8. The method of claim 6, wherein during the process of establishing a wireless communication connection, the second terminal is a device that initiates a wireless communication connection request, and the first terminal is a device that accepts a wireless communication connection request.

9. The method according to claim 6, wherein the sending the first prompt information to the first terminal based on the wireless communication connection comprises: Verify payment information; According to the verification result, first prompt information is sent to the first terminal based on the wireless communication connection.

10. The method according to claim 6, wherein the payment code further includes digital signature data and a key identifier; The sending the first prompt information to the first terminal based on the wireless communication connection includes: Use the public key corresponding to the key identifier to verify the digital signature data; According to the signature verification result, first prompt information is sent to the first terminal based on the wireless communication connection.

11. The method of claim 6, further comprising: Determine the payment amount; sending the payment amount to the second server; So that the second server sends a deduction request including the payment amount and payment information to the first server, and the first server performs a deduction operation based on the payment amount and payment information in the deduction request.

12. The method according to claim 6, wherein the second terminal has a speaker; the method further comprising: A speaker is used to issue a voice prompt message, wherein the voice prompt message is used to prompt whether the payment is successful.

13. A terminal device, comprising: an acquiring unit, configured to acquire a payment code, wherein the payment code includes connection information and payment information, and the connection information includes a connection identifier of the first terminal; A first sending unit, configured to send first prompt information to the first terminal based on the wireless communication connection under the condition that the wireless communication connection is established with the first terminal based on the connection identifier, wherein the first prompt information is used to prompt whether the payment is successful; The second sending unit is used to send payment information to the second server so that the second server generates a deduction request based on the payment information. The first server sends a second prompt message to the first terminal after executing the deduction operation based on the deduction request, and the second prompt message is used to prompt whether the deduction is successful.

14. A data processing system comprising a first terminal and a second terminal; The first terminal is used to implement the method according to any one of claims 1 to 4; The second terminal is used to implement the method according to any one of claims 6 to 12.