Data transmission method and system, and related apparatus
By automatically identifying device types and establishing communication connections through NFC, the problem of cumbersome data sharing operations for electronic devices is solved, enabling fast and convenient data transmission and supporting multiple communication protocols.
Patent Information
- Application Number
- PCT/CN2025/110311
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-07-29
- Filing Date
- 2025-07-24
- Publication Date
- 2026-02-05
AI Technical Summary
In existing technologies, sharing data with electronic devices is cumbersome, requiring users to click multiple times and select sharing methods, resulting in a poor user experience.
It automatically identifies device type and establishes communication connection through Near Field Communication (NFC), and directly sends shared content without requiring users to select a sharing method. It supports multiple communication connection methods such as Wi-Fi, Bluetooth and Ultra Wideband, enabling fast and convenient data sharing.
It simplifies the data sharing process, improves operational efficiency, eliminates the need for users to manually select sharing methods, supports multiple communication protocols, and enhances the convenience and efficiency of data transmission.
Smart Images

Figure CN2025110311_05022026_PF_FP_ABST
Abstract
Description
A data transmission method, system, and related apparatus
[0001] This application claims priority to Chinese Patent Application No. 202411028581.X, filed on July 29, 2024, entitled "A Data Transmission Method, System and Related Apparatus", the entire contents of which are incorporated herein by reference. Technical Field
[0002] This application relates to the field of wireless communication technology, and in particular to a data transmission method, system and related apparatus. Background Technology
[0003] Currently, when an electronic device shares data with a target electronic device, the user first needs to interact with the device to display an interface showing the data to be shared. Then, the user needs to click a share control and select a suitable sharing method to share the data to the target device. This process is cumbersome, time-consuming, and results in a poor user experience. Summary of the Invention
[0004] This application provides a data transmission method, system, and related apparatus, which enables a first type of electronic device to quickly share the content indicated by the application displayed on the interface, making the sharing operation more efficient and convenient.
[0005] Firstly, this application provides a data transmission method, which, in one possible implementation, is applied to a first electronic device. The method includes: displaying a first interface; receiving a first command sent by the second electronic device via Near Field Communication (NFC) after entering a radio frequency field generated by a second electronic device, the first command indicating that the device type of the second electronic device is a first type; responding to the first command, sending a second command to the second electronic device via NFC, the second command including the communication address of the first electronic device, the communication address of the first electronic device being used to establish a communication connection with the second electronic device; establishing a first communication connection with the second electronic device; and sending first sharing content indicated by the first interface to the second electronic device through the first communication connection. Thus, the device type being a first type can indicate that the second electronic device supports sharing data with and receiving data shared by the first electronic device. Upon receiving the first command, the first electronic device can, in response to the first command, send its communication address to the second electronic device, enabling the second electronic device to establish a communication connection with the first electronic device based on that communication address. After establishing a communication connection with the second electronic device, the first electronic device can send the first sharing content indicated by the first interface to the second electronic device quickly and conveniently, without requiring the user to select a sharing method or sharing target.
[0006] In one possible implementation, after establishing a first communication connection with the second electronic device, the method further includes: receiving second shared content sent by the second electronic device through the communication connection. This allows the first electronic device to receive data shared by the second electronic device while sharing data with it, making the process more convenient.
[0007] In one possible implementation, after receiving the second shared content sent by the second electronic device, the method further includes storing the second shared content. In this way, after receiving the second shared content shared by the second electronic device, the first electronic device can save the second shared content, and the user does not need to save the second shared content manually; the user can also view the second shared content when using the first electronic device later.
[0008] In one possible implementation, the first interface belongs to a first application. Before sending the first sharing content indicated by the first interface to the second electronic device via the first communication connection, the method further includes: determining, based on the first application, the first sharing content corresponding to the first application, wherein the first sharing content includes data of the first application, or the first sharing content includes data of the second application. Thus, when the first application corresponds to the data of the first application, the first electronic device can send the data of the first application to the second electronic device. When the first application corresponds to the data of the second application, the first electronic device can send the data of the second application to the second electronic device. The first electronic device can determine the first sharing content based on the first application to which the displayed first interface belongs, eliminating the need for the user to manually select the data to be shared, making the sharing operation more convenient.
[0009] In one possible implementation, before sending the first sharing content indicated by the first interface to the second electronic device via the first communication connection, the method further includes: receiving a first input for setting the first sharing content corresponding to the first application. In this way, the user can set the first sharing content corresponding to the first application, and in a sharing scenario, the user can quickly share the first sharing content by switching the display of the first application's interface.
[0010] In one possible implementation, the first interface belongs to a first application. Before sending the first sharing content indicated by the first interface to the second electronic device via the first communication connection, the method further includes: determining, based on the first application, the first sharing content and the third sharing content corresponding to the first application; displaying a first prompt message to prompt the user to select sharing content; receiving a second input to select the first sharing content; and sending the first sharing content indicated by the first interface to the second electronic device via the first communication connection, specifically including: in response to the second input, sending the first sharing content indicated by the first interface to the second electronic device via the first communication connection. In this way, the first application corresponds to multiple sharing contents, and the user can choose the data they want to share and share different data with different electronic devices.
[0011] In one possible implementation, before sending the second command to the second electronic device via NFC, the method further includes receiving a third input of the first shareable content in the first interface. This allows the user to select the first shareable content in the first interface, and in sharing scenarios where content needs to be selected, the selected first shareable content can be quickly sent to the connected electronic device, saving time in selecting the receiving electronic device.
[0012] In one possible implementation, after receiving the third input indicating that the first shared content has been shared on the first interface, the method further includes:
[0013] The system receives a fourth input indicating the selection of a fourth shareable content from the first interface; then, via the first communication connection, it sends the first shareable content indicated by the first interface to the second electronic device. Specifically, this includes sending both the first and fourth shareable contents indicated by the first interface to the second electronic device via the first communication connection. This allows the user to share multiple pieces of content at once.
[0014] In one possible implementation, before receiving the first command from the second electronic device via Near Field Communication (NFC), the method further includes receiving a fifth input from the user to enable the NFC sharing function. This allows the user to share the first shared content to the attached second electronic device after enabling the NFC sharing function, preventing accidental sending of the first shared content.
[0015] In one possible implementation, after sending the first shared content to the second electronic device via the first communication connection, the method further includes: displaying a second interface; and sending a fifth shared content to the second electronic device after entering the radio frequency field generated by the second electronic device, or after detecting that the second electronic device has entered the radio frequency field generated by the first electronic device, wherein the fifth shared content is the same as or different from the first shared content.
[0016] In some examples, the second interface belongs to the first application, and the fifth shared content is the same as the first shared content. Thus, after the user sets the shared content corresponding to the first application, the first electronic device can send the first shared content corresponding to the first application to the second electronic device whenever the first electronic device displays any interface of the first application.
[0017] In some examples, the second interface belongs to the first application, and the fifth shared content differs from the first shared content. This allows the user to set the first shared content corresponding to the first interface of the first application, and the fifth shared content corresponding to the second interface of the first application. When the first electronic device displays different interfaces of the first application, it can send the shared content corresponding to that interface to the second electronic device. For example, the first application is a contacts application; the first interface is for contacting the first contact person, and the first shared content is the contact information of the first contact person; the second interface is any interface other than the one for contacting the first contact person, and the first shared content is the contact information of the user of the first electronic device.
[0018] In some examples, the second interface does not belong to the first application, and the fifth shared content is the same as the first shared content. Thus, after the user sets the first shared content to correspond to both the first and second interfaces, the first electronic device can send the corresponding first shared content to the second electronic device when displaying either the interface of the first application or the interface of the second interface.
[0019] In some examples, the second interface does not belong to the first application, and the fifth share content differs from the first share content. Thus, after the user sets the first share content corresponding to the first application and the fifth share content corresponding to the application of the second interface, when the first electronic device displays the interface of the first application, it can send the corresponding first share content to the second electronic device; similarly, when the first electronic device displays the interface of the application of the second interface, it can send the corresponding fifth share content to the second electronic device.
[0020] In one possible implementation, the first electronic device includes a first NFC analog card; the method further includes: after entering the radio frequency field generated by the third electronic device, receiving a third command sent by the third electronic device, the third command indicating that the device type of the third electronic device is a second type; and performing a card-swiping transaction with the third electronic device through the first NFC analog card. Thus, when the first electronic device enters the radio frequency field generated by the second-type third electronic device, a card-swiping transaction can be realized based on the NFC card. The second type can be used to indicate that the third electronic device is for card reading.
[0021] In one possible implementation, the first communication connection includes one or more of Wi-Fi, Bluetooth, and UWB connections.
[0022] In one possible implementation, the first interface is a desktop, and the first shareable content includes the first personal information of the first electronic device, which includes contact information and / or an electronic resume. This allows users to quickly share their contact information and / or electronic resume, and when looking for a job, they can share their resume with recruiters more quickly.
[0023] In one possible implementation, the first interface is the interface of a photo gallery application, and the first shareable content is the first image displayed on the first interface. In this way, the first electronic device can quickly share the image displayed on the first interface.
[0024] In some examples, the first interface is the gallery app's interface, and the first shareable content is a recently acquired image from the first app. This allows the user of the first electronic device to send a recently taken image to the second electronic device, facilitating quick image sharing.
[0025] In one possible implementation, the method further includes: displaying a third interface, where no corresponding sharing content exists; upon entering the radio frequency field generated by the second electronic device, receiving a fifth command sent by the second electronic device via NFC, the fifth command indicating that the device type of the second electronic device is a first type; responding to the fifth command, sending a sixth command to the second electronic device via NFC, the sixth command including the communication address of the first electronic device; establishing a second communication connection with the second electronic device; and receiving the sixth sharing content sent by the second electronic device through the second communication connection. Thus, when the first electronic device displays an interface set to an application without corresponding sharing content, it can only receive data shared by the adjacent second electronic device, protecting some application data.
[0026] Secondly, this application provides another data transmission method applied to a second electronic device. The method includes: sending a first command to a first electronic device via Near Field Communication (NFC), the first command indicating that the device type of the second electronic device is a first type; receiving a second command sent by the first electronic device via NFC, the second command including the communication address of the first electronic device; establishing a first communication connection with the first electronic device based on the communication address of the first electronic device; and receiving first shared content sent by the first electronic device through the first communication connection. In this way, the second electronic device determines itself to be a first-type electronic device, supporting data sharing with adjacent electronic devices. After receiving the second command, the second electronic device, based on the communication address of the first electronic device, determines that the first electronic device is also a first-type electronic device, and can thus establish a communication connection with the first electronic device, enabling the first and second electronic devices to quickly establish a communication connection and share data.
[0027] In one possible implementation, after receiving the first shared content sent by the first electronic device via the first communication connection, the method further includes: storing the first shared content.
[0028] In one possible implementation, the method further includes: receiving a sixth input that sets the second electronic device to PCD (Proximity Coupling Device) mode; sending a seventh command to the first electronic device via Near Field Communication (NFC), the seventh command indicating that the device type of the second electronic device is a second type; receiving an eighth command sent by the first electronic device via NFC, the eighth command including card information of the first NFC emulator; and performing a card swiping operation on the first NFC emulator based on the card information of the first NFC emulator. Thus, after receiving the sixth input setting the second electronic device to PCD mode, the user, in this scenario, tends to perform a card reading operation and sends a seventh command to the first electronic device indicating that the device type of the second electronic device is a second type. This allows the first electronic device, upon receiving the seventh command, to send the card information of the NFC emulator to the second electronic device based on the activated NFC emulator. In this way, the second electronic device can copy the NFC emulator.
[0029] In one possible implementation, before sending a first command to a first electronic device via near-field communication (NFC), the method further includes: displaying a fourth interface; after receiving a second command sent by the first electronic device via NFC, the method further includes: sending second sharing content indicated by the fourth interface to the first electronic device via a first communication connection.
[0030] In one possible implementation, the fourth interface belongs to the third application; the second sharing content indicated by the fourth interface is sent to the first electronic device through the first communication connection, specifically including: determining the second sharing content corresponding to the third application based on the third application, the second sharing content including the data of the third application, or the second sharing content including the data of the fourth application.
[0031] In one possible implementation, before sending the second sharing content indicated by the fourth interface to the first electronic device via the first communication connection, the method further includes: receiving a seventh input for setting the second sharing content corresponding to the third application.
[0032] In one possible implementation, the fourth interface belongs to the third application; before sending the second sharing content indicated by the fourth interface to the first electronic device through the first communication connection, the method further includes: determining the second sharing content and the seventh sharing content corresponding to the third application based on the third application; displaying a second prompt message, the second prompt message being used to prompt the user to select sharing content; receiving an eighth input of selecting the second sharing content; and sending the second sharing content indicated by the fourth interface to the first electronic device through the first communication connection, specifically including: in response to the eighth input, sending the second sharing content indicated by the fourth interface to the first electronic device through the first communication connection.
[0033] In one possible implementation, before sending the second shared content indicated by the fourth interface to the first electronic device via the first communication connection, the method further includes: receiving a ninth input to share the second shared content in the fourth interface.
[0034] In one possible implementation, after receiving the ninth input of sharing the fourth content in the fourth interface, the method further includes: receiving the tenth input of selecting the eighth content in the fourth interface; and sending the second content indicated by the fourth interface to the first electronic device through the first communication connection, specifically including: sending the second content and the eighth content to the second electronic device through the first communication connection.
[0035] In one possible implementation, the fourth interface is a desktop, and the second shared content includes the first personal information of the first electronic device, which includes contact information and / or an electronic resume.
[0036] In one possible implementation, the fourth interface is the interface of the gallery application, and the second shareable content is the second image displayed on the fourth interface.
[0037] In one possible implementation, before sending the first command to the first electronic device via Near Field Communication (NFC), the method further includes: displaying a fifth interface, on which no corresponding sharing content exists.
[0038] In one possible implementation, before sending the first command to the first electronic device via Near Field Communication (NFC), the method further includes receiving an eleventh input from the user to enable the NFC sharing function.
[0039] In one possible implementation, after receiving the first shared content sent by the first electronic device via the first communication connection, the method further includes: displaying a sixth interface; and after entering the radio frequency field generated by the first electronic device, or after detecting that the first electronic device has entered the radio frequency field generated by the second electronic device, sending a ninth shared content to the first electronic device, the ninth shared content being the same as or different from the second shared content.
[0040] In one possible implementation, the second electronic device includes a second NFC analog card; the method further includes: after entering the radio frequency field generated by the third electronic device, receiving a third command sent by the third electronic device via NFC, the third command being used to indicate that the device type of the third electronic device is a second type; and performing a card swiping transaction with the third electronic device via the second NFC analog card.
[0041] In one possible implementation, the first communication connection includes one or more of Wi-Fi, Bluetooth, and UWB connections.
[0042] Thirdly, this application provides a communication system, including: a first electronic device and a second electronic device; wherein the first electronic device is configured to execute the data transmission method in the first aspect and any possible implementation thereof; and the second electronic device is configured to execute the data transmission method in the second aspect and any possible implementation thereof. Thus, the first electronic device and the second electronic device can quickly share data with each other when they are in close proximity.
[0043] Fourthly, this application provides an electronic device including one or more processors, one or more memories, and a transceiver. The transceiver, the one or more memories, and the one or more memories are coupled to the one or more processors. The one or more memories are used to store a computer program, and when the one or more processors execute the computer program, they perform the data transmission method described in the first aspect and any possible implementation thereof.
[0044] Fifthly, this application provides an electronic device including one or more processors, one or more memories, and a transceiver. The transceiver, the one or more memories, and the one or more memories are coupled to the one or more processors. The one or more memories are used to store a computer program, and when the one or more processors execute the computer program, they perform the data transmission method described in the second aspect above and any possible implementation of the second aspect.
[0045] Sixthly, this application provides a computer storage medium storing a computer program that, when executed by a processor, implements the data transmission method in the first aspect and any possible implementation thereof.
[0046] In a seventh aspect, this application provides a computer storage medium storing a computer program that, when executed by a processor, implements the data transmission method in the second aspect and any possible implementation thereof.
[0047] Eighthly, this application provides a computer program product, including a computer program that, when executed by a processor, implements the data transmission method in the first aspect and any possible implementation thereof.
[0048] Ninthly, this application provides a computer program product, including a computer program that, when executed by a processor, implements the data transmission method in the second aspect and any possible implementation thereof.
[0049] In a tenth aspect, this application provides a chip system including a processing circuit and an interface circuit. The interface circuit is used to receive code instructions and transmit them to the processing circuit. The processing circuit is used to execute the code instructions to perform the data transmission method in the first aspect and any possible implementation thereof.
[0050] In one aspect, this application provides a chip system including a processing circuit and an interface circuit. The interface circuit is used to receive code instructions and transmit them to the processing circuit. The processing circuit is used to execute the code instructions to perform the data transmission method in the second aspect and any possible implementation of the second aspect.
[0051] The beneficial effects of the second to eleventh aspects and any of the possible implementations of the second to eleventh aspects can be referred to the beneficial effects of the first aspect and any of the possible implementations of the first aspect, and will not be repeated here. Attached Figure Description
[0052] Figures 1A-1E are a set of interface diagrams provided in the embodiments of this application;
[0053] Figure 2 is a schematic diagram of the working principle of NFC provided in an embodiment of this application;
[0054] Figure 3A is a schematic diagram of a communication system 10 provided in an embodiment of this application;
[0055] Figure 3B is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;
[0056] Figure 3C is a schematic diagram of an NFC protocol stack provided in an embodiment of this application;
[0057] Figure 4 is a flowchart illustrating a data transmission method provided in an embodiment of this application;
[0058] Figures 5A-5F are another set of interface diagrams provided in the embodiments of this application;
[0059] Figures 6A-6D are another set of interface diagrams provided in the embodiments of this application;
[0060] Figures 7A-7D are another set of interface diagrams provided in the embodiments of this application;
[0061] Figures 8A-8G are another set of interface diagrams provided in the embodiments of this application;
[0062] Figures 9A-9E are another set of interface diagrams provided in the embodiments of this application;
[0063] Figures 10A-10C are another set of interface diagrams provided in the embodiments of this application;
[0064] Figures 11A-11G are another set of interface diagrams provided in the embodiments of this application;
[0065] Figure 12 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application;
[0066] Figure 13 is a schematic diagram of the structure of a communication device provided in an embodiment of this application;
[0067] Figure 14 is a schematic diagram of another communication device provided in an embodiment of this application. Detailed Implementation
[0068] The technical solutions in the embodiments of this application will be clearly and thoroughly described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B; the word "and / or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.
[0069] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.
[0070] The following is a schematic diagram of the interface in which a user manually shares data on an electronic device 100 in an embodiment of this application.
[0071] As shown in Figure 1A, the electronic device 100 can display a desktop 11. The desktop 11 can include icons for one or more applications. For example, these icons may include, but are not limited to, a gallery application icon 13, a browser application icon 14, a chat application icon 15, a settings application icon 16, and a wallet application icon 17. A status bar 12 can be displayed at the top of the desktop 11. The status bar 12 can include one or more status indicators, including but not limited to an NFC function indicator 12A, a Bluetooth function indicator 12B, a WLAN function indicator 12C, a time indicator, and a battery indicator. When the electronic device 100 displays the NFC function indicator 12A in the status bar 12, it indicates that the electronic device 100 has enabled the NFC function. When the electronic device 100 displays the Bluetooth function indicator 12B in the status bar 12, it indicates that the electronic device 100 has enabled the Bluetooth function. When the electronic device 100 displays the WLAN function indicator 12C in the status bar 12, it indicates that the electronic device 100 has enabled the WLAN function.
[0072] Below the desktop 11, there may be a tray (dock) area, which may include one or more tray icons (e.g., dialer app icon, messaging app icon, contacts app icon 18, camera app icon, etc.).
[0073] Electronic device 100 can receive user input (e.g., click) on gallery application icon 13, and in response to the input, electronic device 100 can display interface 21 as shown in FIG1B.
[0074] As shown in Figure 1B, interface 21 is the interface of the gallery application of electronic device 100. Interface 21 displays thumbnails of all or part of the pictures in the gallery application. For example, interface 21 may include, but is not limited to, thumbnail 22, thumbnail 23, and thumbnail 24.
[0075] Electronic device 100 can receive user input (e.g., click) on thumbnail 22, and in response to the input, electronic device 100 can display interface 31 as shown in FIG1C.
[0076] As shown in Figure 1C, interface 31 can be used to display the image 32 corresponding to thumbnail 22. Interface 31 may also include one or more functional controls. For example, these one or more functional controls may include, but are not limited to, a share control 33, an edit control, and a delete control. Specifically, the share control 33 can be used to trigger the electronic device 100 to share the image 32 displayed on interface 31. The edit control can be used to trigger the electronic device 100 to edit (e.g., crop, add watermark, etc.) the image 32 displayed on interface 31. The delete control can be used to trigger the electronic device 100 to delete the image 32 displayed on interface 31.
[0077] The electronic device 100 can receive user input (e.g., a click) on the sharing control 33, and in response to the input, the electronic device 100 can display the interface 41 shown in FIG1D.
[0078] As shown in Figure 1D, interface 41 can be used to share images from a gallery application. Interface 41 can display one or more share icons, which can be used to trigger electronic device 100 to share images based on the method corresponding to the share icon. For example, the one or more share icons may include, but are not limited to, chat application share icons, WLAN Direct share icons, and Bluetooth share icon 42, etc. Specifically, the chat application share icon can be used to trigger electronic device 100 to share images via the chat application; the WLAN Direct share icon can be used to trigger electronic device 100 to share images via WLAN Direct; and the Bluetooth share icon 42 can be used to trigger electronic device 100 to share images via Bluetooth.
[0079] Electronic device 100 can receive user input (e.g., click) on Bluetooth sharing icon 42, and in response to the input, electronic device 100 can display interface 51 as shown in FIG1E.
[0080] As shown in Figure 1E, interface 51 includes one or more Bluetooth device options. These Bluetooth device options can be used to trigger electronic device 100 to share images with the electronic device corresponding to the Bluetooth device option. It is understood that if electronic device 100 has not established a Bluetooth connection with the electronic device corresponding to the Bluetooth device option, electronic device 100 first performs the step of establishing a Bluetooth connection with the electronic device corresponding to the Bluetooth device option, and then sends the shared image data to the electronic device corresponding to the Bluetooth device option via Bluetooth.
[0081] As can be seen from the above sharing process, when a user wants to share data using an electronic device, they need to click the share control, then select the sharing method and the target electronic device to complete the data sharing service. This means that users have to perform these steps every time they want to share data, which is very inconvenient.
[0082] The working principle of NFC in the embodiments of this application is described below.
[0083] Figure 2 shows a schematic diagram of the working principle of near field communication (NFC) provided in an embodiment of this application.
[0084] As shown in Figure 2, the two parties communicating using NFC technology can include a proximity coupling device (PCD) (also known as an NFC reader) and a proximity smart card (PICC). The PCD can achieve contactless communication with the PICC in close proximity. The PCD and PICC can allow near-field communication at specific data rates (e.g., 106 kbps, 212 kbps, 424 kbps, or 848 kbps) and specific frequencies (e.g., 13.56 MHz). Communication between the PCD and PICC can occur at close range, for example, within a range of approximately 2 to 4 centimeters.
[0085] The PCD (Polymer Capacitor) can generate high-frequency alternating current to produce a radio frequency (RF) field of a specified frequency (e.g., 13.56 MHz), and transmit data to the PICC (Peripherally Input Cell) via this RF field. When the PICC is near the PCD, it can sense the RF field emitted by the PCD. Upon entering the RF field, the PICC can obtain energy from the PCD's RF field through electromagnetic induction, and use this energy to generate electricity to drive the internal circuitry of the PICC, thus enabling data transmission from the PCD to the PICC. Alternatively, the PICC can also transmit data to the PCD by modulating the RF field with a load, achieving data transmission from the PICC to the PCD.
[0086] In this embodiment, the PICC can be a physical NFC tag card. Some NFC devices (e.g., mobile phones, tablets, smartwatches, and other electronic devices) can also simulate themselves as a PICC conforming to NFC standards through NFC card data (hereinafter referred to as NFC card data) to realize the functions of a PICC and communicate with the PCD. In this embodiment, the NFC card in the NFC device can be called an NFC emulation card.
[0087] NFC card readers can perform card-swiping verification processes based on PICC card information. The NFC card reader can send the card-swiping result to the PICC via NFC command interaction. The PICC card information may include, but is not limited to, one or more of the following: access control information, key information, transaction account information, e-ticket information, and validity period information (used to indicate the card's validity period). Access control information may include one or more of the following: card number, key information may include one or more of the following: key code, transaction account information may include one or more of the following: transaction account identifier, remaining balance in the transaction account, etc., e-ticket information may include one or more of the following: e-ticket code, e-ticket verification time, e-ticket validity period, etc.
[0088] The following describes a communication system provided in an embodiment of this application.
[0089] Figure 3A shows a schematic diagram of a communication system 10 provided in an embodiment of this application.
[0090] As shown in Figure 3A, the communication system 10 may include electronic device 100 and electronic device 200. Electronic device 100 and electronic device 200 can use data from an NFC card to emulate a PICC conforming to NFC standards, thereby implementing the functions of a PICC.
[0091] In this embodiment, electronic devices 100 and 200 can support both PICC and PCD modes. In PCD mode, electronic devices 100 and 200 can act as PCD transmitters to communicate with the PICC. In PICC mode, electronic devices 100 and 200 can passively receive the PCD's transmitted radio frequency field and communicate with the PCD via NFC using load modulation technology. In some examples, after enabling NFC, electronic devices 100 and 200 can switch between PICC and PCD modes in a time-sharing manner.
[0092] In this configuration, electronic device 100 is in PICC mode and electronic device 200 is in PCD mode. Electronic device 200 can notify electronic device 100 via NFC that it is a first-type device. Electronic device 100 can simulate PICC and send its communication address as card information to electronic device 200. Electronic device 200 can establish a communication connection with electronic device 100 based on its communication address. Electronic devices 100 and 200 can transmit data through this communication connection. For example, the communication connection can include, but is not limited to, Bluetooth connection, Wi-Fi P2P connection, NFC connection, infrared (IR) connection, ultra-wideband (UWB) connection, and remote connection (e.g., a connection established through a server), etc. The Bluetooth connection can be based on basic rate / enhanced data rate (BR / EDR) technology or Bluetooth Low Energy (BLE) technology.
[0093] Similarly, when electronic device 200 is in PICC mode and electronic device 100 is in PCD mode, electronic device 100 can notify electronic device 200 via NFC that it is a Type 1 device. Electronic device 200 can simulate PICC and send its communication address as card information to electronic device 100. Electronic device 100 can then establish a communication connection with electronic device 200 based on the communication address of electronic device 200.
[0094] In this embodiment of the application, the device types of electronic devices 100 and 200 can be any of the following: mobile phones, tablets, handheld computers, desktop computers, laptops, ultra-mobile personal computers (UMPCs), netbooks, cellular phones, personal digital assistants (PDAs), as well as smart home devices such as smart screens and smart speakers, wearable devices such as smart bracelets, smartwatches, and smart glasses, extended reality (XR) devices such as augmented reality (AR), virtual reality (VR), and mixed reality (MR), in-vehicle devices, or smart city devices.
[0095] The following is a schematic diagram of the structure of an electronic device 100 provided in the embodiments of this application.
[0096] Figure 3B shows a schematic diagram of the structure of an electronic device 100 provided in an embodiment of this application.
[0097] As shown in Figure 3B, the electronic device 100 may include a central processing unit (CPU) 101 and an NFC module 102. The processor 101 may run one or more applications. These applications may include one or more of the following: an application for managing NFC emulated cards (e.g., a wallet application), one or more host-based card emulation (HCE) applications, etc. Optionally, the electronic device 100 may also include a secure element (SE) 103 and / or a subscriber identity module (SIM) card 104. The processor 101 may be connected to the NFC module 102, the SE 103, and the SIM card 104, respectively. The NFC module 102 may also be connected to the SE 103 and the SIM card 104.
[0098] The NFC module 102 may include an NFC controller (not shown in Figure 3B), an NFC transceiver (not shown in Figure 3B), and an NFC memory (not shown in Figure 3B). The NFC controller may be connected to the processor 101, and may also be connected to the NFC transceiver and the NFC memory, respectively.
[0099] The NFC controller is primarily used for modulation and demodulation of contactless communication signals, controlling the input and output of data in the NFC memory, and interacting with the processor 101. The NFC transceiver is used to transmit and receive NFC signals (e.g., 13.56MHz radio frequency signals), and may include an electromagnetic compatibility (EMC) filter circuit, a matching circuit, a receiving circuit, and an NFC antenna, where the NFC antenna may be a loop antenna, used to enable the proximity-based contactless communication capability of the NFC module 102. The NFC memory can be used to store data sent by the NFC module 102 to the NFC reader device, as well as data received from the NFC reader device. In some embodiments, the NFC memory can be a shared memory that can be used by the various components in the NFC module 102; for example, some data in the NFC memory can be accessed by the NFC controller, while other data can be accessed by the SE 103.
[0100] In other embodiments, the NFC memory may be a collection of multiple memories. For example, the NFC controller may include a first memory among these multiple memories. The first memory may include instructions or data that the NFC controller has used or reused. If the NFC controller needs to use the instruction or data again, it can directly retrieve it from the first memory, thus reducing the waiting time of the NFC controller. SE103 may include a second memory among these multiple memories. The second memory may include card information such as that of the NFC emulator based on the secure element. Thus, if SE103 needs to read the card information of the NFC emulator, it can read the card information of the NFC emulator from the second memory in SE103. SIM card 104 may include a third memory among these multiple memories. The third memory may include card information such as that of the NFC emulator based on the SIM card. Thus, if SIM card 104 needs to read the card information of the NFC emulator, it can read the card information of the NFC emulator from the third memory in SIM card 104.
[0101] In some embodiments, the NFC memory described above may also store routing information. In some embodiments, this routing information may be controlled or managed by the NFC controller, and may include a routing table consisting of a list of routing rules. Each routing rule contains an applet identifier (AID) and a destination; the destination is the location where the applet used to implement the business logic of the NFC emulator card runs. The destination may include an HCE application running in the processor 101 of the electronic device 100, or an SE 103 or SIM card 104 connected to the NFC controller.
[0102] The SE103 and NFC module 102 can be two separate chips. Alternatively, the SE103 and NFC module 102 can be packaged into a single chip.
[0103] Electronic device 100 can activate one or more NFC emulator cards in an application based on user input, thereby enabling electronic device 100 to support one or more NFC services. The specific business processing logic of the NFC emulator card in electronic device 100 is implemented by an applet. The applet can be stored and run in the corresponding hardware device or software module (e.g., HCE application, SIM card, SE, etc.) of the NFC emulator card.
[0104] The card emulation modes of electronic device 100 can be divided into hardware-based virtual card mode and software-based HCE mode. Among them,
[0105] 1. In hardware-based virtual card mode, electronic device 100 can provide the operating environment for the Applet corresponding to the NFC emulator card, as well as the storage and processing of the NFC emulator card's business data, through SE103 or SIM card 104. NFC module 102, as the front end of contactless communication, receives commands from the external PCD and forwards them to SE103 or SIM card 104. The Applet in SE103 or SIM card 104 then processes the commands and sends response data to the external PCD via NFC module 102. Users can activate one or more NFC emulator cards in a wallet application, which can write the Applets and card data of one or more NFC emulator cards into SE103. Alternatively, users can activate one or more NFC emulator cards in a SIM card application, which can write the Applets and card data of one or more NFC emulator cards into SIM card 104 for storage.
[0106] 2. In software-based HCE mode, the HCE application running in processor 101 can provide the operating environment for the Applet corresponding to the NFC emulator card, as well as the storage and processing of the NFC emulator card's business data. After receiving a command from an external PCD, NFC module 102 can send the command to the HCE application. The HCE application can process the command received by NFC module 102 through the Applet running in the HCE application or a cloud server, and generate response data for the PCD. The HCE application can then send the response data to NFC module 102. NFC module 102 can then send the response data to the external PCD. Users can activate one or more NFC emulator cards in the HCE application. The HCE application can run one or more NFC emulator card Applets and store the NFC emulator card data on the local memory of electronic device 100 or on a cloud server.
[0107] Optionally, the processor 101 can also run an NFC basic service module. The NFC basic service module can be used to provide common management functions for one or more NFC services. These common management functions may include file management, card activation, security management, service routing management, and other functions.
[0108] In this embodiment, the electronic device 100 may further include a communication module 105 (not shown in FIG3B), which includes an NFC module 102. The communication module 105 can be used to provide a wireless communication solution applied to the electronic device 100. The electronic device 100 can establish a wireless communication connection with other electronic devices through the communication module 105, enabling the electronic device 100 to transmit data with other electronic devices.
[0109] It should be noted that the hardware structure of the electronic device 200 can also be described in the structural schematic diagram shown in Figure 3A, and will not be repeated here.
[0110] The following describes an NFC protocol stack provided in an embodiment of this application.
[0111] Figure 3C illustrates an NFC protocol stack provided in an embodiment of this application.
[0112] As shown in Figure 3C, the NFC protocol stack can include a physical layer, a radio frequency layer, an access layer, a transport layer, and an application layer.
[0113] The physical layer can be used to implement the physical characteristics of NFC technology communication.
[0114] The radio frequency (RF) layer can be used to implement RF specifications for NFC technology communication, such as data rate and RF signal frequency.
[0115] The access layer can be used to implement functions such as polling and device discovery, service result notification, card conflict management, transmission protocol negotiation, timeout and retransmission mechanism, PICC / PCD mode switching, and converged card selection.
[0116] The transport layer includes a high-speed data transmission protocol, which enables data transmission between the PCD and PICC at the application layer.
[0117] The application layer can be used to implement one or more NFC services and one or more service management policies. The one or more NFC services may include code-free payment, electronic tickets, access control, digital ID cards, all-scenario contactless payment, and short-range data transmission. The one or more service management policies may include any one or more of file management, card long-term activation, security management, and service routing management. The processing logic of the NFC services can be executed by Applets. In one possible implementation, the processing logic of the service management policies can be executed by the NFC basic service module.
[0118] This application provides a data transmission method. Electronic devices 100 and 200 are of a first device type (e.g., mobile phone, tablet computer, wearable device, etc.). Electronic device 100 displays interface 1, and electronic device 200 displays interface 2. When electronic device 100 in PICC mode enters the radio frequency field generated by electronic device 200 in PCD mode, it receives a device command sent by electronic device 200 via NFC, indicating that its device type is of the first type. Electronic device 100 sends an address command to electronic device 200 via NFC, the address command including its communication address. Electronic device 200 establishes a communication connection with electronic device 100 based on its communication address. Based on application 1 belonging to interface 1, electronic device 100 determines the first shared data corresponding to application 1 from the correspondence between application and shared data. Electronic device 100 sends the first shared data to electronic device 200 through this communication connection. Based on application 2 belonging to interface 2, electronic device 200 determines the second shared data corresponding to application 2 from the correspondence between application and shared data. Electronic device 200 can send second shared data to electronic device 100 through this communication connection.
[0119] In this way, when two electronic devices touch, the system can determine the content to be shared based on the displayed application and send the content to the device that is being touched. This allows users to quickly and efficiently send the content they want to share to other electronic devices without having to select a sharing method or a target electronic device.
[0120] It is understood that if electronic device 100 is in PCD mode, electronic device 200 is in PICC mode. When electronic device 200 in PICC mode enters the radio frequency field generated by electronic device 100 in PCD mode, it receives a device command sent by electronic device 100 via NFC, indicating that its device type is a first type. Electronic device 200 sends an address command to electronic device 100 via NFC, the address command including its communication address. Electronic device 100 can establish a communication connection with electronic device 200 based on its communication address. Electronic devices 100 and 200 can then transmit shared data through this communication connection. In some examples, when electronic device 100 is in a locked state, electronic device 100 with NFC enabled is in PICC mode.
[0121] It is also understood that after sending sharing content 1 to electronic device 200 and receiving sharing content 2 from electronic device 200, electronic device 100, upon receiving input from the user indicating that electronic device 100 is attached to the first type of electronic device 300, can send sharing content 1 to electronic device 300 using the method provided in this application embodiment. Alternatively, electronic device 300 can also send sharing content 3 corresponding to the application 3 to which the displayed interface 3 belongs to electronic device 100 based on the displayed interface 3. In this way, electronic device 100 can share the sharing content 1 to multiple electronic devices in a relatively short time.
[0122] In some examples, after receiving shared content 2, electronic device 100 can display shared content 2. After receiving shared content 1, electronic device 200 can display shared content 1.
[0123] The following is a flowchart illustrating the data transmission method provided in the embodiments of this application.
[0124] For example, as shown in Figure 4, the data transmission method provided in this application embodiment includes the following steps:
[0125] S401. Display interface 1 of electronic device 100 in PICC mode.
[0126] S402. Electronic device 200 in PCD mode displays interface 2.
[0127] S403. Electronic device 100 enters the radio frequency field of electronic device 200.
[0128] S404. Electronic device 100 receives a device command via NFC, the device command being used to indicate that the device type of electronic device 200 is a first type.
[0129] The device command may include a device type identifier. The device type identifier indicates the device type of the electronic device sending the device command. The device type indicated in the device type identifier may include any of the following: mobile phone, wearable device, card reader device that does not require interaction with the electronic device, or card reader device that requires interaction with the electronic device. The correspondence between device type identifiers and device types is shown in Table 1 below.
[0130] Table 1
[0131] As shown in Table 1 above, when the device type identifier is "0x01", it indicates that the device type of electronic device 200 is a mobile phone. When the device type identifier is "0x02", it indicates that the device type of electronic device 200 is a wearable device. When the device type identifier is "0x03", it indicates that the device type of electronic device 200 is a card reader that does not require NFC interaction with the electronic device, such as security gates, wireless charging devices, etc. When the device type identifier is "0x04", it indicates that the device type of electronic device 200 is a card reader that requires NFC interaction with the electronic device, such as access control devices, transportation card readers, vehicles, etc. The device type identifier values "0x00" and "0x05~0xFF" are reserved for protocol extensions. Table 1 above is used to explain this application and should not be construed as limiting this application.
[0132] Here, the device command includes a device type identifier indicating that the device type of the electronic device 200 is a first type. The first type may include mobile phones and / or wearable devices. As shown in Table 1, the device type identifier in the device command can be "0x01" or "0x02".
[0133] In some examples, when electronic device 200 simulates a designated NFC card reader (e.g., a POS machine), the device identifier type in the address command sent by electronic device 200 can be used to indicate that electronic device 200 is a card reader that needs to interact with electronic device NFC back and forth. This makes it applicable to a wider variety of card swiping scenarios.
[0134] It should be noted that when electronic device 100 receives a command from electronic device 200 indicating that the device type of electronic device 200 is the first type, it can be determined that electronic device 200 is an electronic device that can share data with electronic device 100.
[0135] It should be noted that when electronic device 100 receives a device command from electronic device 200 indicating that the device type of electronic device 200 is type two, electronic device 100 can perform card swiping transactions with electronic device 200 based on the card information of the added NFC emulated card (e.g., access card, car key, door key, transportation card, bank card, electronic ticket, campus card, membership card, electronic certificate, etc.). For example, the device command indicating that the device type of electronic device 200 is type two may include device type identifier "0x03" or device type identifier "0x04" as shown in Table 1.
[0136] It should also be noted that when electronic device 200 receives input from the user to set electronic device 200 to PCD mode (for example, input to set electronic device 200 to POS machine), electronic device 200 in PCD mode can send a device command to electronic device 100 to indicate that the device type of electronic device 200 is the second type of device.
[0137] S405. Electronic device 100 determines that interface 1 belongs to application 1.
[0138] For example, electronic device 100 can determine the application 1 to which interface 1 belongs by calling a specified interface.
[0139] S406. Electronic device 100 determines the shared content 1 corresponding to application 1 from the correspondence between application and shared data.
[0140] The electronic device 100 has a preset correspondence between applications and shared data. Based on application 1, the electronic device 100 can determine the shared content 1 from the preset correspondence between applications and shared data.
[0141] For example, the correspondence between applications and shared content in electronic device 100 can be shown in Table 2 below.
[0142] Table 2
[0143] As shown in Table 2 above, the shared content for the Gallery application is the image displayed on Interface 1 of electronic device 100. The shared content for the Contacts application is the contact information of electronic device 100, which may include, but is not limited to, the contact's name and mobile phone number. The shared content for the Browser application can be the webpage displayed on electronic device 100. The shared content for the Desktop application and Chat application can be the business card of the account logged into the Chat application of electronic device 100, which can be used to add the account indicated by the business card as a friend. The shared content for the Lock Screen application can be no shared content, that is, when electronic device 100 displays the lock screen interface, it does not share data with the adjacent electronic device 200.
[0144] It should be noted that the correspondence between applications and shared content shown in Table 2 is merely an example and is not limited to the content shown in Table 2. For example, the shared data for a chat application could be a screenshot of the current screen, etc. The shared data for a video application could be the video playing on the current screen, etc. The shared data for a contacts application could be the phone number of the electronic device 100, etc. The shared data for a gallery application could be the latest pictures added by the gallery application, etc. The shared data for a browser application could be bookmarks, etc. The shared data for a file management application could be the file indicated by the file icon on the current screen, etc. The shared data for a music application could be the song playing on the current screen or a list of songs playing on the current screen, etc. This application embodiment does not limit this.
[0145] In some examples, electronic device 100 can set the shared content for desktop applications and / or lock screen applications to the user's personal information. This personal information may include, but is not limited to, one or more of the user's contact information and electronic resume. The user's contact information may include, but is not limited to, one or more of the user's mobile phone number, email address, and application card for a communication application (e.g., an application card for a chat application). The user's electronic resume may include the user's job application information (e.g., name, education, work experience). This allows users to quickly share their electronic resumes with recruiters when seeking employment. The application card for a communication application can be used to add the user's communication application account to the contact list of that communication application. The application card may include, but is not limited to, the user's communication application account. This allows users to quickly share their application card and add friends through electronic device 100.
[0146] In some examples, the electronic device 100 can provide a settings interface for configuring the mapping between applications and shared data. This allows users to customize the shared data associated with each application, facilitating quick sharing of desired content in most sharing scenarios.
[0147] In other examples, beyond the mapping between applications and shared data, electronic device 100 can pre-define the mapping between application interfaces and shared data. For example, the mapping between the chat interface and chat content in a chat application. This allows users to quickly share chat content. Another example is the mapping between the friend details interface and friend profile in a chat application. This allows users to quickly recommend friends to other users. Yet another example is the mapping between interfaces other than the chat interface in a chat application and the profile of the logged-in account. This allows users to more easily share their chat application profile with other devices and quickly add friends. Yet another example is the mapping between the bookmark interface and bookmark content in a browser application. For instance, electronic device 100 can determine the shared content 1 corresponding to interface 1 from the pre-defined mapping between application interfaces and shared data, and then retrieve the shared content 1 from application 1.
[0148] S407. Electronic device 100 sends an address command to electronic device 200 via NFC, the address command carrying the communication address of electronic device 100.
[0149] Specifically, electronic device 100 can use its communication address as the frame data of an address command to send an address command to electronic device 200. Alternatively, electronic device 100 can simulate a PICC (Personal Information Center) based on an NFC card whose card information is its communication address. Electronic device 100 can then send card information to electronic device 200, which acts as a PCD (Personal Information Center).
[0150] In some examples, the address command may include a communication mode identifier and an address field. The communication mode identifier can be used to instruct electronic device 100 to use a specified communication mode. For example, the communication mode identifier can be 1 bit. When the communication mode identifier is "0", it indicates that the value of the address field is the Bluetooth address of electronic device 100. When the communication mode identifier is "1", it indicates that the value of the address field is the WLAN address of electronic device 100. It is understood that the communication mode identifier is only an example and should not be construed as a specific limitation.
[0151] Optionally, the address command may also include a content identifier. The content identifier can be used to indicate the content of the address command sent by the electronic device 100. For example, the content identifier can be 1 bit; when the content identifier is "0", it indicates that the address command includes the aforementioned address field. When the content identifier is "1", it indicates that the address command includes a field for storing card information. It is understood that the content identifier is merely an example and should not constitute a specific limitation.
[0152] It should be noted that the electronic device 100 may execute steps S405 and S406 first, and then execute step S407. Alternatively, the electronic device 100 may execute step S407 first, and then execute steps S405 and S406. Alternatively, the electronic device 100 may execute steps S407 and S405 simultaneously, and this embodiment of the application does not limit this.
[0153] It should also be noted that the NFC card used by electronic device 100 to simulate a PICC is not limited to the card information being the communication address of electronic device 100. Electronic device 100 may also send an address frame including the communication address of electronic device 100 in response to receiving a device command indicating that the device type of electronic device 200 is the first type. This application embodiment does not limit this.
[0154] S408. Electronic device 200 determines that interface 2 belongs to application 2.
[0155] After receiving the communication address of electronic device 100, electronic device 200 can determine the application 2 to which interface 2 belongs. For details, please refer to step S405, which will not be repeated here.
[0156] S409. Electronic device 200 determines the shared content 2 corresponding to application 2 from the correspondence between application and shared data.
[0157] It should be noted that when the electronic device 200 is set to have no sharing content for application 2, the electronic device 200 determines that there is no corresponding sharing content 2 for application 2, and the electronic device 200 only receives the sharing content 1 sent by the electronic device 100.
[0158] S410. Electronic device 200 establishes a communication connection with electronic device 100 based on the communication address of electronic device 100.
[0159] After receiving the address command sent by electronic device 100, electronic device 200 determines the communication address of electronic device 100 from the address command. Then, electronic device 200 establishes a communication connection with electronic device 100 based on the communication address of electronic device 100.
[0160] It should be noted that the electronic device 200 may execute step S408 first, and then execute step S410. Alternatively, the electronic device 200 may restrict step S410, and then execute step S408. Alternatively, the electronic device 200 may execute steps S408 and S410 simultaneously, and this embodiment of the application does not limit this.
[0161] In some examples, the communication address of electronic device 100 can be its Bluetooth address. Electronic device 200 can then establish a Bluetooth connection with electronic device 100 based on this address. Thus, electronic device 100 can send shared content 1 to electronic device 200 via this Bluetooth connection, and electronic device 200 can send shared content 2 to electronic device 100 via this Bluetooth connection.
[0162] In other examples, the communication address of electronic device 100 can be its Bluetooth address. Electronic device 200 can then establish a Bluetooth connection with electronic device 100 based on this address. Afterwards, electronic devices 100 and 200 can transmit signaling for establishing a Wireless Local Area Network (WLAN) Direct connection via Bluetooth. Once the WLAN Direct connection is established, electronic devices 100 and 200 can transmit and share content through it. In this way, electronic devices 100 and 200 can establish a Bluetooth connection using electronic device 100's Bluetooth address, and then establish a WLAN Direct connection via Bluetooth, enabling them to transmit and share content more efficiently and quickly via WLAN Direct.
[0163] S411. Electronic device 100 sends shared content 1 to electronic device 200.
[0164] After establishing a communication connection with electronic device 200, electronic device 100 can send shared content 1 to electronic device 200 through the communication connection.
[0165] In some examples, electronic device 100 may display a first prompt message after receiving a device command. This first prompt message prompts the user whether to share the data corresponding to the displayed interface. Electronic device 100 may send sharing content 1 to electronic device 200 after receiving input indicating a refusal to share the displayed interface. Electronic device 100 may also cancel the step of sending sharing content 1 to electronic device 200 after receiving input indicating a refusal to share the displayed interface. It is understood that electronic device 100 may display this first prompt message after receiving the device command but before sending sharing content 1. In this way, electronic device 100 can ask the user whether to share the content corresponding to the displayed interface before sharing data, avoiding the situation where data is accidentally shared to other electronic devices.
[0166] S412. Electronic device 200 sends shared content 2 to electronic device 100.
[0167] After establishing a communication connection with electronic device 100, electronic device 200 can send shared content 2 to electronic device 100 through the communication connection.
[0168] In some examples, electronic device 200 may display a first prompt message after receiving an address command. This first prompt message prompts the user whether to share the data corresponding to the displayed interface. Electronic device 100 may send sharing content 2 to electronic device 200 after receiving input indicating that sharing the data corresponding to the displayed interface is not permitted. Electronic device 100 may cancel the step of sending sharing content 2 to electronic device 200 after receiving input indicating that sharing the data corresponding to the displayed interface is refused. It is understood that electronic device 200 may display this first prompt message after receiving the address command but before sending sharing content 1. In this way, electronic device 200 can ask the user whether to share the content corresponding to the displayed interface before sharing data, avoiding the situation where data is accidentally shared to other electronic devices.
[0169] S413. Electronic device 200 displays shared content 1.
[0170] The electronic device 200 can display the shared content 1 after receiving it. Optionally, the electronic device 200 can store the shared content 1 after receiving it.
[0171] In some examples, electronic device 200 may display a second prompt message before displaying shared content 1. The second prompt message is used to prompt the user whether to accept data shared by the adjacent electronic device. Electronic device 200 may display shared content 1 after receiving input indicating that it wants to receive data shared by electronic device 100. Electronic device 200 may not display shared content 1 after receiving input indicating that it will refuse to receive shared data. It is understood that electronic device 200 may display this second prompt message between receiving the address command and receiving shared content 1. It is also understood that electronic device 200 may delete shared content 1 if it has already received it after receiving input indicating that it will refuse to receive shared data. This avoids electronic device 200 receiving data that the user does not want to receive.
[0172] S414. Electronic device 100 displays shared content 2.
[0173] After receiving shared content 2, electronic device 100 can display shared content 2. Optionally, electronic device 100 can store shared content 2 after receiving it.
[0174] In some examples, electronic device 100 may display a second prompt message before displaying shared content 2. The second prompt message prompts the user whether to accept data shared by the adjacent electronic device. Electronic device 100 may display shared content 2 after receiving input indicating acceptance of shared data. Electronic device 100 may not display shared content 2 after receiving input indicating rejection of shared data. It is understood that electronic device 100 may display this second prompt message during the period from receiving a device command to receiving shared content 2 (e.g., when establishing a communication connection with electronic device 200). It is also understood that electronic device 200 may delete shared content 1 if it has already received it after receiving input indicating rejection of data shared by electronic device 100. This prevents electronic device 200 from receiving data that the user does not want to receive.
[0175] In some examples, electronic device 100 can disconnect its communication connection with electronic device 200 after sending shared content 1 to electronic device 200 and receiving shared content 2 from electronic device 200. This disconnection after electronic devices 100 and 200 share data facilitates electronic device 100 sharing data with other first-type electronic devices (e.g., electronic device 300, electronic device 400, etc.) using the data transmission method provided in this application embodiment. For example, a user can quickly share their contact information with multiple first-type electronic devices through electronic device 100.
[0176] In other examples, after sending shared content 1 to electronic device 200, electronic device 100 receives input from the user to switch display interface 4. Electronic device 100 can then display interface 4 and send the shared content 4 corresponding to the application to which interface 4 belongs to electronic device 200 via the aforementioned communication connection. Electronic device 100 can disconnect the communication connection with electronic device 200 upon receiving input to stop sharing data.
[0177] In this way, electronic devices 100 and 200 can achieve more convenient and faster data sharing functions through the data transmission method provided in the embodiments of this application.
[0178] In some examples, after receiving a device command, electronic device 100 identifies application 1, belonging to interface 1, as the designated application. Electronic device 100 can switch the currently simulated NFC card 1 to NFC card 2, whose card information is the communication address of electronic device 100. After establishing a communication connection with electronic device 200, electronic device 100 can send data from NFC card 1 to electronic device 200. Upon receiving the data from NFC card 1, electronic device 200 can activate NFC card 1 based on that data. The designated application can be an application managing NFC cards and / or a lock screen application; for example, the application managing NFC cards could be a wallet application. In this way, electronic device 100 can share NFC cards with electronic device 200.
[0179] In other examples, after receiving a device command, if electronic device 100 determines that application 1, belonging to interface 1, is not the specified application, it sends its communication address to electronic device 200 via NFC. If electronic device 100 determines that application 1 is the specified application, it sends the card information of its simulated NFC card to electronic device 200 via NFC. Electronic device 200 can then implement the corresponding NFC card service based on the card information. The specified application can be an application managing the NFC card and / or a lock screen application; for example, the application managing the NFC card could be a wallet application. Thus, when electronic device 100 of the first type enters the radio frequency field of electronic device 200 of the same type, it can quickly implement card-swiping functionality while simulating an NFC card / lock screen. Electronic device 100 can also transmit data of the application to which the displayed interface belongs to electronic device 200 when not simulating an NFC card.
[0180] In one possible implementation, electronic device 100 in PICC mode enters the radio frequency field generated by electronic device 200 in PCD mode. Electronic device 200 can send a probe frame. The probe frame can be used to indicate that electronic device 200 supports a specified NFC protocol. Electronic device 200 in PCD mode can send this probe frame periodically.
[0181] After receiving a probe frame, electronic device 100 sends a probe ACK frame to electronic device 200. The Probe ACK frame can be used to indicate that electronic device 100 supports the specified NFC protocol indicated by the Probe frame.
[0182] After receiving the Probe ACK frame, electronic device 200 sends a Pick frame to electronic device 100, wherein the Pick frame carries the device type identifier of electronic device 200. Here, the Pick frame is the aforementioned device command.
[0183] In some examples, the Pick frame may include, but is not limited to, a frame control header, a device identification element, and a checksum field. The device identification element may include the device type identifier mentioned above. A description of the device type identifier can be found in the above embodiments and will not be repeated here.
[0184] The frame control header can be 4 bytes long. The frame control header of a Pick frame may include a protocol identifier field, a frame type field, a control information field, and a frame length field. The protocol identifier field indicates the specified NFC protocol used by the electronic device 200 when sending the Pick frame. The frame type field indicates the frame type of the Pick frame. The control information field indicates whether there is a conflict between multiple PICC devices. The frame length field indicates the data length of the device identification element. The checksum field may carry a checksum for verifying the content of the Pick frame; for example, the specified NFC protocol may use cyclic redundancy check (CRC) to verify the Pick frame.
[0185] Optionally, the device identification element may also include, but is not limited to, one or more of the following: device feature information, element code, identification mask, and individual device identifier.
[0186] The device characteristic information may include a service identifier (SID) and a device organization identifier (also known as an NFC device organization unique identifier (ND_OUI)). The service identifier (SID) indicates the types of NFC services supported by the electronic device 200 based on its NFC functionality. NFC service types may include primary service types and sub-service types. Therefore, the service identifier may include a primary service identifier and a sub-service identifier. The primary service identifier indicates the primary service types supported by the electronic device 200, and the sub-service identifier indicates the sub-service types supported by the electronic device 200 under a specific primary service type. For example, primary service types may include one or more of the following: access control, keys, transportation, banking, digital currency, digital certificates, codeless payment, electronic tickets, wireless charging, tap-to-pay, multi-function cards, etc. Sub-service types corresponding to access control may include one or more of the following: community access control, enterprise access control, campus access control, etc.
[0187] The Device Organization Identifier (ND_OUI) can be used to indicate the manufacturer providing NFC services using the electronic device 200. The NFC protocol standards organization's registration management agency can assign different Device Organization Identifiers to different manufacturers. For example, manufacturers providing NFC services may include one or more smart lock manufacturers, one or more property management companies, one or more automotive parts manufacturers, one or more transportation card management departments, etc.
[0188] Element codes can be used to identify control elements. These control elements can include one or more of the following: device identification elements, card identification elements, transmission capability elements, and security algorithm elements. Control elements can be flexibly combined and carried in the NFC control frame. Since the Pick frame carries the device identification element, the element codes within the Pick frame are used to indicate the identification of that device identification element.
[0189] The identifier mask in the device identifier element can be used to indicate the type of device identifier carried in the device identifier element.
[0190] The Device Individual Identifier (ND_PID) can be used to indicate the individual identifier of electronic device 200 within a class of card readers that share the same device organization identifier and the same device group identifier. The manufacturer of electronic device 200 must ensure that the device individual identifiers of card readers within the same class of card readers that share the same device organization identifier and the same device group identifier are different.
[0191] After receiving the Pick frame from the electronic device 200, the electronic device 100 can determine the first NFC emulator card from one or more NFC emulator cards on the electronic device 100 based on the device type identifier in the Pick frame. The card information of the first NFC emulator card includes the communication address of the electronic device 100.
[0192] Specifically, electronic device 100 pre-stores card information of the first NFC simulated card. Electronic device 100 also pre-sets a mapping relationship between a device type identifier indicating a first type of device and the first NFC simulated card. Upon receiving a Pick frame sent by electronic device 200, electronic device 100 can determine that the device type identifier in the Pick frame indicates that electronic device 200 is a first type of electronic device, thus identifying the first NFC simulated card. Optionally, after identifying the first NFC simulated card, electronic device 100 can output a card swiping prompt for the first NFC simulated card. The card swiping prompt for the first NFC simulated card can be used to indicate that the electronic device is using the first NFC simulated card for swiping.
[0193] After identifying the first NFC emulated card, electronic device 100 sends a Pick ACK frame to electronic device 200. This Pick ACK frame carries a first selection result. The first selection result indicates that electronic device 100 has successfully selected the first NFC emulated card.
[0194] Subsequently, electronic device 100 can interact with electronic device 200 via NFC. During this process, electronic device 100 can send an address command carrying the card information of the first NFC analog card to electronic device 200. Electronic device 200 can then establish a communication connection with electronic device 100 based on the address command. Electronic devices 100 and 200 can then transmit and share content through this communication connection.
[0195] Specifically, after receiving the selection confirmation frame, electronic device 200 can send a Select AID command to electronic device 100, whereby the Select AID command carries the identifier of the first Applet. The service processing logic of the NFC emulator card in electronic device 100 is implemented by the Applet. The Applet can be stored and run in the hardware device or software module (e.g., HCE application, SIM card, SE, etc.) corresponding to the NFC emulator card. Since electronic device 100 has one or more NFC emulator cards activated, it can have one or more Applets. One NFC emulator card corresponds to one Applet. The Applets corresponding to different NFC emulator cards may be different or the same. Here, the first NFC emulator card corresponds to the first Applet.
[0196] After determining the first applet, electronic device 100 sends a response 1 to electronic device 200, wherein response 1 indicates that electronic device 100 has successfully selected the first applet.
[0197] After receiving response 1, electronic device 200 sends a mapping list query command to electronic device 100. This mapping list query command requests electronic device 100 to return a first mapping list to electronic device 200.
[0198] Upon receiving a mapping list query command, electronic device 100 can send a mapping list query response to electronic device 200. This response carries a first mapping list, which indicates the mapping relationship between one or more fields in the Pick frame and the identifier of a dedicated file (DF). In this case, the first mapping list includes a mapping relationship between the device type identifier of the first type of electronic device and the identifier of the first DF of the first NFC emulator. The first DF stores the card information of the first NFC emulator.
[0199] After receiving the mapping list query response, electronic device 200 can determine the identifier of the first DF from the first mapping list based on its device type identifier. Electronic device 200 sends a Select DF command to electronic device 100, wherein the Select DF command carries the identifier of the first DF. After obtaining the first DF through the first Applet, electronic device 100 sends a Response 2 to electronic device 200, wherein Response 2 indicates that electronic device 100 has successfully obtained the first DF. After receiving Response 2, electronic device 200 sends a Get Challenge command to electronic device 100. Electronic device 100 can generate a first random number through the first Applet. Electronic device 100 sends a Response 3 to electronic device 200, wherein Response 3 carries the first random number. After receiving Response 3, electronic device 200 encrypts the first random number using a first external authentication key to obtain the authentication ciphertext. Electronic device 200 sends an external authentication command to electronic device 100, wherein the external authentication command carries the authentication ciphertext.
[0200] After receiving an external authentication command, electronic device 100 uses a first external authentication key in a first DF (Data Provider) to decrypt a first random number from the authentication ciphertext via a first Applet. If the first random number is successfully decrypted using the external authentication key in the first DF, it indicates that the external authentication key is the first external authentication key, and electronic device 100 has successfully authenticated electronic device 200.
[0201] After electronic device 100 decrypts the first random number from the authentication ciphertext using the first external authentication key in the first DF via the first Applet, it sends a response (Response) 4, which carries the first authentication result. The first authentication result indicates that electronic device 100 has successfully decrypted the first random number from the authentication ciphertext.
[0202] After receiving response 4 carrying the first authentication result, electronic device 200 sends a card information retrieval command to electronic device 100. This card information retrieval command is used to retrieve the card information of the first NFC analog card stored in the first DF.
[0203] After receiving the card information retrieval command, electronic device 100 uses a first Applet to encrypt the card information of the first NFC analog card stored in the first DF using a first external authentication key and a first random number, thus obtaining encrypted data. Electronic device 100 then sends an address command to electronic device 200, the address command including the encrypted data.
[0204] After receiving encrypted data, electronic device 200 can use a first external authentication key and a first random number to decrypt the card information of the first NFC simulated card from the encrypted data, and perform a card swiping service for the first NFC simulated card based on the card information. Here, the card swiping service for the first NFC simulated card includes establishing a communication connection with electronic device 100 based on its communication address.
[0205] In this way, electronic devices 100 and 200 can quickly establish a communication connection through the above steps, which facilitates the transmission and sharing of content between electronic devices 100 and 200.
[0206] In some examples, application 1 is a gallery application, interface 1 is the interface of the gallery application, and shared content 1 is the image displayed on interface 1. Thus, using the data transmission method provided in this application embodiment, the electronic device 100 can quickly share the currently displayed image.
[0207] For example, electronic device 100 displays interface 31 as shown in FIG1C. Electronic device 200 displays desktop 501 as shown in FIG5A. As shown in FIG5A, desktop 501 may include icons of one or more applications. For example, the icons of one or more applications may include, but are not limited to, gallery application icon 503, browser application icon 504, chat application icon 505, settings application icon 506, and wallet application icon 507. A status bar 502 may be displayed at the top of desktop 501. The status bar 502 may include one or more status indicators, which may include, but are not limited to, NFC function indicator 502A, Bluetooth function indicator 502B, and WLAN function indicator 502C. A tray area may be present at the bottom of desktop 501, which may include one or more tray icons (e.g., dialer application icon, messaging application icon, contacts application icon 508, camera application icon, etc.). The description of desktop 501 can be found in the embodiment shown in FIG1A, and will not be repeated here.
[0208] When the top back of an NFC-enabled electronic device 100 is placed against the top back of an NFC-enabled electronic device 200, the electronic device 100 in PICC mode can display interface 31 as shown in FIG5B after receiving a command from the electronic device 200 in PCD mode indicating that the device type of the electronic device 200 is a first type. As shown in FIG5B, interface 31 may include a prompt box 520. The prompt box 520 may include a prompt message 521, a cancel control 522, and a confirm control 523. The prompt message 521 may be used to prompt the user whether to share the image 32 displayed in interface 31 to the electronic device 200. The prompt message 521 may include, but is not limited to, one or more of text prompt messages, voice prompt messages, image prompt messages, and animated prompt messages. For example, the prompt message 521 may include the text prompt message: "Share the photo to the attached electronic device?". The cancel control 522 may be used to trigger the electronic device 100 to cancel the display of the prompt box 520 and stop the step of sharing the image 32 displayed in interface 31. The control 523 can be used to trigger the electronic device 100 to send the image 32 displayed on the interface 31 to the adjacent electronic device 200. For details, please refer to the embodiment shown in Figure 4, which will not be repeated here. Optionally, after establishing a communication connection with the electronic device 200, the electronic device 100 can display the interface 31 shown in Figure 5B.
[0209] In some examples, after electronic device 100 establishes a communication connection with electronic device 200, a prompt message can be displayed to remind the user to remove the electronic device. In this way, electronic device 100 has established a communication connection with electronic device 200, and electronic device 100 does not need to remain attached to electronic device 200 to send the shared content 1 to electronic device 200, making it convenient for the user to perform subsequent sharing operations.
[0210] Optionally, after displaying a prompt message to prompt the user to remove the electronic device, the electronic device 100 may display prompt message 521 as shown in Figure 5B or prompt message 531 as shown in Figure 5C. This allows the user to operate the electronic device 100 more conveniently after removing it.
[0211] Optionally, after displaying a prompt message to prompt the user to remove the electronic device, the electronic device 100 may, after detecting that the electronic device 100 has removed the radio frequency field range generated by the electronic device 200, display a prompt message 521 as shown in FIG5B or a prompt message 531 as shown in FIG5C.
[0212] Upon receiving user input (e.g., a click) to the confirmation control 523, electronic device 100, in response to the input, sends the image 32 displayed on interface 31 to the adjacent electronic device 200 and displays a prompt message 531 as shown in FIG. 5C. As shown in FIG. 5C, the prompt message 531 can be used to inform the user that electronic device 100 is sharing the image 32 displayed on interface 31. For example, the prompt message 531 may include a text-based prompt message: “Sharing…”.
[0213] After sending the image 32 displayed on interface 31 to electronic device 200, electronic device 100 can display a prompt message 541 as shown in Figure 5D. As shown in Figure 5D, the prompt message 541 can be used to notify the user that electronic device 100 has successfully shared the image 32 displayed on interface 31. For example, the prompt message 541 may include a text message: "Sharing successful". Optionally, if the time consumed by electronic device 100 in sending the image 32 displayed on interface 31 is less than a preset viewing time (e.g., 0.1ms), electronic device 100 can display the prompt message 541 as shown in Figure 5D after receiving user input (e.g., a click) to the confirmation control 523 shown in Figure 5B.
[0214] After receiving the image 32 displayed on interface 31 sent by electronic device 100, electronic device 200 can display interface 540 as shown in Figure 5E. As shown in Figure 5E, interface 540 displays the image 32 from interface 31. The description of interface 540 can be found in the description of interface 31, and will not be repeated here. Thus, when a user wants to share images saved on electronic device 100 with other users, they can simply tap electronic device 100 against electronic device 200 to quickly share the image.
[0215] In other examples, when the top back of electronic device 100 is attached to the top back of electronic device 200, electronic device 100 can, upon receiving a command from electronic device 200 indicating that its device type is a first type, send the image 32 displayed in interface 31 to the attached electronic device 200 and display interface 31 as shown in FIG. 5C; or, after sending the image 32 displayed in interface 31 to the attached electronic device 200, display interface 31 as shown in FIG. 5D. In this way, electronic device 100 can quickly share images to electronic device 200 without the user needing to click any controls.
[0216] In other examples, after receiving the communication address of electronic device 100, electronic device 200 displays a prompt box 550 as shown in Figure 5F. As shown in Figure 5F, the prompt box 550 may include, but is not limited to, a prompt message 551, a cancel control 552, and a confirm control 553. The prompt message 551 can be used to prompt the user whether to receive data shared by the connected electronic device. For example, the prompt message 551 may include, but is not limited to, a text prompt message: "Do you want to receive content shared by the connected electronic device?". The cancel control 552 can be used to trigger electronic device 200 to refuse to receive data sent by electronic device 100. The confirm control 553 can be used to trigger electronic device 200 to receive data sent by electronic device 100. After receiving user input to the confirm control 553, electronic device 200 can, in response to this input, establish a communication connection with electronic device 100 and, after receiving data sent by electronic device 100, display the interface 540 as shown in Figure 5E. This avoids situations where electronic device 200 receives content that the user does not want.
[0217] In some examples, electronic device 200 displays the interface of a gallery application. After establishing a communication connection with electronic device 100, electronic device 200 can send images displayed in the gallery application interface to electronic device 100. After receiving the image sent by electronic device 100, electronic device 200 can display the image. Thus, through the data transmission method provided in this application embodiment, electronic device 200 can share the currently displayed image with electronic device 100 when they are in close proximity.
[0218] For example, electronic device 200 displays desktop 501 as shown in FIG. 5A. Upon receiving user input (e.g., a click) on the gallery application icon 503, electronic device 200, in response to that input, displays interface 601 as shown in FIG. 6A. As shown in FIG. 6A, interface 601 is the interface of the gallery application, and interface 601 includes images 602.
[0219] When the top back of an NFC-enabled electronic device 200 is placed against the top back of an NFC-enabled electronic device 100, the electronic device 200 in PCD mode can establish a communication connection with the electronic device 100 based on the received communication address after receiving the communication address sent by the electronic device 100 in PICC mode. The electronic device 200 can also determine that the displayed interface 601 belongs to a gallery application and send the image 602 displayed on the interface 601 as sharing content 2 to the electronic device 100.
[0220] During the process of sending image 602 to electronic device 100, electronic device 200 may display a prompt message 611 as shown in FIG6B. The prompt message 611 can be used to inform the user that electronic device 100 is sharing image 602 with the adjacent electronic device 100. For example, the prompt message 611 may include a text prompt message: "Sharing...".
[0221] After sending image 602 to electronic device 100, electronic device 200 can display a prompt message 621 as shown in Figure 6C. The prompt message 621 can be used to notify the user that electronic device 200 has successfully shared image 602 to the connected electronic device 100. For example, the prompt message 621 may include a text message such as "Sharing successful".
[0222] Optionally, before sending image 602 to electronic device 100, electronic device 200 may display a first prompt message, which may be used to prompt the user whether to share image 602 with the attached electronic device. After receiving input from the user indicating that they wish to share image 602 with the attached electronic device, electronic device 200 may send image 602 to electronic device 100. For specific details, please refer to the embodiment shown in Figure 5B, which will not be elaborated upon here.
[0223] After receiving the image 602 sent by the electronic device 200, the electronic device 100 can display the interface 630 shown in Figure 6D. The interface 630 is the interface of the image library application, and the interface 630 includes the image 602.
[0224] Optionally, the electronic device 200 may display a second prompt message before receiving the image 602 sent by the electronic device 200. The second prompt message may be used to prompt the user whether to accept the image 602 shared by the adjacent electronic device. The electronic device 100 may receive and display the image 602 after receiving the user's input indicating that they wish to accept the image 602 shared by the adjacent electronic device. Alternatively, the electronic device 200 may display the second prompt message before displaying the image 602 sent by the electronic device 200. The electronic device 100 may display the image 602 after receiving the user's input indicating that they wish to accept the image 602 shared by the adjacent electronic device. For specific details, please refer to the embodiment shown in Figure 5B, which will not be described again here.
[0225] In one possible implementation, when the interface displayed by the electronic device (e.g., interface 1 displayed by electronic device 100, interface 2 displayed by electronic device 200) includes multiple images, the electronic device can share the multiple images to adjacent electronic devices based on the data transmission method provided in this application embodiment. In this way, users can share multiple images to adjacent electronic devices using the data transmission method provided in this application embodiment, improving the efficiency of data sharing.
[0226] In other examples, the electronic device can share the latest images to a connected electronic device based on the data transmission method provided in the embodiments of this application. This allows users to quickly share newly acquired images via the electronic device. For example, the electronic device can share the latest photo taken by the camera to a connected electronic device.
[0227] In other examples, when the interface displayed by an electronic device includes multiple images, the electronic device may not send data of the application to which the displayed interface belongs to the adjacent electronic device, but may only receive data sent by the adjacent electronic device.
[0228] In some examples, when the interface displayed by an electronic device (e.g., interface 1 displayed by electronic device 100, interface 2 displayed by electronic device 200) includes multiple images, the electronic device can determine whether the displayed interface includes one or more images selected by the user. The electronic device can then send one or more images selected by the user from the displayed interface to a connected electronic device. This allows the electronic device to share multiple user-selected images to a connected electronic device at once, making image sharing more convenient.
[0229] It should be noted that the images shared by the aforementioned electronic device in the gallery application are merely examples and are not limited to the multiple sharing options provided. For instance, the electronic device 100 may also provide a function to set a default shared image, allowing users to choose which image to share. Furthermore, the electronic device may provide a function to select from the aforementioned multiple sharing options, allowing users to choose which content to share, and so on. This application embodiment does not limit these possibilities.
[0230] For example, electronic device 100 displays interface 21 as shown in FIG1B. Electronic device 100 may receive input from a user on thumbnail 22 shown in FIG1B (e.g., long press), and in response to the input, display interface 21 as shown in FIG7A.
[0231] As shown in Figure 7A, interface 21 includes icon 701, which can be used to indicate that the image corresponding to thumbnail 22 has been selected by the user. Icon 701 can also be used to trigger electronic device 100 to deselect the image corresponding to thumbnail 22. Interface 21 also includes icon 703, which can be used to indicate that the image corresponding to thumbnail 24 has not been selected by the user.
[0232] Electronic device 100 can receive user input for icon 703 shown in FIG7A, and in response to the input, displays icon 703 as shown in FIG7B. As shown in FIG7B, icon 703 can be used to indicate that the image corresponding to thumbnail 24 has been selected by the user. When the top back of electronic device 100 with NFC enabled is in contact with the top back of electronic device 200 with NFC enabled, electronic device 100 can send the image corresponding to thumbnail 22 and the image corresponding to thumbnail 24 to electronic device 200. Specifically, the description of electronic device 100 sending data to electronic device 200 based on the data transmission method provided in the embodiments of this application can be found in the above embodiments, and will not be repeated here.
[0233] After sending the images corresponding to thumbnails 22 and 24 to electronic device 200, electronic device 100 can display a prompt message 711 as shown in Figure 7C. The prompt message 711 can be used to notify the user that electronic device 100 has successfully shared the images corresponding to thumbnails 22 and 24 to the connected electronic device 200. For example, the prompt message 711 may include a text message such as "Sharing successful". Specifically, the interface description for electronic device 100 sharing data with electronic device 200 can be found in the embodiments shown in Figures 5A to 5D, and will not be repeated here.
[0234] After receiving the images corresponding to thumbnails 22 and 24, electronic device 200 can display interface 720 as shown in FIG7D. As shown in FIG7D, interface 720 may include thumbnails 721 and 722. The image corresponding to thumbnail 721 is the same as the image corresponding to thumbnail 22. The image corresponding to thumbnail 722 is the same as the image corresponding to thumbnail 24. Specifically, the interface description of electronic device 200 receiving data shared by electronic device 100 can be found in the embodiments shown in FIG5A to FIG5F, and will not be repeated here.
[0235] In some examples, before sending the images corresponding to thumbnails 22 and 24 to electronic device 200, electronic device 100 may display a prompt message asking the user whether to share the images corresponding to thumbnails 22 and 24 with the connected electronic device. Electronic device 100 may send the images corresponding to thumbnails 22 and 24 to electronic device 200 after receiving input from the user indicating that they wish to share the images corresponding to thumbnails 22 and 24 with the connected electronic device. For specific details, please refer to the above embodiments, which will not be repeated here.
[0236] In some examples, electronic device 200 may display a prompt message asking the user whether to accept the data shared by the adjacent electronic device 100 before receiving the images corresponding to thumbnail 22 and thumbnail 24 sent by electronic device 100. Electronic device 200 may receive the images corresponding to thumbnail 22 and thumbnail 24 sent by electronic device 100 after receiving input from the user indicating that they wish to receive the data shared by the adjacent electronic device 100. For specific details, please refer to the above embodiments, which will not be repeated here.
[0237] It is understood that when the electronic device 200 displays an interface 2 including multiple thumbnails, the description of the electronic device 200 sharing data with the electronic device 100 through the data transmission method provided in the embodiments of this application can be found in the embodiments shown in Figures 7A to 7D.
[0238] In some examples, electronic device 100 displays the interface of a contacts application, and both electronic devices 100 and 200 have NFC functionality enabled. Electronic device 100 can send its own local number to electronic device 200 using the data transmission method provided in this embodiment. Upon receiving the local number from electronic device 100, electronic device 200 can display it. This allows electronic device 100 to quickly share its user's contact information with adjacent electronic devices, facilitating rapid exchange of contact information between users of electronic device 100 and other electronic devices. Other electronic devices that obtain electronic device 100's local number can then call electronic device 100 using that number. Optionally, when sending its own local number to electronic device 200, electronic device 100 can also send the username associated with that number. This allows electronic device 200 to add a note to the contact name associated with the number when saving it.
[0239] In other examples, electronic device 100 can receive user input and display an interface for a contacts application, which includes information about a first contact, including their phone number. While displaying this interface, electronic device 100 can send the information about its first contact to electronic device 200 using the data transmission method provided in this embodiment. Optionally, the information about the first contact may also include their name. In this way, electronic device 100 can share the saved information about the first contact with other electronic devices.
[0240] In some examples, electronic device 100 can determine whether the displayed interface of the contacts application includes information for multiple contacts. When electronic device 100 determines that the interface includes information for multiple contacts, it can send contact information including its own phone number to electronic device 200 using the data transmission method provided in this embodiment of the application while displaying the interface. When electronic device 100 determines that the interface only includes information for a first contact, it can send the information of the first contact displayed on the interface to electronic device 200. Thus, when displaying a details interface including a contact, electronic device 100 can share the contact information displayed in the details interface with electronic device 200. When displaying interfaces other than the details interface in the contacts application, electronic device 100 can share its own phone number with electronic device 200, allowing electronic device 200 to call electronic device 100 using its own phone number.
[0241] Optionally, the contact application interface displayed on the electronic device 100 includes information on multiple contacts. The electronic device 100 can receive user input, allowing the user to select one or more contacts from the displayed contact application interface. When displaying this interface, the electronic device 100 can send the information of the selected one or more contacts to the electronic device 200 using the data transmission method provided in this embodiment. In this way, the electronic device 100 can share the contact information of the user-selected contacts with other electronic devices. When a user of the electronic device 100 possesses multiple electronic devices, the contacts of the electronic device 100 can be quickly synchronized across the multiple electronic devices using the data transmission method provided in this embodiment.
[0242] For example, electronic device 100 displays desktop 11 as shown in FIG1A. Electronic device 100 can receive user input (e.g., a click) on the Contacts application icon 18 shown in FIG1A, and in response to the input, displays interface 801 as shown in FIG8A. As shown in FIG8A, interface 801 includes one or more contact options, which can be used to trigger electronic device 100 to display a details interface of the contact indicated by the contact option. The one or more contact options include contact option 802.
[0243] Electronic device 100 displays interface 801 as shown in Figure 8A. When the top back of electronic device 100 with NFC enabled is placed against the top back of electronic device 200 with NFC enabled, electronic device 100 can determine that the shared content corresponding to the contact interface of interface 801 is its own phone number and username. Electronic device 100 can send its own phone number and username to electronic device 200. Specifically, the description of electronic device 100 sending data to electronic device 200 based on the data transmission method provided in this application embodiment can be found in the above embodiments, and will not be repeated here.
[0244] During the process of sending its own phone number and username to electronic device 200, electronic device 100 may display a prompt message 811 as shown in FIG8B. The prompt message 811 can be used to inform the user that electronic device 100 is sharing its own phone number with a connected electronic device. For example, the prompt message 811 may include a text prompt message: "Sharing my own phone number...".
[0245] After electronic device 100 sends its own phone number and username to electronic device 200, it can display a prompt message 821 as shown in Figure 8C. The prompt message 821 can be used to notify the user that electronic device 100 has successfully shared its own phone number and username with the connected electronic device 200. For example, the prompt message 821 may include a text message such as "Sharing successful". Specifically, the interface description for electronic device 100 sharing data with electronic device 200 can be found in the embodiments shown in Figures 5A to 5D, and will not be repeated here.
[0246] After receiving the device's local number and username from the device 100, the electronic device 200 can display an interface 830 as shown in Figure 8D. As shown in Figure 8D, the interface 830 may include text boxes 831 and 832, and a confirmation control 833. Text box 831 contains the device 100's number: "+8612345678910". Text box 832 contains the device 100's username: "Lily". The confirmation control 833 can be used to trigger the electronic device 200 to save the contact information in the interface 830.
[0247] Upon receiving user input (e.g., a click) to the confirmation control 833, electronic device 200 displays interface 840 as shown in FIG8E in response to the input. As shown in FIG8E, interface 840 includes the local phone number and username shared by electronic device 100. Interface 840 may include call controls and SMS controls. The call control can be used to trigger electronic device 200 to call electronic device 100. The SMS control can be used to trigger electronic device 200 to display an interface for sending SMS messages to electronic device 100. Interface 840 may also include an editing control, which can be used to trigger electronic device 200 to display information for editing the currently displayed contact. Thus, electronic device 200 can obtain the local phone number of electronic device 100 when it touches electronic device 100 using the data transmission method provided in this application embodiment, making it easier for users of electronic device 200 to add the contact information of users of electronic device 100.
[0248] In some examples, electronic device 100 receives input (e.g., a click) from a user on the contact option 802 shown in FIG8A, and in response to the input, displays interface 840 as shown in FIG8F. As shown in FIG8F, interface 840 includes contact information indicated by contact option 802, which includes the contact's name: "Jerry" and the contact's number: "+8612345678901".
[0249] Electronic device 100 displays interface 840 as shown in FIG8F. When the top back of electronic device 100 with NFC enabled is placed against the top back of electronic device 200 with NFC enabled, electronic device 100 can send the contact information "Jerry" shown in FIG8F to electronic device 200. After receiving the contact information sent by electronic device 100, electronic device 200 can display interface 850 as shown in FIG8G. As shown in FIG8G, interface 850 includes text boxes 851 and 852, and a confirmation control 853. Among them, text box 851 includes the number shared by electronic device 100: "+8612345678901". Text box 852 includes the username shared by electronic device 100: "Jerry". Confirmation control 853 can be used to trigger electronic device 200 to save the contact information in interface 850. In this way, electronic device 100 and / or electronic device 200 can share the saved contact information through the data transmission method provided in the embodiments of this application.
[0250] Optionally, electronic device 100 can receive user input (e.g., long press) on contact option 802 shown in FIG8A, and in response to the input, display a mark indicating that contact option 802 is selected. When contact option 802 is selected, and the top back of electronic device 100 is placed against the top back of electronic device 200 with NFC enabled, electronic device 100 can send information about the contact "Jerry" indicated by contact option 802 to electronic device 200. In this way, electronic device 100 and / or electronic device 200 can share information about the user-selected contact through the data transmission method provided in this embodiment.
[0251] Optionally, after receiving input from the user confirming the sharing of data with the attached electronic device, the electronic device 100 may send the shared data to the attached electronic device 200.
[0252] Optionally, electronic device 200 may receive data shared by connected electronic device 100 after receiving input from the user confirming receipt of data shared by connected electronic device 100.
[0253] In some examples, electronic device 100 displays a chat application interface, and both electronic devices 100 and 200 have NFC functionality enabled. Electronic device 100 can send account information, including the account logged into the chat application, to electronic device 200 using the data transmission method provided in this embodiment. This account information can be used by electronic device 200 to add the account indicated by the account information as a friend. In this way, electronic device 100 can quickly share the contact information of its users with adjacent electronic devices, facilitating the rapid exchange of contact information between users of electronic device 100 and users of other electronic devices. Other electronic devices that obtain the account information of electronic device 100 can add the account of electronic device 100 as a friend using this account information. After adding the account of electronic device 100 as a friend, they can transmit chat data with electronic device 100 through the chat application.
[0254] For example, electronic device 100 displays desktop 11 as shown in FIG1A. Electronic device 100 can receive user input (e.g., click) on chat application icon 15 shown in FIG1A, and in response to the input, displays interface 901 as shown in FIG9A. As shown in FIG9A, interface 901 includes display area 902 and display area 903. Display area 902 includes one or more controls that can be used to trigger electronic device 100 to display content corresponding to the controls in display area 902. The one or more controls include message controls and address book controls 904. Here, the message control is in a selected state, and the display area 903 displays the display content corresponding to the message control. Display area 903 includes one or more message options that can be used to trigger electronic device 100 to display the chat interface corresponding to the message option, and the user of electronic device 100 can communicate with the contact indicated by the message option in the chat interface.
[0255] Electronic device 100 displays interface 901 as shown in Figure 9A. When the top back of electronic device 100 with NFC enabled is placed against the top back of electronic device 200 with NFC enabled, electronic device 100 can send the user's chat application card to electronic device 200. Specifically, the description of electronic device 100 sending data to electronic device 200 based on the data transmission method provided in this application embodiment can be found in the above embodiment, and will not be repeated here. Here, taking the chat application login account name of electronic device 100 as an example, the subsequent steps are explained. The user's chat application card is used to indicate the account logged into by electronic device 100's chat application. The application card may include account information of the account logged into by electronic device 100's chat application, which may include, but is not limited to, account name, username, etc. Optionally, the account information may also include regional information, which can be used to indicate the region where the user of electronic device 100 is located.
[0256] After receiving the application card from the chat application of electronic device 100, electronic device 200 can display interface 911 as shown in Figure 9B. As shown in Figure 9B, interface 911 can be used by electronic device 200 to add the account indicated by the application card shared by electronic device 100 to its address book. Interface 911 may include, but is not limited to, the username of the account shared by electronic device 100 and an add control 912. The add control 912 can be used to trigger electronic device 200 to send a friend request to electronic device 100 through the chat application's server. In this way, electronic device 200 can send a friend request to the logged-in account of electronic device 100 without the user having to manually search for the username of electronic device 100's chat application account. It is understood that after receiving the friend request from electronic device 200, electronic device 100 can add the account of electronic device 200 to its address book after receiving the user's confirmation, and electronic devices 100 and 200 can then communicate through the chat application.
[0257] In other examples, electronic device 100 can receive user input and display a chat application interface, which includes the account information of a second contact. This account information can be used by electronic device 200 to add the second contact's account to the chat application's address book. While displaying this interface, electronic device 100 can send the second contact's application card to electronic device 200 using the data transmission method provided in this application embodiment. This application card indicates the second contact's account in the chat application and includes the second contact's account information. After receiving the second contact's application card, electronic device 200 can display an interface including the second contact's account information. In this way, electronic device 100 can share the account information of the second contact in its friend list to other electronic devices, allowing other electronic devices to quickly add the second contact as a friend.
[0258] For example, electronic device 100 may display interface 901 as shown in FIG9A. After receiving user input on address book control 904, electronic device 100 may display display area 903 as shown in FIG9C. As shown in FIG9C, display area 903 may include one or more contact options. These one or more contact options include contact option 921.
[0259] Upon receiving user input on the contact option 921, the electronic device 100 displays an interface 931 as shown in FIG9D. As shown in FIG9D, the interface 931 includes information about the contact "Jerry" indicated by the contact option 921. The interface 931 may include a message icon and an audio / video call icon. The message icon can be used to trigger the electronic device 100 to display a chat interface for communicating with "Jerry". The audio / video call icon can be used to trigger the electronic device 100 to conduct an audio / video call with the contact "Jerry".
[0260] Electronic device 100 displays interface 931 as shown in Figure 9D. When the top back of electronic device 100 with NFC enabled is placed against the top back of electronic device 200 with NFC enabled, electronic device 100 can send the application business card of contact "Jerry" to electronic device 200. Specifically, the description of electronic device 100 sending data to electronic device 200 based on the data transmission method provided in this application embodiment can be found in the above embodiment, and will not be repeated here.
[0261] After receiving the application card of the contact "Jerry", the electronic device 200 displays interface 941 as shown in Figure 9E based on the application card. Interface 941 may include the nickname of the contact "Jerry" and other details. Interface 941 also includes an add control 942. For specific examples, please refer to the embodiment shown in Figure 9B, which will not be repeated here. In this way, the electronic device 200 can add "Jerry's" account to the contact list of the chat application through interface 941.
[0262] It should be noted that a detailed description of how electronic device 100 shares contact information from the chat application with electronic device 200 can be found in the above embodiments, and will not be repeated here.
[0263] In some examples, electronic device 100 displays a browser application interface, and both electronic devices 100 and 200 have NFC functionality enabled. Electronic device 100 can send data from its displayed interface to electronic device 200 using the data transmission method provided in this embodiment. Upon receiving this data, electronic device 200 can display a browser application interface based on the data, and the content of its displayed interface will be identical to that of electronic device 100. In this way, electronic device 100 can send data from its currently displayed browser interface to a nearby electronic device, enabling quick sharing of browsed web pages.
[0264] For example, electronic device 100 displays desktop 11 as shown in FIG1A. Electronic device 100 can receive input (e.g., a click) from a user on browser application icon 14 shown in FIG1A, and in response to the input, displays interface 1001 as shown in FIG10A. As shown in FIG10A, interface 1001 includes one or more news options provided by the browser application. The one or more news options include news option 1002.
[0265] The electronic device 100 can receive user input for the news option 1002 and, in response to the input, display an interface 1011 as shown in FIG10B. As shown in FIG10B, the interface 1011 includes a webpage 1012 corresponding to the news option 1002.
[0266] Electronic device 100 displays interface 1001 as shown in Figure 10B. When the top back of electronic device 100 with NFC enabled is placed against the top back of electronic device 200 with NFC enabled, electronic device 100 can send webpage 1012 to electronic device 200. Specifically, electronic device 100 can determine that interface 1001 belongs to a browser application. Electronic device 100 determines from the correspondence between applications and shared content that the shared content corresponding to the browser application is the webpage displayed by electronic device 100. Electronic device 100 can send the data of webpage 1012 to electronic device 200. For example, the data of webpage 1012 can be the URL of webpage 1012, or the code file of webpage 1012, etc. The description of electronic device 100 sending data to electronic device 200 based on the data transmission method provided in this application embodiment can be found in the above embodiments, and will not be repeated here.
[0267] After receiving data from webpage 1012 sent by electronic device 100, electronic device 200's browser application can display interface 1021 as shown in Figure 10C based on this data. Interface 1021 includes webpage 1022, and the content displayed on webpage 1022 is the same as that displayed on webpage 1012. In this way, electronic device 100 can send the webpage data it is currently browsing to adjacent electronic devices 200, facilitating the sharing of the browsing webpage content between users of electronic device 100 and users of other electronic devices.
[0268] It should be noted that the specific description of how electronic device 100 shares browser data with electronic device 200 can be found in the above embodiments, and will not be repeated here.
[0269] In some examples, electronic device 100 may display a prompt message before sending shared data to electronic device 200, prompting the user whether to share the data with the adjacent electronic device; and / or, electronic device 100 may display a prompt message after sending shared data to electronic device 200, prompting the user to send the shared data to the adjacent electronic device; and / or, electronic device 200 may display a prompt message before receiving data shared by the adjacent electronic device, prompting the user whether to receive the data sent by the adjacent electronic device, and so on.
[0270] In one possible implementation, the electronic device (e.g., electronic device 100, electronic device 200) can receive user input to enable / disable the NFC sharing function. When the electronic device enables the NFC sharing function, it can transmit data with a nearby electronic device using the data transmission method provided in this application embodiment. When the electronic device disables the NFC sharing function, it can simulate a PICC / PCD card swiping service. In this way, users can set whether to enable or disable the NFC sharing function; when the NFC sharing function is enabled, data can be shared by tapping the device together, and when the NFC function is disabled, a card can be swiped, making it suitable for more application scenarios.
[0271] For example, when electronic device 100 disables its NFC sharing function and is in PICC mode, it can perform card-swiping transactions with an NFC card reader based on the card information of an added NFC emulated card. For instance, if the added NFC emulated card includes an access control card, electronic device 100 emulating an access control card can copy that access control card after it is placed against electronic device 200 in PCD mode. Electronic device 100 emulating an access control card can also send the access control card information to the access control device after being placed against it. The access control device can then determine whether to allow the user to pass through based on the card information. This access control device is an NFC card reader. When electronic device 100 disables its NFC sharing function and is in PCD mode, it can perform card-swiping transactions based on the PICC card information after being placed against it. For example, electronic device 100 can copy the NFC emulated card of electronic device 200 after being placed against electronic device 200 in PICC mode.
[0272] In some examples, electronic device 100 can receive user input to configure one or more applications and associated sharing content. This allows users to customize the sharing content for a specific interface, facilitating quick data sharing.
[0273] For example, the electronic device 100 can receive input from a user on the settings application icon 16 shown in FIG1A (e.g., a click). In response to this input, the electronic device 100 can display the interface 1101 shown in FIG11A. The settings application interface 1101 may include multiple settings icons. These multiple settings icons can be used to trigger the electronic device 100 to display settings interfaces with different functions. These multiple settings icons may include a settings icon 1102. The settings icon 1102 can be used to trigger the display of an interface for setting the NFC sharing function. Optionally, the settings icon 1102 may display a "NFC sharing" prompt message, which can be used to inform the user of the function of the settings icon 1102.
[0274] Electronic device 100 can receive user input (e.g., a click) on setting icon 1102. In response to this input, electronic device 100 can display interface 1110 as shown in FIG11B. This interface 1110 is the settings interface for the NFC sharing function. This interface 1110 may include icon 1111 and setting form 1112.
[0275] Icon 1111 can be used to indicate whether data can be shared via the data transmission method provided in this embodiment. Icon 1111 may include a text prompt for "NFC sharing" and a switch control. The text prompt can be used to inform the user of the function of icon 1111. The switch control may include an on state and an off state, and can be used to trigger electronic device 100 to receive and respond to user input (e.g., a click) to switch the state of the switch control. When the switch control is in the on state, electronic device 100 can share data with a nearby electronic device via the data transmission method provided in this embodiment. When the switch control is in the off state, electronic device 100 cannot share data with a nearby electronic device via the data transmission method provided in this embodiment. In interface 1110, the switch control of icon 1111 is in the on state, that is, electronic device 100 can share data with electronic device 200 when it is in contact with electronic device 200 with NFC function enabled.
[0276] The settings form 1112 can be used to set applications and their corresponding sharing content. The settings form 1112 can include multiple setting options. Each setting option includes a specific application and its corresponding sharing content. For example, the settings form 1112 includes a desktop application's sharing content as the user's phone number. When the electronic device 100 displays the desktop, the user's phone number saved in the contacts application can be sent to the adjacent electronic device using the data transmission method provided in this embodiment. Another example is a chat application's sharing content, which is the chat application's business card. When the electronic device 100 displays the chat application's interface, the business card of the chat application's logged-in account can be sent to the adjacent electronic device. When the electronic device 100 displays the lock screen interface, a user's pre-saved electronic resume can be sent to the adjacent electronic device. Yet another example is a lock screen application's sharing content, which is an electronic resume. When the electronic device 100 displays the lock screen interface, a user's pre-saved electronic resume can be sent to the adjacent electronic device. These multiple setting options can include an add control 1113, which can be used to trigger the addition of a new setting option. Optionally, the interface 1110 may also include prompts to the user indicating how to use the NFC sharing function.
[0277] The electronic device 100 can receive user input on the add control 1113 and, in response to the input, display settings options 1121 as shown in FIG11C. As shown in FIG11C, settings options 1121 include application options 1121A and sharing content options 1121B.
[0278] Application option 1121A can be used to trigger electronic device 100 to receive and respond to user input to select a specific application. For example, electronic device 100 can receive user input (e.g., a click) for application option 1121A and display application form 1131 as shown in Figure 11D. Application form 1131 includes multiple application entries, such as video application entry, wallet application entry, browser application entry 1132, etc. Among them, browser application entry 1132 can be used to instruct the user to quickly send the sharing content specified by sharing content option 1121B to a connected electronic device when electronic device 100 displays the browser application interface.
[0279] The sharing content option 1121B can be used to trigger the electronic device 100 to receive and respond to the user's selected sharing content. For example, the electronic device 100 can receive the user's input for the sharing content option 1121B and display the sharing content form 1141 as shown in Figure 11E. This sharing content form 1141 includes multiple sharing content items, such as a webpage item 1142, a bookmark item, a screenshot item, and a no-sharing content item, etc. Specifically, the webpage item 1142 can instruct the user to send the data of the displayed webpage to the adjacent electronic device when the electronic device 100 displays the interface of a browser application. The bookmark item can instruct the user to send the bookmarks saved in the browser application to the adjacent electronic device when the electronic device 100 displays the interface of a video application. The screenshot item can instruct the user to send a screenshot of the interface of the video application to the adjacent electronic device when the electronic device 100 displays the interface of the video application. The no-sharing content item can instruct the user not to send sharing content to the adjacent electronic device when the electronic device 100 displays the interface of the video application.
[0280] Here, when displaying interface 1110 as shown in FIG11C, electronic device 100 can receive user input for application option 1121A, and in response to the input, display application form 1131 as shown in FIG11D. Electronic device 100 can receive user input for browser application item 1132, and in response to the input, display a prompt message indicating that browser application item 1132 is selected in application option 1121A. Subsequently, after receiving user input for sharing content option 1121B, electronic device 100 can display sharing content form 1141 as shown in FIG11E in response to the input. Electronic device 100 can receive user input for webpage item 1142, and in response to the input, display a prompt message indicating that webpage item 1142 is selected in sharing content option 1121B, as shown in FIG11F. After the electronic device 100 displays the interface 1110 shown in FIG11F, the electronic device 100 can send the web page data of the interface 1011 of the browser application shown in FIG10B to the adjacent electronic device.
[0281] In some examples, electronic device 100 can be configured to share the same content across multiple applications. This allows electronic device 100 to share the same content to adjacent electronic devices 200 simultaneously when displaying the interfaces of these applications, facilitating quick switching between the interfaces used to share that content. For instance, electronic device 100 can be configured to share the application card of the chat application as the content for both its desktop application and chat application. This allows users to quickly share the chat application's application card even if they don't have time to trigger electronic device 100 to display the desktop interface.
[0282] In some examples, an application can correspond to multiple shareable content. After being placed against electronic device 200, electronic device 100 can determine that the application 1 belonging to the displayed interface 1 corresponds to multiple shareable content. Electronic device 100 can display a prompt message to encourage the user to select shareable content. Electronic device 100 can receive input from the user selecting a specific shareable content and send the specified shareable content to the placed electronic device 200. In this way, the user can set multiple shareable content for the application belonging to interface 1, and the user can select a specific shareable content to share in different application scenarios, making it suitable for a wider variety of sharing scenarios.
[0283] For example, the shared content for a desktop application may include, but is not limited to, the user's mobile phone number from a contacts application and account information from a chat application. Electronic device 100, when placed against electronic device 200, may display a prompt message prompting the user to choose to share either the user's mobile phone number from a contacts application or account information from a chat application. Electronic device 100 may send the user's mobile phone number to electronic device 200 after receiving the user's input indicating that they wish to share the user's mobile phone number from a contacts application. Similarly, electronic device 100 may send the user's chat application account information to electronic device 200 after receiving the user's input indicating that they wish to share the user's chat application account information.
[0284] For example, electronic device 100 displays desktop 11 as shown in FIG1A. When the top back of electronic device 100 with NFC enabled is placed against the top back of electronic device 200 with NFC enabled, a prompt message 1151 as shown in FIG11G is displayed.
[0285] As shown in Figure 11G, the prompt message 1151 can be used to prompt the user to select content to share. Interface 101 may also include icons 1152 and 1153. Icon 1152 can be used to trigger electronic device 100 to send the chat application's account information to electronic device 200. For example, icon 1152 includes the text prompt message: "Chat application business card". Icon 1153 can be used to trigger electronic device 100 to send the user's local number from the contacts application to electronic device 200. For example, icon 1153 includes the text prompt message: "User's local number".
[0286] Optionally, the application can correspond to multiple shareable content. After being placed against the electronic device 200, the electronic device 100 can determine that the application 1 to which the displayed interface 1 belongs corresponds to multiple shareable content. The electronic device 100 can display prompts for the user to select shareable content. After receiving input from the user indicating that multiple shareable content has been selected, the electronic device 100 can send these multiple shareable content items to the attached electronic device. In this way, when displaying interface 1, the electronic device 100 can send the shareable content selected by the user from the multiple shareable content items corresponding to interface 1 to the attached electronic device, facilitating the user to share multiple shareable content items in a single sharing operation.
[0287] In one possible implementation, the electronic device 100 can receive user input and configure applications, including the correspondence between the application's interface and the application's shareable content. For example, the electronic device 100 can provide configuration options including application options, interface options, and shareable content options. The descriptions of the application options and shareable content options in the configuration options can be found in the above embodiments and will not be repeated here. Interface options can be used to trigger the electronic device 100 to receive and respond to user input to select a specific interface. For example, the electronic device 100 can receive user input (e.g., a click) for an interface option and display an interface form. This interface form includes multiple interface items corresponding to application options. For example, interface items corresponding to a browser application may include, but are not limited to, webpage interface items, bookmark interface items, etc. Webpage interface items can be used to instruct the user to quickly send the shareable content specified by the shareable content option to a connected electronic device when the electronic device 100 displays the browser application's webpage interface. Bookmark interface items can be used to instruct the user to quickly send the shareable content specified by the shareable content option to a connected electronic device when the electronic device 100 displays the browser application's bookmark interface. In this way, when an electronic device 100 displays a certain interface of an application, it can share the corresponding content to a connected electronic device.
[0288] In other examples, electronic device 100 can determine the text, audio, images, and / or video in the displayed interface 1 using a specified algorithm, and can then send the text, audio, images, and / or video in interface 1 to a nearby electronic device. In this way, electronic device 100 can extract the displayed content from interface 1 and send it to electronic device 200.
[0289] In other examples, electronic device 100 can capture the content displayed on the screen to obtain a screenshot of interface 1. Electronic device 100 can then send the screenshot of interface 1 to a nearby electronic device.
[0290] In some examples, electronic device 100 can receive user input and be configured to send data only to a first-type electronic device via NFC after NFC functionality is enabled. This allows electronic device 100 to provide the user with the ability to configure whether it receives data from a first-type electronic device when it comes into contact with it. For example, when electronic device 100 comes into contact with electronic device 200, since electronic device 200 is a first-type electronic device, electronic device 100 will only send data to electronic device 200 and will not receive data from it.
[0291] In some examples, electronic device 100 can receive user input and be configured to receive data sent by a first-type electronic device only via NFC after NFC functionality is enabled. This allows electronic device 100 to provide the user with the ability to configure whether it sends data to a first-type electronic device when it comes into contact with that device. For example, when electronic device 100 comes into contact with electronic device 200, since electronic device 200 is a first-type electronic device, electronic device 100 will only receive data sent by electronic device 200 and will not send data to it.
[0292] In another possible implementation, after receiving input from a user to share specified content, electronic device 100 can establish a communication connection with electronic device 200 using the data transmission method provided in this application embodiment, and send the specified content to electronic device 200. In this way, electronic device 100 can receive user sharing input and send the specified content to the adjacent electronic device 200.
[0293] In some examples, after receiving input from a user to share specified content, electronic device 100 can set itself to PICC mode and simulate a PICC using an NFC-enabled emulator card whose card information is the communication address of electronic device 100. When electronic device 200 is in PCD mode, electronic device 100 can receive device commands sent by electronic device 200 after entering the radio frequency field generated by electronic device 200. After receiving the device command, electronic device 100 can send an address command including its own communication address to electronic device 200. After receiving the address command, electronic device 200 establishes a communication connection with electronic device 100 based on its communication address. Electronic device 100 can then send the specified content to electronic device 200 through this communication connection. In this way, the user can actively perform the data sharing operation through electronic device 100. Similarly, after receiving the data sharing operation, electronic device 200 can also send the specified content to electronic device 100 using the same method. This allows the electronic device to quickly determine the receiving electronic device without requiring the user to select it, making the sharing process faster.
[0294] For example, electronic device 100 displays interface 31 as shown in FIG1C. Upon receiving user input to the sharing control 33, electronic device 100 can, in response to the input, simulate a PICC card with its communication address as the card information. Electronic device 200, in PCD mode, can generate a radio frequency field. After electronic device 100 enters the radio frequency field of electronic device 200, it can receive device commands sent by electronic device 200. Then, electronic device 100 can send an address command carrying its communication address to electronic device 200. Electronic device 200 establishes a communication connection with electronic device 100 based on its communication address. Electronic device 100 can send the image 32 displayed in interface 31 to electronic device 200. Electronic device 200 can display the image 32 upon receiving it.
[0295] Optionally, after receiving input from a user to share specified content, the electronic device 100 may display a prompt message asking the user to select a sharing method. After receiving input from a user to select an NFC sharing method, the electronic device 100 may send the specified content to a connected first-type electronic device using the transmission method provided in this embodiment. For example, after receiving input from a user on the sharing control 33 shown in FIG1C, the electronic device 100 may display one or more sharing icons in response to the input. These one or more sharing icons may be used to trigger the electronic device 100 to share the specified content based on the method corresponding to the sharing icon. The one or more sharing icons may include an NFC sharing icon. After receiving input from a user on an NFC sharing icon, the electronic device 100 may, in response to the input, send the specified content to a connected first-type electronic device using the transmission method provided in this embodiment.
[0296] Optionally, electronic device 100 may respond to user input to sharing control 33 by displaying a prompt message prompting the user to place the card-swiping area of electronic device 100 (e.g., the top of the back of electronic device 100) against the card-swiping area of electronic device 200. This allows electronic device 100 to prompt the user to actively move electronic device 100 into the radio frequency field generated by electronic device 200, making data transmission more reliable.
[0297] Optionally, after receiving the address command, electronic device 200 can determine the shared content 2 corresponding to the application 2 to which interface 2 belongs based on the displayed interface 2. After establishing a communication connection with electronic device 100, electronic device 200 can send the shared content 2 to electronic device 100.
[0298] In some examples, electronic device 100 can receive input from a user to select one or more shareable content items. After receiving the user's sharing input, electronic device 100 can share the one or more shareable content items using the data transmission method provided in this application embodiment. In this way, the user can share the selected content items to adjacent first-type electronic devices via electronic device 100.
[0299] For example, electronic device 100 displays interface 21 as shown in FIG. 1B. After receiving input from a user indicating that thumbnails 22 and 24 have been selected, electronic device 100 can display an indicator showing that thumbnails 22 and 24 have been selected by the user, as well as a sharing control. Electronic device 100 can receive user input regarding the sharing control, and in response to this input, use the data transmission method provided in this embodiment to send the images indicated by thumbnails 22 and 24 to a first type of electronic device 200 that is attached to electronic device 100.
[0300] In other examples, after receiving a user's sharing input, the electronic device 100 may display a prompt message asking the user to select content to share. Upon receiving input from a user to select one or more pieces of content to share, the electronic device 100 may, in response to this input, send the selected one or more pieces of content to an adjacent first-type electronic device using the data transmission method provided in this application embodiment.
[0301] For example, electronic device 100 displays interface 31 as shown in Figure 1C. Electronic device 100 can display one or more shareable content items after receiving input from the user onto the sharing control 33. Electronic device 100 can also receive input from the user to select multiple shareable content items and send the selected items to the adjacent electronic device 200.
[0302] It should be noted that, in this embodiment, the two electronic devices being in contact can be interpreted as the electronic device in PICC mode being located within the radio frequency field generated by the electronic device in PCD mode when one electronic device is in PICC mode and the other is in PCD mode. Alternatively, the two electronic devices being in contact can also be described as their card-swiping areas (e.g., the top of the back of the electronic device, or the top of the electronic device) being in contact. With the electronic device in PICC mode located within the radio frequency field generated by the electronic device in PCD mode, the two electronic devices can perform NFC signaling interaction procedures.
[0303] In one possible implementation, the electronic device (e.g., electronic device 100, electronic device 200) displays multiple windows. The electronic device can display these multiple windows in a split-screen manner, and / or, the electronic device can display at least one window among the multiple windows as a floating window. When the electronic device is attached to a first-type electronic device, it can send the shared content corresponding to the interface of the focused window among the multiple windows to the attached first-type electronic device. The focused window is the window to which the user recently input an object (e.g., an icon, interface, etc.) belongs. Thus, when the electronic device displays multiple interfaces, it can share the shared content corresponding to the application of the window most recently operated by the user to the attached electronic device.
[0304] Specifically, electronic device 100 displays multiple windows, including window 1, which includes interface 1. When electronic device 100 in PICC mode enters the radio frequency field generated by electronic device 200 in PCD mode, it receives a device command sent by electronic device 200 via NFC, indicating that the device type of electronic device 200 is a first type. Electronic device 100 sends its communication address to electronic device 200 via NFC. Electronic device 200 establishes a communication connection with electronic device 100 based on the communication address of electronic device 100. After receiving the device command, electronic device 100 can also determine the focus window from the multiple displayed windows. Here, electronic device 100 determines window 1 as the focus window, and electronic device 100 can determine the sharing content 1 based on interface 1 displayed in window 1. After establishing a communication connection with electronic device 200, electronic device 100 can send the sharing content 1 to electronic device 200. For details, please refer to the above embodiments, which will not be repeated here.
[0305] Alternatively, electronic device 100 in PCD mode can send a device command to electronic device 200 in PICC mode located in the radio frequency field generated by electronic device 100. The device command sent by electronic device 100 can be used to indicate that the device type of electronic device 100 is a first type. Electronic device 100 can receive an address command sent by electronic device 200 via NFC. The address command sent by electronic device 200 includes the communication address of electronic device 200. After receiving the communication address of electronic device 200, electronic device 100 can establish a communication connection with electronic device 200 based on the communication address of electronic device 200. Electronic device 100 can also determine the focus window from multiple displayed windows after receiving the communication address of electronic device 200. Here, electronic device 100 determines the focus window as window 1, and electronic device 100 can determine the sharing content 1 based on the interface 1 displayed in window 1. After establishing a communication connection with electronic device 200, electronic device 100 can send the sharing content 1 to electronic device 200.
[0306] For example, electronic device 100 displays desktop 11 as shown in FIG1A. Upon receiving input from a user to open a gallery application in the form of a floating window, electronic device 100, in response to this input, displays a floating window of the gallery application. The floating window of the gallery application includes the interface of the gallery application. Here, electronic device 100 uses the floating window of the gallery application as the focus window. When electronic device 100 shares data with electronic device 200 using the transmission method provided in this application embodiment, electronic device 100 can determine the sharing content corresponding to the gallery application based on the gallery application's interface. Electronic device 100 can then send the sharing content corresponding to the gallery application to electronic device 200.
[0307] It is understood that the electronic device 100 displays a floating window of the gallery application. After receiving user input (e.g., a click) on the desktop 11, the electronic device 100 can focus on the window of the desktop application to which the desktop 11 belongs. Here, when the electronic device 100 shares data with the electronic device 200 using the transmission method provided in this embodiment, it can send the shared content corresponding to the desktop application to the electronic device 200.
[0308] In some examples, the multiple windows displayed by electronic device 100 include window 1 of a file transfer application, which contains one or more shared content items. If window 1 of the file transfer application is the focused window, electronic device 100 can send the one or more shared content items from window 1 to electronic device 200. After receiving the one or more shared content items sent by electronic device 100, electronic device 200 can display window 2 of the file transfer application and display the one or more shared content items in window 2. In this way, electronic device 200 can receive user input and share the shared content selected by the user in window 2 to other applications.
[0309] Optionally, when electronic device 100 displays multiple interfaces, it can send the sharing content corresponding to the applications belonging to each interface to electronic device 200. For example, when electronic device 100 displays the desktop and gallery application interfaces, it can send the sharing content corresponding to both the desktop and gallery applications to electronic device 200. See the above embodiment for details. In this way, electronic device 100 can send the sharing content corresponding to multiple displayed interfaces to electronic device 200, facilitating quick sharing of content from multiple applications.
[0310] Figure 12 shows a schematic diagram of the hardware structure of an electronic device 100 provided in an embodiment of this application.
[0311] The following description uses electronic device 100 as an example to illustrate the embodiment. It should be understood that the electronic device 100 shown in FIG12 is merely an example, and the electronic device 100 may have more or fewer components than shown in FIG12, may combine two or more components, or may have different component configurations. The various components shown in the figure can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application-specific integrated circuits.
[0312] Electronic device 100 may include: processor 110, external memory interface 120, internal memory 121, universal serial bus (USB) interface 130, charging management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include one or more of the following: pressure sensor 180A, gyroscope sensor 180B, barometric pressure sensor 180C, magnetic sensor 180D, accelerometer sensor 180E, distance sensor 180F, proximity sensor 180G, fingerprint sensor 180H, temperature sensor 180J, touch sensor 180K, ambient light sensor 180L, bone conduction sensor 180M, etc.
[0313] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0314] Processor 110 may include one or more processing units, such as an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors. The controller can generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution. Processor 110 may also include memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that processor 110 has just used or is recurring. If processor 110 needs to reuse the instruction or data, it can directly retrieve it from the memory. This avoids repeated access, reduces the waiting time of processor 110, and thus improves system efficiency.
[0315] In some embodiments, the processor 110 may include one or more interfaces. Interfaces 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.
[0316] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.
[0317] The charging management module 140 receives charging input from the charger. The power management module 141 connects to the battery 142, and the charging management module 140 connects to the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, internal memory 121, external memory, display 194, camera 193, and wireless communication module 160, etc.
[0318] The wireless communication function of electronic device 100 can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor, and baseband processor. 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 one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with tuning switches.
[0319] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.
[0320] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, 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), and infrared (IR) technologies. 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 antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.
[0321] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 100 to communicate with networks and other devices via 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 technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).
[0322] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0323] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD). The display panel can also be manufactured using organic light-emitting diodes (OLEDs), active-matrix organic light-emitting diodes (AMOLEDs), flexible light-emitting diodes (FLEDs), miniled, microled, micro-OLEDs, quantum dot light-emitting diodes (QLEDs), etc. In some embodiments, electronic device 100 may include one or N displays 194, where N is a positive integer greater than 1.
[0324] Electronic device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.
[0325] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The internal memory 121 can be used to store computer-executable program code, which includes instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, phonebook, etc.). Furthermore, the internal memory 121 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
[0326] Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.
[0327] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. Gyroscope sensor 180B can be used to determine the motion posture of electronic device 100. Barometric pressure sensor 180C is used to measure air pressure. Magnetic sensor 180D includes a Hall sensor. Accelerometer sensor 180E can detect the magnitude of acceleration of electronic device 100 in various directions (generally three axes). Distance sensor 180F is used to measure distance. Proximity sensor 180G may include, for example, a light-emitting diode (LED) and a photodetector, such as a photodiode. Ambient light sensor 180L is used to sense ambient light intensity. Fingerprint sensor 180H is used to collect fingerprints. Temperature sensor 180J is used to detect temperature. Touch sensor 180K, also called a "touch panel". Touch sensor 180K can be set on display screen 194, and touch sensor 180K and display screen 194 form a touch screen, also called a "touch screen". Touch sensor 180K is used to detect touch operations applied to or near it. A touch sensor can transmit detected touch operations to an application processor to determine the type of touch event. Visual output related to the touch operation can be provided via display screen 194. In some embodiments, touch sensor 180K may also be located on the surface of electronic device 100, in a different position than display screen 194. Bone conduction sensor 180M can acquire vibration signals. Buttons 190 include a power button, volume buttons, etc. Motor 191 can generate vibration cues. Indicator 192 may be an indicator light, used to indicate charging status, battery level changes, or to indicate messages, missed calls, notifications, etc.
[0328] The SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to make contact with and separate from the electronic device 100. The electronic device 100 can support one or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 195 simultaneously. The multiple cards can be of the same or different types. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to realize functions such as calls and data communication. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
[0329] In some embodiments, the wireless communication module 160 can specifically be used to establish a short-range wireless communication link with other electronic devices (e.g., electronic device 200) so that the two devices can perform short-range wireless data transmission. Exemplarily, the aforementioned short-range wireless communication link can be a Bluetooth link, a Wi-Fi link, an NFC link, etc. Therefore, the wireless communication module 160 can specifically include a Bluetooth communication module, a Wi-Fi communication module, or an NFC module. The NFC module can include any suitable components for enabling proximity-based contactless communication between electronic device 100 and electronic device 200, thereby providing NFC functionality to electronic device 100. A description of the NFC module can be found in the embodiment shown in FIG3A above, and will not be repeated here.
[0330] It should be noted that the hardware structure of the electronic device 200 can be described in the embodiment shown in Figure 12, and will not be repeated here.
[0331] The foregoing details the method provided in this application. In order to facilitate better implementation of the above-described solutions in the embodiments of this application, the embodiments of this application also provide corresponding devices or equipment.
[0332] This application embodiment can divide the electronic device 100 or electronic device 200 into functional modules according to the above method example. For example, each function can be divided into its own functional module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module. It should be noted that the module division in this application embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.
[0333] The communication device of the present application embodiment will now be described in detail with reference to FIG13.
[0334] Referring to FIG13, which is a schematic diagram of the structure of a communication device 1300 provided in an embodiment of this application, the communication device 1300 can be the electronic device 100 or electronic device 200 in the above embodiments. Optionally, the communication device 1300 can be a chip / chip system, such as an NFC chip. As shown in FIG13, the communication device 1300 may include a transceiver unit 1310 and a processing unit 1320.
[0335] The transceiver unit 1310 can also be used to perform the sending and receiving functions performed by the electronic device 100 or electronic device 200 in the above embodiments of this application.
[0336] Optionally, the processing unit 1320 can also be used to perform the functional steps related to NFC protocol parsing and encapsulation, NFC service processing flow, data sharing, and display performed by the electronic device 100 or electronic device 200 in the above embodiments of this application.
[0337] It should be understood that the communication device 1300 in this design can perform the method steps performed by the electronic device 100 or electronic device 200 in the foregoing embodiments, and for the sake of brevity, it will not be described again here.
[0338] The above describes the electronic device 100 or electronic device 200 of the embodiments of this application. It should be understood that any product with the functions of the communication device 1300 described in FIG13 above falls within the protection scope of the embodiments of this application.
[0339] As a possible product form, the electronic device 100 or electronic device 200 described in the embodiments of this application can be implemented by a general bus architecture.
[0340] Referring to Figure 14, Figure 14 is a schematic diagram of the structure of a communication device 1400 provided in an embodiment of this application. The communication device 1400 can be an electronic device 100, or a device therein. The communication device 1400 can also be an electronic device 200, or a device therein. As shown in Figure 14, the communication device 1400 includes a processor 1401 and a transceiver 1402 internally connected and communicating with the processor 1401. The processor 1401 can be a general-purpose processor or a dedicated processor, etc. For example, it can be a central processing unit and / or an NFC controller, etc. The transceiver 1402 can be referred to as a transceiver unit, transceiver, or transceiver circuit, etc., and is used to implement transceiver functions. The transceiver 1402 can include a receiver and a transmitter. The receiver can be referred to as a receiver or receiving circuit, etc., and is used to implement a receiving function, such as an NFC receiving function; the transmitter can be referred to as a transmitter or transmitting circuit, etc., and is used to implement a transmitting function, such as an NFC transmitting function. Optionally, the communication device 1400 may also include an antenna 1403 and / or a radio frequency unit (not shown in FIG. 14), such as an NFC antenna, wherein the NFC antenna may be a coil-type antenna. The antenna 1403 and / or the radio frequency unit may be located inside the communication device 1400 or may be separate from the communication device 1400, that is, the antenna 1403 and / or the radio frequency unit may be remotely or distributedly deployed.
[0341] Optionally, the communication device 1400 may include one or more memories 1404, which may store instructions, which may be computer programs, that can be executed on the communication device 1400 to cause the communication device 1400 to perform the method steps described in the above embodiments of this application. Optionally, the memory 1404 may also store data. The communication device 1400 and the memory 1404 may be provided separately or integrated together.
[0342] The processor 1401, transceiver 1402, and memory 1404 can be connected via a communication bus.
[0343] In one design, the communication device 1400 can be used to perform the functions of the electronic device 100 in the foregoing embodiments: the processor 1401 can be used to perform the functional steps related to NFC protocol parsing and encapsulation, NFC service processing flow, designated analog card sharing flow, and display performed by the electronic device 100 in the foregoing embodiments of this application, and / or other processes used in the technology described herein; the transceiver 1402 can be used to perform the functional steps related to sending and receiving performed by the electronic device 100 in the foregoing embodiments of this application, and / or other processes used in the technology described herein.
[0344] In any of the above designs, the processor 1401 may include a transceiver for implementing receive and transmit functions. For example, the transceiver may be a transceiver circuit, an interface, or an interface circuit. The transceiver circuit, interface, or interface circuit for implementing receive and transmit functions may be separate or integrated. The aforementioned transceiver circuit, interface, or interface circuit may be used for reading and writing code / data, or it may be used for transmitting or relaying signals.
[0345] In any of the above designs, the processor 1401 may store instructions, which may be computer programs. These computer programs, running on the processor 1401, cause the communication device 1400 to execute the method steps performed by the electronic device 100 in the above embodiments of this application. The computer program may be embedded in the processor 1401; in this case, the processor 1401 may be implemented in hardware.
[0346] In one implementation, the communication device 1400 may include circuitry capable of performing the transmitting, receiving, or communication functions described in the foregoing method embodiments. The processor and transceiver described in this application can be implemented on integrated circuits (ICs), analog ICs, radio frequency integrated circuits (RFICs), mixed-signal ICs, application-specific integrated circuits (ASICs), printed circuit boards (PCBs), electronic devices, etc. The processor and transceiver can also be manufactured using various IC process technologies, such as complementary metal oxide semiconductors (CMOS), n-metal-oxide-semiconductor (NMOS), positive-channel metal oxide semiconductors (PMOS), bipolar junction transistors (BJTs), bipolar CMOS (BiCMOS), silicon germanium (SiGe), gallium arsenide (GaAs), etc.
[0347] The scope of the communication device described in this application is not limited thereto, and the structure of the communication device is not limited to that shown in FIG14. Communication device 1400 may be a standalone device or part of a larger device. For example, the communication device 1400 may be:
[0348] (1) A standalone integrated circuit IC, or chip, or chip system or subsystem; (2) A collection of one or more ICs, optionally including storage components for storing data or computer programs; (3) An ASIC, such as an NFC chip; (4) A module that can be embedded in other devices; (5) A receiver, terminal, smart terminal, cellular phone, wireless device, handheld device, mobile unit, vehicle device, network device, cloud device, artificial intelligence device, etc.; (6) Others, etc.
[0349] This application also provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it can implement the steps performed by the electronic device 100 or the electronic device 200 in the above-described method embodiments.
[0350] This application also provides a computer program product, including a computing program, which, when run on a computer, enables the computer to perform the steps executed by the electronic device 100 or electronic device 200 in the above-described method embodiments.
[0351] This application also provides a chip system, which includes a processing circuit and an interface circuit. The interface circuit receives code instructions and transmits them to the processing circuit. The processing circuit executes the code instructions to enable the chip system to perform the steps executed by electronic device 100 or electronic device 200 in any method embodiment of this application. The chip system can be a single chip or a chip module composed of multiple chips.
[0352] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
Claims
1. A data transmission method, characterized by, The method is applied to a first electronic device, and comprises: displaying a first interface; after entering a radio frequency field generated by a second electronic device, receiving a first command sent by the second electronic device through near field communication (NFC), the first command being used to indicate that the device type of the second electronic device is a first type; in response to the first command, sending a second command to the second electronic device through NFC, the second command comprising a communication address of the first electronic device, the communication address of the first electronic device being used to establish a communication connection with the second electronic device; establishing a first communication connection with the second electronic device; sending first sharing content indicated by the first interface to the second electronic device through the first communication connection.
2. The method of claim 1, wherein, After the first communication connection with the second electronic device is established, the method further comprises: receiving second sharing content sent by the second electronic device through the communication connection.
3. The method of claim 2, wherein, After the second sharing content sent by the second electronic device is received, the method further comprises: storing the second sharing content.
4. The method according to any one of claims 1 to 3, characterized in that, The first interface belongs to a first application; before the first sharing content indicated by the first interface is sent to the second electronic device through the first communication connection, the method further comprises: determining, based on the first application, that the first application corresponds to the first sharing content, the first sharing content comprising data of the first application, or the first sharing content comprising data of a second application.
5. The method of claim 4, wherein, Before the first sharing content indicated by the first interface is sent to the second electronic device through the first communication connection, the method further comprises: receiving a first input of setting the first application corresponding to the first sharing content.
6. The method according to any one of claims 1-3, characterized in that, The first interface belongs to a first application; before the first sharing content indicated by the first interface is sent to the second electronic device through the first communication connection, the method further comprises: determining, based on the first application, that the first application corresponds to the first sharing content and third sharing content; displaying first prompt information, the first prompt information being used to prompt a user to select sharing content; receiving a second input of selecting the first sharing content; The first sharing content indicated by the first interface is sent to the second electronic device through the first communication connection, specifically comprising: in response to the second input, the first sharing content is sent to the second electronic device through the first communication connection.
7. The method according to claim 1 or 2, characterized in that, Before the second command is sent to the second electronic device through NFC, the method further comprises: receiving a third input of sharing the first sharing content in the first interface.
8. The method of claim 7, wherein, After the third input of sharing the first sharing content in the first interface is received, the method further comprises: receiving a fourth input of selecting fourth sharing content in the first interface; The first sharing content indicated by the first interface is sent to the second electronic device through the first communication connection, specifically comprising: The first sharing content and the fourth sharing content indicated by the first interface are sent to the second electronic device through the first communication connection.
9. The method according to any one of claims 1-8, characterized in that, Before the first command sent by the second electronic device is received through the near field communication (NFC), the method further includes: A fifth input of starting an NFC sharing function by a user is received.
10. The method according to any one of claims 1-9, characterized in that, After the first sharing content is sent to the second electronic device through the first communication connection, the method further includes: A second interface is displayed. After entering a radio frequency field generated by the second electronic device, or detecting that the second electronic device enters a radio frequency field generated by the first electronic device, fifth sharing content is sent to the second electronic device, the fifth sharing content being the same as or different from the first sharing content.
11. The method according to any one of claims 1-10, characterized in that, The first electronic device includes a first NFC analog card; the method further includes: After entering a radio frequency field generated by a third electronic device, a third command sent by the third electronic device is received, the third command being used to indicate that the device type of the third electronic device is a second type; A card swiping business is performed with the third electronic device through the first NFC analog card.
12. The method according to any one of claims 1-11, characterized in that, The first communication connection includes one or more of a Wi-Fi connection, a Bluetooth connection, and an ultra-wideband (UWB) connection.
13. The method according to any one of claims 1-12, characterized in that, The first interface is a desktop, and the first sharing content includes first personal information of the first electronic device, the first personal information including a contact method and / or an electronic resume.
14. The method of any one of claims 1-12, wherein, The first interface is an interface of a gallery application, and the first sharing content is a first picture displayed in the first interface.
15. The method of any one of claims 1-14, wherein, The method further includes: A third interface is displayed, the third interface not having corresponding sharing content; After entering a radio frequency field generated by the second electronic device, a fifth command sent by the second electronic device is received through NFC, the fifth command being used to indicate that the device type of the second electronic device is the first type; In response to the fifth command, a sixth command is sent to the second electronic device through NFC, the sixth command including a communication address of the first electronic device; A second communication connection is established with the second electronic device; The sixth sharing content sent by the second electronic device is received through the second communication connection.
16. A data transmission method, characterized by, Applied to a second electronic device; the method includes: A first command is sent to a first electronic device through near field communication (NFC), the first command being used to indicate that the device type of the second electronic device is a first type; A second command sent by the first electronic device is received through NFC, the second command including a communication address of the first electronic device; Based on the communication address of the first electronic device, a first communication connection is established with the first electronic device; The first sharing content sent by the first electronic device is received through the first communication connection.
17. The method of claim 16, wherein, After the first sharing content sent by the first electronic device is received through the first communication connection, the method further includes: The first sharing content is stored.
18. The method according to claim 16 or 17, characterized in that, The method further includes: A sixth input of setting the second electronic device to a proximity coupled device (PCD) mode is received. sending a seventh command to the first electronic device through near field communication (NFC), the seventh command being used to indicate that the device type of the second electronic device is a second type; receiving an eighth command sent by the first electronic device through NFC, the eighth command including card information of a first NFC analog card; implementing a card swiping service of the first NFC analog card based on the card information of the first NFC analog card.
19. The method according to any one of claims 16-18, characterized by, Before the step of sending a first command to the first electronic device through near field communication (NFC), the method further includes: displaying a fourth interface; After the step of receiving a second command sent by the first electronic device through NFC, the method further includes: sending, to the first electronic device, second sharing content indicated by the fourth interface through the first communication connection.
20. The method of claim 19, wherein, The fourth interface belongs to a third application; and the step of sending, to the first electronic device, the second sharing content indicated by the fourth interface through the first communication connection specifically includes: determining, based on the third application, that the third application corresponds to the second sharing content, the second sharing content including data of the third application, or the second sharing content including data of a fourth application.
21. The method of claim 20, wherein, Before the step of sending, to the first electronic device, the second sharing content through the first communication connection, the method further includes: receiving a seventh input of setting the third application to correspond to the second sharing content.
22. The method of claim 16, wherein, The fourth interface belongs to a third application; and before the step of sending, to the first electronic device, the second sharing content indicated by the fourth interface through the first communication connection, the method further includes: determining, based on the third application, that the third application corresponds to the second sharing content and a seventh sharing content; displaying second prompt information, the second prompt information being used to prompt a user to select sharing content; receiving an eighth input of selecting the second sharing content; The step of sending, to the first electronic device, the second sharing content indicated by the fourth interface through the first communication connection specifically includes: in response to the eighth input, sending, to the first electronic device, the second sharing content through the first communication connection.
23. The method of claim 16, wherein, Before the step of sending, to the first electronic device, the second sharing content indicated by the fourth interface through the first communication connection, the method further includes: receiving a ninth input of sharing the second sharing content in the fourth interface.
24. The method of claim 23, wherein, After the step of receiving the ninth input of sharing the fourth sharing content in the fourth interface, the method further includes: receiving a tenth input of selecting an eighth sharing content in the fourth interface; The step of sending, to the first electronic device, the second sharing content indicated by the fourth interface through the first communication connection specifically includes: sending, to the second electronic device, the second sharing content and the eighth sharing content through the first communication connection.
25. The method of any one of claims 19-21, wherein, The fourth interface is a desktop, the second sharing content includes first personal information of the first electronic device, and the first personal information includes a contact way and / or an electronic resume.
26. The method of any one of claims 19-21, wherein, The fourth interface is an interface of a gallery application, and the second sharing content is a second picture displayed in the fourth interface.
27. The method of claim 16, wherein, Before the first command is sent to the first electronic device through the near field communication NFC, the method further includes: A fifth interface is displayed, and the fifth interface does not exist corresponding sharing content.
28. The method of any one of claims 16-27, wherein, Before the first command is sent to the first electronic device through the near field communication NFC, the method further includes: An eleventh input of starting the NFC sharing function by the user is received.
29. The method of any one of claims 16-28, wherein, After the first sharing content sent by the first electronic device is received through the first communication connection, the method further includes: A sixth interface is displayed. After entering the radio frequency field generated by the first electronic device, or detecting that the first electronic device enters the radio frequency field generated by the second electronic device, the ninth sharing content is sent to the first electronic device, and the ninth sharing content is the same as or different from the second sharing content.
30. The method of any one of claims 16-29, wherein, The second electronic device includes a second NFC analog card; the method further includes: After entering the radio frequency field generated by the third electronic device, a third command sent by the third electronic device is received through NFC, and the third command is used to indicate that the device type of the third electronic device is the second type; The second NFC analog card is used to perform a card swiping business with the third electronic device.
31. The method of any one of claims 16-30, wherein, The first communication connection includes one or more of a Wi-Fi connection, a Bluetooth connection, and an ultra-wideband UWB connection.
32. A communication system, characterized by Comprise: A first electronic device and a second electronic device; wherein The first electronic device is configured to perform the method in any one of claims 1-15. The second electronic device is configured to perform the method in any one of claims 16-31.
33. An electronic device, comprising: Comprise: One or more processors, one or more memories, and a transceiver, wherein the transceiver, the one or more memories, and the one or more processors are coupled, and the one or more memories are configured to store a computer program, and when the one or more processors execute the computer program, the data transmission method in any one of claims 1-15 is performed.
34. An electronic device, comprising: Comprise: One or more processors, one or more memories, and a transceiver, wherein the transceiver, the one or more memories, and the one or more processors are coupled, and the one or more memories are configured to store a computer program, and when the one or more processors execute the computer program, the data transmission method in any one of claims 16-31 is performed.
35. A computer readable storage medium, characterized in that, A computer program is stored, and when the computer program is executed by a processor, the data transmission method in any one of claims 1-15 is implemented.
36. A computer-readable storage medium, characterized in that, A computer program is stored, and when the computer program is executed by a processor, the data transmission method in any one of claims 16-31 is implemented.
37. A computer program product, characterised in that, A computer program is included, and when the computer program is executed by a processor, the data transmission method in any one of claims 1-15 is performed.
38. A computer program product, characterised in that, A computer program comprising instructions which, when executed by a processor, perform the data transmission method of any of claims 16-31.
39. A chip system, characterized by A computer program product comprising a computer readable medium bearing computer program code embodied therein for use with a computer processor, the computer program code comprising instructions for performing the data transmission method of any of claims 1-15.
40. A chip system, characterized by A computer program product comprising a computer readable medium bearing computer program code embodied therein for use with a computer processor, the computer program code comprising instructions for performing the data transmission method of any of claims 16-31.
Citation Information
Patent Citations
A file transfer method and electronic device
CN111492678B
Data transmission method and device, storage medium and electronic equipment
CN112291757A
Content continuing method and system and electronic equipment
CN112291764A
Content continuing method and system and electronic equipment
CN112351412A
File transmission method and electronic device
CN113472861B