NFC communication method, electronic device and system
By communicating with the NFC TAG chip via radio frequency field, data can be read and transmitted, solving the problem of cumbersome operation steps in existing NFC technology and achieving the effect of simplifying operation and improving user experience.
Patent Information
- Application Number
- CN202110221353.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-27
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2041-02-27
AI Technical Summary
In existing NFC technology, a single touch between devices can only complete simple data processing. Subsequent data interaction requires other wireless channels, making the operation cumbersome and resulting in a poor user experience.
By configuring an NFC control chip in the first electronic device, a radio frequency field is generated to communicate with the NFC TAG chip of the second electronic device, read tag data and perform operations, realize NFC pass-through transmission, and trigger the second device to complete multiple operations.
It enables multiple operations to be completed with a single touch, simplifying user steps and improving user experience.
Smart Images

Figure CN114980048B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of wireless communications, and in particular to an NFC communication method, electronic equipment and system. Background Art
[0002] With the development of wireless communication technology, more and more wireless communication technologies are applied to communication and data exchange between smart devices to improve the working efficiency of smart devices in home or office scenarios. Among them, near field communication (NFC) technology is widely used. NFC evolved from contactless radio frequency identification (RFID) technology. This technology is based on smart devices that support NFC function, and devices with NFC tags (TAG) are auxiliary. Through the operation of touching each other between devices, one-touch connection or data exchange between devices is achieved.
[0003] However, in the existing NFC technology, a single touch between devices can only complete simple data processing. Subsequent data interaction needs to rely on other wireless channels established between devices, such as Bluetooth, wireless fidelity (Wi-Fi), etc. It is impossible to complete multiple data interactions with only one touch. Therefore, for users, the operating steps of the existing technology are cumbersome and the operation is very inconvenient. Summary of the invention
[0004] The present application provides an NFC communication method, electronic device and system, which realizes that a first electronic device including an NFC control chip can obtain TAG data stored in the NFC TAG chip of a second electronic device when it is close to a second electronic device with an NFC TAG chip, complete a first operation, and send the direct data to the second electronic device through NFC direct transmission, triggering the second electronic device to complete a second operation. This simplifies the user's operation.
[0005] In a first aspect, the present application provides an NFC communication system, which includes: a first electronic device and a second electronic device, wherein the first electronic device is configured with a first short-range wireless communication NFC control chip, and the second electronic device is configured with a first short-range wireless communication tag NFC TAG chip. The first NFC control chip is used to modulate a radio frequency field of a specified frequency to communicate with the first NFC TAG chip, and the first NFC TAG chip is used to sense the radio frequency field to obtain energy, and load modulate the radio frequency field to communicate with the first NFC control chip. The first electronic device is used to read the first tag data stored in the first NFC TAG chip through the radio frequency field generated by the first NFC control chip. The first electronic device is also used to perform a first operation after reading the tag data, and send direct data to the second electronic device through the first NFC control chip. The second electronic device is used to perform a second operation after receiving the direct data through the first NFC TAG chip.
[0006] Through the NFC communication system provided in the present application, it is possible to achieve the effect of triggering multiple operations by a single touch between the first electronic device and the second electronic device, thus saving the user's operation steps.
[0007] In a possible implementation, the first electronic device is further used to display the first interface of the first application before reading the first tag data. The first tag data includes the Bluetooth media access control MAC address of the second electronic device and the business processing attribute of the second electronic device. The first operation includes: when the business processing attribute of the second electronic device is the first attribute, establishing a Bluetooth connection with the second electronic device based on the Bluetooth MAC address of the second electronic device. Based on the Bluetooth connection, establishing a wireless local area network WLAN direct connection with the second electronic device. Sending the first display data to the second electronic device through the WLAN direct connection. The second electronic device is also used to display a second interface based on the first display data after receiving the first display data, and the display content in the second interface is the same as the display content in the first interface. The direct data includes the account information of the first application and the identifier of the first application, and the account information includes the account identifier and account password of the first application. The second operation includes: based on the account information and the identifier of the first application, logging in the account information in the first application on the second electronic device.
[0008] Through this possible implementation method, it is possible to complete the screen projection operation of the first electronic device to the second electronic device and the synchronization of the account information of the specified application on the first electronic device to the second electronic device by bringing the first electronic device close to the second electronic device. The second electronic device can automatically log in to the first application, reducing the user's operation steps and improving the user experience.
[0009] In one possible implementation, the tag data includes the Bluetooth media access control MAC address of the second electronic device and the business processing attribute of the second electronic device. The first operation includes: when the business processing attribute of the second electronic device is the second attribute, establishing a Bluetooth connection with the second electronic device based on the Bluetooth MAC address of the second electronic device. The direct data includes first wireless high-fidelity Wi-Fi connection information, and the first Wi-Fi connection information includes the Wi-Fi name, Wi-Fi password and encryption method of the first Wi-Fi network. The second operation includes: based on the Wi-Fi connection information, connecting to the first Wi-Fi network established by the routing device.
[0010] Through this possible implementation, the electronic device 100 can also send the Wi-Fi name, Wi-Fi password, encryption method, etc. of the routing device 300 stored in the memory space to the electronic device 200 through NFC direct transmission. After receiving the Wi-Fi name, Wi-Fi password, encryption method, etc., the electronic device 200 can access the corresponding wireless local area network, which reduces the user's operation steps and improves the user experience.
[0011] In a possible implementation, the routing device is configured with a second NFC TAG chip, and the second NFC TAG chip is used to sense the radio frequency field to obtain energy, and load modulate the radio frequency field to communicate with the first NFC control chip. The first electronic device is also used to read the second tag data stored in the second NFC TAG chip through the radio frequency field generated by the first NFC control chip before sending the direct data to the second electronic device through the NFC control chip, wherein the second tag data includes the first Wi-Fi connection information. The first electronic device is also used to connect to the first Wi-Fi network based on the first Wi-Fi connection information.
[0012] In a possible implementation, the first electronic device is further configured to receive the first WiFi connection information input by a user before sending the direct data to the second electronic device through the NFC control chip. The first electronic device is further configured to connect to the first Wi-Fi network based on the first Wi-Fi connection information.
[0013] In a possible implementation, the first tag data includes a Bluetooth media access control MAC address of the second electronic device and a service processing attribute of the second electronic device. The first electronic device is further used to read the third tag data stored in a third NFCTAG chip of a third electronic device through the radio frequency field generated by the first NFC control chip before reading the first tag data, and the third tag data includes the Bluetooth MAC address of the third electronic device and the service processing attribute of the third electronic device. The first electronic device is further used to output a first prompt when the service processing attribute of the third electronic device is a third attribute, and the first prompt is used to prompt the user whether to set the third attribute as a high-priority service attribute. The first electronic device is further used to receive a first input from the user. The first electronic device is further used to set the third attribute as a high-priority service attribute in response to the first input from the user. The first operation includes: when the service processing attribute of the second electronic device is the first attribute, establishing a Bluetooth connection with the second electronic device based on the Bluetooth MAC address of the second electronic device. Based on the Bluetooth connection, establishing a wireless local area network WLAN direct connection with the second electronic device. Sending second display data to the second electronic device through the WLAN direct connection. The direct data includes a setting instruction, and the setting instruction is used to instruct the second electronic device to enable the multi-screen collaborative function corresponding to the third attribute. The second operation includes: in response to the setting instruction, executing the multi-screen collaborative function corresponding to the third attribute based on the second display data.
[0014] Through this possible implementation, the second electronic device can realize multiple functions, and the operation of switching between functions is simple and convenient, which reduces the user's operation steps and improves the user experience.
[0015] In a possible implementation, the first electronic device is further used to display the first interface of the first application before reading the first tag data. The multi-screen collaborative function corresponding to the third attribute is executed based on the second display data, specifically including: based on the second display data, displaying in the first window and the second window, the first window includes the second interface of the first application and the third interface of the first application, the display content in the second interface is the same as the display content in the first interface, and the display content in the third interface is different from the display content in the first interface.
[0016] In a possible implementation, the first tag data includes the business processing attribute of the second electronic device. The first electronic device is also used to read the third tag data stored in the third NFC TAG chip of the third electronic device through the radio frequency field generated by the first NFC control chip before reading the first tag data, and the third tag data includes the Bluetooth MAC address of the third electronic device. The first electronic device is also used to establish a Bluetooth connection with the third electronic device based on the Bluetooth MAC address of the third electronic device. The first operation includes: when the business processing attribute of the second electronic device is a fourth attribute, displaying a third prompt, the third prompt is used to prompt the user whether to copy the Bluetooth MAC address of the third electronic device to the second electronic device. The first electronic device is specifically used to send the direct data to the second electronic device through the first NFC control chip after receiving the second input of the user. The direct data includes the Bluetooth MAC address of the third electronic device. The second operation includes: writing the fourth tag data into the first NFC TAG chip, and the fourth tag data includes the Bluetooth MAC address of the third electronic device.
[0017] Through this possible implementation method, when the first electronic device establishes a Bluetooth connection with the third electronic device again, it can obtain the Bluetooth MAC address of the third electronic device from the NFC TAG chip on the second electronic device by bringing it close to the second electronic device, and establish a Bluetooth connection with the third electronic device based on the Bluetooth MAC address without having to bring it close to the third electronic device, thereby making user operation more convenient and improving user experience.
[0018] In a possible implementation, the first electronic device is further configured to read the fourth tag data stored in the first NFC TAG chip through the radio frequency field generated by the first NFC control chip after disconnecting the Bluetooth connection. The first electronic device is further configured to establish a Bluetooth connection with the third electronic device based on the Bluetooth MAC address of the third electronic device in the fourth tag data.
[0019] In a possible implementation, the first electronic device is further used to send a radio frequency field waiting instruction to the second electronic device through the first NFC control chip before sending the direct data to the second electronic device through the first NFC control chip, and the radio frequency field waiting instruction is used to instruct the second electronic device to keep receiving the data sent by the first NFC control chip through the first NFC TAG chip.
[0020] In a possible implementation, the second electronic device is further configured to send a response instruction to the first electronic device through the first NFC TAG chip after receiving the direct data through the first NFC TAG chip, wherein the response instruction is used to notify the first electronic device that the second electronic device has received the direct data.
[0021] In a possible implementation, the first tag data further includes a through flag, which is used to indicate whether the second electronic device supports receiving the through data. The first electronic device is specifically configured to: when the value of the through flag is a first value, send the through data to the second electronic device through the first NFC control chip.
[0022] In a second aspect, the present application provides another NFC communication method, which includes: a first electronic device reads the first tag data stored in the first NFC TAG chip of the second electronic device through the radio frequency field generated by the first NFC control chip. The first NFC control chip is used to modulate the radio frequency field to form a specified frequency to communicate with the first NFC TAG chip, and the first NFC TAG chip is used to sense the radio frequency field to obtain energy, and load modulate the radio frequency field to communicate with the first NFC control chip. After reading the tag data, the first electronic device performs a first operation and sends direct data to the second electronic device through the first NFC control chip, and the direct data is used to trigger the second electronic device to perform a second operation.
[0023] Through the NFC communication method provided in the present application, it is possible to achieve the effect of triggering multiple operations by one touch between the first electronic device and the second electronic device, thus saving the user's operation steps.
[0024] In a possible implementation, the first tag data includes the Bluetooth media access control MAC address of the second electronic device and the business processing attribute of the second electronic device. Before reading the first tag data, the method also includes: the first electronic device displays the first interface of the first application. The first operation includes: when the business processing attribute of the second electronic device is the first attribute, a Bluetooth connection is established with the second electronic device based on the Bluetooth MAC address of the second electronic device. Based on the Bluetooth connection, a wireless local area network WLAN direct connection is established with the second electronic device. The first display data is sent to the second electronic device through the WLAN direct connection, and the first display data is used for the second electronic device to display a second interface, and the display content in the second interface is the same as the display content in the first interface. The direct data includes the account information of the first application and the identifier of the first application, and the account information includes the account identifier and account password of the first application. The second operation includes: based on the account information and the identifier of the first application, the account information is logged in in the first application on the second electronic device.
[0025] In one possible implementation, the tag data includes the Bluetooth media access control MAC address of the second electronic device and the business processing attribute of the second electronic device. The first operation includes: when the business processing attribute of the second electronic device is the second attribute, establishing a Bluetooth connection with the second electronic device based on the Bluetooth MAC address of the second electronic device. The direct data includes first wireless high-fidelity Wi-Fi connection information, and the first Wi-Fi connection information includes the Wi-Fi name, Wi-Fi password and encryption method of the first Wi-Fi network. The second operation includes: based on the Wi-Fi connection information, connecting to the first Wi-Fi network established by the routing device.
[0026] In a possible implementation, before the first electronic device sends the direct data to the second electronic device through the NFC control chip, the method further includes: the first electronic device reads the second tag data stored in the second NFC TAG chip through the radio frequency field generated by the first NFC control chip, wherein the second tag data includes the first Wi-Fi connection information. The first electronic device connects to the first Wi-Fi network based on the first Wi-Fi connection information.
[0027] In a possible implementation, before the first electronic device sends the direct data to the second electronic device through the NFC control chip, the method further includes: the first electronic device receives the first Wi-Fi connection information input by the user. The first electronic device is further configured to connect to the first Wi-Fi network based on the first Wi-Fi connection information.
[0028] In a possible implementation, the first tag data includes a Bluetooth media access control MAC address of the second electronic device and a service processing attribute of the second electronic device. Before the first electronic device reads the first tag data, the method further includes: the first electronic device reads the third tag data stored in the third NFC TAG chip of the third electronic device through the radio frequency field generated by the first NFC control chip, and the third tag data includes the Bluetooth MAC address of the third electronic device and the service processing attribute of the third electronic device. When the service processing attribute of the third electronic device is the third attribute, the first electronic device outputs a first prompt, and the first prompt is used to prompt the user whether to set the third attribute as a high-priority service attribute. The first electronic device receives a first input from the user. In response to the first input, the first electronic device sets the third attribute as a high-priority service attribute. The first operation includes: when the service processing attribute of the second electronic device is the first attribute, establishing a Bluetooth connection with the second electronic device based on the Bluetooth MAC address of the second electronic device. Based on the Bluetooth connection, establishing a wireless local area network WLAN direct connection with the second electronic device. Sending second display data to the second electronic device through the WLAN direct connection. The direct data includes a setting instruction, and the setting instruction is used to instruct the second electronic device to enable the multi-screen collaborative function corresponding to the third attribute. The second operation includes: in response to the setting instruction, executing the multi-screen collaborative function corresponding to the third attribute based on the second display data.
[0029] In a possible implementation, before the first electronic device reads the first tag data, the method further includes: the first electronic device displays the first interface of the first application. The multi-screen collaboration function corresponding to the third attribute is executed based on the second display data, specifically including: based on the second display data, displaying in the first window and the second window, the first window includes the second interface of the first application and the third interface of the first application, the display content in the second interface is the same as the display content in the first interface, and the display content in the third interface is different from the display content in the first interface.
[0030] In a possible implementation, the first tag data includes the business processing attribute of the second electronic device. Before the first electronic device reads the first tag data, the method further includes: the first electronic device reads the third tag data stored in the third NFC TAG chip of the third device through the radio frequency field generated by the first NFC control chip, and the third tag data includes the Bluetooth MAC address of the third electronic device. The method also includes: the first electronic device establishes a Bluetooth connection with the third electronic device based on the Bluetooth MAC address of the third electronic device. The first operation includes: when the business processing attribute of the second electronic device is a fourth attribute, displaying a third prompt, and the third prompt is used to prompt the user whether to copy the Bluetooth MAC address of the third electronic device to the second electronic device. The first electronic device sends direct data to the second electronic device through the first NFC control chip, specifically including: after receiving the second input of the user, the first electronic device sends the direct data to the second electronic device through the first NFC control chip. The second operation includes: in response to receiving the second input of the user, writing the fourth tag data into the first NFC TAG chip, and the fourth tag data includes the Bluetooth MAC address of the third electronic device.
[0031] In a possible implementation, the method further includes: after the first electronic device disconnects the Bluetooth connection, reading the fourth tag data stored in the first NFC TAG chip through the radio frequency field generated by the first NFC control chip. The first electronic device establishes a Bluetooth connection with the third electronic device based on the Bluetooth MAC address of the third electronic device in the fourth tag data.
[0032] In a possible implementation, before the first electronic device sends direct data to the second electronic device through the first NFC control chip, the method further includes: the first electronic device sends a radio frequency field waiting instruction to the second electronic device through the first NFC control chip, and the radio frequency field waiting instruction is used to instruct the second electronic device to keep receiving data sent by the first NFC control chip through the first NFC TAG chip.
[0033] In a possible implementation, after the first electronic device sends the direct data to the second electronic device through the first NFC control chip, the method further includes: the first electronic device receives a response instruction sent by the second electronic device through the first NFC TAG chip, and the response instruction is used to notify the first electronic device that the second electronic device has received the direct data.
[0034] In a possible implementation, the first tag data further includes a through flag, and the through flag is used to indicate whether the second electronic device supports receiving the through data. The first electronic device sends the through data to the second electronic device through the first NFC control chip, specifically including: when the value of the through flag is a first value, the first electronic device sends the through data to the second electronic device through the first NFC control chip.
[0035] In a third aspect, the present application provides an NFC communication method, the method comprising: a second electronic device load modulates a radio frequency field generated by a first electronic device through a first NFC control chip through a first NFC TAG chip, and sends the first tag data stored in the first NFCTAG chip to the first electronic device. The first NFC TAG chip is used to sense the radio frequency field generated by the first NFC control chip by the first electronic device to obtain energy, and load modulate the radio frequency field to communicate with the first NFC control chip. The first tag data is used to trigger the first electronic device to perform a first operation, and send direct data to the second electronic device through the first NFC control chip. After receiving the direct data sent by the first electronic device, the second electronic device performs a second operation.
[0036] In a possible implementation, the first tag data includes the Bluetooth media access control MAC address of the second electronic device and the business processing attribute of the second electronic device. The first operation includes: when the business processing attribute of the second electronic device is the first attribute, establishing a Bluetooth connection with the second electronic device based on the Bluetooth MAC address of the second electronic device. Based on the Bluetooth connection, establishing a wireless local area network WLAN direct connection with the second electronic device. Sending first display data to the second electronic device via the WLAN direct connection, the first display data is used for the second electronic device to display a second interface, and the display content in the second interface is the same as the display content in the first interface. The direct data includes the account information of the first application and the identifier of the first application, and the account information includes the account identifier and account password of the first application. The second operation includes: based on the account information and the identifier of the first application, logging in the account information in the first application on the second electronic device.
[0037] In one possible implementation, the tag data includes the Bluetooth media access control MAC address of the second electronic device and the business processing attribute of the second electronic device. The first operation includes: when the business processing attribute of the second electronic device is the second attribute, establishing a Bluetooth connection with the second electronic device based on the Bluetooth MAC address of the second electronic device. The direct data includes first wireless high-fidelity Wi-Fi connection information, and the first Wi-Fi connection information includes the Wi-Fi name, Wi-Fi password and encryption method of the first Wi-Fi network. The second operation includes: based on the Wi-Fi connection information, connecting to the first Wi-Fi network established by the routing device.
[0038] In one possible implementation, the first tag data includes a Bluetooth media access control MAC address of the second electronic device and a business processing attribute of the second electronic device. The first operation includes: when the business processing attribute of the second electronic device is the first attribute, establishing a Bluetooth connection with the second electronic device based on the Bluetooth MAC address of the second electronic device. Based on the Bluetooth connection, a wireless local area network WLAN direct connection is established with the second electronic device. The second display data is sent to the second electronic device via the WLAN direct connection. The direct data includes a setting instruction, which is used to instruct the second electronic device to turn on the multi-screen collaboration function corresponding to the third attribute. The second operation includes: in response to the setting instruction, executing the multi-screen collaboration function corresponding to the third attribute based on the second display data.
[0039] In one possible implementation, the first tag data includes the business processing attribute of the second electronic device. The first operation includes: when the business processing attribute of the second electronic device is a fourth attribute, displaying a third prompt, the third prompt is used to prompt the user whether to copy the Bluetooth MAC address of the third electronic device to the second electronic device. The first electronic device sends direct data to the second electronic device through the first NFC control chip, specifically including: after receiving the second input of the user, the first electronic device sends the direct data to the second electronic device through the first NFC control chip. The second operation includes: in response to receiving the second input of the user, writing fourth tag data to the first NFC TAG chip, the fourth tag data including the Bluetooth MAC address of the third electronic device.
[0040] In a possible implementation, before the second electronic device receives the direct data sent by the first electronic device through the first NFC control chip, the method also includes: the second electronic device receives a radio frequency field waiting instruction sent by the first electronic device through the first NFC control chip, and the radio frequency field waiting instruction is used to instruct the second electronic device to keep receiving the data sent by the first NFC control chip through the first NFC TAG chip.
[0041] In a possible implementation, before the second electronic device receives the direct data sent by the first electronic device through the first NFC control chip, the method further includes: the second electronic device sends a response instruction to the first electronic device through the first NFC TAG chip, and the response instruction is used to notify the first electronic device that the second electronic device has received the direct data.
[0042] In a possible implementation, the first tag data further includes a through flag, which is used to indicate whether the second electronic device supports receiving the through data. The second electronic device receives the through data sent by the first electronic device through the first NFC control chip, specifically including: when the value of the through flag is a first value, the second electronic device receives the through data sent by the first electronic device through the first NFC control chip.
[0043] In a fourth aspect, the present application provides an electronic device, which is a first electronic device, comprising: one or more processors, an NFC control chip, and one or more memories. Among them, the one or more memories, the NFC control chip and the one or more processors are coupled, and the one or more memories are used to store computer program codes, and the computer program codes include computer instructions. When the one or more processors execute the computer instructions, the first electronic device executes the method in any possible implementation of the second aspect.
[0044] In a fifth aspect, the present application provides another electronic device, which is a second electronic device, including one or more processors, an NFCTAG chip, and one or more memories. Among them, the one or more memories, the NFCTAG chip and the one or more processors are coupled, and the one or more memories are used to store computer program codes, and the computer program codes include computer instructions. When the one or more processors execute the computer instructions, the second electronic device executes the method in any possible implementation of any of the above three aspects.
[0045] In a sixth aspect, the present application provides a chip system, applied to a first electronic device, the chip system comprising an application processor and an NFC control chip, and the chip system executes the method in any possible implementation of the second aspect above.
[0046] In a seventh aspect, the present application provides another chip system, which is applied to a second electronic device. The chip system includes an application processor and an NFCTAG chip. The chip system executes the method in any possible implementation of the third aspect above.
[0047] In an eighth aspect, the present application provides a computer storage medium comprising computer instructions, which, when executed on a first electronic device, enables the electronic device to execute a method in any possible implementation of the second aspect.
[0048] In a ninth aspect, the present application provides another computer storage medium, comprising computer instructions, which, when executed on a second electronic device, enable the electronic device to execute a method in any possible implementation of the third aspect.
[0049] In a tenth aspect, the present application provides a computer program product, which, when executed on a first electronic device, enables the first electronic device to execute a method in any possible implementation of the second aspect.
[0050] In an eleventh aspect, the present application provides another computer program product, which, when executed on a second electronic device, enables the second electronic device to execute a method in any possible implementation of the third aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1A It is a schematic diagram of the architecture of an NFC communication system provided in an embodiment of the present application;
[0052] Figure 1B-Figure 1D This is a schematic diagram of data interaction based on NFC communication technology provided in an embodiment of the present application;
[0053] Figure 2 It is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;
[0054] Figure 3 is a schematic diagram of the hardware structure of another electronic device provided in an embodiment of the present application;
[0055] Figure 4 It is a schematic diagram of a module structure of an electronic device provided in an embodiment of the present application;
[0056] Figure 5A is a schematic diagram of an NDEF standard protocol format provided in an embodiment of the present application;
[0057] Figure 5B is a schematic diagram of an NDEF TAG header format provided in an embodiment of the present application;
[0058] Figure 5C It is a schematic diagram of NDEF record segmentation provided in an embodiment of the present application;
[0059] Figure 5D-5G is a schematic diagram of TAG data update provided by an embodiment of the present application;
[0060] Figure 5H is a schematic diagram of an NFC Record provided in an embodiment of the present application;
[0061] Fig. 6A is a schematic diagram of an NDEF protocol format provided in an embodiment of the present application;
[0062] Figure 6B It is a schematic diagram of a radio frequency field waiting instruction protocol provided in an embodiment of the present application;
[0063] Figure 6C is a schematic diagram of a data transmission protocol format provided in an embodiment of the present application;
[0064] Fig.6D It is a schematic diagram of a response protocol format provided in an embodiment of the present application;
[0065] Figure 7 It is a flowchart of an NFC communication method provided in an embodiment of the present application;
[0066] Figure 8A-8G is a schematic diagram of a user interface provided in an embodiment of the present application;
[0067] Fig. 9 It is a flowchart of an NFC communication method provided in an embodiment of the present application;
[0068] Figures 10A-10D is a set of user interface schematic diagrams provided in an embodiment of the present application;
[0069] Fig.11 It is a flowchart of an NFC communication method provided in an embodiment of the present application;
[0070] Figure 12A-12B is a set of user interface schematic diagrams provided in an embodiment of the present application;
[0071] Fig.13 It is a flowchart of an NFC communication method provided in an embodiment of the present application;
[0072] Fig.14 is a set of user interface schematic diagrams provided in an embodiment of the present application;
[0073] Fig.15 It is a schematic diagram of module interaction provided in an embodiment of the present application. DETAILED DESCRIPTION
[0074] The technical solutions in the embodiments of the present application will be described clearly and in detail below in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in the text is only a description of the association relationship of the associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0075] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
[0076] First, a communication system 10 provided by the implementation of the present application is introduced.
[0077] like Figure 1A As shown in the example, the communication system 10 may include an electronic device 100 and an electronic device 200 .
[0078] The electronic device 100 can be an electronic device such as a mobile phone, a tablet computer, a PC, etc. Specifically, the electronic device 100 can have an NFC module, and can also have one or more of a Bluetooth (BT) module and a wireless local area network (WLAN) module. The electronic device 100 can generate a radio frequency (RF) field with a specified frequency (e.g., 13.56 MHz) through the NFC module, and transmit data to a nearby target device (e.g., the electronic device 200) by directly modulating the RF field. The electronic device 100 can also generate an RF field with a specified frequency (e.g., 13.56 MHz) through the NFC module, and obtain the TAG data in the NFC TAG chip by modulating the RF field through the NFC TAG chip load within a specified distance range from the electronic device 100 (e.g., within 10 cm from the electronic device 100). In this process, the electronic device 100 can detect the presence of an NFC TAG chip nearby by using the energy obtained by the NFC TAG chip from the RF field through electromagnetic induction, thereby generating the original sinusoidal wave inverse frequency or a wave with changed frequency properties. The electronic device 100 may also detect and scan the devices near the electronic device 100 through one or more transmission signals of the Bluetooth module and the WLAN module, so that the electronic device 100 can use one or more wireless communication technologies in Bluetooth or WLAN to find nearby devices (such as the electronic device 200), and can establish a wireless communication connection with nearby devices, and transmit data to nearby devices (such as the electronic device 200) through one or more wireless communication technologies in Bluetooth or WLAN. Among them, the Bluetooth module can provide solutions including one or more Bluetooth communications in classic Bluetooth (basic rate / enhanced data rate, BR / EDR) or Bluetooth low energy (bluetooth low energy, BLE). The WLAN module can provide solutions including one or more WLAN communications in wireless fidelity direct (wireless fidelity direct, Wi-Fi direct), wireless fidelity local area networks (wireless fidelity local area networks, Wi-Fi LAN) or wireless fidelity software access points (wireless fidelity software access point, Wi-Fi softAP).
[0079] The electronic device 200 may be a smart phone, a tablet computer, a desktop computer or other types of electronic devices, with strong computing and processing capabilities and sufficient internal storage space, etc. The electronic device 200 may also be a smart watch, a smart bracelet, a smart speaker, etc., with weak computing and processing capabilities or small internal storage space. Specifically, the electronic device 200 may have an NFC TAG module, and may also have one or more of a Bluetooth module and a WLAN module. The electronic device 200 may be in the RF field generated by the electronic device 100, and obtain an induced current by electromagnetic induction through the antenna in the NFC TAG module, and the induced current may provide energy for the NFC TAG module. After the NFC TAG module obtains energy, it may transmit data to the electronic device 100 by load modulating the RF field. The electronic device 200 may also receive or transmit wireless signals through one or more of a Bluetooth module and a WLAN module. Among them, the Bluetooth module may provide a solution including classic Bluetooth (Bluetooth 2.1 standard) or one or more Bluetooth communications in BLE. The WLAN module may provide a solution including one or more WLAN communications in Wi-Fi direct, Wi-Fi LAN or Wi-Fi softAP. Among them, the load modulation can be that the electronic device 200 adjusts the electrical parameters of the oscillation circuit in the NFC TAG chip according to the beat of the data stream based on the radio frequency field generated by the electronic device 100, so that the size and phase of the impedance in the NFC TAG chip change accordingly, thereby completing the modulation.
[0080] like Figure 1A As shown, the electronic device 100 can transmit data information to the electronic device 200 through wireless communication technology. Specifically, the wireless communication can be NFC communication, or one or more wireless communication connections among Bluetooth, Wi-Fi direct or Wi-Fi softAP.
[0081] It is understandable that the exemplary communication system structure shown in the embodiment of the present application does not constitute a specific limitation on the communication system 10. In other embodiments of the present application, the communication system 10 may include more or fewer electronic devices than shown in the figure, or may include electronic devices of different types than those shown in the figure. For example, the communication system 10 may also include multiple mobile phones, or multiple different types of electronic devices, such as displays, tablet computers, PCs, etc. with communication functions. The present application does not limit this.
[0082] At present, the NFC communication system may include an electronic device 100 having an NFC control chip and an electronic device 200 having an NFC TAG chip. Take the electronic device 100 as an example, which is a mobile phone, and the electronic device 200 as an example, which is a Bluetooth speaker. When the contactless reading function of the NFC TAG tag in the Bluetooth speaker is turned on, the mobile phone obtains the TAG data stored in the NFC TAG chip in the Bluetooth speaker by touching the Bluetooth speaker, for example, including the media access control address (MAC) of the Bluetooth speaker. The data format stored in the NFC TAG chip may be the NFC data exchange format (NDEF). After the mobile phone parses the TAG data in the data format, it obtains the Bluetooth MAC address of the Bluetooth speaker from the TAG data, and hands the MAC address to the processor for further processing, thereby establishing a Bluetooth connection with the Bluetooth speaker, and subsequent data interaction will be completed through the Bluetooth connection.
[0083] In some embodiments of the present application, when the Bluetooth speaker is within a specified distance range from the mobile phone (for example, within 10 cm from the mobile phone), the mobile phone can also obtain the TAG data stored in the NFC TAG chip in the Bluetooth speaker. This application does not limit this.
[0084] Figure 1B-Figure 1D The process of data exchange between a mobile phone and a Bluetooth speaker through the NFC communication technology is exemplified. The mobile phone may include but is not limited to a Bluetooth module and an NFC module. For the description of the Bluetooth module and the NFC module, please refer to the aforementioned Figure 1A The Bluetooth speaker may include but is not limited to a Bluetooth module, an NFC TAG module and a microcontroller unit. For the description of the Bluetooth module and the NFC TAG module, please refer to the aforementioned Figure 1A The microcontroller unit can be connected to the NFC TAG module via a bus, so the data in the Bluetooth speaker can be written into the NFC TAG module via the bus through the microcontroller unit.
[0085] like Figure 1B As shown, the mobile phone can obtain the connection information stored in the NFC TAG module of Bluetooth speaker A, such as the Bluetooth MAC address of Bluetooth speaker A, by touching the Bluetooth speaker A. After the mobile phone obtains the Bluetooth MAC address of Bluetooth speaker A, it can establish a Bluetooth connection with Bluetooth speaker A. Figure 1CAs shown, when the mobile phone establishes a Bluetooth connection with the Bluetooth speaker A, the audio data in the mobile phone can be sent to the Bluetooth speaker A through the Bluetooth connection. After the Bluetooth speaker A receives the audio data sent by the mobile phone through the Bluetooth connection, it can play the audio according to the audio data.
[0086] like Figure 1D As shown, when the mobile phone obtains the connection information stored in the NFCTAG module of Bluetooth speaker B (such as the Bluetooth MAC address of Bluetooth speaker B) through the touch operation with Bluetooth speaker B, the Bluetooth connection established between the mobile phone and Bluetooth speaker A will be disconnected, and the audio data in the mobile phone cannot be sent to Bluetooth speaker A through the Bluetooth connection. Therefore, Bluetooth speaker A cannot receive the audio data of the mobile phone and cannot play the audio. After the mobile phone obtains the Bluetooth MAC address of Bluetooth speaker B, it can establish a Bluetooth connection with Bluetooth speaker B. The audio data in the mobile phone can be sent to Bluetooth speaker B through the Bluetooth connection. After Bluetooth speaker B receives the audio data sent by the mobile phone through the Bluetooth connection, it can play the audio according to the audio data.
[0087] It can be seen from the above process that the NFC communication method cannot complete multiple data interactions with only one touch operation, and there are problems such as low work efficiency and inconvenient user operation. At the same time, since the NFC TAG chip has the contactless writing function turned on, there may be security risks such as data theft or tampering. In addition, since the data is stored in the NFC TAG chip, the mobile phone will read and process additional non-essential information when re-reading the NFC TAG chip, which greatly increases the processing cost and also increases the probability of reading failure.
[0088] Therefore, the embodiment of the present application provides an NFC communication method, which can enable an electronic device 100 including an NFC control chip to obtain TAG data stored in the NFC TAG chip of the electronic device 200 when it is close to an electronic device 200 with an NFC TAG chip. The electronic device 100 can complete the first operation based on the acquired TAG data, and send the direct data to the electronic device 200 through NFC direct transmission, triggering the electronic device 200 to complete the second operation. In this way, multiple operations can be triggered by a single touch between the electronic device 100 and the electronic device 200, saving the user's operation steps.
[0089] Next, an exemplary electronic device 100 provided in an embodiment of the present application is introduced.
[0090] Figure 2 A schematic diagram of the hardware structure of the electronic device 100 is shown.
[0091] The electronic device 100 may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) device, a virtual reality (VR) device, an artificial intelligence (AI) device, a wearable device, an in-vehicle device, a smart home device and / or a smart city device. The embodiments of the present application do not impose any special restrictions on the specific type of the electronic device.
[0092] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0093] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or separate 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.
[0094] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0095] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0096] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0097] In some embodiments, the processor 110 may include one or more interfaces. 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 subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0098] The charging management module 140 is used to receive charging input from the charger. The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and provides power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0099] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0100] 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, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0101] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110. In some embodiments, the wireless communication solution provided by the mobile communication module 150 can enable the electronic device to communicate with devices (such as servers) in the network.
[0102] The modem processor may include a modulator and a demodulator. Among them, 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 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0103] The wireless communication module 160 can provide 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 wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of the signal, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2. In some embodiments, the electronic device 100 can detect or scan the devices near the electronic device 100 by transmitting signals through the Bluetooth module and WLAN module in the wireless communication module 160, and establish a wireless communication connection with the nearby devices and transmit data. The Bluetooth module can provide solutions for one or more Bluetooth communications including classic Bluetooth (Bluetooth 2.1 standard) or Bluetooth low energy. The WLAN module can provide solutions for one or more WLAN communications including Wi-Fi direct, Wi-Fi LAN or Wi-Fi softAP.
[0104] The NFC module can generate an RF field with a specified frequency (e.g., 13.56 MHz), and can send data to a target device (e.g., electronic device 200) near the electronic device 100 by directly modulating the RF field. The NFC module can also obtain TAG data in the NFC TAG chip by modulating the RF field through an NFC TAG chip load within a specified distance range from the electronic device 100 (e.g., within 10 cm from the electronic device 100).
[0105] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, 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 positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0106] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0107] The display screen 194 is used to display images, videos, etc. The display screen 194 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 194, where N is a positive integer greater than 1.
[0108] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0109] ISP is used to process the data fed back by camera 193. 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 ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.
[0110] The camera 193 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 optical 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 193, where N is a positive integer greater than 1.
[0111] 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.
[0112] 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.
[0113] 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.
[0114] The internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).
[0115] Random access memory may include static random-access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM, for example, the fifth generation DDR SDRAM is generally referred to as DDR5 SDRAM), etc.
[0116] Non-volatile memory may include disk storage devices and flash memory.
[0117] Flash memory can be divided into NOR FLASH, NAND FLASH, 3D NAND FLASH, etc. according to the operating principle; single-level cell (SLC), multi-level cell (MLC), triple-level cell (TLC), quad-level cell (QLC), etc. according to the storage unit potential level; universal flash storage (UFS), embedded multi media card (eMMC), etc. according to the storage specification.
[0118] The random access memory can be directly read and written by the processor 110, and can be used to store executable programs (such as machine instructions) of the operating system or other running programs, and can also be used to store user and application data.
[0119] The non-volatile memory may also store executable programs and user and application data, etc., and may be loaded into the random access memory in advance for direct reading and writing by the processor 110 .
[0120] The external memory interface 120 can be used to connect to an external non-volatile memory to expand the storage capacity of the electronic device 100. The external non-volatile memory communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos are stored in the external non-volatile memory.
[0121] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0122] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals.
[0123] The speaker 170A, also called a "horn", is used to convert audio electrical signals into sound signals.
[0124] The receiver 170B, also called a "handset", is used to convert audio electrical signals into sound signals.
[0125] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals.
[0126] When the pressure sensor 180A is used to sense the pressure signal, the pressure signal can be converted into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. The gyroscope sensor 180B can be used to determine the motion posture of the terminal 100. The air pressure sensor 180C is used to measure the air pressure. The magnetic sensor 180D includes a Hall sensor, and the magnetic sensor 180D can be used to detect the opening and closing of the flip leather case. The acceleration sensor 180E can detect the magnitude of the acceleration of the terminal 100 in various directions (generally three axes). The distance sensor 180F is used to measure the distance. The proximity light sensor 180G can also be used for the leather case mode, and the pocket mode automatically unlocks and locks the screen. The ambient light sensor 180L is used to sense the ambient light brightness. The fingerprint sensor 180H is used to collect fingerprints. The temperature sensor 180J is used to detect the temperature. The touch sensor 180K is also called a "touch panel". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180K is used to detect a touch operation acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be arranged on the surface of the terminal 100, which is different from the position of the display screen 194. The bone conduction sensor 180M can obtain a vibration signal. The button 190 includes a power button, a volume button, etc. The motor 191 can generate a vibration prompt. The indicator 192 can be an indicator light, which can be used to indicate the charging status, the change of the power, and can also be used to indicate messages, missed calls, notifications, etc. The SIM card interface 195 is used to connect a SIM card.
[0127] Figure 3 A schematic diagram of the hardware structure of the electronic device 200 is shown.
[0128] like Figure 3 As shown, the electronic device 200 may include a processor 301, a memory 302, a wireless communication module 303, an antenna 307, and a power switch 308. Among them:
[0129] The processor 301 can be used to read and execute computer-readable instructions. In a specific implementation, the processor 301 can mainly include a controller, an arithmetic unit and a register. Among them, the controller is mainly responsible for decoding instructions and sending control signals for operations corresponding to the instructions. The arithmetic unit is mainly responsible for saving register operands and intermediate operation results temporarily stored during the execution of instructions. In a specific implementation, the hardware architecture of the processor 301 can be an application-specific integrated circuit (ASIC) architecture, a MIPS architecture, an ARM architecture or an NP architecture, etc.
[0130] In some embodiments, the processor 301 can be used to parse the signal received by the wireless communication module 303 and / or the wired LAN communication processing module 309 and demodulate the signal. The processor 301 can respond according to the analysis result and perform corresponding operations, such as displaying a corresponding web page, etc. In some embodiments, the processor 301 can also be used to generate a signal sent out by the wireless communication module 303, such as a Bluetooth signal, etc.
[0131] The memory 302 is coupled to the processor 301 and is used to store various software programs and / or multiple sets of instructions. In a specific implementation, the memory 302 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more disk storage devices, flash memory devices, or other non-volatile solid-state storage devices. The memory 302 may store an operating system, such as The memory 302 may also store a communication program, which may be used to communicate with the electronic device 100 or other electronic devices.
[0132] The wireless communication module 303 may include an NFC communication module 306, and one or more of a WLAN communication module 304 and a Bluetooth communication module 305. In some embodiments, the WLAN communication module 304 may be integrated with other communication modules (e.g., a Bluetooth communication module 305). The WLAN communication module 304 and / or the Bluetooth module 305 may monitor signals transmitted by other devices (e.g., electronic device 100), such as measurement signals, scanning signals, etc., and may send response signals, such as measurement responses, scanning responses, etc., so that other devices (e.g., electronic device 100) may find the electronic device 200, and establish a wireless communication connection with other devices (e.g., electronic device 100) through one or more of WLAN, Bluetooth, or other short-range wireless communication technologies for data transmission. The NFC communication module 306 may capture the energy of the RF field generated by other electronic devices (e.g., electronic device 100), and transmit data to the electronic device (e.g., electronic device 100) that generates the RF field in a manner of load modulating the RF field. The NFC communication module 306 may also receive data sent by the electronic device (e.g., electronic device 100) that generates the RF field by directly modulating the RF field. The data received by the NFC module 306 is not stored in the NFC module 306 , but is sent by the NFC module 306 to the processor 301 , and the processor 301 further processes the data.
[0133] In other embodiments, one or more of the wireless communication modules 303 may also transmit signals, such as broadcast detection signals and beacon signals, so that other devices (such as the electronic device 100) can discover the electronic device 200 and transmit data with other devices (such as the electronic device 100) via WLAN, Bluetooth, NFC or other short-range wireless communication technologies.
[0134] The antenna 307 can be used to transmit and receive electromagnetic wave signals. The antennas of different communication modules can be reused or can be independent of each other to improve the utilization rate of the antenna.
[0135] The power switch 308 may be used to control the supply of power to the electronic device 200 .
[0136] In some embodiments, the electronic device 200 may further include a wired LAN communication processing module. The wired LAN communication processing module may be connected to a switch or a router and other network devices via cables, so that the electronic device 200 may join a local area network.
[0137] In some embodiments, the electronic device 200 may further include a display screen ( Figure 3 not shown).
[0138] Understandably, Figure 3 The electronic device 200 shown is only one implementation of the embodiment of the present application and does not constitute a specific limitation on the electronic device 200. In actual applications, the electronic device 200 may also include more or fewer components than those shown in the figure, which is not limited here.
[0139] The following is a schematic diagram of the hardware structure of an NFC communication system 40 provided in an embodiment of the present application.
[0140] like Figure 4 As shown in the example, the NFC communication system 40 may include: an electronic device 100 and an electronic device 200. The electronic device 100 and the electronic device 200 may exchange data via NFC communication technology.
[0141] The electronic device 100 may include, but is not limited to, an NFC control chip 401 , a main control chip 402 , an antenna circuit 403 , a loop antenna 404 , and a backend system 405 .
[0142] The NFC control chip 401 is based on contactless radio frequency identification technology and can be used as a reader / writer for data exchange and collection, and has the ability to communicate with other electronic devices (such as the electronic device 200). The NFC control chip 401 can also include a high-frequency communication circuit module, which can generate high-frequency alternating current (for example, changing more than 10,000 times per second), and the high-frequency alternating current can form a radio frequency field of a specified frequency (for example, 13.56 MHz).
[0143] The main control chip 402 can be used to perform normal data communication with the NFC control chip 401 and process the data received and parsed by the NFC control chip 401. Meanwhile, the main control chip 402 can also manage the process of NFC communication.
[0144] The antenna circuit 403 is mainly used to transfer the energy generated by the NFC control chip 401 to the antenna in a maximized form. The antenna circuit 403 may include an electromagnetic compatibility (EMC) filter circuit, a matching circuit, and a receiving circuit. The antenna circuit 403 can be used to filter out higher harmonics to comply with internal electromagnetic compatibility rules. At the same time, the antenna circuit 403 can be used to adjust the transmission load and the resonant frequency so that the resonant frequency is stabilized at a specified frequency (e.g., 13.56Mhz). The power of the antenna circuit 403 is affected by the internal impedance and external impedance of the chip. When the internal impedance and external impedance of the chip are consistent, the transmission power is the highest. In addition, the RF circuit 403 can also receive a sine wave signal with an amplitude between 1.5-3V.
[0145] The loop antenna 404 can be used to radiate the radio frequency signal power generated by the NFC control chip 401 in the form of electromagnetic waves, and can also receive radio frequency signals carrying data sent by the electronic device 200 .
[0146] The back-end system 405 can communicate and interact with the main control chip 402 for data processing, execution of corresponding operations, storage of instructions, etc.
[0147] In another embodiment, the electronic device 100 may also be integrated with a secure element (SE) chip for processing sensitive data, encryption operations and other security-related functions.
[0148] The electronic device 200 may include, but is not limited to, an NFC TAG chip 406 , a micro control unit 407 , and a loop antenna 408 .
[0149] The NFC TAG chip 406 can be used to store relevant data information of the electronic device 200, as well as instructions on what operations the electronic device 100 needs to perform. The NFC TAG chip 406 cannot generate a radio frequency field of a specified frequency (e.g., 13.56MHz), but sends data by load modulating the radio frequency field of a specified frequency (e.g., 13.56MHz) generated by the electronic device 100. When the NFC communication function of the electronic device 100 is turned on and a radio frequency field with a center frequency of 13.56Mhz is continuously generated, if the NFC TAG chip 406 is within the range of the radio frequency field, the NFC TAG chip 406 can obtain energy by electromagnetic induction, and use the obtained energy to drive the integrated circuit in the NFC TAG chip to communicate with the electronic device 100 by load modulating the radio frequency field.
[0150] The micro control unit 407 can be used to perform normal data communication with the NFC TAG chip, parse and process data received by the NFC TAG chip 406. At the same time, the electronic device 200 can also transmit and / or write data information to the NFC TAG chip 406 through the micro control unit 407 via a bus connected to the NFC TAG chip.
[0151] The loop antenna 408 can be used to capture energy in the radio frequency field generated by the electronic device 100 and transmit the energy to the NFC TAG chip 406, and can also be used to communicate data with the electronic device 100 in the form of radiating or receiving electromagnetic waves.
[0152] Understandably, Figure 4 The hardware structure of the NFC communication system 40 shown is only one implementation of the embodiment of the present application and does not constitute a specific limitation on the hardware structure of the NFC communication system. In actual applications, the hardware structure of the NFC communication system may also include more or fewer components than those shown in the figure, which is not limited here.
[0153] In an embodiment of the present application, the NFC TAG chip 406 on the electronic device 200 may store TAG data. The TAG data may be preset in the NFC TAG chip at the factory, or may be written into the NFC TAG chip 406 by the microcontroller unit 407 of the electronic device 200. For example, the TAG data may be the Bluetooth MAC address and / or the MAC address of the WLAN of the electronic device 200. The electronic device 100 may generate a radio frequency field of a specified frequency (e.g., 13.56 MHz) through the NFC control chip 401. When the electronic device 100 touches the electronic device 200, or is within a specified distance range from the electronic device 200 (e.g., within 10 cm from the electronic device 200), the electronic device 200 may capture the energy of the radio frequency field by electromagnetic induction through the loop antenna 408, and transmit the energy to the integrated circuit of the NFC TAG chip 406, so as to drive the integrated circuit to load modulate the radio frequency field and send the TAG data to the electronic device 100.
[0154] The electronic device 100 can also send the direct data on the electronic device 100 to the electronic device 200 by directly modulating the radio frequency field generated by the NFC control chip 401. After receiving the direct data, the NFC TAG chip 406 on the electronic device 200 does not store the direct data in the NFC TAG chip 406, but transmits the direct data to the micro control unit 407 through the bus. After receiving the direct data, the micro control unit 407 parses the direct data and performs further processing.
[0155] In some embodiments, the electronic device 200 may also transmit the data information (e.g., response instruction) on the electronic device 200 to the NFC TAG chip 406 via the bus through the micro control unit 407, and send the data information to the electronic device 100 by load modulating the radio frequency field through the NFC TAG chip 406. The data information is not stored in the NFC TAG chip 406. It should be noted that in some embodiments of the present application, this process may be referred to as NFC direct transmission.
[0156] In some embodiments, the NFC control chip 401, antenna circuit 403, and loop antenna 404 in the electronic device 100 can be integrated into one chip unit. In some embodiments, the NFC TAG chip 406 and loop antenna 408 in the electronic device 200 can also be integrated into one chip unit.
[0157] In some embodiments, the NFC TAG chip 406 may be disposed in a detachable device, and the NFC TAG chip 406 may communicate with the micro control unit 407 via a communication interface (eg, a USB interface, a Type C interface, etc.).
[0158] The following describes the NDEF standard protocol format provided in the embodiments of the present application.
[0159] like Figure 5A As shown, the NDEF standard protocol format includes: TAG header area, NDEF record block (Record) area, private data area, blank area and control area, where:
[0160] like Figure 5B As shown, the TAG header area contains the record type and record length of the NDEF message.
[0161] The NDEF record block area contains the data information that is actually needed between the NFC device and the NFC TAG device for each interaction, such as the Bluetooth MAC address and / or WLAN MAC address of the NFC TAG device. The NDEF record block area can be divided into one or more NDEF record blocks. Figure 5C As shown, each NDEF record block area includes record block header information and data payload. The record block header information includes an identifier field, a length field, and a type field. The identifier field may include 6 flag bits, which are:
[0162] The message start (MB) flag bit, occupies 1 bit, and is used to indicate the start position of the NDEF record block in the NDEF message. If MB=1, it indicates that this is the first NDEF record block of the NDEF message.
[0163] The message end (ME) flag, occupies 1 bit, and is used to indicate the end position of the NDEF record block in the NDEF message. If ME = 1, it means that this is the last NDEF record block of the NDEF message. If ME = 0, it means that this NDEF record block is not the last NDEF record block of the NDEF message, and there are more NDEF record blocks after this NDEF record block.
[0164] Chunk flag (CF) flag, occupies 1 bit, used to indicate that there are other NDEF record blocks in the NDEF message. If CF = 0, it means that there is only one NDEF record block in the NDEF message, and if CF = 1, it means that there are other NDEF record blocks in the NDEF message.
[0165] Short record (SR) flag, occupies 1 bit. If SR = 1, it means that the content length of the record is one octet. Figure 5C Only one of the four Payload Length fields is needed, and the data payload length will be limited to 255 bytes. Short records are used to simplify the encapsulation of content that is less than 255 bytes in length.
[0166] The identity length (IL) flag, occupies 1 bit, and is used to indicate whether the record header contains the identity (ID) and ID length fields. If IL = 1, the ID Length field appears in the record header, with a length of 1 octet. If IL = 0, the ID Length field is ignored from the header, and the ID field is also ignored.
[0167] The type name format (TNF) flag occupies 3 bits and is used to indicate the type of the payload. For example, some commonly used data types can be shown in Table 1:
[0168] Table 1
[0169] TNF Name Value Empty 0x00 NFC Forum Well-KnownType 0x01 MIME 0x02 Absolute URL 0x03 NFC Forum External Type 0x04 Unknown 0x05 Unchanged 0x06 Reserved 0x07
[0170] Among them, it can be seen from the above Table 1 that when the value of the TNF flag is "0x00", it is used to indicate that the type of the Payload is an empty data type (Empty). When the value of the TNF flag is "0x01", it is used to indicate that the type of the Payload is a universal data format (NFC Forum Well-KnownType), and the universal data format includes a universal resource locator (universal resource locator, URL), text, etc., and its format follows the NFC Forum record type definition (record type definition, RTD) specification. When the value of the TNF flag is "0x02", it is used to indicate that the type of the Payload is a multipurpose internet mail extension (multipurpose internet mail extension, MIME). When the value of the TNF flag is "0x03", it is used to indicate that the type of the Payload is an absolute universal resource locator (absolute URL). When the value of the TNF flag is "0x04", it is used to indicate that the type of the Payload is a type defined by a third-party organization (NFC Forum External Type). When the TNF flag is set to "0x05", it indicates that the type of the Payload is an unknown data type (Unknown). When the TNF flag is set to "0x06", it indicates that the type of the Payload is used for NFC Record blocks (Unchanged). For example, a large amount of data needs to be carried by multiple NFC Records. Except for the first NFC Record block, the other NFCRecord blocks corresponding to the data must set TNF to Unchanged. When the TNF flag is set to "0x07", it indicates that the record is reserved (Reserved) and is not used yet.
[0171] It is to be understood that the examples shown in Table 1 above are only used to explain the present application and should not constitute a limitation.
[0172] Among the seven types of TNF mentioned above, NFC Forum defines NFC Forum Well-Known Type (also called WKT) through RTD specification. For example, the commonly used types in WKT can also include subtypes as shown in Table 2 below:
[0173] Table 2
[0174]
[0175]
[0176] In addition to the above-mentioned identifier field, the record block header information also includes other fields, such as the Type Length field, which is used to indicate the length of the Type field in the header message. The data payload length (PayloadLength) field is divided into 4 subfields, such as Payload Length0 subfield, Payload Length 1 subfield, Payload Length 2 subfield, and Payload Length3 subfield. These 4 subfields together indicate the length of the Payload field. If SR is set to 1, the record block header information contains only one Payload Length field. IDLength indicates the length of the ID field. The Type field indicates the type of Payload. NFCForum defines Types such as URL and MIME. The purpose is to facilitate different applications to process data of different types. For example, data of URL type is handled by the browser. ID needs to be used with URL type Payload, which enables an NFC record to point to another NFC record through ID.
[0177] Figure 5D-5G An example of a TAG data update process based on the NDEF standard protocol format is shown.
[0178] The electronic devices involved in the update process are exemplified by mobile phones with NFC modules (also referred to as NFC mobile phones) and devices with NFC TAG modules (also referred to as NFC TAG devices). For the relevant description of the above-mentioned electronic devices involved, reference can be made to the description of the aforementioned communication system 10, which will not be repeated here.
[0179] like Figure 5D As shown, the NFC mobile phone can obtain the TAG data stored in the NFC TAG device by generating a radio frequency field with a specified frequency (for example, 13.56MHz). The specific implementation process of the NFC mobile phone obtaining the TAG data can refer to the aforementioned Figure 4 The description of the illustrated embodiment is not repeated here. The format of the TAG data is the aforementioned NDEF standard protocol format. After the NFC mobile phone obtains the TAG data from the NFC TAG device through the radio frequency field, the specific data information stored in the TAG data can be read through the data reading instruction, such as the READ instruction and / or the FAST READ instruction.
[0180] like Figure 5EAs shown, after the NFC mobile phone reads the specific content stored in the TAG data in the above manner, it can perform an operation of updating the TAG data.
[0181] like Fig. 5F As shown, after the NFC mobile phone completes the operation of updating the TAG data, based on data security considerations, it can confirm with the NFC TAG device whether the NFC mobile phone has the authority to write the updated data back to the NFC TAG device through an authentication instruction, such as an AUTH instruction. If so, the NFC mobile phone can write the updated TAG data back to the NFC TAG device.
[0182] like Figure 5G As shown, after the NFC mobile phone confirms through the above steps that it has the authority to write the updated TAG data back to the NFC TAG device, it can write the updated TAG data back to the NFC TAG device through a data write-back instruction, such as a WRITE instruction. The updated part of the TAG data can be stored in the private data area of the NDEF standard protocol.
[0183] The following is an exemplary introduction to a data encapsulation based on the NDEF standard protocol format provided in an embodiment of the present application.
[0184] Specifically, taking the information encapsulated as "http: / / www.nfc.com", this information belongs to the URL record type. For this type of NFC Record, the NFC Forum defines the structure of its data payload as shown in Table 3:
[0185] Table 3
[0186]
[0187]
[0188] The URL ID code is shown in Table 4:
[0189] Table 4
[0190] ID Code meaning 0x00 No prefix 0x01 http: / / www 0x02 https: / / www 0x03 http: / / 0x04 https: / / 0x05 Tel: 0x06 mailto: 0x07 ftp: / / anonymous:anonymous@ 0x08 ftp: / / ftp. 0x09 ftps: / /
[0191] Among them, it can be seen from the above Table 4 that when the value of ID Code is "0x00", it is used to indicate that the URL record has no prefix. When the value of ID Code is "0x01", it is used to indicate that the prefix of the URL record is "http: / / www". When the value of ID Code is "0x02", it is used to indicate that the prefix of the URL record is "https: / / www". When the value of ID Code is "0x03", it is used to indicate that the prefix of the URL record is "http: / / ". When the value of ID Code is "0x04", it is used to indicate that the prefix of the URL record is "https: / / ". When the value of ID Code is "0x05", it is used to indicate that the prefix of the URL record is "tel:". When the value of ID Code is "0x06", it is used to indicate that the prefix of the URL record is "mailto:". When the value of ID Code is "0x07", it is used to indicate that the prefix of the URL record is "ftp: / / anonymous:anonymous@". When the value of IDCode is "0x08", it indicates that the prefix of the URL record is "ftp: / / ftp." When the value of IDCode is "0x09", it indicates that the prefix of the URL record is "ftps: / / ".
[0192] It is to be understood that the examples shown in Table 4 above are only used to explain the present application and should not constitute a limitation.
[0193] The NFC Record information carrying "http: / / www.nfc.com" contains only one NFC Record, without blocks, so this unique NFC Record will set the MB and ME flags to 1. The data volume of this information is less than 255 bytes, so the SR flag is 1. The data carried by this Record belongs to the URL type, which is a type of WKT, so the TNF value is 0x01. Since the information "http: / / www.nfc.com" belongs to the URL record type, the corresponding Type field value is "U" in Table 2, so the corresponding Type Length field value is 0x01.
[0194] In the data payload part of this NFC Record, because its prefix is "http: / / www", according to Table 4, its Identifier Code field value is 0x01, occupying 1 byte, and the data part is "nfc.com", occupying 7 bytes. The entire data payload part is 8 bytes long, so the Payload Length field in the record block header information is "0x08".
[0195] The complete information of this NFC Record is encapsulated as follows Figure 5H shown.
[0196] The following describes the TAG data based on the NDEF protocol format and the instruction format for NFC direct data transmission involved in the process of completing the NFC communication method in the embodiment of the present application. For specific information about the NFC direct transmission process, please refer to the aforementioned Figure 4 The embodiment shown.
[0197] Take the electronic device 200 as a device for transmitting the NDEF protocol and the electronic device 100 as a device for acquiring the NDEF protocol as an example. Fig. 6A As shown, the data format based on the NDEF protocol includes: NDEF protocol header, service processing attribute flag, pass-through flag, service data area, and end field.
[0198] The NDEF protocol header area can refer to the above FIG. 5A to FIG. 5C The description of recording the block header information in the NDEF standard protocol format shown is not repeated here.
[0199] The business processing attribute flag can be used to indicate the operations that the electronic device 100 that has obtained the NDEF protocol needs to complete in this NFC communication. For example, when the business processing attribute flag is set to "0x01", it means that the electronic device 200 supports establishing a Bluetooth connection through NFC. Therefore, when the electronic device 100 obtains the TAG data with the value of "0x01" of the business processing attribute flag from the NFC TAG chip of the electronic device 200, the electronic device 100 can establish a Bluetooth connection with the electronic device 200. When the business processing attribute flag is set to "0x02", it means that the electronic device 200 supports the screen projection service. Therefore, when the electronic device 100 obtains the TAG data with the value of "0x02" of the business processing attribute flag from the NFC TAG chip of the electronic device 200, the electronic device 200 can receive the screen projection data sent by the electronic device 100 and perform screen projection display according to the screen projection data.
[0200] The pass-through flag can be used to indicate whether the electronic device 200 supports obtaining data sent by the electronic device 100 through NFC direct transmission. For example, when the pass-through flag is set to 1, the electronic device 200 supports obtaining data sent by the electronic device 100 through NFC direct transmission. When the pass-through flag is set to 0, the electronic device 200 does not support obtaining data sent by the electronic device 100 through NFC direct transmission.
[0201] The service data area may be used to store relevant information of the electronic device 200, such as the Bluetooth MAC address and / or WLAN MAC address of the electronic device 200, and so on.
[0202] The end field can be used to indicate the end position of the NDEF record block. For example, when the end field is set to 1, it indicates that this is the last record of the NDEF message. When the end field is set to 0, it indicates that there are more records to follow.
[0203] Figure 6B An RF field waiting instruction protocol format for use in an NFC direct transmission process is exemplified. Before electronic device 100 sends direct data to electronic device 100 via NFC direct transmission, electronic device 100 may send the RF field waiting instruction to electronic device 200. The RF field waiting instruction may be used to instruct electronic device 200 to keep receiving data sent by electronic device 100 via NFC direct transmission. In this way, it can be ensured that during the process of electronic device 100 preparing direct data to be sent, the RF field will not be disconnected within a certain time threshold due to the lack of data information transmission, thereby avoiding the interruption of the NFC direct transmission link between electronic device 100 and electronic device 200.
[0204] The radio frequency field waiting instruction protocol may include a direct data protocol header and a waiting instruction, wherein:
[0205] The direct data protocol header may include, but is not limited to, fields such as a version number field, a data length field, a type field, and a flag bit. Among them, the version number field can be used to indicate the version of the direct data protocol. The data length field can be used to indicate the byte length of the data information contained in the direct data protocol. The type field can be used to indicate the data type of the direct data protocol. For example, when the value of the type field is "0x01", it indicates that the data type of the direct data protocol is a radio frequency field wait instruction. The type and function of the flag bit field may be the same or different from the flag bit field in the aforementioned NDEF standard protocol, and this application does not limit this.
[0206] The wait instruction may include specified character data of a specified byte length. For example, the wait instruction may be "0x33".
[0207] Figure 6C An exemplary data transmission protocol format for NFC direct transmission is shown. The data transmission protocol format can be used for the electronic device 100 to send data information to the electronic device 200 via NFC direct transmission. After the electronic device 200 obtains and parses the protocol, it performs corresponding operations. The data transmission protocol format may include a direct data protocol header and a service data field, wherein:
[0208] The direct data protocol header can refer to the above Figure 6B The relevant description of the direct data protocol header in the illustrated embodiment will not be repeated here.
[0209] The business data field may include relevant data information transmitted from the electronic device 100 to the electronic device 200, such as application account login information.
[0210] Fig.6D An example of a response protocol format used in an NFC direct transmission process is shown. During the NFC direct data transmission process, the electronic device 200 can send the response protocol to the electronic device 100 to indicate whether the data transmitted by the electronic device 100 is received. The response protocol format may include a direct data protocol header and a response instruction, wherein:
[0211] The direct data protocol header can refer to the above Figure 6B The relevant description of the direct data protocol header in the illustrated embodiment will not be repeated here.
[0212] The reply instruction indicates whether the electronic device 200 has received the data transmitted by the electronic device 100. For example, when the reply field is set to 1, it indicates that the electronic device 200 has successfully received the data sent by the electronic device 100. When the reply field is set to 0, it indicates that the electronic device 200 has not received the data sent by the electronic device 100, and the electronic device 100 needs to resend it again.
[0213] It is understandable that the above-mentioned setting of the protocol field is merely an illustrative description of the protocol format provided in the embodiment of the present application, and does not constitute any limitation to the present application.
[0214] An NFC communication method provided by an embodiment of the present application is introduced below.
[0215] Figure 7 A schematic diagram of a flow chart of an NFC communication method provided in an embodiment of the present application is shown.
[0216] In some application scenarios, when the electronic device 100 is close to the electronic device 200 (that is, the electronic device 100 touches the electronic device 200, or is within a specified distance range from the electronic device 200 (for example, within 10 cm from the electronic device 200)), the electronic device 100 (for example, a mobile phone) can read the Bluetooth MAC address and other information of the electronic device 200 from the NFC TAG chip of the electronic device 200 (for example, a display device). Then, the electronic device 100 can establish a Bluetooth connection with the electronic device 200, and establish a WLAN direct connection with the electronic device 200 through the Bluetooth connection. The electronic device 100 can send the projection data to the electronic device 200 for display via the WLAN direct connection. At the same time, the electronic device 100 can also send the account information of the specified application to the electronic device 200 through NFC direct transmission and instruct the electronic device 200 to log in the account information in the specified application. In this way, it is possible to achieve the screen projection operation of electronic device 100 to electronic device 200 and the synchronization of account information of a specified application on electronic device 100 to electronic device 200 by simply bringing electronic device 100 close to electronic device 200. Electronic device 200 can automatically log in to the specified application, reducing the user's operation steps and improving user experience.
[0217] In this application scenario, the electronic device 100 may be referred to as a first electronic device, the electronic device 200 may be referred to as a second electronic device, the NFC control chip in the electronic device 100 may be referred to as a first NFC control chip, and the NFC TAG chip in the electronic device 200 may be referred to as a first NFC TAG chip.
[0218] like Figure 7 As shown, the method may include:
[0219] S701: The electronic device 200 stores tag data 1 in the NFC TAG chip, and sets a fixed field and a pass-through flag in the tag data 1 (also referred to as first tag data).
[0220] The format of tag data 1 can be based on the above Fig. 6A The NDEF protocol format in the illustrated embodiment. The tag data 1 may include an NDEF protocol header, a service processing attribute flag, a pass-through flag, service data, and an end field. The electronic device 200 may set the above fixed fields and the pass-through flag. For the description of the NDEF protocol header, please refer to the aforementioned Fig. 6AThe relevant description in the embodiment will not be repeated here. The business processing attribute flag can be used to indicate the business supported by the tag data 1. For example, when the value of the business processing attribute flag is "0x02" (also referred to as the first attribute), it indicates that the tag data 1 is used for the screen projection business, that is, when the electronic device 100 obtains the tag data 1 and reads the business processing attribute flag in the tag data 1 as "0x02", the electronic device 100 can send the screen projection data to the electronic device 200. The pass-through flag can be used to indicate whether the electronic device 200 can receive the data sent by the electronic device 100 by means of NFC pass-through transmission. For example, when the value of the pass-through flag is 1, it indicates that the electronic device 200 can receive the data sent by the electronic device 100 by means of NFC pass-through transmission. Business data can store data information related to the electronic device 200. For example, the business data can store the Bluetooth MAC address of the electronic device 200 and / or the MAC address of the WLAN of the electronic device 200. The end field can be used to indicate the location where the data information in the tag data 1 ends.
[0221] In some embodiments of the present application, the tag data 1 may be pre-stored in the NFC TAG chip when the electronic device 200 leaves the factory. In other embodiments of the present application, the tag data 1 may also be written into the NFC TAG chip in real time by the electronic device 200 through a microprocessor unit via a bus connected to the NFC TAG chip. The present application does not limit this.
[0222] S702 : The electronic device 100 starts NFC communication and obtains tag data 1 from the electronic device 200 .
[0223] Specifically, the electronic device 100 can start NFC communication when it is close to the electronic device 200. That is to say, the electronic device 100 can generate a radio frequency field of a specified frequency (for example, 13.56MHz) through the NFC control chip. Within the range of the radio frequency field, the NFC TAG chip in the electronic device 200 can send the tag data 1 stored in the NFC TAG chip to the electronic device 100 by load modulating the radio frequency field, so that the electronic device 100 can obtain the tag data 1.
[0224] The electronic device 100 may receive a user input (eg, a click) on an NFC control in the drop-down menu, and in response to the input on the NFC control, the electronic device 100 may turn on a radio frequency field.
[0225] The electronic device 100 may display a user interface including multiple application icons (e.g., a weather application icon, a calendar application icon, a video application icon, etc.). The electronic device 100 may receive a touch operation (e.g., a click) from a user on an icon of a video application (also referred to as a first application). In response to the touch operation, for example, Fig. 8A As shown, the electronic device 100 can display a video playback interface 50 (also referred to as a first interface), which includes a video screen, a play / pause control, and a progress bar. When the electronic device 100 detects a downward sliding gesture operation on the status bar 501, in response to the gesture operation, Figure 8B As shown, the electronic device 100 can display a drop-down menu window 511 on the video playback interface 50 .
[0226] like Figure 8B As shown, the drop-down menu window 511 may include an NFC switch control 511A and switch controls for one or more other functions (e.g., Wi-Fi control, flashlight control, location information control, etc.). When the electronic device 100 detects a touch operation (e.g., click) on the NFC switch control 511A in the window 511, in response to the operation, the electronic device 100 may turn on the NFC function, that is, the NFC control chip in the electronic device 100 may generate a radio frequency field of a specified frequency (e.g., 13.56 MHz). The electronic device 100 may receive tag data 1 stored in the NFC TAG chip and sent by the electronic device 200 in a manner of load modulating the radio frequency field.
[0227] In other embodiments, the electronic device 100 can respond to voice information (e.g., "enable NFC communication") collected by the microphone when it is close to the electronic device 200, thereby enabling NFC communication and generating a radio frequency field of a specified frequency (e.g., 13.56 MHz). It is understood that this application does not limit how to enable NFC communication of a mobile phone.
[0228] S703: The electronic device 100 parses the direct flag in the tag data 1, and determines whether the electronic device 200 supports NFC direct transmission based on the direct flag.
[0229] Specifically, the electronic device 100 can learn whether the electronic device 200 receives data sent by the electronic device 100 through NFC direct transmission by parsing the direct flag in the tag data 1. For example, when the electronic device 100 parses and reads the value of the direct flag in the tag data 1 as 1 (also referred to as the first value), it is known that the electronic device 200 can receive data sent by the electronic device 100 through NFC direct transmission, and the electronic device 100 can perform an operation of obtaining the account information of a specified application (such as a video application).
[0230] The designated application may be an application currently displayed in the foreground of the electronic device 100.
[0231] In a possible implementation, the designated application may also be a preset application (such as "Huawei Video Application", etc.)
[0232] S704: The electronic device 100 and the electronic device 200 establish a Bluetooth connection, and establish a WLAN direct connection through the Bluetooth connection. The electronic device 100 sends the data (also referred to as first display data) required for display by the electronic device 200 through the WLAN direct connection.
[0233] Specifically, the electronic device 100 can obtain the Bluetooth MAC address of the electronic device 200 by obtaining and parsing the received tag data 1, and the electronic device 100 can establish a Bluetooth connection with the electronic device 200 based on the Bluetooth MAC address. Then, the electronic device 100 can establish a WLAN direct connection with the electronic device 200 through the Bluetooth connection, and send the data required for the screen projection display of the electronic device 200 through the WLAN direct connection. In the embodiment provided in the present application, the screen projection information sent by the electronic device 100 can be the URL information of the video or picture that the electronic device 200 needs to project and display. In other embodiments, the screen projection information sent by the electronic device 100 can also be real-time data information of the video or picture displayed by the electronic device 100, and the present application does not limit this.
[0234] In other embodiments, the electronic device 100 and the electronic device 200 may also establish a Wi-Fi connection, and the electronic device 100 may send the data required for the screen projection display of the electronic device 200 through the Wi-Fi connection. Therefore, the NFC TAG chip in the electronic device 200 may store the service set identifier (SSID) and password of the wireless local area network to which the electronic device 200 is connected. The electronic device 100 may obtain the SSID and password through the received tag data 1, and then connect to the same wireless local area network as the electronic device 200.
[0235] In the above process, the electronic device 100 and the electronic device 200 can establish a Bluetooth connection in response to a touch operation (such as a click) on a specified control, and establish a WLAN direct connection through the Bluetooth connection. The electronic device 100 can send the projection data to the electronic device 200 through the WLAN direct connection.
[0236] For example, Figure 8C As shown, the electronic device 100 can display a window 521 and an NFC communication icon 501A on the video playback interface 50.
[0237] The NFC communication icon 501A can be displayed in the status bar 501 to prompt the user that the electronic device 100 has turned on NFC communication. Window 521 can display a current window page indicator 521A and a corresponding text description to indicate the current window page. For example, the current window page indicator 521A can be a text message "wireless screen projection" and a corresponding text description "available device list". Not limited to text information, the current window page indicator 521A can also be an icon. The window 521 can display one or more device options, and the one or more device options can correspond to corresponding device names and text descriptions. For example, the device option of the electronic device 200, the corresponding device name can be "smart screen", and the corresponding text description can be "support mobile phone mode, computer mode projection". Window 521 can also display a "view help" control 521B and a "cancel" control 521C, which can be used to monitor touch operations (such as clicks) on the control. In response to the operation, the electronic device 100 can display a text page that helps the user understand how to perform wireless screen projection operations, or no longer display window 521.
[0238] The electronic device 100 can detect a touch operation (eg, click) on a device option displayed on the electronic device 100, and in response to the operation, Fig.8D As shown, the electronic device 100 can display a window 531 on the video playback interface 50, and the electronic device 200 can display a video playback interface 54. The electronic device 100 can communicate wirelessly with the electronic device 200 via NFC.
[0239] Window 531 may display a current window page indicator 531A and a corresponding text description to indicate the current window page. For example, the current window page indicator 531A may be the text message "Wireless Screen Casting" and the corresponding text description "Connecting to my Smart Screen". Not limited to text information, the current window page indicator 531A may also be an icon. The window 531 may also display a "Cancel" control 531B and a "View Help" control 531C, which may be used to monitor touch operations (such as clicks) on the control. In response to the operation, the electronic device 100 may display a text page that helps the user understand how to perform a wireless screen casting operation, or may no longer display window 531.
[0240] The video playback interface 54 may include a status bar 541 and a prompt box 542. Among them, the description of the status bar 541 can refer to the description of the status bar 501 in the aforementioned video playback interface 50, and will not be repeated here. The prompt box 542 can be used to prompt the user whether to agree that the electronic device 100 and the electronic device 200 establish a wireless connection. For example, the prompt information displayed in the prompt box 542 can be a text message "Do you trust "my phone" and accept the connection?". Not limited to text information, the prompt information can also be a voice or other type of prompt information output by the electronic device 200, and this application does not limit this. The prompt box 542 can also display an "accept" control 542B and a "reject" control 542C, so that the user can choose whether to agree that the electronic device 100 and the electronic device 200 establish a wireless connection. In response to a touch operation (such as clicking) acting on the control, the electronic device 200 can execute the operation corresponding to the control to accept the electronic device 100 and the electronic device 200 to establish a wireless connection, or execute the operation of rejecting the electronic device 100 and the electronic device 200 to establish a wireless connection.
[0241] S705, the electronic device 200 performs screen projection display.
[0242] When the electronic device 200 detects a user's touch operation (eg, click) on the "Accept" control 542B displayed in the aforementioned prompt box 542, in response to the operation, the electronic device 200 may establish a wireless connection with the electronic device 100. Fig. 8E As shown, the electronic device 100 may display an NFC communication icon 501A and a Bluetooth icon 551 on the video playback interface 50. The electronic device 200 may display a user interface 56 (also referred to as a second interface).
[0243] For the description of NFC communication icon 501A, please refer to the aforementioned Figure 8C The relevant description in will not be repeated here.
[0244] The Bluetooth icon 551 is used to prompt the user that the electronic device 100 and the electronic device 200 establish a wireless communication connection via Bluetooth.
[0245] The interface elements on the user interface 56 may be partially or completely the same as the interface elements (such as controls, icons, text, etc.) displayed on the electronic device 100, and will not be described in detail here.
[0246] S706: The electronic device 100 sends a radio frequency field waiting instruction to keep the radio frequency field communication link uninterrupted.
[0247] Specifically, in an embodiment of the present application, the electronic device 200 can obtain data sent by the electronic device 100 through NFC direct transmission. Therefore, while the electronic device 200 is performing screen projection and display, it can also obtain the login information of the relevant application account sent by the electronic device 100 through NFC direct transmission. When the electronic device 100 has not yet sent the login information, the electronic device 100 can send a radio frequency field waiting instruction to the electronic device 200 through NFC direct transmission to keep the radio frequency field communication link uninterrupted. For an explanation of the radio frequency field waiting instruction, please refer to the aforementioned Figure 6B The description in the illustrated embodiment will not be repeated here.
[0248] S707: The electronic device 100 obtains account information of a specified application.
[0249] Specifically, the electronic device 100 may obtain the login account information of the specified application from the server and / or the local memory space.
[0250] For example, the electronic device 100 currently displays a video application in the foreground. The electronic device 100 can obtain the login account information (including account ID and account password, etc.) of the video application.
[0251] S708: The electronic device 100 sends a direct data start frame.
[0252] Specifically, after the electronic device 100 obtains the login account information of the specified application, it can send a direct data start frame to the electronic device 200 through NFC direct transmission, prompting the electronic device 200 that the electronic device 100 can send direct data to the electronic device 200. The format of the direct data start frame can be the NDEF protocol format, and the content field of the direct data start frame can be specified character data of a specified field length, such as "0x10".
[0253] S709: The electronic device 100 encapsulates the login account information of the specified application and the identifier of the specified application into a direct data protocol.
[0254] Specifically, the direct data protocol format can refer to the aforementioned Figure 6C The description in the illustrated embodiment will not be repeated here.
[0255] S710 . The electronic device 100 sends application account information (also referred to as direct data) that has been packaged as a direct data protocol through NFC direct transmission.
[0256] S711. The electronic device 200 sends a response field via NFC direct transmission.
[0257] Specifically, the electronic device 200 can send a response field through NFC direct transmission to indicate whether the electronic device 200 has received the direct data sent by the electronic device 100. For the description of the response field, please refer to the aforementioned Fig.6D The description in the illustrated embodiment will not be repeated here.
[0258] S712: The electronic device 200 parses the direct data obtained from the electronic device 100 to obtain the account information and the identifier of the specified application.
[0259] Specifically, the operation of parsing the direct data on the electronic device 200 is completed by the microprocessing unit in the electronic device 200, and the direct data is not stored in the NFC TAG chip. For the description of the microprocessing unit, please refer to the aforementioned Figure 4 The description of the embodiments shown in will not be repeated here.
[0260] The electronic device 200 may parse the direct data to obtain the account information and the identifier of the specified application.
[0261] S713. The electronic device 200 sends the acquired account information of the designated application to the designated application for caching.
[0262] After parsing the account information of the designated application and the identifier of the designated application from the direct data, the electronic device 200 can be dispatched to the designated application through the identifier of the designated application.
[0263] In a possible implementation, after parsing the account information of a specified application (e.g., a video application) and the identifier of the specified application, the electronic device 200 can determine whether the specified application is installed on the electronic device 200. If so, the electronic device 200 can send the account information of the specified application to the specified application. If the electronic device 200 does not have the specified application installed, the electronic device 200 can download the installation package of the specified application from the server and install it. After the installation is successful, the electronic device 200 can distribute the account information of the specified application to the specified application and log in to the account of the specified application.
[0264] Before the electronic device 200 downloads the installation package of the specified application from the server, it may output an installation prompt to the user. After the electronic device 200 receives the user's confirmation download operation, the electronic device 200 may download the installation package of the specified application from the server and install the specified application.
[0265] S714. The electronic device 200 notifies the designated application of the completion of screen projection, and the designated application starts the login process.
[0266] Specifically, after the electronic device 200 obtains the account information (including the account ID and the account password) of the specified application, it can send the account information to the server corresponding to the specified application. The server can verify whether the account password in the account information matches the account ID. When the account password matches the account ID, the server can send a successful verification instruction to the electronic device 200. After receiving the successful verification instruction, the electronic device 200 can obtain the application data from the server and display the application interface in the application.
[0267] S715. The electronic device 200 prompts the user that the designated application is logging in automatically.
[0268] Specifically, Figure 8F As shown in the example, the electronic device 200 may display a prompt box 571 on the aforementioned user interface 56. The prompt box 571 may be used to display prompt information, and the prompt information may be used to prompt the user that the specified application is logging into the account. For example, the prompt information displayed in the prompt box 571 may be a text "Automatically logging into the video application...", and is not limited to text information. The prompt information may also be a voice or other type of prompt information output by the electronic device 200, and the present application does not limit this.
[0269] The prompt box 571 may also display a corresponding control so that the user can choose whether to cancel the login process of the specified application. For example, the prompt box 571 may display a "cancel" control 571A for monitoring a touch operation (e.g., click) on the control. In response to the operation, the electronic device 200 may cancel the login process of the application.
[0270] Without limitation thereto, the electronic device 200 may also receive voice information collected by the microphone, such as "cancel login", and in response to the voice information, the electronic device 200 may cancel the login process of the application. This application does not impose any limitation thereto.
[0271] S716. The electronic device 200 prompts the user that the designated application has been logged in.
[0272] Specifically, Figure 8G For example, the electronic device 200 may display a prompt box 581 on the aforementioned user interface 56. The prompt box 581 may be used to display prompt information, and the prompt information may be used to prompt the user that the specified application has logged into the account. For example, the prompt information displayed in the prompt box 581 may be the text "Logged into the video application", which is not limited to text information, and the prompt information may also be a voice or other type of prompt information output by the electronic device 200, etc., and the present application does not limit this.
[0273] The prompt box 581 may also display a corresponding control so that the user can choose whether to log out of the account that has been logged in by the application. For example, the prompt box 581 may display a "cancel" control 581A for monitoring a touch operation (such as a click) on the control. In response to the operation, the electronic device 200 may log out of the account that has been logged in by the specified application.
[0274] Without limitation, the electronic device 200 may also receive voice information collected by the microphone, such as "cancel login", and in response to the voice information, the electronic device 200 may log out of the account that has been logged in. This application does not limit this.
[0275] It is understandable that the sequence of the above steps is only used to exemplify the specific process of the communication method and does not constitute a specific limitation to the present application.
[0276] It should be understood that the above user interface examples are only used to explain the present application and should not constitute a limitation on the present application.
[0277] Fig. 9 A schematic flow chart of an NFC communication method provided in another embodiment of the present application is shown.
[0278] In some application scenarios, when the electronic device 100 (such as a mobile phone) is close to the routing device 300, the electronic device 100 can read the Wi-Fi name, Wi-Fi password, encryption method, etc. of the routing device 300 from the NFC TAG chip of the routing device 300. The electronic device 100 can access the wireless local area network established by the routing device 300 based on the Wi-Fi name, Wi-Fi password, encryption method, etc., and cache the Wi-Fi name, Wi-Fi password, encryption method, etc. in the memory space. Among them, the hardware structure of the routing device 300 can refer to the aforementioned Figure 3 The structural description of the electronic device 200 shown is not repeated here. When the electronic device 100 is close to the electronic device 200 (such as a smart speaker), the electronic device 100 can read the Bluetooth MAC address of the electronic device 200 from the NFC TAG chip of the electronic device 200, and then the electronic device 100 can establish a Bluetooth connection with the electronic device 200 and send audio data to the electronic device 200 through the Bluetooth connection. After the electronic device 200 obtains the audio data, it can play the audio according to the audio data. In the above process, the electronic device 100 can also send the Wi-Fi name, Wi-Fi password, encryption method, etc. of the routing device 300 stored in the memory space to the electronic device 200 through NFC direct transmission. After the electronic device 200 receives the Wi-Fi name, Wi-Fi password, encryption method, etc., it can access the corresponding wireless local area network.
[0279] In this application scenario, the electronic device 100 may be referred to as a first electronic device, the electronic device 200 may be referred to as a second electronic device, the NFC control chip in the electronic device 100 may be referred to as a first NFC control chip, the NFC TAG chip in the electronic device 200 may be referred to as a first NFC TAG chip, and the NFC TAG chip in the routing device may be referred to as a second NFC TAG chip.
[0280] like Fig. 9 As shown, the method may include:
[0281] S901 : The routing device 300 stores tag data 2 (also referred to as second tag data) in the NFC TAG chip, and sets a fixed field in the tag data 2 .
[0282] The format of tag data 2 can be based on the above Fig. 6A The NDEF protocol format in the illustrated embodiment. The tag data 2 may include an NDEF protocol header, a service processing attribute flag, a pass-through flag, service data, and an end field. The routing device 300 may set the above fixed fields and the pass-through flag. For the description of the NDEF protocol header, please refer to the aforementioned Fig. 6A The relevant description in the embodiment will not be repeated here. The business processing attribute flag can be used to indicate the business supported by the tag data 2. For example, when the value of the business processing attribute flag is "0x03", it means that the tag data 2 is used for Wi-Fi connection business. That is to say, when the electronic device 100 obtains the tag data 2 and reads the business processing attribute flag in the tag data 2 as "0x03", the electronic device 100 can be connected to the wireless local area network established by the routing device 300. The business data can store the Wi-Fi name and Wi-Fi password of the routing device 300, as well as the encryption method, etc. The end field can be used to indicate the location where the data information in the tag data 2 ends.
[0283] In some embodiments of the present application, the tag data 2 may be pre-stored in the NFC TAG chip by the routing device 300 when it leaves the factory. In other embodiments of the present application, the tag data 2 may also be written into the NFC TAG chip in real time by the routing device 300 through a microprocessing unit via a bus connected to the NFC TAG chip. The present application does not limit this.
[0284] S902 , the electronic device 100 starts NFC communication and obtains tag data 2 from the routing device 300 .
[0285] Specifically, the electronic device 100 can start NFC communication when it is close to the routing device 300. The electronic device 100 can generate a radio frequency field of a specified frequency (e.g., 13.56MHz) through the NFC control chip. Within the range of the radio frequency field, the routing device 300 can send the tag data 2 stored in the NFC TAG chip to the electronic device 100 by load modulating the radio frequency field, so that the electronic device 100 can obtain the tag data 2.
[0286] The electronic device 100 may receive a user input (eg, a click) on an NFC control in the drop-down menu, and in response to the input on the NFC control, the electronic device 100 may turn on a radio frequency field.
[0287] For example, Fig. 10A As shown, the electronic device 100 may display a user interface 60. The user interface 60 may include a status bar 601, a plurality of application icons, a calendar indicator, and a page indicator. When the electronic device 100 detects a downward sliding gesture operation on the status bar 601, in response to the gesture operation, Fig. 10B As shown, the electronic device 100 can display a drop-down menu window 611 on the user interface 60 .
[0288] like Fig. 10B As shown, for the description of the drop-down menu window 611, please refer to the aforementioned Figure 8B The description of the drop-down menu window 311 in the window 611 is not repeated here. When the electronic device 100 detects a touch operation (e.g., click) on the NFC switch control 612 in the window 611, in response to the operation, the electronic device 100 can turn on the NFC function, that is, the NFC control chip in the electronic device 100 can generate a radio frequency field of a specified frequency (e.g., 13.56MHz). The electronic device 100 can receive the tag data 2 stored in the NFC TAG chip in the routing device 300, which is sent by the routing device 300 in a manner of load modulating the radio frequency field.
[0289] In other embodiments, the electronic device 100 can respond to voice information (e.g., "enable NFC communication") collected by the microphone when it is close to the routing device 300, thereby enabling NFC communication and generating a radio frequency field of a specified frequency (e.g., 13.56 MHz). It is understood that this application does not limit how to enable NFC communication of the electronic device 100.
[0290] S903 , the electronic device 100 parses the acquired tag data 2 and acquires the Wi-Fi connection information of the routing device 300 .
[0291] Specifically, the electronic device 100 can parse the acquired tag data 2 to obtain the Wi-Fi connection information of the routing device 300 (also referred to as the first Wi-Fi connection information), for example, the Wi-Fi name and Wi-Fi password of the routing device 300 and the encryption method.
[0292] S904: The electronic device 100 performs a networking operation.
[0293] Specifically, the electronic device 100 can connect to the wireless local area network (also referred to as the first Wi-Fi network) established by the routing device 300 according to the Wi-Fi name, Wi-Fi password, encryption method, etc. obtained through parsing.
[0294] Fig. 10C and Fig. 10D The user interface for connecting the electronic device 100 to a wireless local area network is exemplarily shown.
[0295] like Fig. 10C As shown, when the electronic device 100 obtains the Wi-Fi name, Wi-Fi password and encryption method of the routing device 300, the NFC communication icon 601C and the window 621 can be displayed on the aforementioned user interface 60.
[0296] The NFC communication icon 601C may be displayed in the status bar 601 to prompt the user that the electronic device 100 has enabled NFC communication.
[0297] Window 621 may display a current window page indicator 621A and a corresponding text description. For example, the current window page indicator 621A may be the text message "NFC service", and the corresponding text description may be "connect to the network", "are you connected to network D1232124?". Not limited to text information, the current window page indicator 621A may also be an icon, etc. The window 621 may also display a "cancel" control 621B and a "connect" control 621C, which may be used to monitor touch operations (such as clicks) acting on the control. In response to the operation, the electronic device 100 may perform the operation corresponding to the control, for example, no longer displaying the window 621, or connecting to network D1232124.
[0298] When the electronic device 100 detects a touch operation (eg, click) on the "connect" control 621C, in response to the operation, the electronic device 100 connects to the network D1232124. Fig. 10D As shown, the electronic device 100 can display a signal strength indicator 601D of the Wi-Fi signal in the status bar 601. The signal strength indicator 601D of the Wi-Fi signal can be used to prompt the user that the electronic device 100 has been connected to the network D1232124.
[0299] S905: The electronic device 100 caches Wi-Fi connection information.
[0300] Specifically, the electronic device 100 may store the acquired Wi-Fi name, Wi-Fi password, encryption method, etc. in an internal storage space.
[0301] S906: The electronic device 200 stores the tag data 3 (also referred to as the first tag data) in the NFC TAG chip, and sets a fixed field and a pass-through flag in the tag data 3.
[0302] The format of the tag data 3 can be based on the above Fig. 6A The NDEF protocol format in the illustrated embodiment. The tag data 3 may include an NDEF protocol header, a service processing attribute flag, a pass-through flag, service data, and an end field. The electronic device 200 may set the above fixed fields. For the description of the NDEF protocol header, please refer to the aforementioned Fig. 6A The relevant description in the embodiment is not repeated here. The business processing attribute flag can be used to indicate the business supported by the tag data 3. For example, when the value of the business processing attribute flag is "0x04" (also referred to as the second attribute), it indicates that the tag data 3 is used for sound transmission and playback, that is, when the electronic device 100 obtains the tag data 3 and reads the business processing attribute flag in the tag data 3 as "0x04", the electronic device 100 can send audio data to the electronic device 200. The pass-through flag can be used to indicate whether the electronic device 200 can receive the data sent by the electronic device 100 by means of NFC pass-through transmission. For example, when the value of the pass-through flag is 1, it indicates that the electronic device 200 can receive the data sent by the electronic device 100 by means of NFC pass-through transmission. Business data can store the Bluetooth MAC address of the electronic device 200. The end field can be used to indicate the location where the data information in the tag data 3 ends.
[0303] In some embodiments of the present application, the tag data 3 may be pre-stored in the NFC TAG chip when the electronic device 200 leaves the factory.
[0304] In some embodiments of the present application, the tag data 3 may also be written into the NFC TAG chip in real time by the electronic device 200 through a microprocessor unit via a bus connected to the NFC TAG chip. The present application does not limit this.
[0305] S907 . The electronic device 100 obtains tag data 3 from the electronic device 200 .
[0306] Specifically, in the aforementioned step S902, the electronic device 100 has already started NFC communication. When the electronic device 100 is close to the electronic device 200, the NFC TAG chip in the electronic device 200 can send the tag data 3 stored in the NFC TAG chip to the electronic device 100 by load modulating the radio frequency field.
[0307] In other implementations, when the electronic device 100 obtains the Wi-Fi name, Wi-Fi password, encryption method, etc. of the routing device 300, the NFC control chip in the electronic device 100 turns off the radio frequency field, and in this step, the radio frequency field of the specified frequency (e.g., 13.56MHz) needs to be turned on again to enable the NFC communication function. For the specific process of how to enable the NFC communication function, please refer to the description in S902 above, which will not be repeated here.
[0308] S908: The electronic device 100 parses the direct flag in the tag data 3, and determines whether the electronic device 200 supports NFC direct transmission based on the direct flag.
[0309] Specifically, the electronic device 100 can learn whether the electronic device 200 receives data sent by the electronic device 100 through NFC direct transmission by parsing the direct flag in the tag data 3. For example, when the electronic device 100 parses and reads the value of the direct flag in the tag data 3 as 1 (also referred to as the first value), it is known that the electronic device 200 can receive data sent by the electronic device 100 through NFC direct transmission, and the electronic device 100 can perform operations such as obtaining the Wi-Fi name, Wi-Fi password, and encryption method of the Wi-Fi network on the routing device 300.
[0310] S909: The electronic device 100 detects whether Wi-Fi connection information is cached.
[0311] S910: The electronic device 100 and the electronic device 200 establish a Bluetooth connection and send audio data.
[0312] Specifically, the electronic device 100 can obtain the Bluetooth MAC address of the electronic device 200 by obtaining and parsing the tag data 3 sent by the electronic device 200, and the electronic device 100 can establish a Bluetooth connection with the electronic device 200 based on the Bluetooth MAC address of the electronic device 200. Then, the electronic device 100 can send the audio data required for the electronic device 200 to play audio through the Bluetooth connection.
[0313] S911. The electronic device 200 plays audio according to the acquired audio data.
[0314] S912: The electronic device 100 sends a radio frequency field waiting instruction to keep the radio frequency field communication link uninterrupted.
[0315] Specifically, in an embodiment of the present application, the electronic device 200 can obtain data sent by the electronic device 100 through NFC direct transmission. Therefore, the electronic device 200 obtains the audio data sent by the electronic device 100 through the Bluetooth connection, and while playing the audio, it can also obtain the Wi-Fi connection information sent by the electronic device 100 through NFC direct transmission. When the electronic device 100 has not yet sent the Wi-Fi connection information, the electronic device 100 can send a radio frequency field waiting instruction to the electronic device 200 to keep the radio frequency field communication link uninterrupted. For instructions on the radio frequency field waiting instruction, please refer to the aforementioned Figure 6B The description in the illustrated embodiment will not be repeated here.
[0316] S913: The electronic device 100 encapsulates the Wi-Fi connection data into a direct data protocol.
[0317] Specifically, when the wireless local area network accessed by the electronic device 100 is a wireless local area network established by the routing device 300, the electronic device 100 can obtain the Wi-Fi connection information of the routing device 300 from the memory, and encapsulate the Wi-Fi connection information into a direct data protocol. For the description of the direct data protocol format, please refer to the aforementioned Figure 6C The relevant description in the illustrated embodiment will not be repeated here.
[0318] In other embodiments, if the wireless local area network accessed by the electronic device 100 is not the wireless local area network established by the routing device 300, the electronic device 100 can detect the signal strength of the wireless local area network established by the routing device 300. If the signal strength reaches a specified strength (e.g., -45dbm), the electronic device 100 can obtain the Wi-Fi connection information of the routing device 300 and encapsulate the Wi-Fi connection information into a direct data protocol.
[0319] S914: The electronic device 100 sends a direct data start frame.
[0320] Specifically, after the electronic device 100 encapsulates the Wi-Fi connection information into a direct data protocol, it can send a direct data start frame to the electronic device 200 through NFC direct transmission, prompting the electronic device 200 that the electronic device 100 is about to send direct data to the electronic device 200. The format of the direct data start frame can be the NDEF protocol format, and the business data field can be specified character data of a specified field length, such as "0x10".
[0321] S915: The electronic device 100 sends the Wi-Fi connection information (also referred to as direct data) that has been encapsulated as a direct data protocol through NFC direct transmission.
[0322] S916. The electronic device 200 sends a response field.
[0323] Specifically, the electronic device 200 can send a response field through NFC direct transmission to indicate whether the electronic device 200 has received the direct data sent by the electronic device 100. For the description of the response field, please refer to the above Fig.6D The description will not be repeated here.
[0324] S917 . The electronic device 200 parses the direct data obtained from the electronic device 100 to obtain Wi-Fi connection information.
[0325] Specifically, the operation of parsing the direct data on the electronic device 200 is completed by the microprocessing unit in the electronic device 200, and the direct data is not stored in the NFC TAG chip. For the description of the microprocessing unit, please refer to the aforementioned Figure 4 The description of the embodiments shown in will not be repeated here.
[0326] S918. The electronic device 200 reports the Wi-Fi connection information to the Wi-Fi connection module.
[0327] S919, the electronic device 200 connects to Wi-Fi in the background.
[0328] In some embodiments, the electronic device 100 can receive Wi-Fi connection information input by the user (for example, the Wi-Fi name, Wi-Fi password and encryption method of the Wi-Fi network), and connect to the corresponding Wi-Fi network based on the Wi-Fi connection information. Then, the electronic device 100 can send direct data carrying the Wi-Fi connection information to the electronic device 200 by NFC direct transmission. After the electronic device 200 receives the direct data, it can obtain the Wi-Fi connection information by parsing the direct data. Then, the electronic device 200 can connect to the corresponding Wi-Fi network based on the Wi-Fi connection information.
[0329] It is understandable that the sequence of the above steps is only used to exemplify the specific process of the method and does not constitute a specific limitation to the present application.
[0330] It should be understood that the above user interface examples are only used to explain the present application and should not constitute a limitation on the present application.
[0331] Fig.11A schematic flow chart of an NFC communication method provided in another embodiment of the present application is shown.
[0332] In some application scenarios, the electronic device 100 displays the application interface 1 (also referred to as the first interface) of the first application. When the electronic device 100 is close to the terminal device 400, the electronic device 100 (such as a mobile phone) can read the Bluetooth MAC address of the terminal device 400 from the NFC TAG chip of the terminal device 400 (such as a computer), and then the electronic device 100 can establish a Bluetooth connection with the terminal device 400, and establish a WLAN direct connection with the terminal device 400 through the Bluetooth connection. Among them, the hardware structure of the terminal device 400 can refer to the aforementioned Figure 3 The structural description of the electronic device 200 is shown, and will not be repeated here. The electronic device 100 can send the display data of the application interface 1 to the terminal device 400 for display via WLAN direct connection.
[0333] The terminal device 400 can display a first window and a second window. The first window can display an application interface 2 (also referred to as a second interface) of the first application and an application interface 3 (also referred to as a third application interface) of the first application, and the display content of the application interface 2 is the same as the display content of the application interface 1 on the electronic device 100. The display content in the application interface 3 is different from the display content of the application interface 1. It should be noted that in this embodiment, the above process can be referred to as multi-screen collaboration.
[0334] Then, when the electronic device 100 is close to the electronic device 200 (such as a large screen), the electronic device 100 can read the Bluetooth MAC address of the electronic device 200 from the NFC TAG chip of the electronic device 200, and the electronic device 100 can establish a Bluetooth connection with the electronic device 200, and establish a WLAN direct connection with the electronic device 200 through the Bluetooth connection. The electronic device 200 can send the display data of the application interface 1 through the WLAN direct connection. The electronic device 100 can send the direct data carrying the setting instructions to the electronic device 200 by NFC direct transmission. Then, the electronic device 200 can parse the setting instructions in the direct data. The electronic device 200 can respond to the setting instruction and display the application interface 1 based on the display data, thereby performing a multi-screen collaborative function instead of the basic function of the electronic device 200 (such as screen projection display). In this way, the electronic device 200 can realize multiple functions (for example, screen projection display function, multi-screen collaborative function), and the operation of switching between functions is simple, which reduces the user's operation steps and improves the user experience.
[0335] In this application scenario, the electronic device 100 can be called a first electronic device, the electronic device 200 can be called a second electronic device, the terminal device 400 can be called a third electronic device, the NFC control chip can be called a first NFC control chip, the NFC TAG chip in the electronic device 200 can be called a first NFC TAG chip, and the NFC TAG chip in the terminal device 400 can be called a third NFC TAG chip.
[0336] like Fig.11 As shown, the method may include:
[0337] S1101: The terminal device 400 stores tag data 4 in an NFC TAG chip (also referred to as a third NFC TAG chip), and sets a fixed field in the tag data 4 (also referred to as a third tag data).
[0338] The format of the tag data 4 can be based on the above Fig. 6A The NDEF protocol format in the illustrated embodiment. The tag data 4 may include an NDEF protocol header, a service processing attribute flag, a pass-through flag, service data, and an end field. The terminal device 400 may set the above fixed fields. For the description of the NDEF protocol header, please refer to the aforementioned Fig. 6A The relevant description in the embodiment will not be repeated here. The business processing attribute flag can be used to indicate the business supported by the tag data 4. For example, when the value of the business processing attribute flag is "0x05" (also referred to as the third attribute), it indicates that the tag data 4 is used for multi-screen collaboration. That is to say, when the electronic device 100 obtains the tag data 4 and reads the business processing attribute flag in the tag data 4 as "0x05", the electronic device 100 can send the display data of the application interface 1 to the terminal device 400, and the terminal device 400 receives the display data and displays the application interface 1 to perform the multi-screen collaboration function. Business data can store data information related to the terminal device 400. For example, the business data can store the Bluetooth MAC address of the terminal device 400 and / or the MAC address of the WLAN of the terminal device 400. The end field can be used to indicate the location where the data information in the tag data 4 ends.
[0339] In some embodiments of the present application, the tag data 4 may be pre-stored in the NFC TAG chip by the terminal device 400 when it leaves the factory. In other embodiments of the present application, the tag data 4 may also be written into the NFC TAG chip in real time by the terminal device 400 through a microprocessor unit via a bus connected to the NFC TAG chip. The present application does not limit this.
[0340] S1102 , the electronic device 100 starts NFC communication and obtains tag data 4 from the terminal device 400 .
[0341] Specifically, regarding the process of the electronic device 100 starting NFC communication and obtaining the tag data 4 from the terminal device 400, reference may be made to the relevant description in the aforementioned S702, which will not be repeated here.
[0342] S1103: The electronic device 100 establishes a Bluetooth connection with the terminal device 400, and establishes a WLAN direct connection through the Bluetooth connection. The electronic device 100 sends the display data of the application interface 1 of the terminal device 400 through the above connection.
[0343] Specifically, the electronic device 100 can obtain the Bluetooth MAC address of the terminal device 400 by obtaining and parsing the received tag data 4. The electronic device 100 can establish a Bluetooth connection with the terminal device 400 based on the Bluetooth MAC address of the terminal device 400. Then, the electronic device 100 can establish a WLAN direct connection with the terminal device 400 through the Bluetooth connection, and send the display data of the application interface 1 of the terminal device 400 through the WLAN direct connection.
[0344] S1104. The terminal device 400 and the electronic device 100 perform multi-screen collaboration.
[0345] Specifically, the terminal device 400 can perform multi-screen collaboration with the electronic device 100 based on the display data of the application interface 1.
[0346] S1105. The electronic device 100 sets the multi-screen collaboration function to a high priority in response to the detected user operation.
[0347] Specifically, Fig. 12A As shown in the example, the electronic device 100 can receive user input (such as a click) for a specified control, and in response to the input, the electronic device 100 can set the multi-screen collaboration function to a high priority.
[0348] like Fig. 12A As shown in the example, the electronic device 100 may display a user interface 1200 (also referred to as user interface 1). The user interface 1200 may include a status bar 1201, multiple application icons, a calendar indicator, and a page indicator, etc. Among them, the status bar 1201 may display an NFC communication icon 1201A to prompt the user that the electronic device 100 has turned on NFC communication.
[0349] The user interface 1200 may display a prompt box 1202. The prompt box 1202 may be used to display a prompt message, and the prompt message (also referred to as a first prompt) may be used to prompt the user whether to copy the multi-screen collaboration function. For example, the prompt message displayed in the prompt box 1202 may be the text "The multi-screen collaboration function of the PC supports copying to other devices, do you want to copy?". Not limited to text information, the prompt message may also be a voice or other type of prompt message output by the electronic device 100, and this application does not limit this.
[0350] The prompt box 1202 may also display corresponding controls so that the user can choose whether to agree to copy the multi-screen collaboration function. For example, the prompt box 1202 may display a "yes" control 1202A and a "no" control 1202B. The electronic device 100 may perform a corresponding operation in response to a touch operation (e.g., click) on the control.
[0351] When the electronic device 100 detects a touch operation (also referred to as a first input) performed by the user on the “yes” control 1202A, such as a click, the electronic device 100 may set the multi-screen collaboration function to a high priority.
[0352] S1106 : The electronic device 200 stores the tag data 5 (also referred to as the first tag data) in the NFC TAG chip, and sets a fixed field in the tag data 5 .
[0353] The format of the tag data 5 can be based on the above Fig. 6A The NDEF protocol format in the illustrated embodiment. The tag data 5 may include an NDEF protocol header, a service processing attribute flag, a pass-through flag, service data, and an end field. The electronic device 200 may set the above fixed fields. For the description of the NDEF protocol header, please refer to the aforementioned Fig. 6A The relevant description in the embodiment will not be repeated here. The business processing attribute flag can be used to indicate the business supported by the tag data 5. For example, when the value of the business processing attribute flag is "0x02", it indicates that the tag data 5 is used for the screen projection service (also referred to as the first attribute). That is to say, when the electronic device 100 obtains the tag data 5 and reads the business processing attribute flag in the tag data 5 as "0x02", the electronic device 100 can send the screen projection display data to the terminal device 400. The business data can be used to store the Bluetooth MAC address of the electronic device 200, and / or the MAC address of the WLAN. The end field can be used to indicate the location where the data information in the tag data 5 ends.
[0354] In some embodiments of the present application, the tag data 5 may be pre-stored in the NFC TAG chip when the terminal device 400 leaves the factory. In other embodiments of the present application, the tag data 5 may also be written into the NFC TAG chip in real time by the terminal device 400 through a microprocessor unit via a bus connected to the NFC TAG chip. The present application does not limit this.
[0355] S1107 , the electronic device 100 obtains the tag data 5 from the electronic device 200 , and parses the direct flag in the tag data 5 , and determines whether the electronic device 200 supports NFC direct transmission based on the direct flag.
[0356] Specifically, in the aforementioned step S1002, the electronic device 100 has already started NFC communication. When the electronic device 100 is close to the electronic device 200, the NFC TAG chip in the electronic device 200 can send the tag data 5 stored in the NFC TAG chip to the electronic device 100 by load modulating the radio frequency field. The electronic device 100 can parse the direct flag in the tag data 5 to find out whether the electronic device 200 receives data sent by the electronic device 100 through NFC direct transmission. For example, when the electronic device 100 parses and reads the value of the direct flag in the tag data 5 as 1 (also referred to as the first value), it is known that the electronic device 200 can receive data sent by the electronic device 100 through NFC direct transmission.
[0357] In other implementations, when the electronic device 100 obtains the tag data 4 stored in the terminal device 400, the NFC control chip in the electronic device 100 turns off the radio frequency field, and in this step, the radio frequency field of the specified frequency (e.g., 13.56MHz) needs to be turned on again to turn on the NFC communication function. For the specific process of how to turn on the NFC communication function, please refer to the description in S702 above, which will not be repeated here.
[0358] The electronic device 100 may receive a user operation (e.g., click) on a specified control. In response to the operation, when the electronic device 100 reads the business processing attribute flag in the tag data 5, it may not execute the basic functions of the electronic device 200 (e.g., screen projection display), but execute the multi-screen collaboration function that has been set to a high priority.
[0359] like Fig. 12BAs shown in the example, the electronic device 100 can display a prompt box 1211 on the user interface 1200. The prompt box 1211 can be used to display prompt information, which can be used to prompt the user whether to copy the aforementioned multi-screen collaboration function to the electronic device 200. For example, the prompt information displayed in the prompt box 1211 can be the text "Smart screen supports multi-screen collaboration of copying PC, do you want to copy?". Not limited to text information, the prompt information can also be voice or other types of prompt information output by the electronic device 100, and this application does not limit this.
[0360] The prompt box 1211 may also display corresponding controls so that the user can choose whether to agree to copy the multi-screen collaboration function to the electronic device 200. For example, the prompt box 1211 may display a "yes" control 1211A and a "no" control 1211B. The electronic device 100 may perform a corresponding operation in response to a touch operation (e.g., click) on the control.
[0361] When the electronic device 100 detects a touch operation (such as a click) performed by the user on the "Yes" control 1211A, then when the electronic device 100 reads the business processing attribute flag in the tag data 5, the electronic device 200 may not execute the basic function corresponding to the business processing attribute flag (such as screen projection display), but execute the multi-screen collaboration function that has been set to a high priority.
[0362] In some embodiments, the electronic device 100 can determine whether it is close to the electronic device 200 within a preset specified time threshold (for example, 10 minutes) after acquiring the tag data 4, thereby determining whether to execute the multi-screen collaboration function.
[0363] Specifically, when the electronic device 100 reads the business processing attribute flag in the tag data 5, it can determine the function performed by the electronic device 200 based on the time judgment. For example, when the electronic device 100 determines that it is close to the electronic device 200 within the preset specified time threshold (for example, 10 minutes) after obtaining the tag data 4, when the electronic device 100 reads the value of the business processing attribute flag in the tag data 5 as "0x02", the electronic device 200 executes the multi-screen collaborative function set to a high priority, instead of the basic function of the electronic device 200 corresponding to the business processing attribute flag as "0x02", and the electronic device 100 can cancel the setting of the multi-screen collaborative function as a high priority. Canceling the high priority of the multi-screen collaborative function means that when the electronic device 100 approaches the electronic device 200 again, the electronic device 200 executes the basic function (such as screen projection display) instead of the multi-screen collaborative function.
[0364] When the electronic device 100 determines that it is not within a preset specified time threshold (for example, 10 minutes) and is close to the electronic device 200, the electronic device 200 performs basic functions (for example, screen projection display).
[0365] S1108 , the electronic device 100 sends direct data to the electronic device 200 .
[0366] Specifically, the electronic device 100 can encapsulate the setting instruction as direct data. The electronic device 100 can send a direct data start frame to prompt the electronic device 200 that the electronic device 100 is about to send direct data to the electronic device 200. Then, the electronic device 100 can send the direct data carrying the multi-screen collaborative operation instruction to the electronic device 200 via NFC direct transmission.
[0367] S1109: The electronic device 100 and the electronic device 200 establish a Bluetooth connection, and establish a WLAN direct connection through the Bluetooth connection. The electronic device 100 sends the display data (also referred to as the second display data) of the application interface 1 to the electronic device 200 through the WLAN direct connection.
[0368] Specifically, the electronic device 100 can obtain the Bluetooth MAC address of the electronic device 200 by obtaining and parsing the received tag data 5, and the electronic device 100 can establish a Bluetooth connection with the electronic device 200 based on the Bluetooth MAC address. Then, the electronic device 100 can establish a WLAN direct connection with the terminal device 400 through the Bluetooth connection, and send the display data of the application interface 1 to the electronic device 200 through the WLAN direct connection.
[0369] S1110. The electronic device 200 displays the application interface 1 and performs multi-screen collaboration.
[0370] Specifically, when the electronic device 200 receives the direct data sent by the electronic device 100, it can parse the setting instruction based on the direct data. Then, in response to the setting instruction, the electronic device 200 can display the application interface 1 based on the received display data, thereby executing the multi-screen collaboration function.
[0371] It is understandable that the sequence of the above steps is only used to exemplify the specific process of the method and does not constitute a specific limitation to the present application.
[0372] It should be understood that the above user interface examples are only used to explain the present application and should not constitute a limitation on the present application.
[0373] Fig.13 A schematic flow chart of an NFC communication method provided in another embodiment of the present application is shown.
[0374] In some application scenarios, when the electronic device 100 (such as a mobile phone) is close to the audio device 500, the electronic device 100 can read the Bluetooth MAC address of the audio device 500 from the NFC TAG chip of the audio device 500 (such as a Bluetooth speaker), and then the electronic device 100 can establish a Bluetooth connection with the audio device 500 based on the Bluetooth MAC address, and send audio data to the audio device 500 through the Bluetooth connection. After the audio device 500 receives the audio data, it can play the audio according to the audio data. The electronic device 100 can cache the Bluetooth MAC address of the audio device 500. Then, when the electronic device 100 is close to the electronic device 200 (such as a smart watch), the electronic device 100 can send the Bluetooth MAC address of the audio device 500 to the electronic device 200 through NFC direct transmission. When the electronic device 200 receives the Bluetooth MAC address of the audio device 500, the Bluetooth MAC address can be stored in the NFC TAG chip on the electronic device 200. In this process, the Bluetooth connection between the electronic device 100 and the audio device 500 will not be disconnected, and the audio device 500 can still receive the audio data sent by the electronic device 100 through the Bluetooth connection and play the audio according to the audio data. Figure 3 The structural description of the electronic device 200 is shown and will not be repeated here.
[0375] In this way, when the electronic device 100 establishes a Bluetooth connection with the audio device 500 again, it can obtain the Bluetooth MAC address of the audio device 500 from the NFC TAG chip on the electronic device 200 by bringing it close to the electronic device 200, and establish a Bluetooth connection with the audio device 500 based on the Bluetooth MAC address without having to move close to the audio device 500, making user operation more convenient and improving the user experience.
[0376] In this application scenario, the electronic device 100 can be referred to as a first electronic device, the electronic device 200 can be referred to as a second electronic device, the audio device 500 can be referred to as a third electronic device, the NFC control chip can be referred to as a first NFC control chip, the NFC TAG chip in the electronic device 200 can be referred to as a first NFC TAG chip, and the NFC TAG chip in the audio device 500 can be referred to as a third NFC TAG chip.
[0377] like Fig.13 As shown, the method may include:
[0378] S1301 : The audio device 500 stores tag data 6 (also referred to as third tag data) in the NFC TAG chip, and sets a fixed field in the tag data 6 .
[0379] The format of tag data 6 can be based on the above Fig. 6A The NDEF protocol format in the illustrated embodiment. The tag data 6 may include an NDEF protocol header, a service processing attribute flag, a pass-through flag, service data, and an end field. The audio device 500 may set the above fixed fields and the pass-through flag. For the description of the NDEF protocol header, please refer to the aforementioned Fig. 6A The relevant description in the embodiment will not be repeated here. The business processing attribute flag can be used to indicate the business supported by the tag data 6. For example, when the value of the business processing attribute flag is "0x04", it means that the tag data 6 is used for sound transmission and playback. That is to say, when the electronic device 100 obtains the tag data 6 and reads the business processing attribute flag in the tag data 6 as "0x04", the electronic device 100 can send audio data to the audio device 500. The business data can store the Bluetooth MAC address of the audio device 500. The end field can be used to indicate the location where the data information in the tag data 6 ends.
[0380] In some embodiments of the present application, the tag data 6 may be pre-stored in the NFC TAG chip when the audio device 500 leaves the factory. In other embodiments of the present application, the tag data 6 may also be written into the NFC TAG chip in real time by the audio device 500 through a microprocessor unit via a bus connected to the NFC TAG chip. The present application does not limit this.
[0381] S1302 : The electronic device 100 starts NFC communication and obtains tag data 6 from the audio device 500 .
[0382] Specifically, regarding the process of the electronic device 100 starting NFC communication and obtaining the tag data 6 from the audio device 500, reference may be made to the relevant description in the aforementioned S702, which will not be repeated here.
[0383] S1303: The electronic device 100 and the audio device 500 establish a Bluetooth connection and send audio data.
[0384] Specifically, the electronic device 100 can obtain the Bluetooth MAC address of the audio device 500 by obtaining and parsing the tag data 6 sent by the audio device 500, and the electronic device 100 can establish a Bluetooth connection with the audio device 500 based on the Bluetooth MAC address. Then, the electronic device 100 can send the audio data required for the audio device 500 to play audio through the Bluetooth connection.
[0385] S1304: The audio device 500 plays audio according to the acquired audio data.
[0386] S1305 : The electronic device 100 caches the Bluetooth MAC address of the audio device 500 .
[0387] S1306 : The electronic device 200 stores the tag data 7 (also referred to as the first tag data) in the NFC TAG chip, and sets a fixed field and a pass-through flag in the tag data 7 .
[0388] The format of the tag data 7 can be based on the above Fig. 6A The NDEF protocol format in the illustrated embodiment. The tag data 7 may include an NDEF protocol header, a service processing attribute flag, a pass-through flag, service data, and an end field. The electronic device 200 may set the above fixed fields and the pass-through flag. For the description of the NDEF protocol header, please refer to the aforementioned Fig. 6A The relevant description in the embodiment is not repeated here. The business processing attribute flag bit can be used to indicate the business supported by the tag data 7. For example, when the value of the business processing attribute flag bit is "0x01", it means that the tag data 7 is used for Bluetooth connection business, that is to say, when the electronic device 100 obtains the tag data 7 and reads the business processing attribute flag bit in the tag data 7 as "0x01" (also referred to as the fourth attribute), the electronic device 100 can establish a Bluetooth connection with the electronic device 200. Business data can be used to store the Bluetooth MAC address of the electronic device 200 and / or the MAC address of the WLAN. The direct flag bit can be used to indicate whether the electronic device 200 can receive the data sent by the electronic device 100 by means of NFC direct transmission. For example, when the value of the direct flag bit is 1 (also referred to as the first value), it means that the electronic device 200 can receive the data sent by the electronic device 100 by means of NFC direct transmission. The end field can be used to indicate the position where the data information in the tag data 7 ends.
[0389] In some embodiments of the present application, the tag data 7 may be pre-stored in the NFC TAG chip when the electronic device 200 leaves the factory. In other embodiments of the present application, the tag data 7 may also be written into the NFC TAG chip in real time by the electronic device 200 through a microprocessor unit via a bus connected to the NFC TAG chip. The present application does not limit this.
[0390] S1307 , the electronic device 100 obtains the tag data 7 from the electronic device 200 .
[0391] Specifically, in the aforementioned step S1102, the electronic device 100 has already started NFC communication. When the electronic device 100 is close to the electronic device 200, the NFC TAG chip in the electronic device 200 can send the tag data 7 stored in the NFC TAG chip to the electronic device 100 by load modulating the radio frequency field.
[0392] In other implementations, when the electronic device 100 obtains the tag data 6 in the audio device 500, the NFC control chip in the electronic device 100 turns off the radio frequency field, and in this step, the radio frequency field of the specified frequency (e.g., 13.56 MHz) needs to be turned on again to turn on the NFC communication function. For the specific process of how to turn on the NFC communication function, please refer to the description in S702 above, which will not be repeated here.
[0393] S1308 : The electronic device 100 parses the tag data 7 , obtains the Bluetooth MAC address of the electronic device 200 , and determines whether the electronic device 200 supports NFC direct transmission based on the direct flag bit in the tag data 7 .
[0394] Specifically, the electronic device 100 can parse the tag data 7 to obtain the value of the business processing attribute flag as "0x01" and the Bluetooth MAC address of the electronic device 200 stored in the business data. The electronic device 100 can establish a Bluetooth connection with the electronic device 200 based on the Bluetooth MAC address. Based on the direct flag in the tag data 7, the electronic device 100 can know whether the electronic device 200 receives data sent by the electronic device 100 via NFC direct transmission. For example, when the electronic device 100 parses and reads the value of the direct flag in the tag data 7 as 1, it is known that the electronic device 200 can receive data sent by the electronic device 100 via NFC direct transmission, and the electronic device 100 can obtain the cached Bluetooth MAC address of the audio device 500.
[0395] S1309: The electronic device 100 detects whether the Bluetooth MAC address of the audio device 500 is cached.
[0396] S1310: The electronic device 100 sends a radio frequency field waiting instruction to keep the radio frequency field communication link uninterrupted.
[0397] Specifically, in an embodiment of the present application, the electronic device 200 can obtain data sent by the electronic device 100 through NFC direct transmission. Therefore, the electronic device 200 obtains the audio data sent by the electronic device 100 through a Bluetooth connection, and while playing the audio, it can also obtain the Bluetooth MAC address of the audio device 500 sent by the electronic device 100 through NFC direct transmission. When the electronic device 100 has not yet sent the Bluetooth MAC address, the electronic device 100 can send a radio frequency field waiting instruction to the electronic device 200 to keep the radio frequency field communication link uninterrupted. For instructions on the radio frequency field waiting instruction, please refer to the aforementioned Figure 6B The description in the illustrated embodiment will not be repeated here.
[0398] S1311. The electronic device 100 encapsulates the Bluetooth MAC address of the audio device 500 into a direct data protocol.
[0399] For details about the direct data protocol format, please refer to the above Figure 6C The relevant description in the illustrated embodiment will not be repeated here.
[0400] S1312: The electronic device 100 sends a direct data start frame.
[0401] Specifically, after the electronic device 100 encapsulates the Bluetooth MAC address of the audio device 500 into a direct data protocol, it can send a direct data start frame to the electronic device 200 through NFC direct transmission, prompting the electronic device 200 that the electronic device 100 is about to send direct data to the electronic device 200. The format of the direct data start frame can be the NDEF protocol format, and the business data field can be specified character data of a specified field length, such as "0x10".
[0402] S1313: The electronic device 100 sends the Bluetooth MAC address of the audio device 500 which has been encapsulated as a direct data protocol (also referred to as direct data) through NFC direct transmission.
[0403] Specifically, the electronic device 100 may detect an operation (eg, click) by a user on a designated control, and in response to the operation, the electronic device 100 may send direct data including the Bluetooth MAC address of the audio device 500 .
[0404] like Fig.14 As shown in the example, the electronic device 100 may display a user interface 1400. The user interface 1400 may include a status bar 1401, multiple application icons, a calendar indicator, and a page indicator, etc. Among them, the status bar 1401 may display an NFC communication icon 1401A to prompt the user that the electronic device 100 has turned on NFC communication.
[0405] The user interface 1400 may display a prompt box 1402. The prompt box 1402 may be used to display prompt information, and the prompt information (also referred to as a third prompt) may be used to prompt the user whether to send the direct data to the electronic device 200. For example, the prompt information displayed in the prompt box 1402 may be a text "The smart watch supports copying the Bluetooth MAC address of the Bluetooth speaker, do you agree to copy?". Not limited to text information, the prompt information may also be a voice or other type of prompt information output by the electronic device 100, and the present application does not limit this.
[0406] The prompt box 1402 may also display corresponding controls so that the user can choose whether to agree to send the direct data to the electronic device 200. For example, the prompt box 1402 may display a "yes" control 1402A and a "no" control 1402B. The electronic device 100 may perform a corresponding operation in response to a touch operation (e.g., click) on the control.
[0407] When the electronic device 100 detects a touch operation (also referred to as a second input) performed by the user on the “yes” control 1402A, such as a click, the electronic device 100 sends the direct data to the electronic device 200 .
[0408] S1314. The electronic device 200 sends a response field.
[0409] Specifically, the electronic device 200 can send a response field through NFC direct transmission to indicate whether the electronic device 200 has received the direct data sent by the electronic device 100. For the description of the response field, please refer to the above Fig.6D The description will not be repeated here.
[0410] S1315 , the electronic device 200 parses the direct data obtained from the electronic device 100 , and obtains and stores the Bluetooth MAC address of the audio device 500 .
[0411] Specifically, the operation of parsing the direct data on the electronic device 200 is completed by the microprocessor in the electronic device 200. The Bluetooth MAC address of the audio device 500 obtained by the electronic device 200 parsing the direct data can be stored in the NFC TAG chip on the electronic device 200. For the description of the microprocessor, please refer to the aforementioned Figure 4 The description of the embodiments shown in will not be repeated here.
[0412] S1316. The electronic device 100 obtains tag data 8 (also referred to as fourth tag data).
[0413] Specifically, after the electronic device 100 and the audio device 500 disconnect the Bluetooth connection, when the electronic device 100 is close to the electronic device 200, the electronic device 100 can obtain the tag data 8 stored in the NFC TAG chip in the electronic device 200 through the radio frequency field generated by the NFC control chip. Among them, the tag data 8 may include the NDEF protocol header, the business processing attribute flag, the pass-through flag, the business data, and the end field. The electronic device 200 can set the above-mentioned fixed fields and the pass-through flag. For the description of the NDEF protocol header, please refer to the aforementioned Fig. 6A The relevant description in the embodiment is not repeated here. The service data field in the tag data 8 may store the Bluetooth MAC address of the audio device 500 .
[0414] S1317: The electronic device 100 and the audio device 500 establish a Bluetooth connection.
[0415] Specifically, the electronic device 100 can parse the tag data 8 to obtain the Bluetooth MAC address of the audio device 500. The electronic device 100 can establish a Bluetooth connection with the audio device 500 based on the Bluetooth MAC address. The electronic device 100 can send audio data to the audio device 500 based on the Bluetooth connection.
[0416] It is understandable that the sequence of the above steps is only used to exemplify the specific process of the method and does not constitute a specific limitation to the present application.
[0417] It should be understood that the above user interface examples are only used to explain the present application and should not constitute a limitation on the present application.
[0418] The following is a system module interaction flow chart provided in an embodiment of the present application.
[0419] like Fig.15 As shown in the example, the system provided by the present application may include an NFC device and an NFC TAG device (also referred to as a TAG device) module. Among them, the NFC device may include an execution module and an NFC control chip. The NFC control chip may include a parsing module, a TAG side information setting module, and an operation information receiving module. The NFC TAG module may include an execution module and an NFC TAG chip. The NFC TAG chip may include an operation information receiving module, an NFC information setting module, and a parsing module.
[0420] S1501. An NFC information setting module of an NFC TAG device obtains information required by the NFC device.
[0421] Specifically, the information required by the NFC device may include the Bluetooth MAC address of the NFC TAG device, and / or the Wi-Fi connection information of the NFC TAG device, such as the Wi-Fi name and Wi-Fi password and encryption method, etc. In addition, the information required by the NFC device may also include an operation instruction for the NFC device to send data to the NFC TAG device, etc. When the NFC device obtains the above information from the NFC TAG device, it may establish a Bluetooth connection and / or a Wi-Fi connection with the NFC TAG device based on the above information, and send data information to the NFC TAG device.
[0422] S1502: The NFC information setting module of the NFC TAG device encapsulates the information required by the NFC device.
[0423] Specifically, the NFC information setting module of the NFC TAG device can encapsulate the data format of the information required by the NFC device into the NDEF protocol format provided in this application. For the description of the NDEF protocol format, please refer to the above description, which will not be repeated here.
[0424] S1503: The NFC information setting module of the NFC TAG device sets a pass-through flag.
[0425] Specifically, for the description of the pass-through flag, reference may be made to the above description, which will not be repeated here.
[0426] S1504: The NFC TAG device sends the NDEF protocol encapsulating the information required by the NFC device to the operation information receiving module of the NFC device.
[0427] Specifically, for the description of the NDEF protocol format, please refer to the above description, which will not be repeated here.
[0428] S1505: The operation information receiving module of the NFC device sends the NDEF protocol encapsulating the information required by the NFC device to the parsing module of the NFC device.
[0429] S1506: The parsing module of the NFC device parses the protocol and reads the pass-through flag.
[0430] Specifically, the NDEF protocol may include the information required by the NFC device in the above S1501, as well as the fixed fields and the pass-through flag in the NDEF protocol.
[0431] S1507: The NFC device starts the pass-through function.
[0432] Specifically, the NFC device can learn whether the NFC TAG device receives data sent by the NFC device through NFC direct transmission by parsing the direct flag bit in the NDEF protocol. For example, when the NFC device parses and reads the direct flag bit in the NDEF protocol as 1, it is known that the NFC TAG device can receive data sent by the NFC device through NFC direct transmission, and the NFC device can send data to the NFC TAG device through NFC direct transmission.
[0433] S1508: The parsing module of the NFC device sends the parsed and read operation information to the execution module of the NFC device.
[0434] Specifically, the NFC device can parse the NDEF protocol, which includes a business processing attribute field. The parsing module in the NFC device can send a corresponding operation instruction to the execution module based on the business processing attribute field. For the description of the business processing attribute field, please refer to the relevant description in the above, which will not be repeated here.
[0435] S1509: The execution module of the NFC device executes corresponding operations.
[0436] Specifically, when the NFC device parses and reads the service attribute flag, it can send a corresponding instruction to the execution module according to the service attribute flag, and the execution module can perform corresponding operations according to the instruction. For example, when the parsing module reads the service attribute flag as "0x02", the execution module needs to obtain the corresponding screen projection service data and send it to the NFC TAG device via Bluetooth or Wi-Fi connection. For details, please refer to the specific method embodiments mentioned above, which will not be repeated here.
[0437] S1510. The TAG information setting module of the NFC device obtains information required by the NFC TAG device.
[0438] S1511. The TAG information setting module of the NFC device encapsulates the information required by the NFC TAG device into a direct data protocol.
[0439] Specifically, for the description of the direct data protocol format, please refer to the above description, which will not be repeated here.
[0440] In some embodiments, when the NFC device does not send the information required by the NFC TAG device, the NFC device can send a radio frequency field waiting instruction to the NFC TAG device to keep the radio frequency field communication link uninterrupted. For the description of the radio frequency field waiting instruction, please refer to the above description, which will not be repeated here.
[0441] S1512. The NFC device sends the direct data encapsulating the information required by the NFC TAG device to the operation information receiving module of the NFC TAG device.
[0442] Specifically, unlike sending data via Bluetooth connection or Wi-Fi connection in the aforementioned step S1509, in this step, the NFC device can send direct data via NFC direct transmission.
[0443] In some embodiments, before the NFC device sends the direct data, it can also send a direct data start frame to the NFC TAG device through NFC direct transmission, indicating that the NFC device is about to send information to the TAG device through NFC direct transmission. The direct data start frame can refer to the description of the specific method embodiment in the above, which will not be repeated here.
[0444] S1513. The operation information receiving module of the NFC TAG device sends the direct data to the parsing module of the NFC TAG device.
[0445] Specifically, the direct data is not stored in the NFC TAG chip.
[0446] S1514. The parsing module of the NFC TAG device parses the direct data.
[0447] S1515. The parsing module of the NFC TAG device sends the parsed and read operation information to the execution module of the NFC TAG device.
[0448] S1516. The execution module of the NFC TAG device executes corresponding operations.
[0449] Specifically, the corresponding operations performed by the execution module of the NFC TAG device can refer to the aforementioned Figure 7 In the illustrated embodiment, the electronic device 200 logs into a specified application based on the login account information in the direct data.
[0450] In some embodiments, the corresponding operations performed by the execution module of the NFC TAG device can refer to the aforementioned Fig. 9 In the illustrated embodiment, the electronic device 200 is connected to the Wi-Fi network based on the Wi-Fi connection information in the direct data.
[0451] In some embodiments, the corresponding operations performed by the execution module of the NFC TAG device can refer to the aforementioned Fig.11 In the illustrated embodiment, the electronic device 200 executes the multi-screen collaboration function based on the instructions set in the direct data.
[0452] In some embodiments, the corresponding operations performed by the execution module of the NFC TAG device can refer to the aforementioned Fig.13In the illustrated embodiment, the electronic device 200 writes the Bluetooth MAC address of the audio device 500 into the tag data of the NFC TAG chip based on the Bluetooth MAC address of the audio device 500 in the direct data.
[0453] In the above embodiment of the present application, the electronic device 100 can establish a Wi-Fi network. The electronic device 100 can establish a WLAN direct connection with the electronic device 200 by sending direct data carrying the Wi-Fi network information to the electronic device 200. The Wi-Fi network information may include the Wi-Fi name, Wi-Fi password, and encryption method of the Wi-Fi network.
[0454] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. An NFC communication system, characterized in that: include: A first electronic device and a second electronic device, wherein the first electronic device is configured with a first short-range wireless communication NFC control chip, and the second electronic device is configured with a first short-range wireless communication tag NFC TAG chip; wherein the first NFC control chip is used to modulate a radio frequency field of a specified frequency to communicate with the first NFC TAG chip, and the first NFC TAG chip is used to sense the radio frequency field to obtain energy, and load modulate the radio frequency field to communicate with the first NFC control chip; wherein, The first electronic device is used to read the first tag data stored in the first NFC TAG chip through the radio frequency field generated by the first NFC control chip; wherein the first tag data includes a service processing attribute of the second electronic device, a direct flag bit and service data, the service processing attribute of the second electronic device is used to indicate the service supported by the first tag data, and the direct flag bit in the first tag data is used to indicate whether the second electronic device supports receiving direct data; The first electronic device is further configured to perform a first operation corresponding to a business processing attribute of the second electronic device based on the business data in the first label data after reading the first label data; The first electronic device is further configured to send the direct data to the second electronic device through the first NFC control chip if the direct flag bit in the first tag data indicates that the second electronic device supports receiving the direct data; The second electronic device is configured to perform a second operation corresponding to the direct data after receiving the direct data through the first NFC TAG chip.
2. The system according to claim 1, characterized in that The first electronic device is further configured to display a first interface of a first application before reading the first tag data; the service data in the first tag data includes a Bluetooth media access control MAC address of the second electronic device; The first operation includes: When the service processing attribute of the second electronic device is the first attribute, establishing a Bluetooth connection with the second electronic device based on the Bluetooth MAC address of the second electronic device; Based on the Bluetooth connection, establishing a wireless local area network WLAN direct connection with the second electronic device; sending the first display data to the second electronic device through the WLAN direct connection; The second electronic device is further configured to display a second interface based on the first display data after receiving the first display data, wherein the display content in the second interface is the same as the display content in the first interface; The direct data includes the account information of the first application and the identifier of the first application, and the account information includes the account identifier and account password of the first application; The second operation includes: Based on the account information and the identifier of the first application, the account information is logged in to the first application on the second electronic device.
3. The system according to claim 1, characterized in that The service data in the first tag data includes a Bluetooth media access control MAC address of the second electronic device; The first operation includes: When the service processing attribute of the second electronic device is the second attribute, establishing a Bluetooth connection with the second electronic device based on the Bluetooth MAC address of the second electronic device; The direct data includes first Wireless Fidelity Wi-Fi connection information, and the first Wi-Fi connection information includes a Wi-Fi name, a Wi-Fi password, and an encryption method of the first Wi-Fi network; The second operation includes: Based on the first Wi-Fi connection information, connect to the first Wi-Fi network established by the routing device.
4. The system according to claim 1, characterized in that The service data in the first tag data includes a Bluetooth media access control MAC address of the second electronic device; The first electronic device is further configured to read, before reading the first tag data, third tag data stored in a third NFC TAG chip of a third electronic device through the radio frequency field generated by the first NFC control chip, wherein the third tag data includes a Bluetooth MAC address of the third electronic device and a service processing attribute of the third electronic device; The first electronic device is further configured to output a first prompt when the service processing attribute of the third electronic device is a third attribute, wherein the first prompt is configured to prompt a user whether to set the third attribute as a high-priority service attribute; The first electronic device is further used to receive a first input from a user; The first electronic device is further configured to set the third attribute to a high priority service attribute in response to a first input from a user; The first operation includes: When the service processing attribute of the second electronic device is the first attribute, establishing a Bluetooth connection with the second electronic device based on the Bluetooth MAC address of the second electronic device; Based on the Bluetooth connection, establishing a wireless local area network WLAN direct connection with the second electronic device; sending second display data to the second electronic device via the WLAN direct connection; The direct data includes a setting instruction, and the setting instruction is used to instruct the second electronic device to enable the multi-screen collaboration function corresponding to the third attribute; The second operation includes: In response to the setting instruction, a multi-screen collaborative function corresponding to the third attribute is executed based on the second display data.
5. The system according to claim 1, characterized in that The first electronic device is further configured to read, before reading the first tag data, third tag data stored in a third NFC TAG chip of a third electronic device through the radio frequency field generated by the first NFC control chip, wherein the third tag data includes a Bluetooth MAC address of the third electronic device; The first electronic device is further configured to establish a Bluetooth connection with the third electronic device based on the Bluetooth MAC address of the third electronic device; The first operation includes: When the service processing attribute of the second electronic device is the fourth attribute, displaying a third prompt, wherein the third prompt is used to prompt the user whether to copy the Bluetooth MAC address of the third electronic device to the second electronic device; The first electronic device is specifically configured to send the direct data to the second electronic device through the first NFC control chip after receiving a second input from the user; The direct data includes a Bluetooth MAC address of the third electronic device; The second operation includes: Write fourth tag data into the first NFC TAG chip, the fourth tag data including the Bluetooth MAC address of the third electronic device.
6. A NFC communication method, applied to a first electronic device, characterized in that: include: The first electronic device reads the first tag data stored in the first NFC TAG chip of the second electronic device through the radio frequency field generated by the first NFC control chip; wherein the first tag data includes a service processing attribute of the second electronic device, a direct flag bit and service data, the service processing attribute of the second electronic device is used to indicate the service supported by the first tag data, and the direct flag bit in the first tag data is used to indicate whether the second electronic device supports receiving direct data; The first NFC control chip is used to modulate the radio frequency field of the specified frequency to communicate with the first NFC TAG chip, and the first NFC TAG chip is used to sense the radio frequency field to obtain energy and load modulate the radio frequency field to communicate with the first NFC control chip; After reading the first tag data, the first electronic device performs a first operation corresponding to the business processing attribute of the second electronic device based on the business data in the first tag data; If the direct flag in the first tag data indicates that the second electronic device supports receiving the direct data, the first electronic device sends the direct data to the second electronic device through the first NFC control chip, and the direct data is used to trigger the second electronic device to perform a second operation corresponding to the direct data.
7. The method according to claim 6, characterized in that The service data in the first tag data includes a Bluetooth media access control MAC address of the second electronic device; Before reading the first tag data, the method further includes: The first electronic device displays a first interface of a first application; The first operation includes: When the service processing attribute of the second electronic device is the first attribute, establishing a Bluetooth connection with the second electronic device based on the Bluetooth MAC address of the second electronic device; Based on the Bluetooth connection, establishing a wireless local area network WLAN direct connection with the second electronic device; Sending first display data to the second electronic device through the WLAN direct connection, where the first display data is used for the second electronic device to display a second interface, where display content in the second interface is the same as display content in the first interface; The direct data includes the account information of the first application and the identifier of the first application, and the account information includes the account identifier and account password of the first application; The second operation includes: Based on the account information and the identifier of the first application, the account information is logged in to the first application on the second electronic device.
8. The method according to claim 6, characterized in that The service data in the first tag data includes a Bluetooth media access control MAC address of the second electronic device; The first operation includes: When the service processing attribute of the second electronic device is the second attribute, establishing a Bluetooth connection with the second electronic device based on the Bluetooth MAC address of the second electronic device; The direct data includes first Wireless Fidelity Wi-Fi connection information, and the first Wi-Fi connection information includes a Wi-Fi name, a Wi-Fi password, and an encryption method of the first Wi-Fi network; The second operation includes: Based on the first Wi-Fi connection information, connect to the first Wi-Fi network established by the routing device.
9. The method according to claim 8, characterized in that Before the first electronic device sends the direct data to the second electronic device through the first NFC control chip, the method further includes: The first electronic device reads second tag data stored in a second NFC TAG chip through the radio frequency field generated by the first NFC control chip, wherein the second tag data includes the first Wi-Fi connection information; The first electronic device connects to the first Wi-Fi network based on the first Wi-Fi connection information.
10. The method according to claim 8, characterized in that Before the first electronic device sends the direct data to the second electronic device through the first NFC control chip, the method further includes: The first electronic device receives the first Wi-Fi connection information input by a user; The first electronic device is further configured to connect to the first Wi-Fi network based on the first Wi-Fi connection information.
11. The method according to claim 6, characterized in that The service data in the first tag data includes a Bluetooth media access control MAC address of the second electronic device; Before the first electronic device reads the first tag data, the method further includes: The first electronic device reads the third tag data stored in the third NFC TAG chip of the third electronic device through the radio frequency field generated by the first NFC control chip, wherein the third tag data includes the Bluetooth MAC address of the third electronic device and the service processing attribute of the third electronic device; When the service processing attribute of the third electronic device is the third attribute, the first electronic device outputs a first prompt, where the first prompt is used to prompt the user whether to set the third attribute as a high-priority service attribute; The first electronic device receives a first input from a user; In response to the first input, the first electronic device sets the third attribute as a high priority service attribute; The first operation includes: When the service processing attribute of the second electronic device is the first attribute, establishing a Bluetooth connection with the second electronic device based on the Bluetooth MAC address of the second electronic device; Based on the Bluetooth connection, establishing a wireless local area network WLAN direct connection with the second electronic device; sending second display data to the second electronic device via the WLAN direct connection; The direct data includes a setting instruction, and the setting instruction is used to instruct the second electronic device to enable the multi-screen collaboration function corresponding to the third attribute; The second operation includes: In response to the setting instruction, a multi-screen collaborative function corresponding to the third attribute is executed based on the second display data.
12. The method according to claim 11, characterized in that Before the first electronic device reads the first tag data, the method further includes: The first electronic device displays a first interface of a first application; The performing the multi-screen collaborative function corresponding to the third attribute based on the second display data specifically includes: Based on the second display data, a first window and a second window are displayed, wherein the first window includes a second interface of the first application and a third interface of the first application, the display content in the second interface is the same as the display content in the first interface, and the display content in the third interface is different from the display content in the first interface.
13. The method according to claim 6, characterized in that Before the first electronic device reads the first tag data, the method further includes: The first electronic device reads third tag data stored in a third NFC TAG chip of a third electronic device through the radio frequency field generated by the first NFC control chip, wherein the third tag data includes a Bluetooth MAC address of the third electronic device; The method further comprises: The first electronic device establishes a Bluetooth connection with the third electronic device based on the Bluetooth MAC address of the third electronic device; The first operation includes: When the service processing attribute of the second electronic device is the fourth attribute, displaying a third prompt, wherein the third prompt is used to prompt the user whether to copy the Bluetooth MAC address of the third electronic device to the second electronic device; The first electronic device sends the direct data to the second electronic device through the first NFC control chip, specifically including: After receiving the second input from the user, the first electronic device sends the direct data to the second electronic device through the first NFC control chip; The second operation includes: In response to receiving a second input from the user, fourth tag data is written into the first NFC TAG chip, where the fourth tag data includes a Bluetooth MAC address of the third electronic device.
14. The method according to claim 13, characterized in that The method further comprises: After disconnecting the Bluetooth connection, the first electronic device reads the fourth tag data stored in the first NFC TAG chip through the radio frequency field generated by the first NFC control chip; The first electronic device establishes a Bluetooth connection with the third electronic device based on the Bluetooth MAC address of the third electronic device in the fourth tag data.
15. The method according to any one of claims 6 to 14, characterized in that: Before the first electronic device sends the direct data to the second electronic device through the first NFC control chip, the method further includes: The first electronic device sends a radio frequency field waiting instruction to the second electronic device through the first NFC control chip, where the radio frequency field waiting instruction is used to instruct the second electronic device to keep receiving data sent by the first NFC control chip through the first NFC TAG chip.
16. The method according to any one of claims 6 to 14, characterized in that: After the first electronic device sends the direct data to the second electronic device through the first NFC control chip, the method further includes: The first electronic device receives a response instruction sent by the second electronic device through the first NFC TAG chip, where the response instruction is used to notify the first electronic device that the second electronic device has received the direct data.
17. An NFC communication method, applied to a second electronic device, characterized in that: include: The second electronic device modulates the radio frequency field generated by the first electronic device through the first NFC control chip through the first NFC TAG chip load, and sends the first tag data stored in the first NFC TAG chip to the first electronic device; wherein the first tag data includes a service processing attribute of the second electronic device, a direct flag bit and service data, the service processing attribute of the second electronic device is used to indicate the service supported by the first tag data, and the direct flag bit in the first tag data is used to indicate whether the second electronic device supports receiving direct data; The first NFC TAG chip is used to sense the radio frequency field generated by the first NFC control chip by the first electronic device to obtain energy, and load modulate the radio frequency field to communicate with the first NFC control chip; the first tag data is used to trigger the first electronic device to perform a first operation corresponding to the business processing attribute of the second electronic device, and send the direct data to the second electronic device through the first NFC control chip when the direct flag bit in the first tag data indicates that the second electronic device supports receiving the direct data; After receiving the direct data sent by the first electronic device, the second electronic device performs a second operation corresponding to the direct data.
18. The method according to claim 17, characterized in that The service data in the first tag data includes a Bluetooth media access control MAC address of the second electronic device; wherein the first electronic device displays a first interface of a first application before reading the first tag data; The first operation includes: When the service processing attribute of the second electronic device is the first attribute, establishing a Bluetooth connection with the second electronic device based on the Bluetooth MAC address of the second electronic device; Based on the Bluetooth connection, establishing a wireless local area network WLAN direct connection with the second electronic device; Sending first display data to the second electronic device through the WLAN direct connection, where the first display data is used for the second electronic device to display a second interface, where display content in the second interface is the same as display content in the first interface; The direct data includes the account information of the first application and the identifier of the first application, and the account information includes the account identifier and account password of the first application; The second operation includes: Based on the account information and the identifier of the first application, the account information is logged in to the first application on the second electronic device.
19. The method according to claim 17, characterized in that The service data in the first tag data includes a Bluetooth media access control MAC address of the second electronic device; The first operation includes: When the service processing attribute of the second electronic device is the second attribute, establishing a Bluetooth connection with the second electronic device based on the Bluetooth MAC address of the second electronic device; The direct data includes first Wireless Fidelity Wi-Fi connection information, and the first Wi-Fi connection information includes a Wi-Fi name, a Wi-Fi password, and an encryption method of the first Wi-Fi network; The second operation includes: Based on the first Wi-Fi connection information, connect to the first Wi-Fi network established by the routing device.
20. The method according to claim 17, characterized in that The service data in the first tag data includes a Bluetooth media access control MAC address of the second electronic device; The first electronic device is used to read the third tag data stored in the third NFC TAG chip of the third electronic device through the radio frequency field generated by the first NFC control chip before reading the first tag data, wherein the third tag data includes the Bluetooth MAC address of the third electronic device and the service processing attribute of the third electronic device; The first electronic device is further configured to output a first prompt when the service processing attribute of the third electronic device is a third attribute, wherein the first prompt is configured to prompt a user whether to set the third attribute as a high-priority service attribute; The first electronic device is also used to receive a first input from a user; The first electronic device is further configured to set the third attribute to a high priority service attribute in response to a first input from a user; The first operation includes: When the service processing attribute of the second electronic device is the first attribute, establishing a Bluetooth connection with the second electronic device based on the Bluetooth MAC address of the second electronic device; Based on the Bluetooth connection, establishing a wireless local area network WLAN direct connection with the second electronic device; sending second display data to the second electronic device via the WLAN direct connection; The direct data includes a setting instruction, and the setting instruction is used to instruct the second electronic device to enable the multi-screen collaboration function corresponding to the third attribute; The second operation includes: In response to the setting instruction, a multi-screen collaborative function corresponding to the third attribute is executed based on the second display data.
21. The method according to claim 17, characterized in that The first electronic device is used to read the third tag data stored in the third NFC TAG chip of the third electronic device through the radio frequency field generated by the first NFC control chip before reading the first tag data, wherein the third tag data includes the Bluetooth MAC address of the third electronic device; The first electronic device is further configured to establish a Bluetooth connection with the third electronic device based on the Bluetooth MAC address of the third electronic device; The first operation includes: When the service processing attribute of the second electronic device is the fourth attribute, displaying a third prompt, wherein the third prompt is used to prompt the user whether to copy the Bluetooth MAC address of the third electronic device to the second electronic device; The first electronic device sends the direct data to the second electronic device through the first NFC control chip, specifically including: After receiving the second input from the user, the first electronic device sends the direct data to the second electronic device through the first NFC control chip; The second operation includes: In response to receiving a second input from the user, fourth tag data is written into the first NFC TAG chip, where the fourth tag data includes a Bluetooth MAC address of the third electronic device.
22. The method according to any one of claims 17 to 21, characterized in that: Before the second electronic device receives the direct data sent by the first electronic device through the first NFC control chip, the method further includes: The second electronic device receives a radio frequency field waiting instruction sent by the first electronic device through the first NFC control chip, where the radio frequency field waiting instruction is used to instruct the second electronic device to keep receiving data sent by the first NFC control chip through the first NFC TAG chip.
23. The method according to any one of claims 17 to 21, characterized in that: Before the second electronic device receives the direct data sent by the first electronic device through the first NFC control chip, the method further includes: The second electronic device sends a response instruction to the first electronic device through the first NFC TAG chip, where the response instruction is used to notify the first electronic device that the second electronic device has received the direct data.
24. An electronic device, the electronic device being a first electronic device, characterized in that: include: One or more processors, a first NFC control chip, and one or more memories; wherein the one or more memories, the first NFC control chip and the one or more processors are coupled, and the one or more memories are used to store computer program codes, and the computer program codes include computer instructions, and when the one or more processors execute the computer instructions, the first electronic device executes the method as described in any one of claims 6 to 16.
25. A chip system, applied to a first electronic device, characterized in that: The chip system comprises an application processor and a first NFC control chip, and the chip system executes the method as described in any one of claims 6-16.
26. A computer storage medium, characterized in that The method comprises computer instructions, which, when executed on a first electronic device, cause the first electronic device to execute the method as claimed in any one of claims 6 to 16.
27. A computer program product, characterized in that When the computer program product runs on a first electronic device, the first electronic device is enabled to execute a method as claimed in any one of claims 6 to 16.
Citation Information
Cited By
NFC method and system, and electronic device
EP4283931B1
NFC method and system, and electronic device
WO2022179443A1
