Information transmission method between terminal devices, medium and terminal device
By setting the near field communication module of the terminal device to only enable point-to-point mode and turn off card emulation and card reader modes, the problem of low polling efficiency is solved and more efficient information transmission is achieved.
Patent Information
- Application Number
- CN202110843631.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-26
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-07-26
AI Technical Summary
In the existing technology, information transmission between terminal devices has the problem of low polling efficiency in point-to-point mode, resulting in long polling time and false interference, which affects transmission efficiency.
By receiving user interactive input, set the near field communication module to only turn on point-to-point mode, turn off card simulation mode and card reader mode, avoid polling interference, and directly transmit data in point-to-point mode.
It improves the polling efficiency between terminal devices, reduces the polling time, and ensures the accuracy and efficiency of data transmission.
Smart Images

Figure CN115694562B
Abstract
Description
Technical Field
[0001] The present application relates to the field of near field communication technology, and in particular to an information transmission method, medium and terminal device between terminal devices. Background Art
[0002] In the process of sharing information from one terminal device to another, both parties holding the terminal devices often need to perform complex operations on the terminal devices to complete the information sharing. In the prior art, a simple information transmission method is to bring two terminal devices close to the near field communication (NFC) chip area, and both terminal devices are in point-to-point mode to achieve information transmission.
[0003] However, the two terminal devices need to determine that they are both in point-to-point working mode through polling. Specifically, after the two terminal devices are unlocked and in the screen-on state, the three modes of card reader mode, card simulation mode and point-to-point mode are quickly rotated in time. During the polling process, the terminal device may randomly have three communication modes with another terminal device: card reader-card simulation; card simulation-card reader; point-to-point-point-to-point. The first two modes will interfere with the determination that the two terminal devices are both in point-to-point mode, and there is a problem of low polling efficiency due to the long polling time. Summary of the invention
[0004] A first aspect of the present application provides an information transmission method between terminal devices, which is applied to a first terminal device, wherein the first terminal device includes a target application and a near field communication module, and the method includes:
[0005] receiving a user interaction input, wherein the user interaction input is used to trigger a first near field service of the target application;
[0006] In response to the first near field service request of the target application, setting the working mode of the near field communication module to enable only the point-to-point mode;
[0007] When the first terminal device determines that the distance between the first terminal device and the second terminal device is less than a distance threshold, the first terminal device initiates the first near-field service to the second terminal device according to the near-field communication module.
[0008] The enabling of only the peer-to-peer mode includes: enabling the peer-to-peer mode and disabling the card emulation mode and the card reader mode.
[0009] In some embodiments, the step of only enabling the peer-to-peer mode includes enabling the peer-to-peer mode and disabling the card emulation mode and the card reader mode. Enabling the peer-to-peer mode and disabling the card emulation mode and the card reader mode means that when the first terminal device and the second terminal device use the NFC function, the card emulation mode and the card reader mode are not polled.
[0010] In an embodiment of the present application, the first terminal device turns off the card reader mode and the card emulation mode according to the user operation, and only turns on the peer-to-peer mode in the NFC chip. Since the card reader mode and the card emulation mode are turned off, they do not participate in the time-sharing polling of the first terminal device, thereby avoiding the card reader mode and the card emulation mode of the first terminal device interfering with the determination that the first terminal device and the second terminal device are both in the peer-to-peer mode, reducing the time-consuming problem caused by multiple polling between the first terminal device and the second terminal device, and improving the polling efficiency between the first terminal device and the second terminal device.
[0011] In some embodiments, receiving user interaction input may include, in response to the user selecting the near field business mode on the target application, displaying prompt information to the user, the prompt information being used to prompt the user whether to choose to set the near field communication working mode to only enable the point-to-point mode; in response to the user's first operation, the first operation being that the user selects to set the near field communication working mode to only enable the point-to-point mode based on the prompt information, setting the near field communication working mode to only enable the point-to-point mode. For example, corresponding to a transfer application scenario, such as Figure 7F As shown, the terminal device 100 displays a system prompt message: In order to provide a better tap-and-pay experience, the mobile bus card, bank card, and POS functions will be temporarily disabled and will automatically resume after two minutes or when you leave this page. Figure 7F The operation interface of the terminal device 100 also includes a confirmation button 9 and a cancel button 10. After the terminal device 100 detects that the user 1 clicks the cancel button 9, the terminal device 100 is triggered to stop executing the following steps. After the terminal device 100 detects that the user 1 clicks the confirmation button 9, the touch service module 112 is triggered to execute step 613.
[0012] In addition, it is understandable that in some other embodiments, the first terminal device may also directly set the near field communication working mode to only enable the point-to-point mode in response to the user selecting the near field service mode on the target application. Fig. 7E In the transfer operation interface shown in the figure, after the user 1 clicks the tap to transfer button 8, the terminal device 100 can directly turn off the card simulation mode and the card reader mode without the user's awareness, and call the peer-to-peer mode. There is no need to prompt the user to turn off the card reader mode and the card simulation mode of the terminal device 100. For example, in Figure 8In the product interface shown, after the user 1 clicks the touch and share button 13, the terminal device 100 can directly turn off the card simulation mode and the card reader mode without the user's awareness, and call the peer-to-peer mode. There is no need to prompt the user to turn off the card reader mode and the card simulation mode of the terminal device 100.
[0013] In a possible implementation of the first aspect, the near field communication module includes a near field communication chip driver and a near field communication chip, and setting the working mode of the near field communication module to only enable the point-to-point mode includes:
[0014] The near field communication chip driver sends a working mode modification instruction to the near field communication chip;
[0015] The near field communication chip changes the mode of the near field communication chip to only enable the point-to-point mode in response to the working mode modification instruction.
[0016] It can be understood that in some embodiments, corresponding to Figure 4 (a), the NFC chip driver 114 drives the NFC chip 102 to turn off the card reader and card emulation modes and turn on the peer-to-peer mode.
[0017] In a possible implementation of the first aspect above, enabling only the peer-to-peer mode includes: enabling the peer-to-peer mode and disabling the card emulation mode and the card reader mode.
[0018] It can be understood that, in some embodiments, when the peer-to-peer mode is turned on and the card emulation mode and the card reader mode are turned off, that is, when the first terminal and the second terminal use the NFC function, the card emulation mode and the card reader mode are not polled.
[0019] In a possible implementation of the first aspect, the receiving user interaction input includes:
[0020] In response to the user selecting the near field service mode on the target application, displaying a prompt message to the user, the prompt message being used to prompt the user whether to select to set the near field communication working mode to only enable the point-to-point mode;
[0021] In response to a first operation by the user, the near field communication working mode is set to enable only the point-to-point mode.
[0022] In a possible implementation of the first aspect, in response to the first near field service request of the target application, setting the working mode of the near field communication module to enable only the point-to-point mode includes:
[0023] In response to the first near field service request of the target application, determining whether the target application meets a condition of opening only the point-to-point mode;
[0024] When it is determined that the target application meets the condition of enabling only the point-to-point mode, the working mode of the near field communication module is set to enable only the point-to-point mode.
[0025] It can be understood that in some embodiments, the condition for enabling the point-to-point mode only may be that the identification information of the target application is in a permission state in the permission table data. For example, in some embodiments, the permission management module 113 includes a permission list sent by the permission server of the terminal device 100, that is, a mapping table of application identification information and permission. The permission management module 113 can determine whether the application 111 has the permission to enable the touch-and-pay service based on the identification information of the application 111 by a table lookup method.
[0026] For example, Table 1 shows a permission mapping table:
[0027] Application identification information Enable the permission of the Pay-per-click service First have Second have C have Man none
[0028] If the identification information of the payment application is A, the permission management module 113 obtains that the payment application has the permission to enable the tap-and-pay service according to the data in the above table 1. If the identification information of the payment application is D, the payment application does not have the permission to enable the tap-and-pay service according to the data in the above table 1. It can be understood that A, B, C, and D are only for the convenience of explaining that the permission management module 113 in the embodiment of the present application can determine whether the application 111 has the permission to enable the tap-and-pay service based on the identification information of the application 111 by the table lookup method, and does not impose any restrictions on the identification information of the application 111 of the present application.
[0029] In a possible implementation of the first aspect, the first near field service includes transferring money to a first account of the target application in the second terminal device, and initiating the first near field service to the second terminal device includes:
[0030] Sending an instruction to the second terminal device to obtain the first account information;
[0031] Acquire the first account information from the second terminal device;
[0032] In response to a transfer operation performed by a user on the target application of the first terminal device, transfer money to the first account based on the first account information.
[0033] In a possible implementation of the first aspect above, the target application includes a payment application.
[0034] In a possible implementation of the first aspect, the first near field service includes opening and displaying a target page in the target application in the second terminal device, and initiating the first near field service to the second terminal device includes:
[0035] Sending a display target page instruction to a target application of the second terminal device;
[0036] The second terminal device opens and displays the target page in the target application according to the display target page instruction.
[0037] In a possible implementation of the first aspect above, the target application includes a shopping application.
[0038] In a possible implementation of the first aspect above, the target page is a product page.
[0039] In some embodiments, the product page may refer to a product details page.
[0040] A first aspect of the present application provides a readable medium, on which instructions are stored. When the instructions are executed on a terminal device, the machine executes the information transmission method between terminal devices described in the first aspect.
[0041] The first aspect of the present application provides a terminal device, comprising: a memory for storing instructions executed by one or more processors of the terminal device, and a processor, which is one of the processors of the terminal device, for executing the information transmission method between terminal devices described in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 The schematic diagram exemplarily shows the application scenarios of the card emulation mode, card reader mode and peer-to-peer mode of NFC;
[0043] Figure 2 A schematic diagram showing a process of determining that both the terminal device 100 and the terminal device 200 are in a point-to-point working mode by polling;
[0044] Figure 3 A schematic diagram showing a process of determining a matching working mode between the terminal device 100 and the terminal device 200 after the terminal device 100 turns off the card reader mode and the card emulation mode;
[0045] Figure 4 (a) and (b) respectively show schematic diagrams of the hardware structures of a terminal device 100 and a terminal device 200 capable of implementing the technical solution of the present application according to some embodiments of the present application;
[0046] Figure 5(a) and (b) show system architecture diagrams related to the information transmission system of the present application in the above-mentioned terminal device 100 and terminal device 200;
[0047] Figure 6 According to some embodiments of the present application, a flow chart of a method for implementing information transmission between a terminal device 100 and a terminal device 200 based on near field communication technology is shown;
[0048] FIG. 7A to FIG. 7B Some embodiments of the present application show a schematic diagram of the user interface changes when the NFC function is enabled on the terminal device 100;
[0049] FIG. 7C to FIG. 7I , some embodiments of the present application show a schematic diagram of UI changes of a mobile phone during a transfer process of a terminal device 100;
[0050] Figures 8 to 9 According to some embodiments of the present application, a schematic diagram of UI changes when the terminal device 200 opens a product page is shown. DETAILED DESCRIPTION
[0051] The illustrative embodiments of the present application include, but are not limited to, methods, media, and terminal devices for transmitting information between terminal devices.
[0052] In order to solve the technical problems mentioned in the background technology, the embodiment of the present application proposes a method for realizing information transmission between terminal devices based on near field communication technology. In order to facilitate the understanding of the technical solution below, the card emulation mode, card reader mode and point-to-point mode involved in the embodiment of the present application are explained below.
[0053] (1) Near field communication (NFC)
[0054] NFC technology is a short-range high-frequency wireless communication technology, which means that terminal devices using NFC technology can exchange data when they are close to each other (for example, less than or equal to 1 cm). NFC includes three working modes: card emulation mode, card reader mode and peer-to-peer mode, which will be introduced one by one below.
[0055] (2) Card Emulation (CE)
[0056] Card emulation mode is when the terminal device simulates a contactless card through its NFC function. Card emulation mode can be applied to contactless mobile payment and unlocking scenarios such as shopping malls, transportation, medical treatment, door locks, etc. For example, Figure 1 The following is a schematic diagram showing application scenarios of NFC card emulation mode, card reader mode and peer-to-peer mode. Figure 1As shown, the contactless card can be a bank card, bus card, car key, social security card, ID card, access card, or house key. Taking a mobile phone as an example, if the mobile phone is a bank card in card simulation mode, the user only needs to bring the mobile phone as a bank card close to the card reader area of the cash register and enter the password on the mobile phone to confirm payment to complete the payment transaction. If the mobile phone is a bus card in card simulation mode, the user only needs to place the card swiping area of the mobile phone as a bus card close to the magnetic card recognition area of the card reader on the bus or at the entrance of the bus station (not necessarily close to it) for more than a certain time (for example, more than 0.2 seconds) to successfully swipe the card on the card reader.
[0057] (3) Reader mode (Reader, R)
[0058] Card reader mode means that the terminal device is used as a contactless card reader through its NFC function. Figure 1 As shown, taking a mobile phone as an example, the mobile phone can be used as a POS (Point of Sales) machine with a payment function in the card reader mode. When a bank card is close to the card reader area of the mobile phone, the payment transaction can be completed to transfer the money on the bank card to the account on the mobile phone. For another example, the mobile phone can be used as a scanner in the card reader mode to scan the barcode or electronic tag on the product to obtain the price, model, manufacturer and other information of the product.
[0059] (4) Peer-to-Peer (P2P)
[0060] Point-to-point mode means that two NFC-enabled terminal devices establish a near field communication connection through the NFC function, and realize point-to-point data transmission through the NFC function. Figure 1 As shown, taking a mobile phone as an example of a terminal device, when the point-to-point mode is turned on between two mobile phones, the NFC chip areas on the back of the two mobile phones are brought close together (for example, less than or equal to 1 cm) to achieve data transmission between the two mobile phones, for example, transferring files, pictures, web pages, etc.
[0061] As mentioned in the background technology, in order to transmit data between two terminal devices in a point-to-point mode, the working modes matched by the two terminal devices can be determined as point-to-point mode by polling. Figure 2 A schematic diagram shows a process of determining that both the terminal device 100 and the terminal device 200 are in the point-to-point working mode by polling.
[0062] After the terminal device 100 and the terminal device 200 are unlocked and in the screen-on state, the terminal device 100 and the terminal device 200 respectively turn on the NFC function, such as Figure 2As shown, the terminal device 100 and the terminal device 200 have one of the three working modes mentioned above, but the specific mode when the NFC function is turned on is automatically assigned by the systems of the terminal device 100 and the terminal device 200, and the point-to-point mode of the terminal device 100 and the point-to-point mode of the terminal device 200 need to be finally determined through polling.
[0063] Corresponds to Figure 2 Table 1 shows the working modes that the terminal device 100 and the terminal device 200 may switch to during the polling process and the working modes that may switch to after the polling:
[0064]
[0065] As shown in Table 1, during the polling process, if the terminal device 100 and the terminal device 200 are in a mode that satisfies the working mode, the polling is stopped.
[0066] In this way, as the technical problem mentioned in the background technology, after the terminal device 100 and the terminal device 200 are unlocked and in the state of the screen on, the three modes of the card reader mode, the card simulation mode and the point-to-point mode are quickly rotated in time. During the polling process, the terminal device 100 may randomly appear in three communication modes with the terminal device 200: card reader-card simulation; card simulation-card reader; point-to-point-point. The first two will interfere with the determination that the terminal device 100 and the terminal device 200 are both in the point-to-point mode, and there is a problem of low polling efficiency caused by long polling time. For example, when there is an NFC card in the terminal device 100 (such as a bank card or a bus card), interference will occur during the polling process (mistaking one mobile phone for a card and another mobile phone for a POS machine), and the information cannot be transmitted correctly, and then the polling is re-polled, and the polling takes a long time and the polling efficiency is low.
[0067] In order to solve the above-mentioned problem of low polling efficiency caused by polling interference and long polling time, in the embodiment of the present application, the terminal device 100 turns off the card reader mode and the card emulation mode according to the user operation, and only turns on the point-to-point mode in the NFC chip. Since the card reader mode and the card emulation mode are turned off, they do not participate in the time-sharing polling of the terminal device 100, thereby avoiding the card reader mode and the card emulation mode of the terminal device 100 interfering with the determination that the terminal device 100 and the terminal device 200 are both in the point-to-point mode, reducing the time-consuming problem caused by multiple polling between the terminal device 100 and the terminal device 200, and improving the polling efficiency between the terminal device 100 and the terminal device 200.
[0068] Figure 3A schematic diagram of a process of determining a matching working mode between the terminal device 100 and the terminal device 200 after the terminal device 100 turns off the card reader mode and the card emulation mode is shown.
[0069] like Figure 3 As shown, when the terminal device 100 turns off the card reader mode and the card emulation mode of the terminal device 100 according to the user operation, and the terminal device 100 and the terminal device 200 are close to the preset distance (for example, less than or equal to 1 cm) in the NFC chip area, the terminal device 100 does not need to switch from the card reader mode and the card emulation mode to the point-to-point mode, and only matches with the terminal device 200 in the point-to-point mode, which reduces the polling time between the terminal device 100 and the terminal device 200, thereby improving the polling efficiency between the terminal device 100 and the terminal device 200. Preset distance and the distance that the terminal device 100 and the terminal device 200 can sense through the NFC function.
[0070] Figure 4 (a) and (b) respectively show schematic diagrams of the hardware structures of terminal devices 100 and 200 that can implement the technical solution of the present application according to some embodiments of the present application. It should be noted that the terminal devices 100 and 200 in the specific embodiments of the present application include but are not limited to terminal devices such as tablets, smart phones, laptops, and desktop computers.
[0071] like Figure 4 As shown in (a), the terminal device 100 includes a processor 101, an NFC chip 102, a touch screen 103 and a memory 104. The NFC chip 102, the touch screen 103 and the memory 104 are connected to the processor 101 respectively.
[0072] The NFC chip 102 has communication and computing capabilities, and can be used to enable the terminal device 100 to communicate with other terminal devices in close proximity. For example, in the embodiment of the present application, the NFC chip 102 stops polling in the card emulation mode and the card reader mode, and only seeks a matching working mode from the NFC chip 202 in the point-to-point mode. When both the NFC chip 102 and the NFC chip 202 work in the point-to-point mode, and the terminal device 100 detects that the NFC chip area on the back of the terminal device 100 is close to a preset distance (for example, less than or equal to 1 cm), data transmission between the terminal device 100 and the terminal device 200 is achieved.
[0073] The processor 101 includes one or more processing units, and can run the software code of the method for realizing information transmission between terminal devices based on near field communication technology provided in some embodiments of the present application. For example, in the embodiment of the present application, the processor 101 can control the NFC chip 103 to turn off the polling of the card reader mode and the card simulation mode according to the user operation, and only turn on the point-to-point mode, that is, when the terminal device 100 and the terminal device 200 use the NFC function, the card simulation mode and the card reader mode are not polled.
[0074] The touch screen 103 can be used as a touch panel to collect the user's touch operation on the touch screen 103 and drive the corresponding connection device according to a pre-set program. On the other hand, the touch screen 103 can also be used to display the information input by the user or provide prompt information to the user.
[0075] The memory 104 is used to store software programs and data, and the processor 101 executes various functional applications and data processing of the terminal device 100 by running the software programs and data stored in the memory 205. For example, in an embodiment of the present application, the memory 104 can store software codes of a method for implementing information transmission between terminal devices based on near field communication technology provided in some embodiments of the present application.
[0076] like Figure 4 As shown in (b), the relevant components used in the terminal device 200 in the technical solution of the present application are the same as those of the terminal device 100, and may include a processor 201, an NFC chip 202, a touch screen 203, and a memory 204. The functions of the hardware structures of the mobile phone 200 and the mobile phone 100 are also the same, and will not be repeated here.
[0077] correspond Figure 5 (a) and (b) are hardware structure diagrams of terminal devices 100 and 200. The software systems of terminal devices 100 and 200 can adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system with a layered architecture as an example to illustrate the software structure of terminal devices 100 and 200.
[0078] Figure 5 (a) and (b) show system architecture diagrams related to the information transmission system of the present application in the above-mentioned terminal device 100 and terminal device 200.
[0079] Specifically, Figure 5 As shown in (a), the relevant components of the information transmission system are distributed in the system application layer 10, the application framework layer 11 and the kernel layer 12.
[0080] The application layer 10 may include an application 111 , which may be a payment application, a shopping application, a news application, a game application, a music application, etc.
[0081] The application 111 receives the input event distributed by the kernel layer 12 and calls the relevant components of the application framework layer 11 and the kernel layer 12 according to the processing result of the input event.
[0082] The application framework layer 11 includes but is not limited to a touch service module 112 and a permission management module 113 .
[0083] The kernel layer 12 is a layer between hardware and software. Specifically, on the one hand, the kernel layer 12 is used to obtain event information from input devices in the underlying devices, and store the received user input events in the event center (Input Hub) for the application framework layer 11 to call or directly broadcast the user input events to the kernel layer 12. On the other hand, the kernel layer 12 is used to drive the underlying devices to work. In the embodiment of the present application, the kernel layer 12 includes but is not limited to the NFC chip driver 114, etc.
[0084] In response to user operations, the application 111 calls the tap-and-pay service module 112. The permission management module 113 is used to determine whether the application 111 has the permission to realize information transmission between electronic devices based on near-field communication technology, and if the judgment result is yes, the tap-and-pay service module 112 is allowed to send an instruction to the NFC chip driver 114 to turn off the card simulation mode and the card reader mode and turn on the peer-to-peer mode.
[0085] After the tap-and-pay service module 112 sends an instruction to the NFC chip driver 114 to turn off the card emulation mode and the card reader mode and turn on the peer-to-peer mode, the NFC chip driver 114 drives the NFC chip 102 to stop polling in the card emulation mode and the card reader mode, and only seeks a matching working mode from the NFC chip 202 in the peer-to-peer mode. When both the NFC chip 102 and the NFC chip 202 work in the peer-to-peer mode and the terminal device 100 detects that the NFC chip area on the back of the terminal device 100 is close to a preset distance (for example, less than or equal to 1 cm), data transmission between the terminal device 100 and the terminal device 200 is achieved.
[0086] like Figure 5 As shown in (b), the terminal device 200 may include an application layer 20.
[0087] The functions of the software structures of the terminal device 200 and the terminal device 100 are also substantially the same, as follows:
[0088] The application layer 10 may include, but is not limited to, an application 211 , which may be a payment application, a shopping application, a news application, a game application, a music application, and the like.
[0089] It is understandable that the above Figure 5 (a) and Figure 5 The structure shown in (b) does not constitute a structural limitation on the information transmission system in the terminal device 100 and the terminal device 200. In other embodiments, the process of implementing the solution of the present application may also involve other more or fewer structures or modules, which are not limited here.
[0090] The following is based on Figure 5 (a) and Figure 5 (b) shows the software structure of the information transmission system, which details the specific implementation process of the method for realizing information transmission between electronic devices based on near field communication technology.
[0091] Figure 6 According to some embodiments of the present application, a flow chart of a method for implementing information transmission between a terminal device 100 and a terminal device 200 based on near field communication technology is shown. Figure 6 As shown, the method includes:
[0092] Step 601: The terminal device 100 and the terminal device 200 turn on the NFC function in response to the user's operation of turning on NFC.
[0093] For example, FIG. 7A to FIG. 7B FIG. 1 is a schematic diagram showing the user interface changes when the NFC function is enabled on the terminal device 100. Specifically, Fig. 7A As shown, the terminal device 100 turns on the NFC function of the terminal device 100 according to the user operation. For example, the user 1 of the terminal device 100 can slide down from the top of the terminal device 100 using a finger or a stylus pen to display a sliding menu bar. Figure 7B As shown, the terminal device 100 displays a drop-down menu bar 2. The drop-down menu bar 2 includes an NFC control 2. The terminal device 100 detects that the user 1 clicks the NFC control 2 with a finger or a stylus, triggering the terminal device 100 to enable the NFC function. Similarly, the user 2 of the terminal device 200 can also enable the NFC function of the terminal device 200 by the same method, which will not be repeated here.
[0094] In some other embodiments, the NFC function of the terminal device 100 and the terminal device 200 can also be turned on before unlocking, or after unlocking the mobile phone, which is not limited here. Although step 601 is in one step box in the figure, it is not limited to turning on the NFC function of the terminal device 100 and the terminal device 200 at the same time, and the NFC function can also be turned on at different times.
[0095] Step 602: The application 111 responds to the user's operation of invoking the touch service function interface.
[0096] The tap-and-pay service function is a function in which the terminal device 100 and the terminal device 200 are both in point-to-point mode and the NFC chip areas on the back are close to each other (for example, less than or equal to 1 cm), so as to realize data transmission between the terminal device 100 and the terminal device 200. The tap-and-pay service function is only a function name, and there may be other names known or defined by those skilled in the art, which are not limited here.
[0097] For example, FIG. 7C to FIG. 7I Some embodiments of the present application show a schematic diagram of changes in the user interface (UI) of the terminal device 100 during the transfer process of the terminal device 100.
[0098] Take application 111 as an example, for example, Figure 7C As shown, the display interface of the terminal device 100 includes a payment application control 3. In response to the user clicking the payment application control 3, the terminal device 100 opens the operation interface of the payment application. Fig.7D As shown, the operation interface includes a transfer control 4. After the user clicks the transfer control 4, the transfer operation interface is displayed. Fig. 7E As shown, the transfer operation interface includes: a counterparty account input box 5 for inputting a counterparty account to realize transfer, an amount input box 6 for inputting a transfer amount, a transfer button 7 for starting a transfer operation, and a tap-to-pay transfer button 8 for realizing a quick transfer using the tap-to-pay technology. The terminal device 100 detects that the user 1 clicks the tap-to-pay transfer button 8, and triggers the application 111 to respond to the user's operation of calling the tap-to-pay service function interface.
[0099] In addition, it can be understood that in some other embodiments, Fig. 7E In the transfer operation interface shown, after the user 1 clicks the tap-to-transfer button 8, the terminal device 100 can directly turn off the card simulation mode and the card reader mode without the user's awareness, and call the peer-to-peer mode. There is no need to prompt the user to turn off the card reader mode and the card simulation mode of the terminal device 100.
[0100] Another example: Figures 8 to 9 Some embodiments of the present application show a schematic diagram of UI changes when a terminal device 200 opens a product page;
[0101] For example, application 111 is a shopping application. Figure 7CAs shown, the display interface of the terminal device 100 includes a shopping application control 11. In response to the user clicking the shopping application control 11, the terminal device 100 opens the operation interface of the shopping application, selects a product in the operation interface of the shopping application, and opens the product interface corresponding to the product, for example, Figure 8 As shown, the terminal device 100 displays the target product page 12 of the chair, which includes a touch-to-share button 13. The terminal device 100 detects that the user 1 clicks the touch-to-share button 13, triggering the application 111 to respond to the user's operation of calling the touch-to-share service function interface.
[0102] In addition, it can be understood that in some other embodiments, Figure 8 In the product interface shown, after the user 1 clicks the touch and share button 13, the terminal device 100 can directly turn off the card simulation mode and the card reader mode without the user's awareness, and call the peer-to-peer mode. There is no need to prompt the user to turn off the card reader mode and the card simulation mode of the terminal device 100.
[0103] Step 603: The application 111 sends a request to call the touch-and-touch service function interface to the touch-and-touch service module 112.
[0104] It is understood that in some embodiments, the request to call the touch service function interface may carry identification information, such as a package name, of the application 111. The identification information of the application 111 is used to verify whether the application 111 has the authority to call the touch service function interface.
[0105] Step 604: When receiving the request for calling the touch-and-pay service function interface sent by the application 111, the touch-and-pay service module 112 sends a request for verifying the application 111's calling permission to the permission management module 113.
[0106] It is understandable that not all applications have the permission to call the Touch service function interface. In order to ensure that the application has a safe operating environment on the terminal device 100, the terminal device 100 can only call the Touch service function interface if the permission management server of the terminal device 100 grants the application permission to enable the Touch service.
[0107] Step 605: The authority management module 113 determines whether the payment application has the calling authority. If the judgment result is yes, the process goes to step 1106; if the judgment result is no, the process goes to step 1107.
[0108] It can be understood that in some embodiments, the permission management module 113 includes a permission list sent by the permission server of the terminal device 100, that is, a mapping table of application identification information and permission permissions. The permission management module 113 can determine whether the application 111 has the permission to enable the Touch service based on the identification information of the application 111 by a table lookup method.
[0109] For example, Table 1 shows a permission mapping table:
[0110] Application identification information Enable the permission of the Pay-per-click service First have Second have C have Man none
[0111] If the identification information of the payment application is A, the permission management module 113 obtains the permission of the payment application to enable the tap-and-pay service according to the data in the above table 1. If the identification information of the payment application is D, the payment application does not have the permission to enable the tap-and-pay service according to the data in the above table 1. It can be understood that A, B, C, and D are only for the convenience of explaining that the permission management module 113 in the embodiment of the present application can determine whether the application 111 has the permission to enable the tap-and-pay service based on the identification information of the application 111 by the table lookup method, and does not impose any restrictions on the identification information of the application 111 of the present application.
[0112] Step 606: The authority management module 113 of the terminal device 100 sends feedback information to the touch service module 112 that the application 111 has the calling authority.
[0113] Step 607: The permission management module 113 of the terminal device 100 sends feedback information to the touch service module 112 that the application 111 does not have the calling permission.
[0114] Step 608: The touch-and-pay service module 112 of the terminal device 100 determines whether the feedback information indicates that the application has the calling permission. If the touch-and-pay service module 112 determines that the feedback information indicates that the application does not have the calling permission, the process goes to step 609. If the touch-and-pay service module 112 determines that the feedback information indicates that the application has the calling permission, the process goes to step 610.
[0115] Step 609: The touch-and-pay service module 112 displays a prompt message indicating that the touch-and-pay service call was unsuccessful.
[0116] Step 610: The tap-to-pay service module 112 displays tap-to-pay service prompt information.
[0117] It can be understood that, in some embodiments, the touch-and-pay service module 112 is a module in the application framework layer 11 of the operating system, and the touch-and-pay service prompt information is system prompt information.
[0118] For example, corresponding to the transfer application scenario, such as Fig. 7E As shown, the terminal device 100 detects that the user 1 clicks the tap-to-transfer button 8, and when it is judged that the feedback information indicates that the application has the calling permission, the tap-to-transfer service module 112 is triggered to display a prompt message to close the card reader mode and the card simulation mode, such as Figure 7F As shown, the terminal device 100 displays a system prompt message: In order to provide a better tap-and-pay experience, the mobile bus card, bank card, and POS machine functions will be temporarily closed and will automatically resume after two minutes or when you leave this page.
[0119] Corresponding to the product page sharing application scenario, such as Fig. 9 As shown in (a), the same prompt information can be displayed and will not be repeated here.
[0120] Step 611: The touch service module 112 of the terminal device 100 detects the user's selection. If the user cancels, go to step 612: stop the process. If the user selects yes, go to step 613.
[0121] For example, continue to see Figure 7F The operation interface of the terminal device 100 also includes a confirmation button 9 and a cancel button 10. After the terminal device 100 detects that the user 1 clicks the cancel button 9, the terminal device 100 is triggered to stop executing the following steps. After the terminal device 100 detects that the user 1 clicks the confirmation button 9, the touch service module 112 is triggered to execute step 613.
[0122] Corresponding to the product page sharing application scenario, such as Fig. 9 As shown in (a), it can be Figure 7H The triggering methods are the same and will not be repeated here.
[0123] Step 613: The touch-and-pay service module 112 records the initial states of each NFC mode, and sends one or more NFC mode modification instructions to the application 211, so that the card reader and card emulation modes are turned off, and the peer-to-peer mode is turned on.
[0124] It can be understood that the card reader and the card emulation mode are in the off state means that the terminal device 100 stops polling the card reader and the card emulation mode.
[0125] Step 614: The NFC chip driver 114 of the terminal device 100 executes the NFC mode modification instruction.
[0126] It can be understood that in some embodiments, corresponding to Figure 4 (a), the NFC chip driver 114 drives the NFC chip 102 to turn off the card reader and card emulation modes and turn on the peer-to-peer mode.
[0127] Step 615 : the NFC chip driver 114 of the terminal device 100 returns the NFC mode modification instruction execution result to the touch service module 112 .
[0128] Step 616: The touch service module 112 of the terminal device 100 monitors the switching message of the application 111 calling the page and starts the timeout timer, which is used for timing.
[0129] Step 617: The application 111 and the application 211 of the terminal device 100 establish a communication connection in a peer-to-peer mode through touch.
[0130] It can be understood that Figure 4 (a) and (b) of FIG. 4 , when the NFC chip 102 and the NFC chip 202 stop polling, the NFC chip 102 and the NFC chip 202 are both in peer-to-peer mode, and the application 111 and the application 211 establish a communication connection in peer-to-peer mode by touching.
[0131] Step 618: The application 111 sends a service execution instruction to the application 211 of the terminal device 200 on the point-to-point communication connection.
[0132] It can be understood that the service may be any service that can be conceived by persons skilled in the art and is not limited here.
[0133] For example, corresponding to the application scenario of money transfer, the service execution instruction may be an instruction for the terminal device 200 to obtain the account information of the application 211 so as to enable the terminal device 100 to transfer money to the account corresponding to the account information of the application 211.
[0134] For another example, corresponding to the application scenario of product page sharing, the service execution instruction may be for the terminal device 200 to open the shared product page in the application 211. In addition, corresponding to the page sharing scenario, the shared information may be a news page in a news application, a game page in a game application, a music playback interface in a music application, or an entry page for opening a health code, but is not limited thereto.
[0135] Step 619: upon receiving the service execution instruction sent by the application 111, the application 211 executes the service instruction.
[0136] For example, corresponding to the money transfer application scenario, the payment application 111 of the terminal device 200 executes an instruction to obtain the account information of the payment application. Figure 7GAs shown, the terminal device 100 is provided with an NFC chip in the middle to top area of the back, and the back area where the NFC chip is located is the bump area A; similarly, the terminal device 200 is provided with an NFC chip in the middle to top area of the back, and the back area where the NFC chip is located is the bump area B. When the terminal device 100 detects that the bump area A is in contact with the bump area B of the terminal device 200 or is close to the bump area B of the terminal device 200 at a close distance (for example, less than or equal to 1 cm), the account information of the payment application on the terminal device 200 can be obtained from the terminal device 200.
[0137] For another example, in the application scenario of page sharing, the shopping application 211 of the terminal device 200 executes an instruction to open the target product page in the shopping application. Fig. 9 (a) and Fig. 9 As shown in (b), user 1 can bring the touch area A of the terminal device 100 into contact with the touch area B of the terminal device 200 or bring them close together (for example, less than or equal to 1 cm). When the terminal device 200 detects this operation, it can automatically open the target product page 12 on the shopping application.
[0138] Step 620 : Application 211 returns the service execution result to application 111 .
[0139] It is understandable that in some embodiments, the terminal device 200 can send the business execution result to the terminal device 200 in a point-to-point mode by touching the terminal device 100 in the NFC chip area (close to a preset distance). The business execution result can be account information in a transfer application scenario, or a notification message of successful sharing of a product page, as well as other business execution results that can be thought of by people in this field, and are not limited here.
[0140] For example, corresponding to the page sharing scenario, the terminal device 100 detects that the touch area A is in contact with or close to the touch area B of the terminal device 200 (for example, less than or equal to 1 cm), and the shopping application 211 returns a notification message to open the target product page in the shopping application 211.
[0141] In addition, it can be understood that in other embodiments, during the process of data transmission between the terminal device 100 and the terminal device 200 through NFC technology, there is unstable communication, and the communication between the terminal device 100 and the terminal device 200 is interrupted. In order to solve this problem, the embodiment of the present application can also send an instruction to establish Bluetooth communication to the terminal device 200 through a touch after step 617, so that the terminal device 100 and the terminal device 200 can subsequently interact, send or obtain business data with the terminal device 200 through Bluetooth.
[0142] Step 621: the application 211 receives the service execution result returned by the application 211 and switches the page.
[0143] For example, corresponding to the money transfer application scenario, the terminal device 100 first switches to the money transfer page containing the account information of the application 211, and reopens the card simulation mode and the card reader mode.
[0144] For example, the terminal device 100 switches to displaying a transfer interface including account information of a payment application on the terminal device 200, such as Figure 7H As shown, the account information "A" of the payment application is automatically displayed in the account input box 5 of the transfer interface. It is understandable that the account information of the payment application can be a mobile phone number, a custom account, an ID number, a custom name, etc. When the user 1 enters the amount to be transferred in the amount input box 6, for example, 200 yuan, and clicks the transfer button 7, the terminal device 200 detects this user operation, that is, transfers money to the account corresponding to the payment application on the terminal device 200, for example, transfers 200 yuan.
[0145] Then, the terminal device 100 detects that the user enters the transfer amount on the transfer page containing the account information of the application 211 and selects the transfer, and prompts the user with information that the transfer is successful. When the user selects the confirmation button on the prompt interface or presses the return key to return to the desktop of the terminal device 100, the transfer page is left. Fig.7I As shown, the terminal 100 displays a system prompt message: "Touch and transfer successful!".
[0146] For example, corresponding to the page sharing application scenario, the terminal device 100 switches to a page containing prompt information, and the prompt information is used to prompt the user that the terminal device 200 has opened the target product page in the shopping application 212.
[0147] Step 622: The touch service module 112 monitors the application 111 calling the page switching message or the timeout period.
[0148] It can be understood that in some embodiments, when the touch service module 112 monitors the application 111 calling the switching message of the page or reaches the timeout period, it stops monitoring the application 111 calling the switching message of the page and stops the timer.
[0149] Step 623: the touch service module 112 sends one or more NFC mode modification instructions to the NFC chip driver 114, and the NFC mode modification instructions are used to restore the initial state of each NFC mode recorded in step 613, that is, to turn on the card reader mode and the card emulation mode.
[0150] Step 624: The NFC chip driver 114 executes the NFC mode modification instruction.
[0151] It can be understood that Figure 4 (a), the NFC chip driver 114 of the terminal device 100 drives the NFC chip 102 to open the card reader mode and the card emulation mode.
[0152] Step 625 : the NFC chip driver 114 returns the NFC mode modification instruction execution result to the touch service module 112 .
[0153] It can be understood that the execution result of the NFC mode modification instruction is that the NFC chip 102 turns on the card reader mode and the card emulation mode, and the card reader mode and the card emulation mode re-participate in polling.
[0154] Step 626: The touch service module 112 stops monitoring the switching message of the application 111 calling the page and stops the timer.
[0155] It is understood that when the tap-and-pay page switches or times out, the tap-and-pay service automatically restores the card reader and card emulation mode. The setting time can be 1 minute, 2 minutes, etc.
[0156] References to "one embodiment" or "an embodiment" in the specification mean that the specific features, structures, or characteristics described in conjunction with the embodiment are included in at least one exemplary implementation or technology disclosed in the present application. The appearance of the phrase "in one embodiment" in various places in the specification does not necessarily all refer to the same embodiment.
[0157] The present application also discloses a device for performing the operations in the text. The device can be constructed specifically for the required purpose or it can include a general-purpose computer selectively activated or reconfigured by a computer program stored in the computer. Such a computer program can be stored in a computer-readable medium, such as, but not limited to, any type of disk, including a floppy disk, an optical disk, a CD-ROM, a magneto-optical disk, a read-only memory (ROM), a random access memory (RAM), an EPROM, an EEPROM, a magnetic or optical card, an application-specific integrated circuit (ASIC) or any type of medium suitable for storing electronic instructions, and each can be coupled to a computer system bus. In addition, the computer mentioned in the specification may include a single processor or may be an architecture involving multiple processors for increased computing power.
[0158] The process and display proposed herein do not inherently relate to any specific computer or other device. Various general-purpose systems may also be used together with the program according to the teachings herein, or it may prove convenient to construct more special-purpose devices to perform one or more method steps. The structure for various of these systems is discussed in the following description. In addition, any specific programming language sufficient to implement the technology and embodiments disclosed in the present application may be used. Various programming languages may be used to implement the present disclosure, as discussed herein. In addition, the language used in this specification has been primarily selected for readability and instructive purposes and may not be selected to depict or limit the disclosed subject matter. Therefore, the present application discloses the scope of the concept discussed herein to be intended to illustrate rather than to limit.
Claims
1. A method for transmitting information between terminal devices, applied to a first terminal device, wherein the first terminal device includes a target application and a near field communication module, characterized in that: The method comprises: receiving a user interaction input, wherein the user interaction input is used to trigger a first near field service of the target application; In response to the first near field service request of the target application, determining whether the target application meets a condition of only opening the peer-to-peer mode, the condition of only opening the peer-to-peer mode comprising that the identification information of the target application indicates that the target application has permission to open the peer-to-peer mode; When it is determined that the target application meets the condition of only opening the peer-to-peer mode, setting the working mode of the near field communication module to only opening the peer-to-peer mode, wherein only opening the peer-to-peer mode includes opening the peer-to-peer mode and closing the card emulation mode and the card reader mode; When the first terminal device determines that the distance between the first terminal device and the second terminal device is less than a distance threshold, the first terminal device initiates the first near-field service to the second terminal device according to the near-field communication module.
2. The method according to claim 1, characterized in that The near field communication module includes a near field communication chip driver and a near field communication chip, and the setting of the working mode of the near field communication module to only enable the point-to-point mode includes: The near field communication chip driver sends a working mode modification instruction to the near field communication chip; The near field communication chip changes the mode of the near field communication chip to only enable the point-to-point mode in response to the working mode modification instruction.
3. The method according to claim 2, characterized in that The receiving user interaction input comprises: In response to the user selecting the near field service mode on the target application, displaying a prompt message to the user, the prompt message being used to prompt the user whether to select to set the near field communication working mode to only enable the point-to-point mode; In response to a first operation by the user, the near field communication working mode is set to enable only the point-to-point mode.
4. The method according to claim 1, characterized in that: The first near-field service includes transferring money to a first account of the target application in the second terminal device, and initiating the first near-field service to the second terminal device includes: Sending an instruction to the second terminal device to obtain the first account information; Acquire the first account information from the second terminal device; In response to a transfer operation performed by a user on the target application of the first terminal device, transfer money to the first account based on the first account information.
5. The method according to claim 4, characterized in that The target application includes a payment application.
6. The method according to claim 1, characterized in that The first near field service includes opening and displaying a target page in the target application in the second terminal device, and initiating the first near field service to the second terminal device includes: Sending a display target page instruction to a target application of the second terminal device; The second terminal device opens and displays the target page in the target application according to the display target page instruction.
7. The method according to claim 4 or 5, characterized in that: The target application includes a shopping application.
8. The method according to claim 6, characterized in that The target page is a product page.
9. A readable medium, characterized in that: The readable medium stores instructions, which, when executed on a terminal device, enable the machine to execute the method for transmitting information between terminal devices according to any one of claims 1 to 8.
10. A terminal device, characterized in that: include: a memory for storing instructions to be executed by one or more processors of the terminal device, and The processor is one of the processors of the terminal device, and is used to execute the information transmission method between terminal devices according to any one of claims 1 to 8.
Citation Information
Patent Citations
Mobile terminal, NFC payment method, NFC payment device and NFC payment system
CN103413218A
Communication method and remote terminal
CN104660644A
Starting method and device for working mode of NFC (Near Field Communication) chip
CN107071704A
Control method and device of near field communication device, medium and electronic equipment
CN112188461A
Mobile communication system using NFC card
KR1020130119203A
