Management method of digital currency wallet and electronic equipment
By enabling digital currency wallets in wearable electronic devices and utilizing NFC payments, the inconvenience of camera-based QR code payments has been resolved, resulting in a more convenient payment experience.
Patent Information
- Application Number
- CN202310256138.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-02
- Publication Date
- 2024-09-03
AI Technical Summary
When making payments, existing wearable electronic devices often have difficulty aligning the camera and display screen to scan QR codes, leading to payment inconvenience.
By opening a digital currency wallet in a wearable electronic device, payments can be made directly using Near Field Communication (NFC), avoiding the need for QR code payments and directly accessing the digital currency wallet for payment.
It improves the convenience and user experience of the payment process, simplifies the payment procedure, and reduces operational complexity.
Smart Images

Figure CN118586916A
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to a management method and electronic device for a digital currency wallet. Background Art
[0002] As the application of smart terminal devices becomes more and more extensive, the functions of smart terminal devices are becoming more and more abundant. Smart terminal devices, such as wearable electronic devices, can realize functions such as communication between their administrator devices or other devices, user health monitoring, photography, and payment. For example, the wearable electronic device can be a smart watch, which can realize functions such as communication with the bound mobile phone, health monitoring of the wearer, photography of the watch, and payment.
[0003] In the scenario where users make payments through wearable electronic devices, the existing payment method is to open the payment application in the wearable electronic device and scan the payment QR code through the camera of the wearable electronic device to make payment. However, the camera of the wearable electronic device is often in the same direction as the display screen. When users scan the payment QR code, it is difficult to determine whether the camera is aligned with the payment QR code, causing inconvenience in payment. Summary of the invention
[0004] The present application provides a digital currency wallet management method and electronic device. After the wearable electronic device is activated and bound to the digital currency wallet, the user can use the wearable electronic device to directly make digital RMB payments through near field communication (NFC). There is no need to open a payment application to scan a code for payment, which provides payment convenience for the user.
[0005] In order to achieve the above purpose, this application adopts the following technical solutions:
[0006] In a first aspect, a method for managing a digital currency wallet is provided, the method comprising:
[0007] The first terminal obtains device information of the second terminal; the device information includes the address of the second terminal; the first terminal establishes a first communication connection with the second terminal based on the device information; the first communication connection is used to transmit management data or instructions of the digital currency wallet; the first terminal sends an instruction to open a digital currency wallet to the second terminal; the instruction to open a digital currency wallet is used to instruct the second terminal to open a digital currency wallet.
[0008] In the present application, the first terminal may be a mobile phone, and the second terminal may be a wearable electronic device. In the present application, the digital currency wallet technology is applied to wearable electronic devices that are more frequently used and more convenient to use. The mobile phone can communicate with the wearable electronic device to perform management operations such as opening a digital currency wallet for the wearable electronic device. In the scenario where a digital currency wallet is opened in a wearable electronic device and the user uses the wearable electronic device to make a payment, the wearable electronic device can directly call the digital currency wallet to complete the payment. Compared with the method of scanning a payment QR code through a payment application to make a payment, the entire payment process is more convenient and optimizes the user experience.
[0009] In combination with the first aspect, in one possible design, a digital currency framework service is deployed in both the first terminal and the second terminal, and the digital currency framework service provides the first terminal and the second terminal with a communication protocol and a communication interface for managing digital currency wallets.
[0010] In combination with the first aspect, in a possible design, the first terminal includes a management application and a third-party application, and the communication interface includes a first communication interface and a second communication interface. The first communication interface is a communication interface for transmitting management data or instructions of a digital currency wallet between the management application in the first terminal and the third-party application; the second communication interface is a communication interface for transmitting management data or instructions of a digital currency wallet between the management application in the first terminal and the second terminal.
[0011] Exemplarily, when the digital currency is digital RMB, the first communication interface may be a digital currency electronic payment (DCEP) interface (DCEP AIDL interface) based on Android interface definition language (AIDL). The second communication interface may be a Bluetooth communication AIDL interface. The communication protocol may be a Bluetooth application protocol applicable to a pre-set digital currency wallet management scenario.
[0012] In this application, the DCEP AIDL interface provides a way for transmitting digital currency wallet data or instructions between the third-party application and the management application of the first terminal. The Bluetooth communication AIDL interface provides a way for transmitting Bluetooth data between the first terminal and the second terminal. Optionally, when the first terminal and the second terminal establish a first communication connection, the first terminal and the second terminal may call the Bluetooth communication AIDL interface to transmit digital currency wallet data or instructions; when the first terminal and the second terminal establish a second communication connection, the first terminal and the second terminal may call the Bluetooth communication AIDL interface to transmit other data or instructions. That is, the first communication interface deployed in the management application is dedicated to the transmission of digital currency wallet instructions, and the second communication interface can be reused in different scenarios, so as to optimize the framework deployment resources of the first terminal while realizing the management of the digital currency wallet of the second terminal by the first terminal.
[0013] In combination with the first aspect, in a possible design manner, the first communication interface includes an initialization device connection interface, and the first terminal establishes a first communication connection with the second terminal according to the device information, including:
[0014] The third-party application of the first terminal calls the initialization device connection interface according to the device information and sends a device connection request to the management application of the first terminal; the management application of the first terminal calls the second communication interface to send a device connection request to the second terminal to establish a first communication connection with the second terminal.
[0015] The input parameters of the initialization device connection interface include the Bluetooth address of the second terminal, the personal identification code of the second terminal and a first callback parameter, and the first callback parameter is used to instruct the second terminal to return a connection response to the first communication connection to the first terminal.
[0016] Exemplarily, the initialization device connection interface may be InitConnectDevices(), and its corresponding input parameters may include the Bluetooth address channelAddr of the second terminal, the personal identification code pinStr of the second terminal, and the first callback parameter listener. Optionally, the transmission parameters of the initialization device connection interface may also include the identifier of the payment application corresponding to the payer in the second terminal, such as the package name packageName of the payment application.
[0017] In the present application, the first terminal can initialize the first communication connection with the second terminal by initializing the device connection interface. After the first communication connection is established, the interaction of relevant instructions for managing the digital currency wallet between the first terminal and the second terminal can be realized.
[0018] In combination with the first aspect, in one possible design method, the instruction for opening a digital currency wallet includes an instruction for creating an auxiliary security domain, an instruction for downloading a digital currency wallet program, and an instruction for adding a digital currency wallet, wherein the auxiliary security domain is used to provide a secure storage space for the digital currency wallet of the second terminal.
[0019] In some embodiments, to activate a digital currency wallet in a smart watch, it is necessary to create a secure space in the smart watch for storing the digital currency wallet, download an execution program of the digital currency wallet in the smart watch, and add relevant information of the digital currency wallet in the smart watch.
[0020] Accordingly, the mobile phone can send a command to create an auxiliary security domain to the smart watch, so as to create a secure space for storing digital currency wallets in the smart watch. The mobile phone can send a command to download a digital currency program to the smart watch, so as to download the execution program of the digital currency wallet in the smart watch. The mobile phone can send a command to add a digital currency wallet to the smart watch, so as to add the relevant information of the digital currency wallet in the smart watch.
[0021] In the present application, the above multiple instructions can gradually realize the opening of the digital currency wallet in the smart watch. Preferably, after the mobile phone sends the instruction to create the auxiliary security domain to the smart watch, when receiving the return response of successful creation, it sends the instruction to download the digital currency program to the smart watch. When receiving the return response of successful download, the instruction to add the digital currency wallet is sent to the smart watch to further ensure the successful opening of each digital currency wallet.
[0022] In combination with the first aspect, in a possible design manner, the digital currency wallet instruction is an instruction for creating an auxiliary security domain, the first communication interface includes an interface for creating an auxiliary security domain, and the first terminal sends an instruction for opening a digital currency wallet to the second terminal, including:
[0023] The first terminal calls the interface for creating an auxiliary security domain, and sends an instruction for creating an auxiliary security domain to the management application of the first terminal; the management application of the first terminal calls the second communication interface, and sends an instruction for creating an auxiliary security domain to the second terminal.
[0024] The input parameters for creating the auxiliary security domain interface include the identifier and timestamp of the auxiliary security domain.
[0025] Exemplarily, the interface for creating an auxiliary security domain may be createSSDForWatch(), and its corresponding input parameters may include the identifier ssdAID and timestamp timeStamp of the auxiliary security domain. Optionally, the input parameters may also include the identifier of the payee, such as the name of the payee's organization organization. It may also include the signature result ssdSignData and the data to be synchronized syncSignData, etc.
[0026] In the present application, the first terminal may implement the issuance of an instruction to create an auxiliary security domain to the second terminal through the auxiliary security domain creation interface, so as to instruct the second terminal to perform an operation to create an auxiliary security domain.
[0027] In combination with the first aspect, in a possible design manner, the first terminal calls the interface for creating an auxiliary security domain and sends an instruction for creating an auxiliary security domain to the management application of the first terminal, including:
[0028] The first terminal sends a request to the first server to create an auxiliary security domain; the first terminal receives an instruction to create an auxiliary security domain returned by the first server; the first terminal calls an interface to create an auxiliary security domain, and sends an instruction to create an auxiliary security domain to the management application of the first terminal.
[0029] In the present application, the first server is the host server of the first terminal. Exemplarily, the first server may be a Trusted Service Manager (TSM) server. The third-party application of the first terminal may obtain the instruction to create an auxiliary security domain from the first server, and then issue the obtained instruction to create an auxiliary security domain to the management application of the first terminal, so that the management application of the first terminal can send the instruction to create an auxiliary security domain to the second terminal. The first terminal obtains the instruction to create an auxiliary security domain from the first server, and the first terminal does not need to store too many related instructions, which can save the computing resources and storage resources of the first terminal.
[0030] In combination with the first aspect, in a possible design manner, the method further includes:
[0031] The first terminal receives a first response from the second terminal to an instruction to create an auxiliary security domain; the first response includes a success or a failure; if the first response is a success, the first terminal sends an instruction to download a digital currency wallet program to the second terminal.
[0032] In the present application, after determining that the second terminal has successfully created the auxiliary security domain, the first terminal sends an instruction to download the digital currency wallet program to the second terminal, which can ensure that the digital currency wallet program can be downloaded to the auxiliary security domain while ensuring the storage security of the digital currency wallet program.
[0033] In combination with the first aspect, in a possible design, the first communication interface includes a data transmission and reception command interface, and the first terminal sends a digital currency wallet program download instruction to the second terminal, including:
[0034] The first terminal calls the data transmission and reception command interface to send a digital currency wallet program download instruction to the management application of the first terminal; the management application of the first terminal calls the second communication interface to send a digital currency wallet program download instruction to the second terminal.
[0035] Among them, the incoming parameters of the data sending and receiving command interface include the byte array to be sent and the second callback function, and the second callback parameter is used to instruct the second terminal to return a response to the instruction to download the digital currency wallet program to the first terminal.
[0036] Exemplarily, the data sending and receiving command interface may be SendData(), and its corresponding incoming parameters may include the byte array Data to be sent and the second callback function handler. Among them, the byte array Data to be sent is an instruction to download the digital currency wallet program.
[0037] In the present application, the first terminal can implement the sending of instructions for downloading the digital currency wallet program to the second terminal through a data transmission and reception command interface to instruct the second terminal to perform a download operation of the digital currency wallet program.
[0038] In combination with the first aspect, in a possible design, the first terminal calls the data transmission and reception command interface to send a digital currency wallet program download instruction to the management application of the first terminal, including:
[0039] The first terminal sends a request to the second server to download the digital currency wallet program; the first terminal receives the instruction to download the digital currency wallet program returned by the second server; the first terminal calls the data sending and receiving command interface to send the instruction to download the digital currency wallet program to the management application of the first terminal.
[0040] In this application, the second server is the upper server corresponding to the payer, which is used to provide the payment application corresponding to the payer with the function of implementing digital currency wallet management. The third-party application of the first terminal can obtain the download digital currency wallet program instruction from the second server, and then send the obtained download digital currency wallet program instruction to the management application of the first terminal, so that the management application of the first terminal can send the download digital currency wallet program instruction to the second terminal. The first terminal obtains the download digital currency wallet program instruction from the second server, which can realize the acquisition of the download digital currency wallet program instruction corresponding to different payers.
[0041] In combination with the first aspect, in a possible design, the instruction for downloading the digital currency wallet program includes a first instruction and a second instruction, and the first terminal receives the instruction for downloading the digital currency wallet program returned by the second server, including:
[0042] The first terminal receives the first instruction returned by the second server; the first terminal calls the data sending and receiving command interface to send an instruction to download the digital currency wallet program to the management application of the first terminal; the management application of the first terminal calls the second communication interface to send the first instruction to the second terminal; the first terminal receives the response of the second terminal to the first instruction; the response to the first instruction indicates that the communication connection between the second terminal and the first terminal is normal or the communication connection fails; the first terminal sends a response to the first instruction to the second server; the first terminal receives a second instruction sent by the second server when it determines that the response to the first instruction is that the communication connection is normal; the second instruction is used to download the digital currency wallet program.
[0043] In the present application, the instruction to download the digital currency wallet program includes a first instruction and a second instruction. The first instruction is used to confirm that the first communication connection between the first terminal and the second terminal is normal. When confirming that the first communication connection between the first terminal and the second terminal is normal, the first terminal receives the second instruction issued by the second server and sends the second instruction to the second terminal. The second instruction is actually an instruction to download the digital currency wallet program. The second instruction can be multiple, and the second terminal implements the download of the digital currency wallet program according to the multiple second instructions received. In the present application, the download of the digital currency wallet program is implemented in the form of multiple instructions (instruction stream), which saves more transmission resources than sending data packets of the digital currency wallet program, and improves the transmission effectiveness and success.
[0044] In combination with the first aspect, in a possible design manner, the method further includes:
[0045] The first terminal receives a second response from the second terminal to the second instruction; the second response includes a successful download or a failed download; if the second response is a successful download, the first terminal sends an instruction to add a digital currency wallet to the second terminal.
[0046] In the present application, after determining that the second terminal has successfully downloaded the digital currency wallet program, the first terminal sends an instruction to add a digital currency wallet to the second terminal, which can ensure the validity of the operation of adding a digital currency wallet.
[0047] In combination with the first aspect, in a possible design, the second terminal includes a security unit chip SE chip, and the first communication interface includes an interface for adding a digital currency wallet; the first terminal sends an instruction to add a digital currency wallet to the second terminal, including:
[0048] The first terminal calls the interface for adding a digital currency wallet and sends an instruction for adding a digital currency wallet to the management application of the first terminal; the management application of the first terminal calls the second communication interface to send an instruction for adding a digital currency wallet to the second terminal.
[0049] Among them, the input parameters of adding the digital currency wallet interface include the digital currency wallet identifier, the SE chip identifier, the payer identifier and the timestamp.
[0050] Exemplarily, the interface for adding a digital currency wallet may be addHardwareWalletToWatch(), and its corresponding input parameters may include the digital currency wallet identifier wallertId, the SE chip identifier instAID, the payer identifier org and the timestamp timeStamp. Optionally, the input parameters may also include the signature result addSign, etc.
[0051] In the present application, the first terminal can implement the sending of the add digital currency wallet instruction to the second terminal through the add digital currency wallet interface to instruct the second terminal to perform the add operation of the digital currency wallet.
[0052] In combination with the first aspect, in a possible design manner, the method further includes:
[0053] The first terminal receives a third response from the second terminal to the instruction to open a digital currency wallet; the third response includes an opening success or an opening failure.
[0054] In the present application, the first terminal can confirm whether the second terminal has successfully opened a digital currency wallet through the received third response, and can timely synchronize the status of the second terminal opening the digital currency wallet.
[0055] In combination with the first aspect, in a possible design manner, the method further includes:
[0056] If the third response indicates that the activation is successful, the first terminal displays the digital currency wallet information of the second terminal on the display interface; the digital currency wallet information includes at least one of the identifier of the digital currency wallet of the second terminal and the balance of the digital currency wallet.
[0057] In the present application, after the first terminal confirms that the second terminal has successfully opened a digital currency wallet, the first terminal adds the digital currency wallet information of the second terminal to the digital currency wallet list, and displays the digital currency wallet information of the second terminal on the display interface, so that the user can more intuitively obtain the actual status of the digital currency wallet of the second terminal through the display interface of the first terminal.
[0058] In combination with the first aspect, in a possible design manner, the method further includes:
[0059] The first terminal sends an instruction to unbind the digital currency wallet to the second terminal.
[0060] In this application, after the second terminal opens a digital currency wallet, the first terminal can also cancel the digital currency wallet of the second terminal. That is, the second terminal can send a delete digital currency wallet instruction to the first terminal to execute the cancellation operation of the digital currency wallet of the second terminal. For example, if the second terminal is lost or no longer used, timely cancellation and unbinding of the digital currency wallet can ensure the property security of the digital currency wallet.
[0061] In combination with the first aspect, in a possible design manner, the first communication interface includes a digital currency wallet deletion interface, and the digital currency wallet unbinding instruction includes a digital currency wallet deletion instruction; the first terminal sends the digital currency wallet unbinding instruction to the second terminal, including:
[0062] The first terminal calls the digital currency wallet deletion interface and sends a digital currency wallet deletion instruction to the management application of the first terminal; the management application of the first terminal calls the second communication interface and sends a digital currency wallet deletion instruction to the second terminal.
[0063] Among them, the input parameters of deleting the digital currency wallet interface include the digital currency wallet identifier, the SE chip identifier, the payer identifier and the timestamp.
[0064] Exemplarily, the interface for deleting a digital currency wallet may be removeHardwareWalletofWatch(), and its corresponding input parameters may include the digital currency wallet identifier wallertId, the SE chip identifier instAID, the payer identifier walletInstNo and the timestamp timeStamp. Optionally, the input parameters may also include the payer's organization name org and the signature result addSign, etc.
[0065] In the present application, the first terminal can implement the sending of the digital currency wallet deletion instruction to the second terminal through the digital currency wallet deletion interface to instruct the second terminal to perform the digital currency wallet deletion operation.
[0066] In combination with the first aspect, in a possible design manner, the method further includes:
[0067] The first terminal receives a fourth response from the second terminal to the instruction to delete the digital currency wallet; the fourth response includes a deletion success or a deletion failure.
[0068] In the present application, the first terminal can confirm whether the second terminal has successfully deleted the digital currency wallet through the received fourth response, and can timely synchronize the status of the second terminal deleting the digital currency wallet.
[0069] In combination with the first aspect, in a possible design, the first communication interface includes a deletion interface for the auxiliary security domain, and the instruction to unbind the digital currency wallet includes an instruction to delete the auxiliary security domain; the first terminal sends an instruction to unbind the digital currency wallet to the second terminal, including:
[0070] The first terminal calls the auxiliary security domain deletion interface and sends an auxiliary security domain deletion instruction to the management application of the first terminal; the management application of the first terminal calls the second communication interface to send an auxiliary security domain deletion instruction to the second terminal.
[0071] Among them, the input parameters of deleting the auxiliary security domain interface include the payer's identifier, the auxiliary security domain identifier and the timestamp.
[0072] Exemplarily, the interface for creating an auxiliary security domain may be DeleteSSDForWatch(), and its corresponding input parameters may include the payer's identifier organization, the auxiliary security domain identifier ssdAI D and the timestamp timeStamp. Optionally, the input parameters may also include the signature result ssdSignData and the data to be synchronized syncSignData, etc.
[0073] In the present application, the first terminal may implement the sending of the auxiliary security domain deletion instruction to the second terminal through the auxiliary security domain deletion interface to instruct the second terminal to perform the auxiliary security domain deletion operation.
[0074] In combination with the first aspect, in a possible design manner, the method further includes:
[0075] The first terminal receives a fifth response from the second terminal to the instruction to delete the auxiliary security domain; the fifth response includes a deletion success or a deletion failure.
[0076] In the present application, the first terminal can confirm whether the second terminal has successfully deleted the auxiliary security domain through the received fifth response, and can timely synchronize the status of the second terminal deleting the auxiliary security domain.
[0077] In combination with the first aspect, in a possible design manner, the method further includes:
[0078] If the fourth response and the fifth response received by the first terminal are both deleted successfully, the first terminal deletes the digital currency wallet information of the second terminal in the display interface.
[0079] In the present application, after the first terminal confirms that the digital currency wallet of the second terminal has been successfully deleted and the auxiliary security domain has been successfully deleted, the digital currency wallet information of the second terminal is deleted, thereby achieving timely updating of the digital currency wallet list in the first terminal.
[0080] In combination with the first aspect, in a possible design manner, the method further includes:
[0081] The first terminal displays progress information in the display interface; the progress information is used to indicate the progress of the second terminal in opening the digital currency wallet.
[0082] In the present application, the progress information of the opening of the digital currency wallet by the second terminal is displayed on the display interface of the first terminal, so that the user can obtain the progress status of the opening of the digital currency wallet by the second terminal in a timely manner through the first terminal, thereby optimizing the user experience.
[0083] In combination with the first aspect, in a possible design manner, the first terminal obtains device information of the second terminal, including:
[0084] The first terminal obtains the device information of the second terminal by scanning the QR code displayed by the second terminal; the QR code is the QR code displayed when the second terminal receives the user's confirmation of the payment application in the second terminal to open a digital currency wallet.
[0085] In this application, the first terminal can obtain the device information of the second terminal by scanning the QR code displayed by the second terminal. Thus, the first terminal can establish a first communication connection with the second terminal based on the device information of the second terminal. This solution can quickly and effectively establish a communication connection between the first terminal and the second terminal.
[0086] In combination with the first aspect, in a possible design manner, before the first terminal obtains the device information of the second terminal, the method further includes:
[0087] The first terminal establishes a second communication connection with the second terminal through Bluetooth technology; the second communication connection is used to transmit data and instructions other than the management data and instructions of the digital currency wallet.
[0088] In the present application, before the first terminal manages the digital currency wallet of the second terminal, it establishes a second communication connection with the second terminal, thereby determining that the second terminal is a terminal that has established a device connection with the first terminal, thereby ensuring the consistency of the user identity of the second terminal and the first terminal, and also improving the security of the operating environment of the digital currency wallet.
[0089] In combination with the first aspect, in one possible design, when the first terminal establishes a second communication connection with the second terminal, the first terminal and the second terminal transmit data and instructions other than management data and instructions of the digital currency wallet through the second communication interface.
[0090] In the present application, the first communication interface deployed in the management application is dedicated to the transmission of digital currency wallet instructions, while the second communication interface can be reused in different scenarios, thereby optimizing the framework deployment resources of the first terminal while realizing the management of the digital currency wallet of the second terminal by the first terminal.
[0091] In a second aspect, a method for managing a digital currency wallet is provided, the method comprising:
[0092] The second terminal receives the communication connection request sent by the first terminal and establishes a first communication connection with the first terminal; the first communication connection is used to transmit management data or instructions of the digital currency wallet; the second terminal receives the digital currency wallet opening instruction sent by the first terminal; the second terminal executes the digital currency wallet opening operation according to the digital currency wallet opening instruction.
[0093] In the present application, the first terminal may be a mobile phone, and the second terminal may be a wearable electronic device. In the present application, the digital currency wallet technology is applied to wearable electronic devices that are more frequently used and more convenient to use. The mobile phone can communicate with the wearable electronic device to perform management operations such as opening a digital currency wallet for the wearable electronic device. In the scenario where a digital currency wallet is opened in a wearable electronic device and the user uses the wearable electronic device to make a payment, the wearable electronic device can directly call the digital currency wallet to complete the payment. Compared with the method of scanning a payment QR code through a payment application to make a payment, the entire payment process is more convenient and optimizes the user experience.
[0094] In combination with the second aspect, in one possible design method, a digital currency framework service is deployed in both the first terminal and the second terminal, and the digital currency framework service provides the first terminal and the second terminal with a communication protocol and a communication interface for managing digital currency wallets.
[0095] In conjunction with the second aspect, in a possible design, the first terminal includes a management application and a third-party application, and the communication interface includes a first communication interface and a second communication interface. The first communication interface is a communication interface for transmitting management data or instructions of a digital currency wallet between the management application in the first terminal and the third-party application; the second communication interface is a communication interface for transmitting management data or instructions of a digital currency wallet instruction between the management application in the first terminal and the second terminal.
[0096] Exemplarily, when the digital currency is digital RMB, the first communication interface may be a DCEP AI DL interface. The second communication interface may be a Bluetooth communication AI DL interface. The communication protocol may be a Bluetooth application protocol applicable to a pre-set digital currency wallet management scenario.
[0097] In the present application, the DCEP AI DL interface provides a way for transmitting digital currency wallet data or instructions between the third-party application and the management application of the first terminal. The Bluetooth communication AI DL interface provides a way for transmitting Bluetooth data between the first terminal and the second terminal. Optionally, when the first terminal establishes a first communication connection with the second terminal, the first terminal and the second terminal may call the Bluetooth communication AI DL interface to transmit digital currency wallet data or instructions; when the first terminal and the second terminal establish a second communication connection, the first terminal and the second terminal may call the Bluetooth communication AI DL interface to transmit other data or instructions. That is, the first communication interface deployed in the management application is dedicated to the transmission of digital currency wallet instructions, and the second communication interface can be reused in different scenarios, so as to optimize the framework deployment resources of the first terminal while realizing the management of the digital currency wallet of the second terminal by the first terminal.
[0098] In the present application, the digital currency framework service provides a communication protocol and multiple communication interfaces for implementing digital currency wallet management. Each communication interface defines the implemented functions, which can realize the activation management of the digital currency wallet of the second terminal, so that the user can directly use the digital currency wallet of the second terminal to make payments, making the payment process more convenient.
[0099] In conjunction with the second aspect, in a possible design manner, the second terminal receives a communication connection request sent by the first terminal and establishes a first communication connection with the first terminal, including:
[0100] The second terminal receives the communication connection request sent by the first terminal through the second communication interface, and establishes a first communication connection with the first terminal.
[0101] In the present application, the second terminal can receive a communication connection request sent by the first terminal through a call through the second communication interface to establish a first communication connection with the first terminal, thereby realizing the interaction of relevant instructions for managing the digital currency wallet with the second terminal.
[0102] In conjunction with the second aspect, in a possible design manner, the method further includes:
[0103] The second terminal returns a connection response to the first communication connection to the first terminal through the first communication interface according to the first callback parameter.
[0104] In the present application, the second terminal returns a connection response to the first communication connection to the first terminal according to the first callback parameter listener of the first communication interface, so that the first terminal synchronously establishes the state of the first communication connection in a timely manner.
[0105] In combination with the second aspect, in one possible design method, the instruction for opening a digital currency wallet includes an instruction for creating an auxiliary security domain, an instruction for downloading a digital currency wallet program, and an instruction for adding a digital currency wallet, wherein the auxiliary security domain is used to provide a secure storage space for the digital currency wallet of the second terminal.
[0106] In some embodiments, to activate a digital currency wallet in a smart watch, it is necessary to create a secure space in the smart watch for storing the digital currency wallet, download an execution program of the digital currency wallet in the smart watch, and add relevant information of the digital currency wallet in the smart watch.
[0107] Accordingly, the mobile phone can send a command to create an auxiliary security domain to the smart watch, so as to create a secure space for storing digital currency wallets in the smart watch. The mobile phone can send a command to download a digital currency program to the smart watch, so as to download the execution program of the digital currency wallet in the smart watch. The mobile phone can send a command to add a digital currency wallet to the smart watch, so as to add the relevant information of the digital currency wallet in the smart watch.
[0108] In the present application, the above multiple instructions can gradually realize the opening of the digital currency wallet in the smart watch. Preferably, after the mobile phone sends the instruction to create the auxiliary security domain to the smart watch, when receiving the return response of successful creation, it sends the instruction to download the digital currency program to the smart watch. When receiving the return response of successful download, the instruction to add the digital currency wallet is sent to the smart watch to further ensure the successful opening of each digital currency wallet.
[0109] In conjunction with the second aspect, in a possible design, the second terminal receives the digital currency wallet opening instruction sent by the first terminal, including:
[0110] The second terminal receives the instruction to create the auxiliary security domain sent by the first terminal through the second communication interface.
[0111] In conjunction with the second aspect, in a possible design manner, the method of creating an auxiliary security domain instruction carrying an identifier of the auxiliary security domain further includes:
[0112] The second terminal creates an auxiliary security domain in the SE chip according to the identifier of the auxiliary security domain.
[0113] In this application, the SE chip uses an intelligent security chip that meets the security level requirements of the terminal device, with a built-in secure operating system to meet the terminal device's security key storage, data encryption services and other requirements. Creating an auxiliary security domain in the SE chip can further ensure the information security of the auxiliary security domain.
[0114] In conjunction with the second aspect, in a possible design manner, the method further includes:
[0115] The second terminal returns a first response to the instruction to create the auxiliary security domain to the first terminal through the second communication interface; the first response includes a creation success or a creation failure.
[0116] In the present application, the second terminal may return a first response to the instruction to create the auxiliary security domain to the first terminal, so that the first terminal synchronizes the status of the second terminal creating the auxiliary security domain in a timely manner.
[0117] In conjunction with the second aspect, in a possible design, the second terminal receives the digital currency wallet opening instruction sent by the first terminal, including:
[0118] The second terminal receives the instruction to download the digital currency wallet program sent by the first terminal through the second communication interface.
[0119] In conjunction with the second aspect, in a possible design, the instruction to download the digital currency wallet program carries a byte array to be sent, the second terminal includes a security unit chip SE chip, and the method further includes:
[0120] The second terminal downloads the digital currency wallet program in the auxiliary security domain in the SE chip according to the byte array to be sent.
[0121] In the present application, the second terminal performs a download operation of the digital currency wallet program according to the byte array to be sent of each received instruction to download the digital currency wallet program. Downloading the digital currency wallet program in the auxiliary security domain in the SE chip can ensure the information security of the digital currency wallet program.
[0122] In conjunction with the second aspect, in a possible design manner, the method further includes:
[0123] The second terminal returns a second response to the instruction to download the digital currency wallet program to the first terminal through the second communication interface; the second response includes a successful download or a failed download.
[0124] In the present application, the second terminal may return a second response to the instruction to download the digital currency wallet program to the first terminal, so that the first terminal synchronizes the status of the second terminal downloading the digital currency wallet program in a timely manner.
[0125] In conjunction with the second aspect, in a possible design, the second terminal receives the digital currency wallet opening instruction sent by the first terminal, including:
[0126] The second terminal receives the instruction to add a digital currency wallet sent by the first terminal through the second communication interface.
[0127] In combination with the second aspect, in a possible design, the second terminal includes a security unit chip SE chip, and the instruction to add a digital currency wallet carries an identifier of the digital currency wallet, an identifier of the SE chip, and an identifier of the payer; the method further includes:
[0128] The second terminal adds the digital currency wallet to the digital currency wallet program in the auxiliary security domain of the SE chip according to the identifier of the digital currency wallet, the identifier of the SE chip and the identifier of the payer.
[0129] In this application, the second terminal performs the adding operation of the digital currency wallet according to the identification of the digital currency wallet of the adding digital currency wallet instruction, the identification of the SE chip and the identification of the payer. Adding the digital currency wallet in the digital currency wallet program of the auxiliary security domain of the SE chip can ensure the information security and property security of the digital currency wallet.
[0130] In conjunction with the second aspect, in a possible design manner, the method further includes:
[0131] The second terminal returns a third response to the instruction to add a digital currency wallet to the first terminal through the second communication interface; the third response includes activation success or activation failure.
[0132] In the present application, the second terminal may return a third response to the instruction to add a digital currency wallet to the first terminal, so that the first terminal synchronizes the status of adding a digital currency wallet to the second terminal in a timely manner.
[0133] In conjunction with the second aspect, in a possible design manner, the method further includes:
[0134] The second terminal receives the digital currency wallet deletion instruction sent by the first terminal through the second communication interface.
[0135] In the present application, the second terminal can receive the digital currency wallet deletion instruction sent by the first terminal by calling the fifth communication interface, and execute the digital currency wallet deletion operation according to the digital currency wallet identifier, SE chip identifier, and payer identifier.
[0136] In conjunction with the second aspect, in a possible design manner, the method further includes:
[0137] The second terminal executes a deletion operation of the digital currency wallet according to the identifier of the digital currency wallet, the identifier of the SE chip and the identifier of the payer.
[0138] In this application, the second terminal performs a digital currency wallet deletion operation according to the digital currency wallet identifier, the SE chip identifier, and the payer identifier of the digital currency wallet deletion instruction, deletes the digital currency wallet from the auxiliary security domain of the SE chip, and releases the storage space of the auxiliary security domain in a timely manner.
[0139] In conjunction with the second aspect, in a possible design manner, the method further includes:
[0140] The second terminal returns a fourth response to the instruction to delete the digital currency wallet to the first terminal through the second communication interface; the fourth response includes a successful deletion or a failed deletion.
[0141] In the present application, the second terminal may return a fourth response to the instruction to delete the digital currency wallet to the first terminal, so that the first terminal synchronizes the state of deleting the digital currency wallet with the second terminal in a timely manner.
[0142] In conjunction with the second aspect, in a possible design manner, the method further includes:
[0143] The second terminal displays progress information in the display interface; the progress information is used to indicate the progress of the second terminal in opening the digital currency wallet.
[0144] In the present application, the progress information of the opening of the digital currency wallet by the second terminal is displayed on the display interface of the second terminal, so that the user can obtain the progress status of the opening of the digital currency wallet by the second terminal in a timely manner through the second terminal, thereby optimizing the user experience.
[0145] In conjunction with the second aspect, in a possible design manner, the method further includes:
[0146] The second terminal displays a first prompt message on a display interface, and the first prompt message is used to prompt the user to confirm the opening of a digital currency wallet; when the second terminal receives the user's confirmation operation, a QR code is displayed on the display interface; the QR code includes the address of the second terminal, and the QR code is used to provide the first terminal with the address of the second terminal when the first terminal scans the QR code.
[0147] In the present application, when the second terminal receives the user's confirmation to open a digital currency wallet, the second terminal displays a QR code on the display interface. When the first terminal scans the QR code, the address of the second terminal is provided to the first terminal to establish a first communication connection with the second terminal. This solution can quickly and effectively establish a communication connection between the first terminal and the second terminal.
[0148] In conjunction with the second aspect, in a possible design manner, before the second terminal receives the communication connection request sent by the first terminal, the method further includes:
[0149] The second terminal establishes a second communication connection with the first terminal through Bluetooth technology; the second communication connection is used to transmit data and instructions other than the management data and instructions of the digital currency wallet.
[0150] In the present application, before the first terminal manages the digital currency wallet of the second terminal, it establishes a second communication connection with the second terminal, thereby determining that the second terminal is a terminal that has established a device connection with the first terminal, thereby ensuring the consistency of the user identity of the second terminal and the first terminal, and also improving the security of the operating environment of the digital currency wallet.
[0151] In combination with the second aspect, in one possible design, when the first terminal establishes a second communication connection with the second terminal, the second terminal and the first terminal transmit data and instructions other than management data and instructions of the digital currency wallet through the second communication interface.
[0152] In the present application, the first communication interface deployed in the management application is dedicated to the transmission of digital currency wallet instructions, while the second communication interface can be reused in different scenarios, thereby optimizing the framework deployment resources of the first terminal while realizing the management of the digital currency wallet of the second terminal by the first terminal.
[0153] In a third aspect, an electronic device is provided, comprising an SE chip, a memory, a display screen and one or more processors; the SE chip, the memory, the display screen are coupled to the processor; a computer program code is stored in the memory, and the computer program code comprises computer instructions, and when the computer instructions are executed by the processor, the electronic device executes a method as described in any one of the first aspect and any one of the second aspect.
[0154] In a fourth aspect, a management system for a digital currency wallet is provided, the system comprising a first terminal and a second terminal; the first terminal executes any method in the first aspect; the second terminal executes any method in the second aspect.
[0155] In a fifth aspect, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is executed on an electronic device, the electronic device can execute any one of the methods described in the first aspect.
[0156] In a sixth aspect, a computer program product comprising instructions is provided, which, when executed on an electronic device, enables the electronic device to execute any one of the methods described in the first aspect.
[0157] In a seventh aspect, an embodiment of the present application provides a chip, the chip including a processor, the processor being used to call a computer program in a memory to execute the method of the first aspect.
[0158] It can be understood that the beneficial effects that can be achieved by the electronic device described in the third aspect, the management system of the digital currency wallet described in the fourth aspect, the computer-readable storage medium described in the fifth aspect, the computer program product described in the sixth aspect, and the chip described in the seventh aspect provided above can refer to the beneficial effects in the first aspect and any possible design method thereof, and the second aspect and any possible design method thereof, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0159] Figure 1 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0160] Figure 2 A schematic diagram of the structure of another electronic device provided in an embodiment of the present application;
[0161] Figure 3 An interactive flow chart of establishing a classic Bluetooth connection between a mobile phone and a smart watch provided in an embodiment of the present application;
[0162] Figure 4 A schematic diagram of the interface of a smart watch during the process of opening a digital currency wallet on a smart watch provided in an embodiment of the present application;
[0163] Figure 5 A schematic diagram of the interface of a mobile phone during the process of opening a digital currency wallet for a smart watch provided in an embodiment of the present application;
[0164] Figure 6 A schematic diagram of the interface of a smart watch after a digital currency wallet of the smart watch is opened provided in an embodiment of the present application;
[0165] Figure 7 A schematic diagram of the interface of a mobile phone after a digital currency wallet of a smart watch is opened according to an embodiment of the present application;
[0166] Figure 8 An overall architecture diagram of a mobile phone and a smart watch in a method for managing a digital currency wallet provided in an embodiment of the present application;
[0167] Fig. 9 An overall architecture diagram of a mobile phone and a smart watch in another method for managing a digital currency wallet provided in an embodiment of the present application;
[0168] Fig.10 An interactive flow chart of a method for managing a digital currency wallet provided in an embodiment of the present application;
[0169] Fig.11 An interactive flow chart for creating an auxiliary security domain in a digital currency wallet management method provided in an embodiment of the present application;
[0170] Fig.12An interactive flow chart for downloading the DCEP Applet in a digital currency wallet management method provided in an embodiment of the present application;
[0171] Fig.13 A schematic diagram of the architecture of the state synchronization of a smart watch in a method for managing a digital currency wallet provided in an embodiment of the present application;
[0172] Fig.14 An interactive flow chart for updating the DCEP Applet in a digital currency wallet management method provided in an embodiment of the present application;
[0173] Fig.15 An interactive flow chart of adding a RMB wallet in a digital currency wallet management method provided in an embodiment of the present application;
[0174] Fig.16 A schematic diagram of the interface of another smart watch during the process of opening a digital currency wallet on a smart watch provided in an embodiment of the present application;
[0175] Fig.17 A schematic diagram of the interface of a mobile phone during the process of opening a digital currency wallet on a smart watch provided in an embodiment of the present application;
[0176] Fig.18 An interactive flow chart of deleting a RMB wallet in a digital currency wallet management method provided in an embodiment of the present application;
[0177] Fig.19 A schematic diagram of the architecture of the application of a method for processing sensitive data and non-sensitive data in a method for managing a digital currency wallet provided in an embodiment of the present application;
[0178] Fig. 20 A schematic diagram of the structure of another electronic device provided in an embodiment of the present application;
[0179] Fig.21 A schematic diagram of a chip system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0180] In the description of the embodiments of the present application, the terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification and the appended claims of the present application, the singular expressions "a", "said", "above", "the" and "this" are intended to also include such expressions as "one or more", unless there is a clear contrary indication in the context. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" refer to one or more (including two). The term "and / or" is used to describe the association relationship of associated objects, indicating that three relationships can exist; for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are a kind of "or" relationship.
[0181] References to "one embodiment" or "some embodiments" etc. described in this specification mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Thus, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways. The term "connection" includes direct connection and indirect connection, unless otherwise specified. "First" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated.
[0182] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0183] In order to meet the needs of users in different scenarios, the functions of smart terminal devices are becoming more and more abundant. Smart terminal devices, such as wearable electronic devices, can realize functions such as communication between their administrator devices or other devices, user health monitoring, taking pictures, and payment. Exemplarily, the wearable electronic device can be a smart watch, which can realize communication with the bound mobile phone (administrator device). For example, a user can use a smart watch to monitor sports health. For example, a smart watch can obtain data such as the user's heart rate, blood pressure, exercise duration, exercise consumption, and upload the sports health data to the mobile phone; or, the user scans the payment QR code through the camera of the smart watch to make a payment. After the payment, the smart watch synchronizes the payment status or payment result to the mobile phone, etc.
[0184] In the scenario of paying by scanning the payment QR code through the camera of a smart watch, the camera of the smart watch is often in the same direction as the display screen. When the user uses the camera to scan the payment QR code, it is difficult to determine whether the camera is aimed at the payment QR code, resulting in inconvenient payment operations and poor user experience.
[0185] With the development of digital RMB technology, it is more convenient for users to pay through digital currency wallets in their mobile phones than to scan QR codes through payment applications. The digital currency wallet in the mobile phone interacts directly with the payment bank, and no longer uses payment applications as a payment platform, which reduces the complexity of payment procedures and makes payment more efficient.
[0186] The present application provides a method for managing a digital currency wallet, which applies digital currency wallet technology to wearable electronic devices that are more frequently used and more convenient to use. The mobile phone can communicate with the wearable electronic device to perform management operations such as opening, binding, deregistering, and unbinding digital currency wallets on the wearable electronic device. In the scenario where a digital currency wallet is opened in a wearable electronic device and the user uses the wearable electronic device to make a payment, the wearable electronic device can directly call the digital currency wallet through near field communication (NFC) to complete the payment. Compared with the method of scanning the payment QR code through a payment application to make a payment, the entire payment process is more convenient and optimizes the user experience.
[0187] The present application provides a method for managing a digital currency wallet, which can be applied to electronic devices, such as wearable electronic devices and their administrator electronic devices. Specifically, it can be applied to the process in which the administrator electronic device performs device binding operations on wearable electronic devices, opening and binding of digital currency wallets, unbinding and cancellation, and other management operations. Exemplarily, the electronic device in the embodiment of the present application may include a first terminal and a second terminal. Among them, the first terminal may be an administrator electronic device, and the administrator electronic device may be a mobile phone, a tablet computer, a laptop computer, a handheld computer, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook, a cellular phone, and a personal digital assistant (personal digital assistant, PDA), etc. The second terminal may be a wearable electronic device, and the wearable electronic device may be an electronic device such as a children's watch, a smart watch, a smart bracelet, smart glasses, etc. The embodiment of the present application does not impose any special restrictions on the specific form of the above-mentioned electronic devices.
[0188] The electronic device involved in this application can be Figure 1 The electronic device 100 is shown. Figure 1 , which shows a structural block diagram of an electronic device (such as an electronic device 100) provided in an embodiment of the present application. The electronic device 100 may include a processor 310, a security chip (SE chip) 311, an external memory interface 320, an internal memory 321, a universal serial bus (USB) interface 330, a charging management module 340, a power management module 341, a battery 342, an antenna 1, an antenna 2, a radio frequency module 350, a communication module 360, an audio module 370, a speaker 370A, a receiver 370B, a microphone 370C, an earphone interface 370D, a sensor module 380, an indicator 392, a camera 393, a display screen 394, etc. The sensor module 380 may include a pressure sensor 380A, a gyroscope sensor 380B, a magnetic sensor 380D, an acceleration sensor 380E, a distance sensor 380F, a proximity light sensor 380G, a fingerprint sensor 380H, a temperature sensor 380J, a touch sensor 380K, etc.
[0189] The structure shown in the embodiment of the present invention does not limit the electronic device 100. It may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0190] The SE security chip 311 can be a microprocessor, which implements functions such as data security storage, encryption and decryption operations through a security chip and a chip operating system; it can also be packaged into various forms, such as smart cards and embedded security chips (embedded security element, eSE chips). The SE security chip developed for near field communication NFC terminal devices uses a smart security chip that meets the security level requirements of the terminal devices, and has a built-in security operating system to meet the security key storage, data encryption services and other needs of the terminal devices.
[0191] In some embodiments, the SE chip in the wearable electronic device communicates with the processor in the administrator electronic device, and the processor of the administrator electronic device is used to interact with the SE chip of the wearable electronic device by operating or commanding.
[0192] In some embodiments, the SE chip in the administrator electronic device can provide services such as secure key storage and data encryption services for the administrator electronic device.
[0193] The processor 310 may include one or more processing units. For example, the processor 310 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors.
[0194] The controller can be a decision maker that directs the various components of the electronic device 100 to work in coordination according to the instructions. It is the nerve center and command center of the electronic device 100. The controller generates an operation control signal according to the instruction operation code and timing signal to complete the control of fetching and executing instructions.
[0195] The processor 310 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 310 is a high-speed cache memory, which can store instructions or data that the processor 310 has just used or cyclically used. If the processor 310 needs to use the instruction or data again, it can be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 310, and thus improves the efficiency of the system.
[0196] In some embodiments, the processor 310 may include an interface. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a SIM interface, and / or a USB interface, etc.
[0197] The charging management module 340 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 340 may receive charging input from a wired charger through the USB interface 330. In some wireless charging embodiments, the charging management module 340 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 340 is charging the battery 342, it may also power the electronic device 100 through the power management module 341.
[0198] The power management module 341 is used to connect the battery 342, the charging management module 340 and the processor 310. The power management module 341 receives input from the battery 342 and / or the charging management module 340, and supplies power to the processor 310, the internal memory 321, the external memory interface 320, the display screen 394, the camera 393, and the communication module 360. The power management module 341 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some embodiments, the power management module 341 can also be set in the processor 310. In some embodiments, the power management module 341 and the charging management module 340 can also be set in the same device.
[0199] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the radio frequency module 350, the communication module 360, the modem and the baseband processor.
[0200] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, a cellular network antenna can be reused as a wireless local area network diversity antenna. In some embodiments, the antenna can be used in combination with a tuning switch.
[0201] The RF module 350 can provide a communication processing module for wireless communication solutions including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The RF module 350 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The RF module 350 receives electromagnetic waves from the antenna 1, and performs filtering, amplification, and other processing on the received electromagnetic waves, and transmits them to the modem for demodulation. The RF module 350 can also amplify the signal modulated by the modem, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the RF module 350 can be set in the processor 310. In some embodiments, at least some of the functional modules of the RF module 350 can be set in the same device as at least some of the modules of the processor 310.
[0202] The modem may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 370A, a receiver 370B, etc.), or displays an image or video through a display screen 394. In some embodiments, the modem may be an independent device. In some embodiments, the modem may be independent of the processor 310 and be arranged in the same device as the RF module 350 or other functional modules.
[0203] The communication module 360 can provide a communication processing module for wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The communication module 360 can be one or more devices integrating at least one communication processing module. The communication module 360 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and filters it, and sends the processed signal to the processor 310. The communication module 360 can also receive the signal to be sent from the processor 310, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0204] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the RF module 350, and the antenna 2 is coupled to the communication module 360, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global satellite positioning system (satellite based augmentation systems, SBAS), a global navigation satellite system (global navigation satellite system, GLONASS), a BeiDou navigation satellite system (BeiDou navigation satellite system, BDS), a Quasi-Zenith satellite system (Quasi-Zenith satellite system, QZSS) and / or a satellite based augmentation system (SBAS).
[0205] The electronic device 100 implements the display function through a GPU, a display screen 394, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 394 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 310 may include one or more GPUs, which execute program instructions to generate or change display information.
[0206] The display screen 394 is used to display images, videos, etc. The display screen 394 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light emitting diode or an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 394, where N is a positive integer greater than 1.
[0207] The electronic device 100 can realize the shooting function through ISP, camera 393, video codec, GPU, display screen and application processor.
[0208] The ISP is used to process the data fed back by the camera 393. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. The ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP can be set in the camera 393.
[0209] The camera 393 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 393, where N is a positive integer greater than 1.
[0210] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0211] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0212] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0213] The external memory interface 320 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 310 through the external memory interface 320 to implement a data storage function, such as storing music, video and other files in the external memory card.
[0214] The internal memory 321 can be used to store computer executable program codes, which include instructions. The processor 310 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 321. The memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, other volatile solid-state storage devices, a universal flash storage (UFS), etc.
[0215] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 370, the speaker 370A, the receiver 370B, the microphone 370C, the headphone jack 370D, and the application processor.
[0216] The audio module 370 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal. The audio module 370 can also be used to encode and decode audio signals. In some embodiments, the audio module 370 can be arranged in the processor 310, or some functional modules of the audio module 370 can be arranged in the processor 310.
[0217] The speaker 370A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 370A.
[0218] The receiver 370B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 370B close to the human ear.
[0219] Microphone 370C, also called "microphone" or "microphone", is used to convert sound signals into audio electrical signals. When making a call or sending a voice message, the user can make a sound by putting his mouth close to microphone 370C to input the sound signal into microphone 370C. The electronic device 100 can be provided with at least one microphone 370C. In some embodiments, the electronic device 100 can be provided with two microphones 370C, which can not only collect sound signals but also realize noise reduction function. In some embodiments, the electronic device 100 can also be provided with three, four or more microphones 370C to realize the collection of sound signals, noise reduction, identification of sound sources, realization of directional recording function, etc.
[0220] The earphone interface 370D is used to connect a wired earphone and can be a USB interface 330, or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0221] The pressure sensor 380A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 380A can be set on the display screen 394. There are many types of pressure sensors 380A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 394, the electronic device 100 detects the touch operation intensity according to the pressure sensor 380A. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 380A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
[0222] The gyro sensor 380B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 380B. The gyro sensor 380B can be used for anti-shake shooting. Exemplarily, when the shutter is pressed, the gyro sensor 380B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 380B can also be used for navigation and somatosensory game scenes.
[0223] The magnetic sensor 380D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 380D to detect the opening and closing of the flip leather case. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover according to the magnetic sensor 380D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover can be automatically unlocked.
[0224] The acceleration sensor 380E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the terminal posture and is applied to applications such as horizontal and vertical screen switching and pedometers.
[0225] The distance sensor 380F is used to measure the distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 380F to measure the distance to achieve fast focusing.
[0226] The proximity light sensor 380G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. Infrared light is emitted outward through the light emitting diode. A photodiode is used to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, it can be determined that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 380G to detect when a user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 380G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.
[0227] The fingerprint sensor 380H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
[0228] The temperature sensor 380J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 380J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 380J exceeds a threshold, the electronic device 100 reduces the performance of a processor located near the temperature sensor 380J to reduce power consumption and implement thermal protection.
[0229] The touch sensor 380K, also called a “touch panel”, may be disposed on the display screen 394 to detect a touch operation applied thereto or thereabout. The detected touch operation may be transmitted to the application processor to determine the type of touch event and provide a corresponding visual output through the display screen 394.
[0230] Indicator 392 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0231] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present invention, the Android system of the layered architecture is taken as an example to exemplify the software structure of the electronic device 100.
[0232] Figure 21 is a software structure diagram of the electronic device 100 of an embodiment of the present invention. The layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer.
[0233] The application layer can include a series of application packages.
[0234] like Figure 2 As shown, the application package may include payment applications, management applications, camera, calendar, phone, WLAN, Bluetooth, music, video, short message and other applications.
[0235] Among them, different payment banks correspond to different payment applications. In this embodiment, the payment application is called a third-party application, and the payment bank is called a third party. Exemplarily, the third-party application in the administrator's electronic device is mainly used to provide functions such as digital currency payment, adding and binding digital currency wallets, and deleting digital currency wallets. After the digital currency wallet in the wearable electronic device is opened, the third-party application of the wearable electronic device is used to provide the digital currency payment function.
[0236] The management application is an application installed by the administrator's electronic device, and the management application is used to manage other electronic devices bound to the administrator's electronic device, wherein the other devices may be wearable electronic devices or other smart home devices. In this embodiment, the administrator's electronic device is a mobile phone, the wearable electronic device is a smart watch, and the management application may be a sports health application installed in the mobile phone. Users can manage the smart watch bound to the mobile phone through the sports health application of the mobile phone. For example, the device information of the smart watch, management of the bound smart watch, and other operations can be viewed through the sports health application in the mobile phone. In some embodiments, the sports health application can call the digital currency framework service deployed in the mobile phone, and through interaction with a third-party application (payment application), management operations such as opening, binding, unbinding, and cancellation of the digital currency wallet in the smart watch can be realized.
[0237] Optionally, a digital currency framework service is also deployed in the smart watch. The digital currency framework service of the smart watch and the digital currency framework service of the mobile phone interact with each other through an agreed protocol to exchange data or instructions, so as to realize the management operation of the digital currency wallet in the smart watch by the mobile phone. Exemplarily, the sports health application of the mobile phone calls the digital currency framework service to send an instruction to open a digital currency wallet to the smart watch. The third-party application of the smart watch receives the instruction to open a digital RMB wallet through the digital currency framework service, and further processes the received instruction to open a digital currency wallet. Optionally, the third-party application of the smart watch interacts with the eSE chip in the smart watch. For example, when the third-party application of the smart watch receives the instruction to open a digital currency wallet, it sends an instruction to open a digital RMB wallet to the eSE chip to realize the operation of opening a digital currency wallet in the eSE chip. Optionally, the interaction between the third-party application and the eSE chip can be communicated through a preset interface.
[0238] Optionally, for ease of distinction, in this embodiment, the digital currency framework service deployed in the mobile phone is referred to as the first digital currency framework service, and the digital currency service deployed in the smart watch is referred to as the second digital currency framework service.
[0239] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0240] like Figure 2 As shown, the application framework layer may include digital RMB framework services, a window manager, a content provider, a view system, a telephony manager, a resource manager, and a notification manager.
[0241] In this embodiment, when the electronic device is a mobile phone, the first digital currency framework service deployed in the mobile phone is used to provide a first communication interface for the management application and the third-party application. Optionally, when the digital currency is digital RMB, the first communication interface can be a digital currency electronic payment (DCEP) interface (DCEP AIDL interface) based on the Android interface definition language (android interface definition language, AIDL). In some embodiments, the management application of the mobile phone communicates with the third-party application through the DCEP interface to realize the transmission of instructions or data between the third-party application and the management application.
[0242] In some embodiments, the first digital currency framework service deployed in the mobile phone is also used to provide a second communication interface and communication protocol for the smart watch bound to the mobile phone. For example, the second communication interface can be a Bluetooth communication AIDL interface. The communication protocol can be a Bluetooth application protocol applicable to a pre-set digital currency wallet management scenario. In some embodiments, the management application of the mobile phone can call the first digital currency framework service to communicate with the second digital currency framework service deployed by the smart watch through the Bluetooth communication AIDL interface to realize the transmission of instructions or data between the mobile phone and the smart watch.
[0243] After receiving the instructions or data transmitted by the mobile phone, the smart watch sends instructions or data to the eSE chip through the designated interface for interacting with eSE, thereby implementing management operations such as opening, binding, unbinding, and canceling the digital currency wallet of the smart watch in the eSE chip.
[0244] In this application, the management application of the mobile phone can implement device management of the smart watch through the Bluetooth communication AIDL interface. The management application can be a sports health application. For example, the sports health application of the mobile phone calls the AIDL Bluetooth communication interface to implement device binding of the smart watch, and the smart watch can use the Bluetooth communication AIDL interface to report the physiological characteristic data of the user (such as heart rate, blood pressure, etc.) obtained by monitoring to the sports health application of the mobile phone.
[0245] In the scenario where a mobile phone manages the digital currency wallet of a smart watch, the mobile phone's third-party application transmits digital currency wallet instructions to the sports health application by calling the DCEP interface. The mobile phone's sports health application can reuse the Bluetooth communication AIDL interface to send digital currency wallet instructions to the smart watch to achieve management of the digital currency wallet of the smart watch.
[0246] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc. The content provider is used to store and obtain data and make the data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc. The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, etc. The view system can be used to build applications. The display interface can be composed of one or more views.
[0247] In some embodiments, the display interface of the third-party application in the administrator's electronic device may include a details interface of the digital currency wallet, a management interface of the digital currency wallet, a management interface of the device for opening the digital currency wallet, a progress bar during the process of opening the digital currency wallet, and the like.
[0248] In some embodiments, when the wearable electronic device has not been activated and bound to a digital currency wallet, the display interface of the third-party application of the wearable electronic device may include a QR code, wherein the QR code is used to activate and bind the digital currency wallet, and the QR code carries the Bluetooth address of the wearable electronic device and personal identification number (PIN code) information, etc.
[0249] In some embodiments, during the process of opening a digital currency wallet on a wearable electronic device, the display interface of a third-party application of the wearable electronic device may also display a progress bar for indicating the opening progress.
[0250] In some embodiments, after the wearable electronic device is enabled to bind a digital currency wallet, the display interface of the third-party application of the wearable electronic device can display detailed information of the digital currency wallet, such as the balance of the digital currency wallet.
[0251] The phone manager is used to provide communication functions for the electronic device 100. For example, the management of call status (including connected, hung up, etc.). The resource manager provides various resources for applications, such as localized strings, icons, pictures, layout files, video files, etc. The notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify the completion of downloads, message reminders, etc. The notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in the status bar, a prompt sound is emitted, the electronic device vibrates, the indicator light flashes, etc.
[0252] Android runtime includes core library and virtual machine. Android runtime is responsible for scheduling and management of Android system. Core library consists of two parts: one is the function that Java language needs to call, and the other is Android core library.
[0253] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0254] The system library may include multiple functional modules, such as surface manager, media libraries, 3D graphics processing library (such as openGL ES), 2D graphics engine (such as SGL), etc.
[0255] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications. The media library supports playback and recording of multiple common audio and video formats, as well as static image files. The media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc. The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing. The 2D graphics engine is a drawing engine for 2D drawing.
[0256] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0257] The following embodiments of the present application are described in detail by taking the first terminal as a mobile phone and the second terminal as a smart watch as an example.
[0258] Before the mobile phone and the smart watch perform management operations such as opening, binding, canceling, and unbinding the digital currency wallet, the smart watch needs to establish a device connection (second communication connection) with the mobile phone. The mobile phone and the smart watch can transmit the user's sports health data through the transmission channel of the device connection. The transmission channel of the device connection in this embodiment is not used to transmit data or instructions for managing the digital currency wallet of the smart watch.
[0259] For example, in some common scenarios, the smartwatch establishes a device connection with the mobile phone, and the smartwatch can be used to identify the user's exercise status (walking, running, climbing) and exercise data statistics (single, all-day), calorie statistics, standing data statistics, heart rate detection, blood pressure and blood sugar detection, etc., and report these data to the mobile phone. When the smartwatch establishes a device connection with the mobile phone, the smartwatch can also provide information reminders, for example, the smartwatch supports functions such as incoming calls, text messages, emails, and application push.
[0260] Users can manage smart watches in the management application of their mobile phones. For example, the management application can be a sports health application or other application for managing smart watches. For example, users can use the sports health application in their mobile phones to achieve device connection and device management of smart watches. Among them, smart watches and mobile phones can establish device connection through any method such as Bluetooth technology, NFC technology, local area network, Wi-Fi, etc.
[0261] For example, the process of establishing a device connection between a mobile phone and a smart watch based on a sports health application in a mobile phone is as follows: Figure 3 As shown, including:
[0262] S101. The smart watch turns on the Bluetooth function and sends Bluetooth broadcast information.
[0263] The Bluetooth broadcast information includes the Bluetooth address of the smart watch, the device type, the device signal, etc. When the smart watch sends the broadcast Bluetooth information, the smart watch is in a Bluetooth connectable state to receive the Bluetooth connection request of the mobile phone.
[0264] S102: In response to a first operation of the user in the sports health application, the mobile phone scans for Bluetooth devices within a detection range.
[0265] The mobile phone starts the sports health application, and the main interface of the sports health application is displayed on the display screen. The main interface may include an add device option, and the add device option is used to add a device that establishes a device connection with the mobile phone. In this embodiment, establishing a device connection with the mobile phone is also to bind the device with the mobile phone. Accordingly, the first operation can be a click operation of the user on the main interface of the sports health application for the add device option. Alternatively, the first operation can also be an operation in which the user performs voice input "add device" on the main interface of the sports health application.
[0266] When the mobile phone Bluetooth function is turned on, after receiving the first operation of the user, the mobile phone enters a search state (or scanning state) in response to the first operation, and scans the Bluetooth broadcast information sent by the Bluetooth device within the detection range. The detection range refers to the Bluetooth signal coverage range of the mobile phone.
[0267] S103. The mobile phone displays the scanned Bluetooth device information in the search interface.
[0268] When scanning Bluetooth devices, the mobile phone obtains Bluetooth broadcast information of Bluetooth devices within the detection range. Based on the obtained Bluetooth broadcast information of each Bluetooth device, the mobile phone displays a list of Bluetooth devices to be connected in the search interface of the sports health application, wherein the Bluetooth device list includes information such as the device type and device model of the Bluetooth device.
[0269] Optionally, the mobile phone can also display the scanned Bluetooth device information in the form of a pop-up window in the main interface.
[0270] S104. The mobile phone obtains Bluetooth broadcast information of the smart watch in response to the second operation of the user on the search interface.
[0271] The second operation refers to the operation of the user selecting a target Bluetooth device from the list of Bluetooth devices to be connected in the search interface. The smart watch is the Bluetooth device selected by the user in the Bluetooth device list. In response to the user selecting the smart watch, the mobile phone obtains the Bluetooth broadcast information of the selected smart watch.
[0272] S105. The mobile phone establishes a device connection with the smart watch according to the Bluetooth broadcast information of the smart watch.
[0273] The mobile phone obtains the pairing key of the selected smart watch according to the Bluetooth address in the Bluetooth broadcast information of the selected smart watch. When the mobile phone determines that the pairing key of the selected smart watch is consistent with the preset key of the mobile phone, it initiates a request to establish a Bluetooth connection to the selected smart watch. At this time, the selected smart watch is in a Bluetooth connectable state. When the selected smart watch receives the request to establish a Bluetooth connection sent by the mobile phone, it establishes a Bluetooth connection with the mobile phone, completing the device connection between the selected smart watch and the mobile phone.
[0274] Optionally, the mobile phone may display device information of a Bluetooth device that has established a device connection with the mobile phone on the device connection interface of the sports health application.
[0275] Optionally, the mobile phone may also display device information of the Bluetooth device that has established a device connection with the mobile phone in a pop-up window on the main interface.
[0276] After the smart watch and the mobile phone establish a device connection (second communication connection), the smart watch and the mobile phone are considered to be devices under the same user account, that is, the consistency of the user identity of the smart watch and the mobile phone can be determined.
[0277] When the user identity is confirmed to be consistent, the digital currency wallet management operation can be performed on the smart watch that has established a device connection with the mobile phone. For example, the digital currency wallet in the smart watch can be opened, the digital currency wallet in the smart watch can be cancelled, etc.
[0278] Before performing management operations on the digital currency wallet of the smart watch, the mobile phone needs to establish a first communication connection with the smart watch. In this embodiment, the first communication connection is different from the second communication connection. The first communication connection is mostly used to transmit data and instructions about the digital currency wallet between the mobile phone and the smart watch; the second communication connection is mostly used to transmit data and instructions other than the digital currency wallet between the mobile phone and the smart watch, such as reporting of user health data, finding the location of the smart watch, etc.
[0279] The present application provides a method for managing a digital currency wallet by establishing a first communication connection between a mobile phone and a smart watch. For example, the method can be applied to Figure 4 In a given scenario, Figure 4This includes smart watches and the phones that manage them.
[0280] Optionally, the digital currency wallet can be a variety of digital currency wallets, for example, the digital currency can be RMB, USD, GBP, Won, JPY or other digital currencies. In this embodiment, the digital currency wallet can be a digital RMB wallet as an example, and accordingly, the digital currency framework service in the mobile phone and smart watch is a digital RMB framework service.
[0281] In the scenario where a user opens a digital RMB wallet of a third-party application on a smartwatch, the user opens the third-party application on the smartwatch, and the smartwatch displays the first interface of the third-party application on the display interface.
[0282] Among them, the first interface of the third-party application can be the main interface of the third-party application, that is, the initial interface displayed by default when the third-party application is opened. The first interface of the third-party application includes a first prompt message. Exemplarily, the first prompt message is used to remind the user to open the third-party application in the mobile phone and activate and bind the digital RMB wallet by scanning the QR code in the smart watch. The first interface can also include a control for confirming the activation and binding of the digital RMB wallet. Figure 4 In (a), the first interface 410 of the third-party application of the smart watch includes a first prompt message 411 of "Please open the digital RMB application on your mobile phone and scan the QR code on the watch to bind the digital RMB wallet"; and, at the bottom of the first interface, includes a "Bind Now" control 412 for confirming the activation and binding of the digital RMB wallet.
[0283] After the smart watch receives the user's click on the "Bind Now" control, the smart watch switches from the first interface of the third-party application to the second interface, wherein the second interface includes the payment agreement provided by the third-party application and a confirmation control for indicating that the user agrees to the payment. Figure 4 In (b), the second interface 420 of the third-party application of the smart watch displays a "payment agreement" 421 and a prompt message 422 of "For details, please refer to the digital RMB payment agreement in the third-party application on the mobile phone". In addition, the second interface also includes an "agree" control 423.
[0284] After the smart watch receives the user's click on the "Agree" control operation, the smart watch can return to the first interface 410 and display the QR code information in a pop-up window, or the smart watch switches from the second interface of the third-party application to the third interface and displays the QR code information in the third interface. Figure 4In (c), the smartwatch displays a QR code 431 in the third interface 430 of the third-party application, and a prompt message 432 of "Scan the QR code to bind the digital RMB wallet". The QR code displayed by the smartwatch includes the device information of the smartwatch, and the device information includes the Bluetooth address of the smartwatch, the personal identification number (PIN code), and the model of the smartwatch.
[0285] The smart watch displays the QR code information on the third interface of the third-party application. Users can use the scanning function in the third-party application on the mobile phone to scan the QR code to activate and bind the RMB digital wallet of the third-party application in the smart watch.
[0286] For example, the first interface of the third-party application in the mobile phone can refer to Figure 5 As shown in (a) of FIG. 1 , the first interface 510 of the third-party application of the mobile phone includes a control "Scan" 511 for scanning a code. After the mobile phone receives the operation of the user clicking the "Scan" control, it switches to the second interface of the third-party application of the mobile phone. The second interface of the third-party application of the mobile phone can be referred to Figure 5 The second interface 520 of the third-party application of the mobile phone is a code scanning interface in the third-party application, and the second interface includes a scanning area 521, a control 522 for lighting a flashlight, a control 523 for returning to the previous interface, a control 524 for entering the album, and a prompt message "aim at the QR code to scan in the box" 525 for prompting the user to scan the QR code.
[0287] The mobile phone scans the QR code on the display interface of the smart watch, obtains the device information of the smart watch in the QR code, and enters the operation of opening the digital RMB wallet of the third-party application bound to the smart watch. During the process of opening the digital RMB wallet of the third-party application bound to the smart watch, the mobile phone can switch to the third interface of the third-party application. Figure 5 In (c), the third interface 530 of the third-party application of the mobile phone includes a prompt message 531 for prompting the user to keep the screen of the smart watch lit.
[0288] After the mobile phone has completed the opening and binding of the digital RMB wallet of the third-party application of the smart watch, the smart watch can be Figure 4 The interface 430 displaying the QR code in (c) is switched to the fourth interface. Figure 6 (a) in which the fourth interface 440 of the smart watch may include prompt information for prompting the user to complete the opening and binding of the digital RMB wallet of the third-party application of the smart watch and a confirmation control for confirming the completion of the binding. For example, Figure 6(a) includes a prompt message 441 of “activation successful” and an “OK” control 442 .
[0289] After receiving the user's operation of clicking the "OK" control 442, the smart watch switches to the display interface of the digital RMB wallet. Figure 6 In (b), the display interface 450 of the digital RMB wallet can display the balance details 451 of the digital RMB wallet.
[0290] Correspondingly, after the mobile phone completes the opening and binding of the digital RMB wallet of the third-party application of the smart watch, the display interface of the mobile phone can be changed to Figure 5 The interface 530 displayed in (c) switches to the fourth interface of the third-party application of the mobile phone. The fourth interface is used to prompt the user that the digital RMB wallet of the smart watch has been successfully opened and bound. Figure 7 In (a), the fourth interface 540 of the third-party application of the mobile phone includes a prompt message 541 "Digital RMB wallet opened successfully" for prompting the user that the digital RMB wallet of the smart watch has been successfully opened and bound, a setting 542 for the payment limit of the digital RMB wallet of the smart watch, and other function setting controls for the digital RMB wallet. For example, refer to Figure 7 In (a), the fourth interface 540 of the third-party application of the mobile phone includes a function setting control 543 for prompting the user whether to set the wallet as the default wallet. In addition, the fourth interface may also include a control 544 "Get Digital RMB" for recharging the digital RMB wallet. When the mobile phone receives the user's operation of clicking the control, it enters the recharging interface of the digital RMB wallet and performs the recharging operation of the digital RMB.
[0291] Optionally, users can view the bound digital RMB wallet in the wallet management interface of the third-party application on the mobile phone. The wallet management interface of the third-party application on the mobile phone can be referenced Figure 7 Interface 550 shown in (b) in the figure. Wallet management interface 550 includes a list of bound digital RMB wallets, which includes a list of mobile devices and a card list option. When the mobile phone receives an operation of the user clicking on the mobile device option, the information of other mobile devices bound to the mobile phone is displayed on the wallet management interface. For example, the icon of the smart watch bound to the mobile phone, the name of the smart watch, the name of the digital RMB wallet bound to the smart watch, and other information are displayed.
[0292] After completing the opening, binding and recharging of the digital RMB wallet on the smartwatch, users can enter the third-party application of the smartwatch to complete the payment through NFC when using the smartwatch to make payments. When paying, users no longer need to point the camera of the smartwatch at the payment QR code to pay, which improves the convenience of user payment and optimizes the user experience.
[0293] In some embodiments, in the management method of the digital currency wallet provided in the present application, the process of activating and binding the digital RMB wallet of the third-party application of the smart watch by scanning the QR code displayed by the mobile phone is further explained in combination with the various modules in the mobile phone and the various modules in the smart watch.
[0294] refer to Figure 8 , Figure 8 A system overall architecture diagram of a method for managing a digital RMB wallet of an execution device is provided. Figure 8 The system includes a mobile phone, a smart watch, a first server, a second server and a third server.
[0295] Among them, the first server is the host server of the mobile phone. Exemplarily, the first server can be a Trusted Service Manager (TSM) server. The business functions of the TSM server generally include security domain management, application management, user management, and eSE chip management. In this embodiment, the TSM server is used to provide secret keys for the mobile phone, receive requests sent by the mobile phone, and return corresponding instructions to the mobile phone based on the received requests. Among them, the request sent by the mobile phone includes a request for creating an auxiliary security domain. Among them, the auxiliary security domain is an area in the smart watch that provides storage space for third-party program packages corresponding to the digital RMB wallet.
[0296] In the embodiment of the present application, the TSM server can provide a secret key for the mobile phone and send the secret key to the mobile phone. The TSM server can also receive a request sent by the mobile phone to create an auxiliary security domain, and send a download instruction stream encrypted based on the secret key to the mobile phone. After receiving the encrypted download instruction stream, the mobile phone decrypts it based on the secret key, and sends the decrypted download instruction stream to the smart watch, completing the creation of the auxiliary security domain in the smart watch.
[0297] The third server may be a key management service (KMS server), and the third server provides a key management service for the first server.
[0298] Figure 8 In the mobile phone, third-party applications and sports and health applications installed in the operating system are included. The first digital RMB framework service is deployed in the mobile phone, among which the first digital RMB framework service is implemented based on the DCEP ARR package. The first digital RMB framework service stipulates the DCEP interface, Bluetooth communication AIDL interface and Bluetooth application protocol.
[0299] In some embodiments, the sports health application of the mobile phone communicates with the third-party application of the mobile phone through the DCEP interface to realize the transmission of instructions or data between the third-party application of the mobile phone and the sports health application. For example, the third-party application of the mobile phone calls the DCEP interface to send a digital RMB wallet instruction to the sports health application of the mobile phone, wherein the digital RMB wallet instruction includes the creation of auxiliary security domain instructions, downloading digital RMB wallet instructions, wallet program instructions, and adding digital RMB wallet instructions, etc. Optionally, the third-party application of the mobile phone can also negotiate the session key with the smart watch through the HiChain ARR mechanism of the sports health application, wherein the session key can be used to encrypt the transmitted data or instructions.
[0300] In some embodiments, the sports health application of the mobile phone communicates with the smart watch through the Bluetooth communication AIDL interface. Exemplarily, the sports health application of the mobile phone establishes a device connection with the smart watch through the Bluetooth communication AIDL interface to achieve device binding between the mobile phone and the wearable device. In the device binding scenario, the smart watch can report the monitored user's physiological characteristic data to the mobile phone through the Bluetooth communication AIDL interface.
[0301] Based on the Bluetooth communication AIDL interface provided in the sports and health application for data transmission with the smart watch, the sports and health application can reuse the Bluetooth communication AIDL interface to achieve the effect of sending digital RMB wallet instructions to the smart watch.
[0302] Specifically, the DCEP ARR package of the mobile phone's sports and health application can receive the digital RMB wallet instructions issued by the mobile phone's third-party application through the DCEP interface. The DCEP ARR package sends the digital RMB wallet instructions to the third-party application of the smart watch by reusing the Bluetooth communication AIDL interface, so that the third-party application of the smart watch calls the corresponding interface according to the received digital RMB wallet instructions to perform corresponding operations in the eSE chip.
[0303] Figure 8 In the smartwatch, the third-party application installed in the operating system of the smartwatch. Among them, the second digital RMB framework service is deployed in the smartwatch. The second digital RMB framework service of the smartwatch also stipulates the Bluetooth application protocol for communication between the smartwatch and the mobile phone, the interface for communication between the third-party application of the smartwatch and the eSE chip, and the HiChain SDK, etc. Among them, the interface for communication between the third-party application of the smartwatch and the eSE chip includes the interface for activating the digital RMB wallet program (DCEP Applet), the data / command sending and receiving interface, etc. The data / command sending and receiving interface includes the application protocol data unit (APDU) instruction sending and receiving interface. Figure 8 The smartwatch also includes an NFC chip, which can be used for close-range payment after the smartwatch is activated and bound to the digital RMB wallet.
[0304] In some embodiments, for example, when the digital RMB wallet instruction is an instruction to download the digital RMB wallet program (an instruction to download the DCEP Applet), the third-party application of the smart watch can reuse the Bluetooth communication AIDL interface and receive the DCEP Applet download instruction transmitted by the sports health application of the mobile phone based on the Bluetooth application protocol, and send the DCEP Applet download instruction to the eSE chip through the interface that communicates with the eSE chip. The DCEP Applet download instruction received by the eSE chip completes the download of the DCEP Applet.
[0305] The second server is the upper server of the third-party application, which is used to provide the third-party application with the function of implementing the digital RMB wallet management. For example, the third-party application of the mobile phone can send a request to download the digital RMB wallet program to the second server, and the third-party application of the mobile phone receives the instruction to download the digital RMB wallet program returned by the second server.
[0306] In this application, when a Bluetooth communication AI DL interface for data transmission with a smart watch is provided in the sports health application of the mobile phone, a digital framework service is deployed in the sports health application. While realizing the reuse of the Bluetooth communication AI DL interface provided by the sports health application, the mobile phone can also manage the digital RMB wallet of the smart watch through the sports health application.
[0307] It should be noted that the Bluetooth communication AI DL interface provided in the sports health application of the mobile phone can also be other interfaces, such as a customized SDK interface of a wearable device that can be bound and connected to the mobile phone, etc.
[0308] In this embodiment, reusing the interface for data transmission with a smart watch provided in the sports and health application of the mobile phone can optimize the deployment resources of the overall architecture of the mobile phone, while also reducing the maintenance cost of the digital RMB wallet management service and the device management service for wearable devices provided by the sports and health application.
[0309] Fig. 9The overall system architecture diagram of another method for managing the digital RMB wallet of an execution device is given. The architecture of the mobile phone includes an application layer (APP), a framework layer (FWK), a trusted layer (TEE) and an eSE chip. Among them, the APP includes a third-party application, and the third-party application can transmit data with its corresponding second server and the first server. FWK provides functions such as eSE-SDK extension, first communication connection, second communication connection, digital RMB wallet eSE-SDK interface specification, first digital RMB framework service, unified authentication control and OMA API interface specification. TEE provides card activation, password lock or pattern lock services. The eSE chip includes an IP service device (ISD), a digital RMB authorized management security domain (AMSD), a digital RMB program (DCEP Applet) installed in the digital RMB AMSD, and a verification program (CRS Applet).
[0310] The first communication connection between the mobile phone and the smart watch is used to realize the transmission of management data or instructions of the digital RMB wallet between the mobile phone and the smart watch. The second communication connection between the mobile phone and the smart watch is used to realize the transmission of data other than the management data and instructions of the digital RMB wallet between the mobile phone and the smart watch, such as the transmission of user sports health data and the transmission of the smart watch location.
[0311] Third-party applications can manage the digital RMB wallet of the mobile phone itself by calling the first digital RMB framework service according to the digital RMB wallet eSE-SDK interface specification. For example, third-party applications can create / delete digital RMB AMSD in the eSE chip of the mobile phone and install / delete DCEP Applet in the digital RMB AMSD through interaction with the first digital RMB framework service, OMA API and unified authentication controls to manage the digital RMB wallet in the mobile phone.
[0312] In this embodiment, the third-party application manages the digital RMB wallet in the smart watch through the first communication connection by calling the first digital RMB framework service.
[0313] Fig. 9 The smartwatch shown includes an operating system and an eSE chip. The operating system includes third-party applications, and the second digital RMB framework service, authentication and encryption and decryption modules, and an interface for third-party applications to communicate with the eSE chip are deployed in the operating system. The interface for third-party applications to communicate with the eSE chip includes an interface for activating the digital RMB wallet program (DCEP Applet), a data / instruction receiving and sending interface, etc.
[0314] The authentication and encryption / decryption module is used to decrypt the data or instructions received from the mobile phone; and to encrypt the data or instructions sent to the mobile phone.
[0315] The eSE chip of the smart watch includes ISD, DCEP AMSD, DCEP Applet installed in DCEP AMSD, and CRS Applet.
[0316] In this embodiment, the third-party application of the mobile phone communicates with the smart watch through the Bluetooth application protocol agreed upon by the first communication connection by calling the first digital RMB framework service. The third-party application of the mobile phone communicates with the second digital RMB framework service of the smart watch through the first digital RMB framework service to create / delete DCEP AMSD in the eSE chip of the smart watch, install / delete DCEP Applet in DCEP AMSD, and fill in information of the digital RMB wallet in the smart watch, thereby realizing the management of the digital RMB wallet in the smart watch.
[0317] In some embodiments, Fig.10 A flowchart of a method for managing a digital RMB wallet of a device is given. When a mobile phone and a smart watch establish a second communication connection, that is, the mobile phone and the smart watch are in a device binding state, the mobile phone can monitor the user's physiological characteristics data, etc. through the smart watch. The user can manage the digital RMB wallet of the smart watch bound to the mobile phone. Reference Fig.10 , taking the execution subjects including third-party applications of mobile phones, digital RMB framework services of mobile phones and smart watches, and third-party applications of smart watches as an example, including:
[0318] S201. The smart watch displays a QR code on a display interface of a third-party application.
[0319] The QR code includes the Bluetooth address and PIN code of the smart watch. Optionally, the mobile phone and the smart watch can negotiate through HiChian based on the PIN code to generate a session key, which is used to provide encryption or decryption data support during data transmission.
[0320] In some embodiments, the smartwatch has not opened a digital RMB wallet, and the smartwatch displays a QR code on the display interface of a third-party application. Figure 4 (c) interface 430; if the smart watch has opened a digital RMB wallet, the smart watch will display the balance of the digital RMB wallet on the display interface of the third-party application, refer to Figure 6 (b) interface 450.
[0321] S202. A third-party application on the mobile phone obtains device information of the smart watch by scanning the QR code.
[0322] In some embodiments, the third-party application of the mobile phone scans the QR code of the smart watch to obtain the Bluetooth address of the smart watch, the security link code (PIN code), the name of the third-party application of the smart watch, etc. Optionally, the third-party application can store information such as the Bluetooth address and PIN code in a designated storage space.
[0323] S203. The third-party application of the mobile phone sends a device initialization connection request to the digital RMB framework service of the mobile phone.
[0324] After scanning the QR code to obtain the device information of the smart watch, the mobile phone confirms the name of the third-party application of the smart watch. Execute to establish a first communication connection with the smart watch. In some embodiments, the third-party application can send a device initialization connection request to the first digital RMB framework service of the mobile phone to establish a first communication connection between the mobile phone and the smart watch. It should be noted that the first communication connection established in this embodiment is different from the second communication connection between the mobile phone and the smart watch. The second communication connection between the mobile phone and the smart watch is used to receive health data uploaded by the smart watch, such as heart rate, number of steps, etc. The first communication connection established in this embodiment is used to manage the digital RMB wallet of the smart watch.
[0325] Among them, the device initialization connection request can carry device information such as the Bluetooth address and PIN code of the smart watch. The first digital RMB framework service of the mobile phone establishes a first communication connection with the smart watch according to the device information carried in the device initialization connection request.
[0326] Optionally, the third-party application of the mobile phone can call the device initialization connection interface in the DCEP AIDL interface to send a device initialization connection request to the first digital RMB framework service of the mobile phone's sports health application. The first digital RMB framework service of the mobile phone's sports health application calls the Bluetooth communication AIDL interface to send a device initialization connection request to the smart watch to establish the first communication connection.
[0327] Exemplarily, the device initialization connection interface in the DCEP AIDL interface can be defined as intInitConnectDevices(String packageName,String channelAddr,String pinStr,DcepConnectionListener listener). This interface is used to initialize the smart watch device and bind and add the digital RMB wallet.
[0328] The parameters passed to the device initialization connection interface are shown in Table 1 below:
[0329] Table 1
[0330]
[0331]
[0332] The identifier of the third-party application may be the package name of the third-party application.
[0333] The return value of the device initialization connection is:
[0334] Table 2
[0335] Return Value illustrate 0 success 1 fail
[0336] The first callback parameter listener defined in the device initialization connection interface indicates that the device initialization connection of the smart watch is successful when the first callback parameter listener is 0, and indicates that the device initialization connection of the smart watch fails when the first callback parameter listener is 1. The first callback parameter is used to instruct the smart watch to return a corresponding connection response after establishing the first communication connection.
[0337] When the third-party application on the mobile phone receives the return value of the first callback parameter listener returned by the first digital RMB framework service of the mobile phone and the return value is 0, it confirms that the mobile phone and the smart watch have established the first communication connection for digital RMB wallet management, and the third-party application on the mobile phone sends an instruction to open a digital RMB wallet to the smart watch.
[0338] In some embodiments, the mobile phone sends a digital RMB wallet opening instruction to the smart watch, and after receiving the digital RMB wallet opening instruction, the smart watch performs the corresponding operation of opening the digital RMB wallet. After the operation of opening the digital RMB wallet is completed, a corresponding response is returned to the mobile phone, so that the mobile phone synchronizes the opening status of the digital RMB wallet in the smart watch.
[0339] In some embodiments, to open a digital RMB wallet in a smart watch, it is necessary to create a secure space for storing the digital RMB wallet in the smart watch, download the execution program of the digital RMB wallet in the smart watch, and add relevant information of the digital RMB wallet in the smart watch.
[0340] Accordingly, the mobile phone can send a command to create an auxiliary security domain to the smart watch, so as to create a secure space for storing the digital RMB wallet in the smart watch. The mobile phone can send a command to download the digital RMB program to the smart watch, so as to download the execution program of the digital RMB wallet in the smart watch. The mobile phone can send a command to add a digital RMB wallet to the smart watch, so as to add the relevant information of the digital RMB wallet in the smart watch.
[0341] In some embodiments, the mobile phone sends an instruction to the smart watch to open a digital RMB wallet, which includes the mobile phone sending instructions to the smart watch to create an auxiliary security domain, download the digital RMB program, and add a digital RMB wallet.
[0342] In order to ensure that the digital RMB wallet is successfully added to the security space of the smart watch, preferably, after the mobile phone sends the instruction to create an auxiliary security domain to the smart watch, upon receiving the return response of successful creation, it sends the instruction to download the digital RMB program to the smart watch. Upon receiving the return response of successful download, the instruction to add a digital RMB wallet is sent to the smart watch.
[0343] Optionally, in the process of opening a digital RMB wallet on a smart watch, the interaction of other instructions may also be involved to enable the activation of other functions. This embodiment does not limit which specific instructions are included in the instructions for opening a digital RMB wallet.
[0344] In some embodiments, during the interactive process of the mobile phone sending a command to open a digital RMB wallet to the smart watch and receiving the return response of the smart watch to the command, the mobile phone can synchronize the return response of the smart watch to the corresponding server in a timely manner to achieve synchronization of the digital RMB wallet status between the server, the mobile phone and the smart watch. For example, the success or failure status of the smart watch in creating an auxiliary security domain is synchronized to the first server; the success or failure status of the smart watch in downloading the digital RMB program is synchronized to the second server, and so on.
[0345] Here, the first server and the second server may be the same server; or, depending on the services provided by the server and the providers of the server, the first server and the second server may be different servers.
[0346] Here is an example of the order in which the mobile phone sends instructions to create an auxiliary security domain, download the digital RMB program, and add a digital RMB wallet to the smart watch:
[0347] S204. The third-party application on the mobile phone sends instructions to create an auxiliary security domain to the digital RMB framework service of the mobile phone.
[0348] The supplementary security domain (SSD) can be the authenticated management security domain (AMSD) for the digital RMB. The supplementary security domain is used to provide secure storage space for the digital RMB wallet in the smartwatch.
[0349] Fig.11 An interactive flow chart for creating an auxiliary security domain in a smart watch is provided. In some embodiments, a third-party application can send an instruction to create an auxiliary security domain to the first digital RMB framework service of the mobile phone. The first digital RMB framework service receives the instruction to create an auxiliary security domain, sends a request to create an auxiliary security domain to the first server, and receives at least one instruction to create an auxiliary security domain returned by the first server. The first digital RMB framework service sends each instruction to create an auxiliary security domain to the second digital RMB framework service of the smart watch to create an auxiliary security domain in the smart watch. After receiving the successful creation response returned by the second digital RMB framework service of the smart watch, the first digital RMB framework service returns the successful creation response to the third-party application of the mobile phone.
[0350] Specifically include:
[0351] Before a third-party application on a mobile phone sends an instruction to create an auxiliary security domain to the first digital RMB framework service of the mobile phone, the third-party application on the mobile phone can first send an instruction to open a smart watch data channel to the first digital RMB framework service of the mobile phone.
[0352] Optionally, a third-party application can call the DCEP AIDL interface to open the smart watch data channel interface and send an instruction to open the smart watch data channel to the first digital RMB framework service of the mobile phone.
[0353] Based on the agreed Bluetooth application protocol, the first digital RMB framework service of the mobile phone sends an instruction to open the smart watch data channel to the second digital RMB framework service of the smart watch through the Bluetooth communication AIDL interface, and receives a response returned by the smart watch.
[0354] Exemplarily, the interface for opening the smartwatch data channel in the DCEP AIDL interface can be defined as intOpenLogicChannel(), which is used to open the data logical channel of the smartwatch. The return value of the response returned by the smartwatch received by the first digital RMB framework service of the mobile phone includes:
[0355] Table 3
[0356] Return Value illustrate 0 success 1 fail
[0357] When the return value is 0, it means that the data channel of the smart watch is successfully opened. In this case, the third-party application of the mobile phone calls the create auxiliary security domain interface in the DCEP AIDL interface and sends an instruction to create an auxiliary security domain to the first digital RMB framework service of the mobile phone.
[0358] Exemplarily, the interface for creating an auxiliary security domain can be defined as int createSSDForWatch(Stringorganization,String ssdAid,String ssdSignData,String syncSignData,StringtimeStamp). This interface is used to initialize the eSE chip of the smart watch, create an auxiliary security domain, initialize the auxiliary security domain key, and write information through access router-access control.
[0359] The parameters for creating the auxiliary security domain interface are shown in Table 4 below:
[0360] Table 4
[0361]
[0362]
[0363] The payer's identifier can be the payer's organization name. The third-party application identifier can be the third-party application package name. The signature result is encrypted using the SM2 algorithm, and the format can be EX_CREATESSDACTION (a fixed string) || third-party application package name || timeStamp (the current time from 1970.1.0).
[0364] After receiving the instruction to create an auxiliary security domain, the first digital RMB framework service of the mobile phone sends a request to create an auxiliary security domain to the first server to obtain at least one instruction to create an auxiliary security domain returned by the first server. Exemplarily, the first server may generate one or more instructions to create an auxiliary security domain, and send the one or more instructions to create an auxiliary security domain to the first digital RMB framework service of the mobile phone in sequence.
[0365] Every time the first digital RMB framework service of the mobile phone receives an instruction to create a secondary security domain, it will send this instruction to create a secondary security domain to the second digital RMB framework service of the smart watch through the Bluetooth communication AIDL interface based on the agreed Bluetooth application protocol until all instructions to create a secondary security domain are sent to the second digital RMB framework service of the smart watch.
[0366] The second digital RMB framework service of the smart watch sends each received instruction to create an auxiliary security domain to the eSE chip, and the eSE chip receives the instruction to create an auxiliary security domain to complete the creation of the auxiliary security domain. The eSE chip returns a successful creation response to the second digital RMB framework service of the smart watch, and the second digital RMB framework service of the smart watch returns a successful creation response to the first digital RMB framework service of the mobile phone.
[0367] The first digital RMB framework service of the mobile phone can send a successful creation response to the third-party application of the mobile phone, and at the same time send a successful creation response to the first server, thereby realizing the status synchronization of creating an auxiliary security domain in the first server, mobile phone and smart watch.
[0368] Optionally, the return value of the response returned by the eSE chip according to the instruction to create an auxiliary security domain includes:
[0369] Table 5
[0370] Return Value illustrate 0 success 1 fail 2 Whitelist configuration failed 3 Signature verification failed 4 Network Error 7 No eSE support 8 Device not connected
[0371] When the return value is 0, it means that the auxiliary security domain is successfully created in the eSE chip of the smart watch.
[0372] After completing the creation of the auxiliary security domain in the smartwatch, the third-party application can call the interface for closing the smartwatch data channel in the DCEP AIDL interface and send a command to close the smartwatch data channel to the first digital RMB framework service of the mobile phone. The first digital RMB framework service of the mobile phone sends a command to close the smartwatch data channel to the second digital RMB framework service of the smartwatch through the Bluetooth communication AIDL interface, and receives the response returned by the smartwatch.
[0373] For example, the interface for closing the smartwatch data channel in the DCEP AIDL interface can be defined as intCloseLogicChannel(), which is used to close the data logical channel of the smartwatch. After receiving the instruction to close the smartwatch data channel, the smartwatch sends a return value to the mobile phone, and the return value includes:
[0374] Table 6
[0375] Return Value illustrate 0 success 1 fail
[0376] When the return value is 0, it means that the data channel of the smart watch is successfully closed.
[0377] After completing the creation of the auxiliary security domain in the smart watch, the third-party application of the mobile phone downloads the digital RMB wallet program in the auxiliary security domain of the smart watch.
[0378] S205. The third-party application of the mobile phone sends an instruction to download the digital RMB wallet program to the first digital RMB framework service of the mobile phone.
[0379] Among them, the instruction for downloading the digital RMB wallet program can be an instruction for downloading the DCEP Applet, and the instruction for downloading the DCEP Applet is an APDU command.
[0380] Fig.12 An interactive flow chart for downloading the DCEP Applet is provided. In some embodiments, the third-party application of the mobile phone can send a request to download the DCEP Applet to the second server, and the third-party application of the mobile phone receives a first instruction of the download DCEP Applet instruction returned by the second server.
[0381] Among them, the first instruction of downloading the DCEP Applet instruction is used to verify whether the first communication connection between the smart watch and the mobile phone is communicating normally.
[0382] The third-party application of the mobile phone sends the first instruction of downloading the DCEP Applet instruction to the first digital RMB framework service of the mobile phone, and the first digital RMB framework service of the mobile phone sends the received first instruction of downloading the DCEP Applet instruction to the second digital RMB framework service of the smart watch to obtain the return data of the smart watch for the first instruction of downloading the DCEP Applet instruction. After receiving the return data from the smart watch, the first digital RMB framework service of the mobile phone sends the return data to the third-party application of the mobile phone, and the third-party application of the mobile phone reports the return data to the second server.
[0383] After the return data indicates that the smart watch and the mobile phone have successfully established a first communication connection, the second server sends a second instruction to download the DCEP Applet instruction to the third-party application of the mobile phone. The second instruction to download the DCEP Applet instruction is used to download the DCEP Applet. After multiple transmissions of the second instruction to download the DCEP Applet instruction, the operation of downloading the DCEP Applet in the auxiliary security domain of the smart watch is realized.
[0384] Specifically include:
[0385] Before the third-party application of the mobile phone sends a request to download the DCEP Applet to the second server, the third-party application of the mobile phone can first send an instruction to open the smart watch data channel to the first digital RMB framework service of the mobile phone. Similar to creating an auxiliary security domain, the third-party application can call the DCEP AIDL interface to open the smart watch data channel interface intOpenLogicChannel() to send an instruction to open the smart watch data channel to the first digital RMB framework service of the mobile phone. Based on the agreed Bluetooth application protocol, the first digital RMB framework service of the mobile phone sends an instruction to open the smart watch data channel to the second digital RMB framework service of the smart watch through the Bluetooth communication AIDL interface, and receives the response returned by the smart watch.
[0386] Referring to Table 3, when the return value of the response received by the third party is 0, it indicates that the data channel of the smart watch is successfully opened.
[0387] The third-party application of the mobile phone sends a request to download the DCEP Applet to the second server, and the third-party application of the mobile phone receives a first instruction of at least one instruction to download the DCEP Applet returned by the second server.
[0388] Third-party applications on mobile phones can call the data sending and receiving command interface in the DCEP AIDL interface to send at least one first instruction to download the DCEP Applet instruction to the first digital RMB framework service of the mobile phone.
[0389] Exemplarily, the data sending and receiving command interface in the DCEP AIDL interface can be defined as int SendData(byte[]Data,ResCallback handler), which is used to send data and receive return status and return data.
[0390] The input parameters of the data transmission and reception command interface are shown in Table 7 below:
[0391] Table 7
[0392] Parameter name Parameter Type Parameter Description Data byte[] Input, byte array to be sent handler ResCallback Input, callback function
[0393] Among them, handler is the defined second callback parameter. After the second callback parameter user receives the instruction to download DCEPApplet, it sends the return status and return data to the sender.
[0394] After the first digital RMB framework service of the mobile phone receives at least one first instruction to download the DCEP Applet instruction, it sends each first instruction to download the DCEP Applet instruction to the second digital RMB framework service of the smart watch through the Bluetooth communication AIDL interface based on the agreed Bluetooth application protocol until all first instructions to download the DCEP Applet instructions are sent to the second digital RMB framework service of the smart watch.
[0395] The second digital RMB framework service of the smart watch sends the first instruction of each received DCEP Applet download instruction to the eSE chip. The eSE chip receives the first instruction of the DCEP Applet download instruction and sends return data to the second digital RMB framework service of the smart watch.
[0396] The second digital RMB framework service of the smartwatch sends return data to the first digital RMB framework service of the mobile phone through the Bluetooth communication AIDL interface based on the agreed Bluetooth application protocol, and the first digital RMB framework service of the mobile phone sends return data to the third-party application of the mobile phone. The third-party application of the mobile phone confirms that the communication connection of the smartwatch is successful based on the return data, and sends the first instruction to download the DCEP Applet instruction to run successfully.
[0397] In this case, the third-party application of the mobile phone sends a response of successful operation to the second server, so that the second server returns a second instruction to download the DCEP Applet instruction.
[0398] Third-party applications on mobile phones can call the data sending and receiving command interface int SendData(byte[]Data,ResCallback handler) in the DCEP AIDL interface to send at least one second instruction to download the DCEP Applet instruction to the first digital RMB framework service of the mobile phone.
[0399] After the first digital RMB framework service of the mobile phone receives at least one second instruction for downloading the DCEP Applet instruction, it sends each second instruction for downloading the DCEP Applet instruction to the second digital RMB framework service of the smart watch through the Bluetooth communication AIDL interface based on the agreed Bluetooth application protocol until all second instructions for downloading the DCEP Applet instruction are sent to the second digital RMB framework service of the smart watch.
[0400] The second digital RMB framework service of the smart watch sends each second instruction received for downloading the DCEP Applet to the eSE chip. The eSE chip receives the second instruction for downloading the DCEP Applet, completes the download and installation of the DCEPApplet, and sends return data to the second digital RMB framework service of the smart watch.
[0401] The second digital RMB framework service of the smartwatch sends return data to the digital RMB framework service of the mobile phone through the Bluetooth communication AIDL interface based on the agreed Bluetooth application protocol, and the first digital RMB framework service of the mobile phone sends return data to the third-party application of the mobile phone. The third-party application of the mobile phone confirms the successful communication connection of the smartwatch based on the return data, and sends the return data of the second instruction of the smartwatch for downloading the DCEP Applet instruction.
[0402] After multiple times, the third-party application of the mobile phone obtains the second instruction to download the DCEP Applet from the second server, and sends the second instruction to download the DCEP Applet to the eSE chip of the smart watch through the second digital RMB framework service of the mobile phone and the smart watch, thereby realizing the operation of downloading and installing the DCEP Applet in the auxiliary security domain of the eSE chip.
[0403] Optionally, the return value of the eSE chip according to the second instruction of the download DCEP Applet instruction includes:
[0404] Table 8
[0405]
[0406]
[0407] When the return value is 0, it means that the DCEP Applet is downloaded and installed successfully in the eSE chip of the smart watch.
[0408] After completing the download and installation of the DCEP Applet on the smart watch, third-party applications can call the DCEP AIDL interface to close the smart watch data channel interface int CloseLogicChannel(), and send an instruction to close the smart watch data channel to the mobile phone's digital RMB framework service.
[0409] Referring to Table 6, when the return value is 0, it means that the data channel of the smart watch is successfully closed.
[0410] In some embodiments, the third-party application of the mobile phone will promptly report the received return data and return response of the smart watch to the second server, so as to achieve status synchronization among the second server, the third-party application of the mobile phone and the smart watch.
[0411] Fig.13 A schematic diagram of the architecture for synchronizing the status of a third-party application of a mobile phone with a second server and a smart watch is given. In the process of downloading and installing the DCEP Applet on the smart watch, the third-party application of the mobile phone can promptly report the return data of the first instruction of the smart watch for downloading the DCEP Applet instruction and the return data of the second instruction of the smart watch for downloading the DCEP Applet instruction to the second server, so that the second server can promptly obtain the status of the smart watch downloading and installing the DCEP Applet. For example, when the return value in the return data is 0, it means that the smart watch has successfully downloaded and installed the DCEP Applet; when the return value in the return data is 1, it means that the smart watch has failed to download and install the DCEP Applet.
[0412] Timely status synchronization can avoid the information asymmetry problem of the second server or the third-party application of the mobile phone. The second server and the third-party application of the mobile phone record the correct status of the smart watch, which can achieve better device management of the smart watch.
[0413] In some embodiments, the DCEP Applet in the smartwatch needs to be updated. For example, the second server releases a new version of the DCEP Applet. In this case, the third-party application of the mobile phone needs to update and replace the DCEP Applet version of the smartwatch that has downloaded and installed the DCEP Applet.
[0414] Fig.14 An interactive flowchart for updating and downloading the DCEP Applet in a smartwatch is provided, including:
[0415] The third-party application of the mobile phone sends an instruction to obtain the device list to the first digital RMB framework service of the mobile phone to obtain the device list information of the smart watch bound to the mobile phone.
[0416] Among them, third-party applications on mobile phones can call the device list acquisition interface in the DCEP AIDL interface and send instructions to obtain the device list to the first digital RMB framework service of the mobile phone.
[0417] For example, the interface for obtaining the device list can be defined as String GetDeviceList(), which is used to obtain the device list information of all smart watches bound to the sports health application of the mobile phone. The return data of this interface is the device list information in JSON format.
[0418] The third-party application of the mobile phone obtains the device list information of all bound smart watches returned by the first digital RMB framework service (sports and health application) of the mobile phone, and can compare it with the device list information stored by the third-party application to determine the intersection between the device list information stored by the third-party application and the device list information of all bound smart watches returned by the sports and health application. The devices in the intersection mean that they are bound to the mobile phone and have opened a digital RMB wallet. In other words, the devices in the intersection are devices that have downloaded and installed the DCEP Applet.
[0419] Optionally, the device list information of all bound smart watches is displayed in the display interface.
[0420] After obtaining the device list information of the bound and opened digital RMB wallet, the third-party application of the mobile phone calls the device connection interface in the DCEP AIDL interface to send a device connection instruction to the first digital RMB framework service of the mobile phone. Exemplarily, the device connection interface can be defined as int ConnectDevices(String packageName,String channelAddr,DcepConnectionListenerlistener), where the input parameters in the device connection interface include:
[0421] Table 9
[0422]
[0423]
[0424] The device connection interface defines a callback parameter listener. When the callback parameter listener is 0, it indicates that the device connection of the smart watch is successful. When the callback parameter listener is 1, it indicates that the device connection of the smart watch fails.
[0425] Refer to the following description of the return value:
[0426] Table 10
[0427] Return Value illustrate 0 success 1 fail
[0428] The first digital RMB framework service of the mobile phone sends a device connection instruction to the digital RMB framework service of the smart watch, and negotiates the session key between the mobile phone and the smart watch. The session key is stored in the smart watch and the mobile phone. The first digital RMB framework service of the mobile phone receives the callback parameter returned by the second digital RMB framework service of the smart watch, and returns the callback parameter to the third-party application of the mobile phone. When the callback parameter listener is 0, it indicates that the device connection of the smart watch is successful.
[0429] Optionally, a third-party application of the mobile phone can output a prompt message indicating that the device is successfully connected on the display interface.
[0430] After the third-party application of the mobile phone confirms that the smart watch and the mobile phone have successfully established a first communication connection, the third-party application of the mobile phone obtains the download DCEP Applet instruction from the second server. The version of the DCEP Applet involved in this embodiment is higher than or equal to the version of the DCEP Applet downloaded in the smart watch.
[0431] The third-party application of the mobile phone can call the DCEP AIDL interface to open the smart watch data channel interface intOpenLogicChannel() to send an instruction to open the smart watch data channel to the first digital RMB framework service of the mobile phone. Based on the agreed Bluetooth application protocol, the first digital RMB framework service of the mobile phone sends an instruction to open the smart watch data channel to the second digital RMB framework service of the smart watch through the Bluetooth communication AIDL interface, and receives the response returned by the smart watch.
[0432] Referring to Table 3, when the return value of the response received by the third party is 0, it indicates that the data channel of the smart watch is successfully opened.
[0433] The third-party application of the mobile phone obtains the download DCEP Applet instruction from the second server, calls the DCEP AIDL interface to send and receive data command interface int SendData (byte[]Data, ResCallback handler), and sends each download DCEP Applet instruction to the first digital RMB framework service of the mobile phone. The transmission parameters of the data command interface refer to Table 7.
[0434] The first digital RMB framework service of the mobile phone sends each download DCEP Applet instruction to the second digital RMB framework service of the smart watch through the Bluetooth communication AIDL interface based on the agreed Bluetooth application protocol, until all download DCEP Applet instructions are sent to the second digital RMB framework service of the smart watch.
[0435] The second digital RMB framework service of the smart watch sends each received DCEP Applet download instruction to the eSE chip. The eSE chip receives the DCEP Applet download instruction, completes the overlay download and installation of the DCEP Applet, and sends return data to the second digital RMB framework service of the smart watch.
[0436] The second digital RMB framework service of the smartwatch sends return data to the first digital RMB framework service of the mobile phone, and the first digital RMB framework service of the mobile phone sends return data to the third-party application of the mobile phone. The third-party application of the mobile phone confirms that the communication connection of the smartwatch is successful based on the return data, and sends the return data of the smartwatch for the download DCEP Applet instruction.
[0437] After multiple times, the third-party application of the mobile phone obtains the DCEP Applet instruction from the second server, and sends the DCEP Applet download instruction to the eSE chip of the smart watch through the first digital RMB service of the mobile phone and the second digital RMB framework service of the smart watch, thereby realizing the version update of the DCEP Applet in the auxiliary security domain of the eSE chip. Among them, the return data of the eSE chip for the DCEP Applet download instruction can be referred to Table 8.
[0438] After completing the version update of the DCEP Applet of the smart watch, the third-party application can call the int CloseLogicChannel() interface in the DCEP AIDL interface to close the smart watch data channel, and send an instruction to close the smart watch data channel to the first digital RMB framework service of the mobile phone. Referring to Table 6, when the return value is 0, it means that the data channel of the smart watch is successfully closed.
[0439] During the timely version update of the DCEP Applet on the smart watch, the third-party application of the mobile phone will also synchronize the return data received from the smart watch for the DCEP Applet download instruction to the second server.
[0440] Exemplarily, during the interaction of multiple DCEP Applet instructions, the third-party application of the mobile phone receives the return data from the smart watch and sends the return data to the second server. If the second server determines that the return data indicates that the smart watch successfully receives the download DCEP Applet instruction, the second server sends a successful reception response to the third-party application of the mobile phone, and the second server continues to send the download DCEP Applet instruction to the third-party application of the mobile phone. The interaction of DCEP Applet instructions continues between the third-party application of the mobile phone, the second server, and the smart watch until the third-party application of the mobile phone sends the last DCEP Applet instruction to the smart watch.
[0441] If the second server determines that the last return data indicates that the smartwatch successfully downloaded and installed the DCEP Applet, that is, when the callback parameter listener of the return data is 0, the second server sends a response to the third-party application of the mobile phone that the smartwatch successfully downloaded and installed the DCEP Applet. If the second server determines that the last return data indicates that the smartwatch failed to download and install the DCEP Applet, that is, when the callback parameter listener of the return data is 1, the second server sends a response to the third-party application of the mobile phone that the smartwatch failed to download and install the DCEP Applet. This enables the synchronization of the status of the smartwatch downloading and installing the DCEP Applet with the third-party application of the mobile phone.
[0442] In this embodiment, status synchronization can avoid the information asymmetry problem about the smart watch in the second server and the third-party application of the mobile phone. The second server and the third-party application of the mobile phone record the correct status of the smart watch, which can achieve better device management of the smart watch.
[0443] After completing the download and installation of the DCEP Applet on the smartwatch, the third-party application on the mobile phone fills in the digital RMB wallet of the smartwatch with information to add and bind the digital RMB wallet. In other words, the digital RMB wallet of the smartwatch is written with information, making the digital RMB wallet in the smartwatch available.
[0444] S206. The third-party application of the mobile phone sends an instruction to add a digital RMB wallet to the digital RMB framework service of the mobile phone.
[0445] Fig.15 An interactive flow chart for adding a digital RMB wallet is provided. In some embodiments, a third-party application of a mobile phone can send an instruction to add a digital RMB wallet to the first digital RMB framework service of the mobile phone. After receiving the instruction to add a digital RMB wallet, the first digital RMB framework service of the mobile phone sends the instruction to add a digital RMB wallet to the second digital RMB framework service of the smart watch. The second digital RMB framework service of the smart watch performs the operation of adding a digital RMB wallet according to the information carried in the instruction to add a digital RMB wallet, thereby achieving the effect of adding a digital RMB wallet in the DCEP Applet in the auxiliary security domain of the smart watch.
[0446] Specifically include:
[0447] The third-party application of the mobile phone sends an instruction to open the smart watch data channel to the first digital RMB framework service of the mobile phone. Similar to creating an auxiliary security domain, the third-party application can call the DCEP AI DL interface to open the smart watch data channel interface int OpenLogicChannel() to send an instruction to open the smart watch data channel to the first digital RMB framework service of the mobile phone. Based on the agreed Bluetooth application protocol, the first digital RMB framework service of the mobile phone sends an instruction to open the smart watch data channel to the second digital RMB framework service of the smart watch through the Bluetooth communication AIDL interface, and receives the response returned by the smart watch.
[0448] Referring to Table 3, when the return value of the response received by the third party is 0, it indicates that the data channel of the smart watch is successfully opened.
[0449] The third-party application on the mobile phone calls the DCEP AIDL interface to add the digital RMB wallet interface, and sends the instruction to add the digital RMB wallet to the first digital RMB framework service of the mobile phone.
[0450] For example, the interface for adding a digital RMB wallet can be defined as int addHardwareWalletToWatch(String wallertId, String instAid, String walletInstNo, String org, String addSign, String timeStamp), which is used to add a digital RMB wallet to a third-party application on a smartwatch. Alternatively, add a digital RMB wallet to a payment application on a smartwatch.
[0451] Among them, the input parameters for adding the digital RMB wallet interface are shown in the following Table 11:
[0452] Table 11
[0453] Parameter name Parameter Type Parameter Description wallertId String Enter the ID of the digital RMB wallet, for example, Id instAID String Input, eSE chip ID, for example, aid walletInstNo String Enter the payer's ID, for example, the payer's institution code org String Enter the name of the payer's organization addSign String Input, signature result timeStamp String Timestamp, from 1970.1.1
[0454] Among them, addSign is encrypted using the SM2 algorithm, and the encryption format can be EX_ADD_DC (fixed string)||APP package name||walletID||instAID||timeStamp (the current time from 1970.1.0).
[0455] After the first digital RMB framework service of the mobile phone receives the instruction to add a digital RMB wallet, it sends the instruction to add a digital RMB wallet to the second digital RMB framework service of the smart watch through the Bluetooth communication AIDL interface based on the agreed Bluetooth application protocol.
[0456] The second digital RMB framework service of the smart watch will receive the instruction to add the digital RMB wallet and send it to the eSE chip. The eSE chip receives the instruction to add the digital RMB wallet, completes the operation of adding the digital RMB wallet, and sends a success response to the second digital RMB framework service of the smart watch.
[0457] Based on the agreed Bluetooth application protocol, the second digital RMB framework service of the smart watch returns a successful response to the first digital RMB framework service of the mobile phone through the Bluetooth communication AIDL interface, and the first digital RMB framework service of the mobile phone returns a successful response to the third-party application of the mobile phone. The third-party application of the mobile phone confirms that the smart watch has successfully added the digital RMB wallet and sends a successful response to the second server.
[0458] Optionally, the return data sent by the eSE chip according to the instruction flow of adding a digital RMB wallet includes:
[0459] Table 12
[0460] Return Value illustrate 0 success 1 fail 2 Whitelist configuration failed 3 Signature verification failed 4 Network Error 7 No eSE support 8 Device not connected
[0461] When the return value is 0, it means that the digital RMB wallet has been successfully added to the DCEP Applet in the auxiliary security domain of the eSE chip of the smart watch.
[0462] After completing the addition of the digital RMB wallet to the smartwatch, the third-party application can call the DCEP AIDL interface to close the smartwatch data channel interface int CloseLogicChannel(), and send an instruction to close the smartwatch data channel to the mobile phone's digital RMB framework service.
[0463] Referring to Table 6, when the return value is 0, it means that the data channel of the smart watch is successfully closed.
[0464] In some embodiments, the third-party application of the mobile phone will promptly report the return data and return response of the smart watch regarding the instruction to add a digital RMB wallet to the second server, thereby achieving status synchronization among the second server, the third-party application of the mobile phone, and the smart watch.
[0465] After the third-party application on the mobile phone receives a response of successful filling of the digital RMB information, execute S207.
[0466] Optionally, during the process of creating the auxiliary security domain in the eSE chip of the smart watch in S204, downloading and installing the DCEP Applet in the auxiliary security domain in S205, and adding the digital RMB wallet in the DCEP Applet in S206, the display interface of the smart watch may display an icon for indicating the progress of the operation, such as reference Fig.16As shown in the figure, after the mobile phone scans the QR code to start the opening operation of the digital RMB wallet, the display interface of the smart watch can be changed to Fig.16 The display interface 610 of (a) is switched to Fig.16 (b) display interface 620. Fig.16 In (b), the display interface 620 of the smart watch includes first progress information 621, for example, the first progress information is a progress bar of the operation progress, and prompt information 622 for prompting the user to wait for opening a digital RMB wallet.
[0467] Correspondingly, the display interface of the third-party application of the mobile phone can also output an icon for indicating the operation progress, such as a progress bar. Fig.17 During the opening of the digital RMB wallet, the display interface of the third-party application on the mobile phone can be Fig.17 The display interface 710 of (a) is switched to Fig.17 (b) display interface 720. Fig.17 In (b), the display interface 720 of the third-party application of the mobile phone includes second progress information 721, for example, the second progress information is a progress bar of the operation progress, and prompt information 722 for prompting the user to wait for opening the digital RMB wallet.
[0468] S207. The third-party application on the mobile phone displays the device information of the digital RMB wallet that has been opened.
[0469] In some embodiments, after completing the creation of the auxiliary security domain in the eSE chip of the smart watch, downloading and installing the DCEP Applet in the auxiliary security domain, and adding the digital RMB wallet in the DCEP Applet, the activation and binding of the digital RMB wallet in the smart watch is completed. The third-party application of the mobile phone can display the device information of the digital RMB wallet that has been opened on the display interface. The device information may include an icon for representing the model of the smart watch, the name of the smart watch, the name of the digital RMB wallet of the smart watch, etc.
[0470] S208. The third-party application on the mobile phone will add devices that have opened digital RMB wallets to the device list.
[0471] In some embodiments, a third-party application on a mobile phone can add the device information of a smart watch to the device list. The device list refers to the device list of devices that have been bound to the mobile phone and have opened a digital RMB wallet. Figure 7 In (b), the third-party application on the mobile phone displays the device list information of devices that have been bound to the mobile phone and have opened a digital RMB wallet.
[0472] In some embodiments, third-party applications on the mobile phone can also query whether the smart watch bound to the mobile phone has opened a digital RMB wallet.
[0473] Exemplarily, on the premise that the mobile phone and the smart watch establish a first communication connection, the third-party application of the mobile phone sends an instruction to open the smart watch data channel to the first digital RMB framework service of the mobile phone. Similar to creating an auxiliary security domain, the third-party application can call the DCEP AIDL interface to open the smart watch data channel interface intOpenLogicChannel() to send an instruction to open the smart watch data channel to the first digital RMB framework service of the mobile phone. Based on the agreed Bluetooth application protocol, the first digital RMB framework service of the mobile phone sends an instruction to open the smart watch data channel to the second digital RMB framework service of the smart watch through the Bluetooth communication AIDL interface, and receives the response returned by the smart watch.
[0474] Referring to Table 3, when the return value of the response received by the third party is 0, it indicates that the data channel of the smart watch is successfully opened.
[0475] The third-party application on the mobile phone calls the digital RMB wallet query interface in the DCEP AIDL interface, and sends a digital RMB wallet query instruction to the first digital RMB framework service of the mobile phone.
[0476] Exemplarily, the digital RMB wallet query interface can be defined as intqueryHardwareWalletOfWatch(String walletId), which is used to query whether a digital RMB wallet exists.
[0477] Among them, the input parameters for querying the digital RMB wallet interface are shown in the following Table 13:
[0478] Table 13
[0479] Parameter name Parameter Type Parameter Description walletId String Enter the ID of the digital RMB wallet, for example, ID number
[0480] Optionally, the return data sent by the smartwatch according to the digital RMB wallet query instruction includes:
[0481] Table 14
[0482] Return Value illustrate 0 exist 1 Does not exist
[0483] If the return data received by the third-party application on the mobile phone is 0, it means that there is a digital RMB wallet in the smart watch. If the return data received by the third-party application on the mobile phone is 1, it means that there is no digital RMB wallet in the smart watch.
[0484] In some embodiments, the digital RMB wallet can also be deleted from a smartwatch that has opened a digital RMB wallet. Fig.18 , Fig.18 An interactive flow chart for deleting a digital RMB wallet is given, including:
[0485] The third-party application of the mobile phone sends an instruction to open the smart watch data channel to the first digital RMB framework service of the mobile phone. Similar to creating an auxiliary security domain, the third-party application can call the DCEP AIDL interface to open the smart watch data channel interface int OpenLogicChannel() to send an instruction to open the smart watch data channel to the first digital RMB framework service of the mobile phone. Based on the agreed Bluetooth application protocol, the first digital RMB framework service of the mobile phone sends an instruction to open the smart watch data channel to the second digital RMB framework service of the smart watch through the Bluetooth communication AIDL interface, and receives the response returned by the smart watch.
[0486] Referring to Table 3, when the return value of the response received by the third party is 0, it indicates that the data channel of the smart watch is successfully opened.
[0487] Specifically, the process of deleting the digital RMB wallet on a smartwatch includes clearing / deleting the DCEP Applet, deleting the digital RMB wallet, and deleting the auxiliary security domain.
[0488] The third-party application of the mobile phone sends a request to clear / delete DCEP Applet to the second server, and obtains one or more clear / delete DCEP Applet instructions issued by the second server. The third-party application of the mobile phone can call the data transmission and reception command interface int SendData(byte[]Data,ResCallback handler) in the Bluetooth communication AIDL interface to send each clear / delete Applet instruction to the first digital RMB framework service of the mobile phone. The transmission parameters of the data command interface refer to Table 7.
[0489] The first digital RMB framework service of the mobile phone sends each clear / delete DCEP Applet instruction to the second digital RMB framework service of the smart watch through the Bluetooth communication AIDL interface based on the agreed Bluetooth application protocol until all clear / delete DCEP Applet instructions are sent to the second digital RMB framework service of the smart watch. The second digital RMB framework service of the smart watch sends each clear / delete DCEP Applet instruction to the eSE chip so that the eSE chip executes the operation of deleting the DCEP Applet.
[0490] During this process, the first digital RMB framework service of the mobile phone can receive the return data sent by the eSE chip of the smart watch for each clear / delete DCEP Applet instruction. The return data is used to indicate that the smart watch successfully clears / deletes the DCEP Applet, or that the smart watch fails to clear / delete the DCEP Applet.
[0491] The mobile phone can send the return data sent by the smart watch for each clear / delete Applet instruction to the second server. If the second server determines that the last return data indicates that the smart watch has successfully cleared / deleted the DCEP Applet, the second server sends a response to the third-party application of the mobile phone that the smart watch has successfully cleared / deleted the DCEP Applet. If the second server determines that the last return data indicates that the smart watch has failed to clear / delete the DCEP Applet, the second server sends a response to the third-party application of the mobile phone that the smart watch has failed to clear / delete the DCEP Applet. This enables the synchronization of the second server and the third-party application of the mobile phone in clearing / deleting the DCEP Applet on the smart watch.
[0492] It should be noted that in this embodiment, the execution methods of clearing DCEP Applet and deleting DCEP Applet are similar, but clearing DCEP Applet and deleting DCEP Applet are two independent instructions. Deleting DCEP Applet means directly deleting the DCEP Applet program from the eSE chip; clearing DCEP Applet means clearing all data stored in the DCEP Applet program and restoring it to the factory state.
[0493] After clearing / deleting the DCEP Applet, you can then perform the deletion operation of the digital RMB wallet in the smartwatch.
[0494] The third-party application on the mobile phone calls the digital RMB wallet deletion interface in the DCEP AIDL interface and sends a digital RMB wallet deletion instruction to the first digital RMB framework service of the mobile phone.
[0495] Exemplarily, the interface for deleting a digital RMB wallet can be defined as int removeHardwareWalletofWatch(String wallertId, String instAid, String walletInstNo, String org, String addSign, String timeStamp), which is used to delete the digital RMB wallet in a third-party application or payment application of a smart watch.
[0496] Among them, the input parameters for deleting the digital RMB wallet interface are shown in Table 15 below:
[0497] Table 15
[0498] Parameter name Parameter Type Parameter Description wallertId String Enter the digital RMB wallet ID, such as ID instAID String Input, eSE chip ID, for example, aid walletInstNo String Input, payer identifier, e.g. institution code org String Enter the name of the payer's organization addSign String Input, signature result timeStamp String Timestamp, from 1970.1.1
[0499] Among them, addSign is encrypted using the SM2 algorithm, and the encryption format can be EX_ADD_DC (fixed string)-APP package name-walletID-instAID-timeStamp (the current time from 1970.1.0).
[0500] After the first digital RMB framework service of the mobile phone receives the instruction to delete the digital RMB wallet, it sends the instruction to delete the digital RMB wallet to the second digital RMB framework service of the smart watch through the Bluetooth communication AIDL interface based on the agreed Bluetooth application protocol.
[0501] The second digital RMB framework service of the smart watch will receive the instruction to delete the digital RMB wallet and send it to the eSE chip. The eSE chip receives the instruction to delete the digital RMB wallet, completes the deletion operation of the digital RMB wallet, and sends a success response to the second digital RMB framework service of the smart watch.
[0502] The second digital RMB framework service of the smart watch returns a successful response to the digital RMB framework service of the mobile phone through the Bluetooth communication AIDL interface based on the agreed Bluetooth application protocol, and the first digital RMB framework service of the mobile phone returns a successful response to the third-party application of the mobile phone. The third-party application of the mobile phone confirms that the smart watch has successfully deleted the digital RMB wallet, and sends a successful response to the second server to achieve synchronization of the status of deleting the digital RMB wallet of the second server and the smart watch in the mobile phone.
[0503] Optionally, the return data sent by the eSE chip according to the instruction to delete the digital RMB wallet includes:
[0504] Table 16
[0505]
[0506]
[0507] When the return value is 0, it means that the digital RMB wallet is successfully deleted in the DCEP Applet in the auxiliary security domain of the eSE chip of the smart watch.
[0508] When the return data from the smartwatch indicates that the digital RMB wallet has been deleted successfully, it means that the smartwatch has successfully deleted the digital RMB wallet and the DCEP Applet has been successfully deleted / cleared.
[0509] Optionally, after completing the deletion operation of the digital RMB wallet in the smartwatch, the mobile phone can also output a prompt message on the display interface of the third-party application to prompt the user that the deletion operation of the digital RMB wallet in the smartwatch has been completed. Optionally, the device list of the digital RMB wallet in the third-party application of the mobile phone can also be updated, and the smartwatch with the deleted digital RMB wallet can be deleted from the device list.
[0510] After completing the deletion of the digital RMB wallet on the smartwatch, optionally, the auxiliary security domain in the smartwatch can also be deleted.
[0511] The third-party application on the mobile phone calls the auxiliary security domain deletion interface in the DCEP AIDL interface and sends an auxiliary security domain deletion instruction to the digital RMB framework service of the mobile phone.
[0512] Exemplarily, the auxiliary security domain deletion interface can be defined as int DeleteSSDForWatch(Stringorganization,String ssdAid,String ssdSignData,String syncSignData,StringtimeStamp), which is used to delete the auxiliary security domain of the smart watch, delete the auxiliary security domain key and AR-AC, and delete related Applets.
[0513] The parameters for deleting the auxiliary security domain interface are shown in Table 17 below:
[0514] Table 17
[0515] Parameter name Parameter Type Parameter Description organization String Input, payer ID, third-party application ID ssdAID String Input, the identifier of the auxiliary security domain, for example, AID ssdSignData String Signature Result syncSignData String Synchronize Data timeStamp String Timestamp, from 1970.1.1
[0516] The payer's identifier may be the payer's organization name. The third-party application identifier may be the third-party application package name. ssdSignData is encrypted using the Sm2 algorithm, and the encryption format may be EX_CREATESSDACTION (a fixed string) || APP package name || timeStamp (the current time from 1970.1.0).
[0517] After the first digital RMB framework service of the mobile phone receives the instruction to delete the auxiliary security domain, it sends the instruction to delete the auxiliary security domain to the second digital RMB framework service of the smart watch through the Bluetooth communication AIDL interface based on the agreed Bluetooth application protocol.
[0518] The second digital RMB framework service of the smart watch will receive the instruction to delete the auxiliary security domain and send it to the eSE chip. The eSE chip receives the instruction to delete the auxiliary security domain, completes the operation of deleting the auxiliary security domain, and sends a success response to the digital RMB framework service of the smart watch.
[0519] The second digital RMB framework service of the smart watch returns a successful response to the first digital RMB framework service of the mobile phone, and the first digital RMB framework service of the mobile phone returns a successful response to the third-party application of the mobile phone. The third-party application of the mobile phone confirms that the smart watch has successfully deleted the auxiliary security domain and sends a successful response to the second server.
[0520] Optionally, the return data sent by the eSE chip according to the instruction to delete the auxiliary security domain includes:
[0521] Table 18
[0522] Return Value illustrate 0 success 1 fail 2 Whitelist configuration failed 3 Signature verification failed 4 Network Error 7 No eSE support 8 Device not connected
[0523] When the return value is 0, it means that the auxiliary security domain of the smart watch is deleted successfully.
[0524] After successfully deleting the auxiliary security domain of the smart watch, the third-party application can call the int CloseLogicChannel() interface in the DCEP AI DL interface to close the smart watch data channel and send an instruction to close the smart watch data channel to the first digital RMB framework service of the mobile phone.
[0525] Referring to Table 6, when the return value is 0, it means that the data channel of the smart watch is successfully closed.
[0526] In some embodiments, the third-party application of the mobile phone will promptly report the return response of the received smart watch's instruction to delete the digital RMB wallet and the return response of deleting the auxiliary security domain to the second server, so as to achieve status synchronization among the second server, the third-party application of the mobile phone and the smart watch.
[0527] In some embodiments, in the process of deleting the digital RMB wallet of the smart watch, the operations of clearing / deleting the DCEP Applet, deleting the digital RMB wallet, and deleting the auxiliary security domain are involved. In order to avoid the problem of deletion errors during the deletion process, preferably, it can be performed in the order of clearing / deleting the DCEP Applet, deleting the digital RMB wallet, and deleting the auxiliary security domain.
[0528] The process of deleting the digital RMB wallet on the smart watch may also involve deletion operations of other functions. In this embodiment, the specific deletion instructions included in the process of deleting the digital RMB wallet on the smart watch are not limited.
[0529] In some embodiments, the opening of a digital RMB wallet in a smartwatch involves private data such as property information and user identity information. In order to further ensure the privacy and security of data during the opening of a digital RMB wallet, in this embodiment, the instructions or data during the interaction between the mobile phone and the smartwatch can be encrypted.
[0530] In some embodiments, Fig.19 This article provides a schematic diagram of the architecture for mobile phones and smart watches to encrypt instructions or data involved in opening a digital RMB wallet. Fig.19 , including mobile phones and smart watches.
[0531] The third-party application of the mobile phone scans the QR code displayed by the smart watch to establish the first communication connection between the mobile phone and the smart watch for digital RMB wallet management. The mobile phone and the smart watch negotiate the session key for encryption and decryption of interactive data or instructions.
[0532] Combination Fig.10 The overall flow chart of the management method of the digital currency wallet of the smart watch is given. After the mobile phone scans the QR code of the smart watch, the device connection involved in S203, the creation of the auxiliary security domain of the smart watch involved in S204, the downloading of the DCEP Applet to the smart watch involved in S205, and the addition of the digital RMB wallet to the smart watch involved in S206 involve the transmission of data and instructions between the mobile phone and the first server, between the mobile phone and the second server, and between the mobile phone and the smart watch. Furthermore, it also involves the transmission of data or instructions between the third-party application of the mobile phone and the first digital RMB framework service of the mobile phone, between the first digital RMB framework service of the mobile phone and the second digital RMB framework service of the smart watch, and between the second digital RMB framework service of the smart watch and the eSE chip.
[0533] In the process of data and instruction transmission, in order to improve information security and transmission reliability, the transmitted data or instructions can be encrypted. If all data and instructions are encrypted, the amount of calculation will increase during the data or instruction interaction, resulting in a problem of reduced transmission rate. Therefore, in this embodiment, the data type of the transmitted data or instruction can be distinguished, and only the transmitted data and instructions that need to be encrypted are encrypted, and the data and instructions that do not need to be encrypted are not encrypted and are still transmitted in plain text, so as to achieve the effect of improving information security and transmission reliability while ensuring the transmission rate.
[0534] Exemplarily, data types are divided into sensitive data and non-sensitive data. Sensitive data is used to represent the first type of data that needs to be encrypted. In actual scenarios, the first type of data mostly involves user privacy information, property safety and other data. Non-sensitive data is used to represent the second type of data that does not need to be encrypted. In actual scenarios, the second type of data mostly involves data related to basic instructions and does not involve user privacy information.
[0535] Exemplarily, in combination with the above-mentioned digital currency wallet management method, the sensitive data in this embodiment includes APDU instructions, such as instructions for creating auxiliary security domains, downloading and installing DCEP Applet instructions, etc. Optionally, the sensitive data also includes the return data (Response data) corresponding to the APDU instructions. For example, the return data can be card product life cycle (CPLC) data, card application list data, and other data.
[0536] Exemplarily, in combination with the above-mentioned digital currency wallet management method, the non-sensitive data in this embodiment includes the command to delete the digital RMB wallet and the return data, the command to add the digital RMB wallet and the return data, as well as the control commands that do not contain user sensitive information, the display content that does not contain user sensitive information, etc.
[0537] In some embodiments, non-sensitive data uses original data as message data; sensitive data uses a negotiated session key to encrypt the original data, and the encrypted data is used as message data.
[0538] During the transmission of message data, the message data can be packaged according to a preset data format, and sensitive data and non-sensitive data can be marked. For example, it can be agreed that a certain bit in the data format of the message data is the first identification bit, and the first identification bit is used to represent whether it is sensitive data or non-sensitive data. For example, when the first identification bit is 0, it is non-sensitive data. When sending non-sensitive data, plaintext message data is used for transmission; when receiving non-sensitive data, the plaintext message data is directly processed accordingly. When the first identification bit is 1, it is sensitive data. When sending sensitive data, the negotiated session key is used to encrypt the sensitive data, and the encrypted data is transmitted as encrypted message data; when receiving sensitive data, the encrypted message data is decrypted according to the negotiated session key to obtain the decrypted original message data.
[0539] The preset data format can be found in the following table:
[0540] Table 19
[0541]
[0542] The data type is the first identification bit, data_enc_type is 0, it is non-sensitive data; data_enc_type is 1, it is sensitive data. The instruction type is the second identification bit, data_type is 0, it is a control instruction; data_type is 1, it is an APDU instruction; data_type is 2, it is a wallet instruction.
[0543] Optionally, a control instruction may be defined as an instruction that needs to be encrypted, and the return data of the control instruction is data that does not need to be encrypted. An APDU instruction is an instruction that needs to be encrypted, and the return data of the APDU instruction is data that needs to be encrypted. A wallet instruction is an instruction that does not need to be encrypted, and the return data of the wallet instruction is data that does not need to be encrypted.
[0544] During the data interaction process between the third-party application of the mobile phone and the first digital RMB framework service of the mobile phone, the data interaction process between the first digital RMB framework service of the mobile phone and the second digital RMB framework service of the smart watch, and the data interaction process between the second digital RMB framework service of the smart watch and the eSE chip, the transmitted non-sensitive data and sensitive data can be transmitted by calling different data transmission interfaces.
[0545] For sensitive data, for example, during the sending and receiving of APDU instructions between the mobile phone and the smart watch, for example, during the process of downloading and installing the DCEP Applet, the process of encryption of sensitive data by the mobile phone and the smart watch includes:
[0546] The third-party application of the mobile phone calls the data sending and receiving command interface SendApdu(byte[]ApduData,ResCallback handler) in the DCEP AIDL interface to send the download DCEPApplet instruction to the first digital RMB framework service of the mobile phone. The first digital RMB framework service of the mobile phone uses the negotiated session key to encrypt the data of the instruction to download the DCEP Applet in accordance with the format of the sent data as message data. Among them, the first identification bit of the message data is 1. The second identification bit is 1. The first digital RMB framework service of the mobile phone sends the encrypted message data to the second digital RMB framework service of the smart watch.
[0547] After the second digital RMB framework service of the smart watch receives the message data, it determines that the message data is encrypted sensitive data according to the first identification bit in the data format. The second digital RMB framework service of the smart watch decrypts the message data according to the negotiated session key to obtain the original message data (download DCEP Applet instruction). The download DCEP Applet instruction is sent to the eSE chip, and the return data of the eSE chip for the download DCEP Applet instruction is received. Since the second identification bit is 1, it is an APDU instruction, and its return data needs to be encrypted. The second digital RMB framework service of the smart watch encrypts the return data according to the negotiated session key and the format of the sent data to obtain the encrypted message data. Among them, the first identification bit of the message data is 1, and the second identification bit is 1. The second digital RMB framework service of the smart watch sends the encrypted message data to the first digital RMB framework service of the mobile phone.
[0548] After the first digital RMB framework service of the mobile phone receives the encrypted message data, it determines that the message data is encrypted data according to the identification bit in the data format. The first digital RMB framework service of the mobile phone decrypts the message data according to the negotiated session key to obtain the original return data. The original return data is sent to the third-party application of the mobile phone through the data sending and receiving command interface SendApdu(byte[]ApduData,ResCallback handler).
[0549] The send and receive data command interface is defined as intSendApdu(byte[]ApduData,ResCallbackhandler). The parameters of the send and receive data command interface include:
[0550] Table 20
[0551] Parameter name Parameter Type Parameter Description ApduData byte[] Input, APDU byte array to be sent handler ResCallback Input, callback parameters
[0552] The callback parameter is used to instruct the smart watch to send a return status and return data to the mobile phone after receiving the data.
[0553] The corresponding return values include:
[0554] Table 21
[0555] Return Value illustrate 0 success 1 fail
[0556] For non-sensitive data, illustratively, during the process of adding a digital RMB wallet to a mobile phone or smartwatch, the process of processing non-sensitive data by the mobile phone or smartwatch includes:
[0557] The third-party application on the mobile phone calls the DCEP AIDL interface to add the digital RMB wallet interface, and sends the instruction to add the digital RMB wallet to the first digital RMB framework service of the mobile phone.
[0558] For example, the interface for adding a digital RMB wallet can be defined as int addHardwareWalletToWatch(String wallertId, String instAid, String walletInstNo, String org, String addSign, String timeStamp), which is used to add a digital RMB wallet to a third-party application on a smartwatch. Alternatively, add a digital RMB wallet to a payment application on a smartwatch.
[0559] The third-party application of the mobile phone calls the DCEP AIDL interface to add the digital RMB wallet interface addHardwareWalletToWatch(String wallertId,String instAid,String walletInstNo,String org,String addSign,String timeStamp), and sends an instruction to add a digital RMB wallet to the first digital RMB framework service of the mobile phone. The first digital RMB framework service of the mobile phone uses the plain text data of "Add Digital RMB Wallet Instruction" as the message data in the format of sending data. Among them, the first identification bit of the message data is 0, and the second identification bit is 2. The first digital RMB framework service of the mobile phone sends the message data to the second digital RMB framework service of the smart watch.
[0560] After the second digital RMB framework service of the smart watch receives the message data, it determines that the message data is unencrypted plaintext data based on the identification bit in the data format. The second digital RMB framework service of the smart watch sends the plaintext message data (add digital RMB wallet instruction) to the eSE chip, and receives the return data of the eSE chip for the add digital RMB wallet instruction. Since the second identification bit is 2, it is a wallet instruction, and its return data does not need to be encrypted. The second digital RMB framework service of the smart watch sends the plaintext return data of the add digital RMB wallet instruction as message data to the first digital RMB framework service of the mobile phone in accordance with the format of the sent data.
[0561] The first digital RMB framework service of the mobile phone receives the message data, confirms it as unencrypted non-sensitive data according to the identification bit in the message data, and sends the plaintext return data to the third-party application of the mobile phone by adding the digital RMB wallet interface addHardwareWalletToWatch(String wallertId,String instAid,String walletInstNo,String org,StringaddSign,String timeStamp).
[0562] Optionally, non-sensitive data may also include other ordinary data, such as watch control commands that do not contain user sensitive information, display content that does not contain user sensitive information, etc. The third-party application of the mobile phone calls the non-sensitive data transmission interface in the DCEP AIDL interface to send ordinary data to the first digital RMB framework service of the mobile phone to perform data transmission between the mobile phone and the smart watch.
[0563] Exemplarily, the non-sensitive data transmission interface may be defined as int SendPlainData(byte[]PlainData,ResCallback handler).
[0564] Among them, the parameters of the non-sensitive data transmission interface include:
[0565] Table 22
[0566] Parameter name Parameter Type Parameter Description PlainData byte[] Input, byte array to be sent handler ResCallback Input, callback parameters
[0567] The callback parameter is used to instruct the smart watch to send a return status and return data to the mobile phone after receiving the data.
[0568] The corresponding return values include:
[0569] Table 23
[0570] Return Value illustrate 0 success 1 fail
[0571] Optionally, sensitive data may also include other sensitive data, such as card product life cycle data CPLC data, card application list data and other data. In this scenario, the sent data is sensitive data that needs to be encrypted, and the returned data is non-sensitive data that does not need to be encrypted. In response to such a situation, the third-party application of the mobile phone calls the sensitive data transmission interface in the DCEP AIDL interface to send sensitive data to the first digital RMB framework service of the mobile phone, so that the first digital RMB framework service of the mobile phone encrypts the sensitive data, thereby performing sensitive data transmission between the mobile phone and the smart watch.
[0572] When the smart watch sends return data to the mobile phone, plain text data is transmitted through the data transceiver interface to achieve non-sensitive data transmission between the mobile phone and the smart watch.
[0573] Exemplarily, the sensitive data transmission interface may be defined as: int SendSensitiveData(byte[]Data, ResCallback handler), which is used to send sensitive data to the device and receive return status and data.
[0574] Table 24
[0575] Parameter name Parameter Type Parameter Description PlainData byte[] Input, byte array to be sent handler ResCallback Input, callback parameters
[0576] The callback parameter is used to instruct the smart watch to send a return status and return data to the mobile phone after receiving the data.
[0577] The corresponding return values include:
[0578] Table 25
[0579] Return Value illustrate 0 success 1 fail
[0580] Exemplarily, a third-party application on a mobile phone calls the sensitive data transmission interface SendSensitiveData(byte[]Data,ResCallback handler) in the DCEP AIDL interface to send a control instruction to the first digital RMB framework service of the mobile phone. The first digital RMB framework service of the mobile phone uses the negotiated session key to encrypt the control instruction as message data in the format of the sent data. Among them, the first identification bit of the message data is 1, and the second identification bit is 0. The first digital RMB framework service of the mobile phone sends the encrypted message data to the second digital RMB framework service of the smart watch.
[0581] After receiving the message data, the second digital RMB framework service of the smart watch determines that the message data is encrypted sensitive data according to the identification bit in the data format. The second digital RMB framework service of the smart watch decrypts the message data according to the negotiated session key. The decrypted control instruction is sent to the eSE chip, and the return data of the eSE chip for the control instruction is received.
[0582] Since the second identification bit is 0, it is a control instruction, and its return data is non-sensitive data that does not need to be encrypted. The second digital RMB framework service of the smart watch sends the plaintext return data of the control instruction as message data to the first digital RMB framework service of the mobile phone in the format of sending data.
[0583] The first digital RMB framework service of the mobile phone receives the plaintext message data, confirms that it is unencrypted return data, and sends the plaintext return data to the third-party application of the mobile phone through the data sending and receiving command interface SendData(byte[]Data,ResCallbackhandler).
[0584] In this embodiment, for different data types and instruction types, both the mobile phone and the smart watch can specifically call the corresponding data transmission interface, and encrypt or unencrypt the message data. Only sensitive data that needs to be encrypted is encrypted for transmission, and non-sensitive data that does not need to be encrypted is transmitted in plain text, which can effectively save data processing resources, improve transmission efficiency compared to the transmission method that encrypts all data; and improve data transmission security compared to the transmission method that does not encrypt all data.
[0585] Fig. 20 A possible structural diagram of the electronic device involved in the above embodiment is shown. Among them, the electronic device 1000 includes a processor 1001, an eSE chip 1002, a communication module 1003, a memory 1004 and a display screen 1005. Among them, the processor 1001 can be a central processing unit (CPU), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. The processor may include an application processor and a baseband processor. It can implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor may also be a combination that implements a computing function, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like. The communication module 1003 may be a transceiver, a transceiver circuit, and the like. The storage module 1004 may be a memory.
[0586] For example, the processor 1001 may be Figure 1 The processor 310 shown. The eSE chip 1002 can be Figure 1 The SE chip 311 shown. The communication module 1003 includes a radio frequency module (such as Figure 1 The storage module may be a memory (such as a radio frequency module 350 shown in FIG. 1 ), a Wi-Fi module, and a Bluetooth module. Figure 1 The display screen 1005 may be as shown in the internal memory 321. Figure 1 The display screen 394 shown in the figure may be a touch screen, in which a display panel and a touch panel may be integrated. The terminal provided in the embodiment of the present application may be Figure 1 The electronic device 100 shown in FIG. 1 may include the processor and the display, etc., which may be connected together, for example, via a bus.
[0587] The present application also provides a chip system (eg, a system on a chip (SoC)), such as Fig.21 As shown, the chip system includes at least one processor 901 and at least one interface circuit 902. The processor 901 and the interface circuit 902 can be interconnected by lines. For example, the interface circuit 902 can be used to receive signals from other devices (such as a memory of an electronic device). For another example, the interface circuit 902 can be used to send signals to other devices (such as a processor 901 or a camera of an electronic device). Exemplarily, the interface circuit 902 can read instructions stored in the memory and send the instructions to the processor 901. When the instruction is executed by the processor 901, the electronic device can perform the various steps in the above embodiments. Of course, the chip system may also include other discrete devices, which are not specifically limited in the embodiments of the present application.
[0588] Some other embodiments of the present application provide a communication device, which can be applied to the above electronic device. The device is used to execute the functions or steps executed by the SE security chip in the above method embodiment.
[0589] An embodiment of the present application also provides a computer-readable storage medium, which includes computer instructions. When the computer instructions are executed on the above-mentioned electronic device, the electronic device executes each function or step executed by the electronic device 100 in the above-mentioned method embodiment.
[0590] The embodiment of the present application further provides a computer program product, which, when executed on a computer, enables the computer to execute the functions or steps executed by the electronic device 100 in the above method embodiment. For example, the computer may be the above electronic device 100.
[0591] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0592] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0593] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0594] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0595] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0596] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A method for managing a digital currency wallet, characterized in that: The method comprises: The first terminal acquires device information of the second terminal; the device information includes an address of the second terminal; The first terminal establishes a first communication connection with the second terminal according to the device information; the first communication connection is used to transmit management data or instructions of the digital currency wallet; The first terminal sends a digital currency wallet opening instruction to the second terminal; the digital currency wallet opening instruction is used to instruct the second terminal to perform a digital currency wallet opening operation.
2. The method according to claim 1, characterized in that A digital currency framework service is deployed in both the first terminal and the second terminal, and the digital currency framework service provides the first terminal and the second terminal with a communication protocol and a communication interface for digital currency wallet management.
3. The method according to claim 2, characterized in that The first terminal includes a management application and a third-party application, the communication interface includes a first communication interface and a second communication interface, The first communication interface is a communication interface for transmitting management data or instructions of a digital currency wallet between the management application in the first terminal and the third-party application; The second communication interface is a communication interface for transmitting management data or instructions of digital currency wallet instructions between the management application in the first terminal and the second terminal.
4. The method according to claim 3, characterized in that The first communication interface includes an initialization device connection interface, and the first terminal establishes a first communication connection with the second terminal according to the device information, including: The third-party application of the first terminal calls the initialization device connection interface according to the device information, and sends a device connection request to the management application of the first terminal; The management application of the first terminal calls the second communication interface to send the device connection request to the second terminal to establish a first communication connection with the second terminal.
5. The method according to claim 3 or 4, characterized in that: The instruction for opening a digital currency wallet includes an instruction for creating an auxiliary security domain, an instruction for downloading a digital currency wallet program, and an instruction for adding a digital currency wallet, wherein the auxiliary security domain is used to provide a secure storage space for the digital currency wallet of the second terminal.
6. The method according to claim 5, characterized in that The digital currency wallet instruction is the instruction for creating an auxiliary security domain, the first communication interface includes an interface for creating an auxiliary security domain, and the first terminal sends an instruction for opening a digital currency wallet to the second terminal, including: The first terminal calls the auxiliary security domain creation interface to send the auxiliary security domain creation instruction to the management application of the first terminal; The management application of the first terminal calls the second communication interface to send the instruction to create the auxiliary security domain to the second terminal.
7. The method according to claim 6, characterized in that The first terminal calls the auxiliary security domain creation interface to send the auxiliary security domain creation instruction to the management application of the first terminal, including: The first terminal sends a request to the first server to create an auxiliary security domain; The first terminal receives the instruction for creating an auxiliary security domain returned by the first server; The first terminal calls the auxiliary security domain creation interface and sends the auxiliary security domain creation instruction to the management application of the first terminal.
8. The method according to claim 6, characterized in that The method further comprises: The first terminal receives a first response from the second terminal to the instruction to create the auxiliary security domain; the first response includes a creation success or a creation failure; If the first response is successful creation, the first terminal sends an instruction to download a digital currency wallet program to the second terminal.
9. The method according to claim 8, characterized in that The first communication interface includes a data transmission and reception command interface, and the first terminal sends a digital currency wallet program download instruction to the second terminal, including: The first terminal calls the data sending and receiving command interface to send the digital currency wallet program download instruction to the management application of the first terminal; The management application of the first terminal calls the second communication interface to send the instruction to download the digital currency wallet program to the second terminal.
10. The method according to claim 9, characterized in that The first terminal calls the data sending and receiving command interface to send the instruction to download the digital currency wallet program to the management application of the first terminal, including: The first terminal sends a request to the second server to download a digital currency wallet program; The first terminal receives the instruction to download the digital currency wallet program returned by the second server; The first terminal calls the data sending and receiving command interface to send the digital currency wallet program download instruction to the management application of the first terminal.
11. The method according to claim 10, characterized in that The instruction to download the digital currency wallet program includes a first instruction and a second instruction, and the first terminal receives the instruction to download the digital currency wallet program returned by the second server, including: The first terminal receives the first instruction returned by the second server; The first terminal calls the data sending and receiving command interface to send the digital currency wallet program download instruction to the management application of the first terminal; The management application of the first terminal calls the second communication interface to send the first instruction to the second terminal; The first terminal receives a response from the second terminal to the first instruction; the response to the first instruction indicates that the communication connection between the second terminal and the first terminal is normal or the communication connection fails; The first terminal sends a response to the first instruction to the second server; The first terminal receives the second instruction sent by the second server when it determines that the response to the first instruction is that the communication connection is normal; the second instruction is used to download the digital currency wallet program.
12. The method according to claim 11, characterized in that The method further comprises: The first terminal receives a second response from the second terminal to the second instruction; the second response includes download success or download failure; If the second response is that the download is successful, the first terminal sends an instruction to add a digital currency wallet to the second terminal.
13. The method according to claim 12, characterized in that The first communication interface includes an interface for adding a digital currency wallet, and the second terminal includes a security unit chip SE chip; the first terminal sends an instruction for adding a digital currency wallet to the second terminal, including: The first terminal calls the digital currency wallet adding interface and sends the digital currency wallet adding instruction to the management application of the first terminal; The management application of the first terminal calls the second communication interface to send the instruction to add a digital currency wallet to the second terminal.
14. The method according to claim 13, characterized in that The method further comprises: The first terminal receives a third response from the second terminal to the instruction to open a digital currency wallet; the third response includes an opening success or an opening failure.
15. The method according to claim 14, characterized in that The method further comprises: If the third response indicates that the activation is successful, the first terminal displays the digital currency wallet information of the second terminal on the display interface; the digital currency wallet information includes at least one of the identifier of the digital currency wallet of the second terminal and the balance of the digital currency wallet.
16. The method according to any one of claims 2 to 15, characterized in that The method further comprises: The first terminal sends an instruction to unbind the digital currency wallet to the second terminal.
17. The method according to claim 16, characterized in that The first communication interface includes a digital currency wallet deletion interface, and the digital currency wallet unbinding instruction includes a digital currency wallet deletion instruction; the first terminal sends the digital currency wallet unbinding instruction to the second terminal, including: The first terminal calls the digital currency wallet deletion interface to send the digital currency wallet deletion instruction to the management application of the first terminal; The management application of the first terminal calls the second communication interface to send the digital currency wallet deletion instruction to the second terminal.
18. The method according to claim 17, characterized in that The method further comprises: The first terminal receives a fourth response from the second terminal to the instruction to delete the digital currency wallet; the fourth response includes a deletion success or a deletion failure.
19. The method according to claim 16, characterized in that The first communication interface includes a deletion interface for the auxiliary security domain, and the instruction for unbinding the digital currency wallet includes an instruction for deleting the auxiliary security domain; the first terminal sends an instruction for unbinding the digital currency wallet to the second terminal, including The first terminal calls the auxiliary security domain deletion interface to send the auxiliary security domain deletion instruction to the management application of the first terminal; The management application of the first terminal calls the second communication interface to send the auxiliary security domain deletion instruction to the second terminal.
20. The method according to claim 19, characterized in that The method further comprises: The first terminal receives a fifth response from the second terminal to the instruction to delete the auxiliary security domain; the fifth response includes a deletion success or a deletion failure.
21. The method according to claim 18 or 20, characterized in that The method further comprises: If the fourth response and the fifth response received by the first terminal are both deletion successes, the first terminal deletes the digital currency wallet information of the second terminal in the display interface.
22. The method according to any one of claims 1 to 21, characterized in that The method further comprises: The first terminal displays progress information in a display interface; the progress information is used to indicate the progress of the second terminal in opening a digital currency wallet.
23. The method according to any one of claims 1 to 22, characterized in that The first terminal acquires device information of the second terminal, including: The first terminal obtains the device information of the second terminal by scanning the QR code displayed by the second terminal; the QR code is the QR code displayed when the second terminal receives the user's confirmation of the payment application in the second terminal to open a digital currency wallet.
24. The method according to any one of claims 1 to 23, characterized in that Before the first terminal acquires the device information of the second terminal, the method further includes: The first terminal establishes a second communication connection with the second terminal through Bluetooth technology; the second communication connection is used to transmit data and instructions other than management data and instructions of the digital currency wallet.
25. The method according to claim 24, characterized in that When the first terminal establishes the second communication connection with the second terminal, the first terminal and the second terminal transmit data and instructions other than management data and instructions of the digital currency wallet through the second communication interface.
26. A method for managing a digital currency wallet, characterized in that: The method comprises: The second terminal receives the communication connection request sent by the first terminal, and establishes a first communication connection with the first terminal; the first communication connection is used to transmit management data or instructions of the digital currency wallet; The second terminal receives the digital currency wallet opening instruction sent by the first terminal; The second terminal executes the digital currency wallet opening operation according to the digital currency wallet opening instruction.
27. The method according to claim 26, characterized in that A digital currency framework service is deployed in both the first terminal and the second terminal, and the digital currency framework service provides the first terminal and the second terminal with a communication protocol and a communication interface for digital currency wallet management.
28. The method according to claim 27, characterized in that The first terminal includes a management application and a third-party application, the communication interface includes a first communication interface and a second communication interface, The first communication interface is a communication interface for transmitting management data or instructions of a digital currency wallet between the management application in the first terminal and the third-party application; The second communication interface is a communication interface for transmitting management data or instructions of digital currency wallet instructions between the management application in the first terminal and the second terminal.
29. The method according to claim 28, characterized in that The second terminal receives the communication connection request sent by the first terminal, and establishes a first communication connection with the first terminal, including: The second terminal receives the communication connection request sent by the first terminal through the second communication interface, and establishes a first communication connection with the first terminal.
30. The method according to claim 29, characterized in that The method further comprises: The second terminal returns a connection response for the first communication connection to the first terminal through the second communication interface.
31. The method according to claim 28, characterized in that The instruction for opening a digital currency wallet includes an instruction for creating an auxiliary security domain, an instruction for downloading a digital currency wallet program, and an instruction for adding a digital currency wallet, wherein the auxiliary security domain is used to provide a secure storage space for the digital currency wallet of the second terminal.
32. The method according to claim 31, characterized in that The second terminal receives the digital currency wallet opening instruction sent by the first terminal, including: The second terminal receives the instruction to create the auxiliary security domain sent by the first terminal through the second communication interface.
33. The method according to claim 32, characterized in that The instruction to create an auxiliary security domain carries an identifier of the auxiliary security domain, and the second terminal includes a security unit chip SE chip; the method further includes: The second terminal creates an auxiliary security domain in the SE chip according to the identifier of the auxiliary security domain.
34. The method according to claim 33, characterized in that The method further comprises: The second terminal returns a first response to the instruction to create the auxiliary security domain to the first terminal through the second communication interface; the first response includes a creation success or a creation failure.
35. The method according to claim 31, characterized in that The second terminal receives the digital currency wallet opening instruction sent by the first terminal, including: The second terminal receives the instruction to download the digital currency wallet program sent by the first terminal through the second communication interface.
36. The method according to claim 35, characterized in that The instruction to download the digital currency wallet program carries a byte array to be sent, and the second terminal includes a security unit chip SE chip; the method further includes: The second terminal downloads the digital currency wallet program in the auxiliary security domain in the SE chip according to the byte array to be sent.
37. The method according to claim 36, characterized in that The method further comprises: The second terminal returns a second response to the instruction to download the digital currency wallet program to the first terminal through the second communication interface; the second response includes a download success or a download failure.
38. The method according to claim 31, characterized in that The second terminal receives the digital currency wallet opening instruction sent by the first terminal, including: The second terminal receives the instruction to add a digital currency wallet sent by the first terminal through the second communication interface.
39. The method according to claim 38, characterized in that The second terminal includes a security unit chip SE chip, and the instruction to add a digital currency wallet carries the identifier of the digital currency wallet, the identifier of the SE chip, and the identifier of the payer; the method further includes: The second terminal adds a digital currency wallet in the digital currency wallet program in the auxiliary security domain of the SE chip according to the identifier of the digital currency wallet, the identifier of the SE chip and the identifier of the payer.
40. The method according to claim 39, characterized in that The method further comprises: The second terminal returns a third response to the instruction to add a digital currency wallet to the first terminal through the second communication interface; the third response includes activation success or activation failure.
41. The method according to claim 39, characterized in that The method further comprises: The second terminal receives the digital currency wallet deletion instruction sent by the first terminal through the second communication interface.
42. The method according to claim 41, characterized in that The method further comprises: The second terminal performs a deletion operation of the digital currency wallet according to the identifier of the digital currency wallet, the identifier of the SE chip and the identifier of the payer.
43. The method according to claim 42, characterized in that The method further comprises: The second terminal returns a fourth response to the instruction to delete the digital currency wallet to the first terminal through the second communication interface; the fourth response includes a deletion success or a deletion failure.
44. The method according to any one of claims 27 to 43, characterized in that The method further comprises: The second terminal displays progress information in a display interface; the progress information is used to indicate the progress of the second terminal in opening a digital currency wallet.
45. The method according to any one of claims 27 to 44, characterized in that The method further comprises: The second terminal displays a first prompt message on a display interface, where the first prompt message is used to prompt the user to confirm opening a digital currency wallet; When the second terminal receives the user's confirmation operation, a QR code is displayed in the display interface; the QR code includes the address of the second terminal, and the QR code is used to provide the first terminal with the address of the second terminal when the first terminal scans the QR code.
46. The method according to any one of claims 27 to 45, characterized in that Before the second terminal receives the communication connection request sent by the first terminal, the method further includes: The second terminal establishes a second communication connection with the first terminal via Bluetooth technology; the second communication connection is used to transmit data and instructions other than management data and instructions of the digital currency wallet.
47. The method according to claim 46, characterized in that When the first terminal establishes the second communication connection with the second terminal, the second terminal transmits data and instructions other than management data and instructions of the digital currency wallet to the first terminal through the second communication interface.
48. An electronic device, characterized in that: The electronic device includes a SE chip, a memory, a display screen and one or more processors; the SE chip, the memory, the display screen are coupled to the processor; the memory stores computer program code, and the computer program code includes computer instructions. When the computer instructions are executed by the processor, the electronic device executes the method described in any one of claims 1-47.
49. A digital currency wallet management system, characterized in that: The system includes a first terminal and a second terminal; The first terminal executes the method according to any one of claims 1 to 25; The second terminal executes the method according to any one of claims 26 to 47.
50. A computer-readable storage medium, characterized in that The method comprises computer instructions, which, when executed on an electronic device, cause the electronic device to execute the method as claimed in any one of claims 1 to 47.
