An information processing method and related apparatuses and devices
By automatically acquiring and storing the identifier of the first electronic device through a third electronic device, the problem of the complexity of manually configuring Bluetooth identifiers by users is solved, and simple connection and information sharing between devices are realized.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HUAWEI TECH CO LTD
- Filing Date
- 2020-12-23
- Publication Date
- 2026-07-03
AI Technical Summary
In the existing technology, devices without NFC tags require users to manually configure Bluetooth tags, which makes the configuration process complicated and difficult for non-professionals to achieve the "one-touch transfer" function.
The third electronic device automatically acquires and stores the identifier of the first electronic device. The second electronic device can acquire the identifier by approaching or touching the third electronic device, thus realizing automatic connection and information sharing with the first electronic device.
It simplifies the device identification configuration process, improves user ease of operation and experience, and enables rapid connection and information sharing between devices.
Smart Images

Figure CN114666769B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to an information processing method and related apparatus and equipment. Background Technology
[0002] "One-touch transfer" technology refers to the quick pairing and wireless connection between two devices through a simple "tap" operation, enabling efficient information exchange and other functions. The pairing is primarily achieved by relying on the Bluetooth identifier stored in the device's NFC tag.
[0003] The "OneHop" feature is commonly found between devices that have already been configured with NFC tags during manufacturing. For devices without NFC tags, users need to manually configure the NFC tag to enable the "OneHop" function. However, the current process of manually configuring NFC tags is quite complex (e.g., obtaining the device's Bluetooth identifier; converting the Bluetooth identifier into a QR code; and using a specialized programming application to program the Bluetooth identifier onto a blank NFC tag), making it difficult for non-professionals to handle. Therefore, simplifying NFC tag configuration and enabling widespread implementation of "OneHop" technology between devices is a pressing technical challenge. Summary of the Invention
[0004] This application provides an information processing method, electronic device, and system. A third electronic device can automatically write a first identifier to a first electronic device. Based on the first identifier stored in the third electronic device, a connection can be easily and quickly established between the second and first electronic devices to achieve information sharing. This method simplifies the process of configuring the first identifier on the third electronic device, making subsequent connection establishment and information sharing based on the first identifier easier and faster.
[0005] In a first aspect, embodiments of this application provide an information processing method, which is applied to a system including a first electronic device (computer), a second electronic device (mobile phone), and a third electronic device (mouse). The method includes:
[0006] The first electronic device establishes a first connection with the third electronic device; the third electronic device obtains a first identifier of the first electronic device through the first connection; the second electronic device approaches or touches the third electronic device; the second electronic device obtains the first identifier from the third electronic device; the second electronic device uses the first identifier to establish a second connection with the first electronic device; the first electronic device and the second electronic device share information through the second connection.
[0007] By implementing the method provided in the first aspect, the third electronic device can automatically acquire the first identifier of the first electronic device. When the user brings the second electronic device close to or touches the third electronic device, the second electronic device can acquire the first identifier, thereby establishing a second connection with the first electronic device. This simplifies user operation and improves the user experience.
[0008] It should be understood that the first connection can be a wired connection or a wireless connection. For example, a connection between a first electronic device and a third electronic device can be established via a data cable, or a connection between a first electronic device and a third electronic device can be established via Bluetooth.
[0009] In conjunction with the first aspect, the first identifier includes the Bluetooth address of the first electronic device.
[0010] In conjunction with the first aspect, after the third electronic device obtains the first identifier of the first electronic device, the third electronic device stores the first identifier.
[0011] In conjunction with the first aspect, in some embodiments, before the second electronic device approaches or touches the third electronic device, the second electronic device receives a first operation from the user, the first operation being used to select first data to be shared; the first electronic device and the second electronic device share information through a second connection, specifically: the second electronic device sends the first data to the first electronic device.
[0012] In some embodiments, after the second electronic device approaches or touches the third electronic device, and before the first electronic device and the second electronic device share information through the second connection, the second electronic device receives a first operation from the user, which is used to select first data to be shared; the second electronic device approaches or touches the third electronic device; the first electronic device and the second electronic device share information through the second connection, specifically: the second electronic device sends the first data to the first electronic device.
[0013] In some embodiments, after the second electronic device approaches or touches the third electronic device, and before the first and second electronic devices share information through the second connection, the second electronic device receives a second operation from the user, which is used to share first data with the second electronic device; the first and second electronic devices share information through the second connection, specifically: the second electronic device sends the first data to the first electronic device.
[0014] The first data includes one or more of the following: the file selected by the user, the content copied by the second electronic device, and the first user interface displayed by the second electronic device.
[0015] In some embodiments, the first data is a file selected by the user. Before the second electronic device receives the user's first operation, the second electronic device displays a second user interface, which includes a first file option corresponding to the first file. The second electronic device receives the user's first operation, specifically: the second electronic device receives the user's first operation on the first file option. The file selected by the user is the first file corresponding to the first file option. The second electronic device sends the first data to the first electronic device, specifically: the second electronic device sends the first file to the first electronic device.
[0016] In some embodiments, after the second electronic device sends the first data to the first electronic device, the method further includes: the first electronic device receiving the first file; and the first electronic device opening the first file using an application corresponding to the first file.
[0017] In some embodiments, the first data is the content copied by the second electronic device. Before the second electronic device receives the second operation from the user, the second electronic device receives the fourth operation performed by the user on the selected content. The content copied by the second electronic device includes the selected content.
[0018] In some embodiments, after the second electronic device sends the first data to the first electronic device, the method further includes: the first electronic device receiving content copied by the second electronic device; the first electronic device pasting the content copied by the second electronic device into the currently displayed user interface; or, when the first electronic device detects the fifth operation, pasting the content copied by the second electronic device into the currently displayed user interface of the first electronic device.
[0019] In conjunction with the first aspect, in some embodiments, the second connection is a Bluetooth connection or a WLAN connection.
[0020] When the second connection is a WLAN connection, the second electronic device uses the first identifier to establish a second connection with the first electronic device, specifically including: the second electronic device using the first identifier to establish a Bluetooth connection with the first electronic device; based on the Bluetooth connection, the second electronic device sends connection information for establishing a WLAN connection to the first electronic device, the connection information including at least one of a WLAN name and a WLAN password; the first electronic device receives the connection information and establishes a WLAN connection with the second electronic device.
[0021] In conjunction with the first aspect, the system also includes a fourth electronic device. The third electronic device obtains a first identifier and first indication information through a first connection. The first indication information includes one or more of the device identifier, Bluetooth name, and first preset characters of the first electronic device. Before the second electronic device obtains the first identifier from the third electronic device, the system further includes: the fourth electronic device establishing a third connection with the third electronic device; and the third electronic device obtaining a second identifier and second indication information of the fourth electronic device based on the third connection. The second identifier includes the Bluetooth address of the fourth electronic device, and the second indication information includes one or more of the device identifier, Bluetooth name, and second preset characters of the fourth electronic device.
[0022] In some embodiments, after the third electronic device obtains the first identifier of the first electronic device, the method further includes: the third electronic device storing the correspondence between the first identifier and the first indication information; after the third electronic device obtains the second identifier of the fourth electronic device, the method further includes: the third electronic device storing the correspondence between the second identifier and the second indication information.
[0023] In some embodiments, when the first electronic device determines that the focus of the third electronic device is on the first electronic device, the first electronic device sends a first indication message to the third electronic device; or, when the first electronic device determines that the focus of the third electronic device is not on the first electronic device, the first electronic device sends a second indication message to the third electronic device.
[0024] In some embodiments, the first electronic device determines that the focus of the third electronic device is not on the first electronic device, specifically including: when the first electronic device detects that the focus of the third electronic device is not on the display screen of the first electronic device and the duration is longer than a preset threshold, the first electronic device determines that the focus of the third electronic device is not on the first electronic device.
[0025] Secondly, embodiments of this application provide an information processing method applied to a third electronic device. The method includes: establishing a first connection with a first electronic device; obtaining a first identifier of the first electronic device through the first connection; approaching or touching a second electronic device; and sending the first identifier to the second electronic device, wherein the first identifier is used to enable the first electronic device to establish a second connection with the second electronic device and share information.
[0026] In conjunction with the first aspect, the first identifier includes the Bluetooth address of the first electronic device.
[0027] In conjunction with the first aspect, after obtaining the first identifier of the first electronic device, the method further includes: storing the first identifier.
[0028] In conjunction with the first aspect, the acquisition of a first identifier and first indication information through the first connection, wherein the first indication information includes one or more of the device identifier, Bluetooth name, and first preset characters of the first electronic device, includes: before transmitting the first identifier to the second electronic device by approaching or touching the second electronic device, and further includes: establishing a third connection with the fourth electronic device; and acquiring a second identifier and second indication information of the fourth electronic device through the third connection, wherein the second identifier includes the Bluetooth address of the fourth electronic device, and the second indication information includes one or more of the device identifier, Bluetooth name, and second preset characters of the fourth electronic device.
[0029] In some embodiments, after obtaining the first identifier of the first electronic device, the method further includes: storing the correspondence between the first identifier and the first indication information; after obtaining the second identifier of the fourth electronic device, the method further includes: storing the correspondence between the second identifier and the second indication information.
[0030] In some embodiments, before approaching or touching the second electronic device, a first instruction message sent by the first electronic device is received; a first identifier is sent to the second electronic device, specifically: a first identifier corresponding to the first instruction message is sent to the second electronic device.
[0031] Thirdly, embodiments of this application provide an information processing system, which includes a first electronic device, a second electronic device, and a third electronic device, the third electronic device being used to perform the method as described in the second aspect.
[0032] Fourthly, embodiments of this application provide an information processing apparatus, which includes: one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions that, when executed by the information processing apparatus, cause the information processing apparatus to perform the method described in the second aspect.
[0033] Fifthly, this application provides a chip for use in an electronic device, the chip including one or more processors, the processors being configured to invoke computer instructions to cause the electronic device to perform the methods described in the second aspect and any possible implementation thereof.
[0034] In a sixth aspect, this application provides a computer program product containing instructions that, when the computer program product is run on an electronic device, cause the electronic device to perform the method described in the second aspect and any possible implementation thereof.
[0035] In a seventh aspect, this application provides a computer-readable storage medium including instructions that, when executed on an electronic device, cause the electronic device to perform the method described in the second aspect and any possible implementation thereof.
[0036] The technical solution provided in this application embodiment allows the third electronic device to automatically acquire and store the first identifier of the first electronic device, solving the problem of difficulty in manually configuring and writing identifiers to electronic devices in the prior art. Secondly, the second electronic device can obtain the first identifier simply by touching or approaching the third electronic device, thereby automatically identifying, pairing, and establishing a connection with the first electronic device without human intervention. This simplifies user operation and improves the user experience. Attached Figure Description
[0037] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0038] Figure 1A This is a schematic diagram of an NFC communication system structure provided in an embodiment of this application;
[0039] Figure 1B This is a schematic diagram of a process for establishing a Bluetooth connection provided in an embodiment of this application;
[0040] Figure 2 This is an architecture diagram of a system provided in an embodiment of this application;
[0041] Figure 3 This is a schematic diagram of the structure of a third electronic device 300 provided in an embodiment of this application;
[0042] Figure 4 This is a schematic diagram of the structure of an electronic device 500 provided in an embodiment of this application;
[0043] Figure 5 This is a schematic diagram of the software structure of an electronic device 500 provided in an embodiment of this application;
[0044] Figure 6 This is a flowchart of an information processing method provided in an embodiment of this application;
[0045] Figures 7A-7C This is a flowchart illustrating some shared information provided in the embodiments of this application;
[0046] Figure 8 This is a schematic diagram of a user interface for establishing a second connection provided in an embodiment of this application;
[0047] Figure 9 This is a schematic diagram of a first user interface provided in an embodiment of this application;
[0048] Figures 10A-10D These are some user interface diagrams of embodiments of this application;
[0049] Figure 11 This is a schematic diagram of a second user interface provided in an embodiment of this application;
[0050] Figures 12A-12C These are some more user interface diagrams provided in the embodiments of this application;
[0051] Figure 13 This is a flowchart of yet another information processing method provided in the embodiments of this application;
[0052] Figure 14 This is a schematic diagram illustrating a specific implementation of an information processing method provided in an embodiment of this application. Detailed Implementation
[0053] The terminology used in the following embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. As used in the specification and appended claims of this application, the singular expressions “a,” “an,” “the,” “the,” “the,” and “this” are intended to include the plural expressions as well, unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used in this application refers to and includes any or all possible combinations of one or more of the listed items.
[0054] First, the technical terms and concepts involved in the embodiments of this application will be introduced.
[0055] (1) Near Field Communication
[0056] Near Field Communication (NFC) evolved from contactless radio frequency identification (RFID) and interconnection technologies. It combines inductive card readers, inductive cards, and point-to-point functionality on a single chip, enabling identification and data exchange with compatible devices over short distances.
[0057] NFC's short-range interaction greatly simplifies the entire authentication and identification process, making inter-electronic device access more direct, secure, and transparent. Through NFC, multiple devices such as computers, digital cameras, mobile phones, and PDAs can easily and quickly connect wirelessly, enabling data exchange and services. For example, with an NFC chip embedded in a mobile phone, it can perform electronic payments and read information from other NFC devices and tags.
[0058] NFC-enabled devices can exchange data in either active or passive communication mode. The following describes an NFC communication system architecture provided by an embodiment of this application.
[0059] Please see Figure 1A An NFC communication system can include an initiating device and a target device. For example... Figure 1A As shown, the initiating device generates a radio frequency (RF) field to initiate communication conforming to the corresponding protocol specifications. Active communication by the target device means that both the initiating and target devices generate magnetic fields to transmit data. Passive communication, on the other hand, means that the target device transmits data using a load modulation mechanism, requiring only the initiating device to generate the RF field. In passive mode, the NFC initiating device provides the RF field throughout the communication process and sends the requested data at a pre-agreed transmission speed. The target device is located within this RF field. After receiving the requested data, the target device uses the RF field generated by the initiating device to return the corresponding response data at the same transmission speed. In passive communication mode, the target device can utilize this function to reduce power consumption and extend device life. The initiating device typically includes a processing unit, an RF module, a control unit, and an antenna. The initiating device can be a reader, a mobile phone, etc. The target device can be a chip and antenna with certain computing and storage capabilities. The target device can be an NFC tag, a mobile phone, etc. The initiating and target devices use wireless transmission; both devices must be close to each other to function properly. The two parties primarily use inductive coupling to transmit RF signals.
[0060] (2) Bluetooth
[0061] Bluetooth is a wireless technology that enables short-range communication between devices.
[0062] Please see Figure 1B This is a schematic diagram illustrating a process for establishing a Bluetooth connection, provided in an embodiment of this application. Figure 1B As shown, before the slave device establishes a connection with the master device, the slave device needs to broadcast first. That is, the slave device turns on its radio frequency module and continuously sends broadcast signals to the outside world, where t is the broadcast interval. The master device is in scanning mode. At this time, the master device opens its radio frequency scanning window. When the broadcast radio frequency channel and the master device's scanning radio frequency channel are on the same channel, the master device scans the broadcast signal sent by the slave device. The master device sends a connection request to the slave device. After receiving the connection request, the slave device responds to the master device. After the master device receives the response information from the slave device for the connection request, it indicates that the Bluetooth connection has been successfully established.
[0063] (3) Bluetooth connection based on NFC
[0064] NFC-based Bluetooth technology refers to obtaining a Bluetooth identifier for establishing a Bluetooth connection through NFC communication, enabling quick pairing and connection establishment. For example, if electronic device A and electronic device B are both Bluetooth devices with NFC functionality, electronic device A can approach electronic device B and obtain its Bluetooth identifier via NFC communication, thus completing Bluetooth pairing and establishing a Bluetooth connection.
[0065] This application provides an information processing method. After a terminal device (such as a computer or television) and an accessory with NFC functionality (such as a mouse or remote control) are paired, the accessory records information such as the Bluetooth identifier of the terminal device on its NFC tag. The electronic device can obtain the Bluetooth identifier and other information of the terminal device by approaching or touching the accessory, and then establish a connection with the terminal device, thereby realizing functions such as one-touch transfer, multi-screen collaboration, and data sharing.
[0066] Below, we will first introduce a system architecture diagram provided in an embodiment of this application.
[0067] Please see Figure 2 This is a schematic diagram of the architecture of an information processing system provided in an embodiment of this application. Figure 2 As shown, the information processing system may include a first electronic device 100, a second electronic device 200, and a third electronic device 300. Wherein:
[0068] The first electronic device 100 and the second electronic device 200 can establish a connection through the third electronic device 300, thereby realizing functions such as multi-screen collaboration and one-touch file transfer. The third electronic device 300 serves as an accessory to the first electronic device 100, just as a mouse is an accessory to a computer, and a remote control is an accessory to a television.
[0069] Specifically: First, the first electronic device 100 and the third electronic device 300 establish a connection, which can be a wireless connection (such as a Bluetooth connection) or a wired connection (such as via a data cable). Based on this connection, the third electronic device 300 obtains a first identifier of the first electronic device 100, the first identifier including the Bluetooth address of the first electronic device 100, and stores the obtained first identifier in its own NFC tag. Then, the second electronic device 200 obtains the first identifier of the first electronic device 100 by approaching or touching the third electronic device 300.
[0070] After obtaining the first identifier of the first electronic device 100, the second electronic device 200 can send a connection request to the first electronic device 100 to establish a connection. In some embodiments, the first electronic device 100 and the second electronic device 200 establish a Bluetooth connection. In some embodiments, to improve the quality of information transmission, the first electronic device 100 and the second electronic device 200 can also establish a WLAN connection, WiFi connection, etc., through the Bluetooth connection.
[0071] After the first electronic device 100 and the second electronic device 200 establish a connection, they can realize functions such as multi-screen collaboration, one-touch transfer, and information sharing.
[0072] In some embodiments, the second electronic device 200 can send user-selected files (such as images, text, audio, video, etc.) to the first electronic device 100 based on this connection. Thus, from the user's perspective, simply bringing the second electronic device 200 close to or touching the third electronic device 300 will successfully transfer the file.
[0073] In some embodiments, the second electronic device 200 can send its user interface to the first electronic device 100 via the connection, and the first electronic device 100 displays the user interface within its collaborative window. The user can then manipulate applications on the user interface within the collaborative window. The first electronic device 100 sends manipulation information to the second electronic device 200 via the connection, causing the second electronic device 200 to respond to the manipulation information and perform the corresponding operation. That is, the user can collaboratively operate the second electronic device 200 from the first electronic device 100. For example, if the user performs an operation on the collaborative window displayed on the first electronic device 100—opening the "Gallery" and deleting "Image A" from the "Gallery"—the same operation will be performed on the second electronic device 200: opening the "Gallery" and deleting "Image A" from the "Gallery".
[0074] In some embodiments, the second electronic device 200 can send content copied by the second electronic device to the first electronic device via the connection. After receiving the content copied by the second electronic device, the first electronic device 100 can paste the copied content onto the currently displayed user interface. Thus, from the user's perspective, simply bringing the second electronic device 200 close to or touching the third electronic device 300 will cause the first electronic device 100 to automatically paste the copied content onto the second electronic device.
[0075] In some embodiments, the third electronic device 300 may store the identifiers of multiple devices in its NFC tag. For example... Figure 2 As shown, the system architecture diagram may also include a fourth electronic device 400, which serves as an extension screen of the first electronic device 100.
[0076] In some embodiments, the third electronic device 300 can obtain a first identifier and first indication information from the first electronic device 100, and then store the correspondence between the first identifier and the first indication information in its NFC tag. The first indication information may be the Bluetooth name of the first electronic device 100, the device identifier of the first electronic device 100, or a first preset character, such as "0". The third electronic device 300 can obtain a second identifier and second indication information from the fourth electronic device 400, and then store the correspondence between the second identifier and the second indication information in its NFC tag. The second identifier includes the Bluetooth address of the fourth electronic device 400, and the second indication information may be the Bluetooth name of the fourth electronic device 400, the device identifier of the fourth electronic device 400, or a second preset character, such as "1".
[0077] In this embodiment, after the third electronic device 300 and the first electronic device 100 are paired, the first electronic device 100 can periodically detect the focus position of the third electronic device 300. When the focus of the third electronic device 300 is detected on the display screen of the first electronic device, the first electronic device 100 sends a first indication message to the third electronic device 300. The third electronic device 300 receives the first indication message and, based on the stored correspondence between the first indication message and the first identifier, responds to the first indication message and transmits the first identifier during NFC communication. When the focus of the third electronic device 300 is detected not on the display screen of the first electronic device 100, that is, when the focus of the third electronic device 300 is located on the display screen of the fourth electronic device 400, the first electronic device 100 sends a second indication message to the third electronic device 300. The third electronic device 300 receives the second indication message and, based on the stored correspondence between the second indication message and the second identifier, responds to the second indication message and transmits the second identifier during NFC communication. For example, if the first indication information is "0" and the second indication information is "1", when the third electronic device 300 receives "0", it transmits the first identifier during NFC communication; when the third electronic device 300 receives "1", it transmits the second identifier during NFC communication. The first indication information can also be the device identifier of the first electronic device 100, and the second indication information can be the device identifier of the fourth electronic device 400. When the third electronic device 300 receives the device identifier of the first electronic device 100, it can transmit the first identifier during NFC communication based on the stored correspondence between the device identifier of the first electronic device 100 and the first identifier; when the third electronic device 300 receives the device identifier of the fourth electronic device 400, it can transmit the second identifier during NFC communication based on the stored correspondence between the device identifier of the fourth electronic device 400 and the second identifier. For example, the first indication information can also be the Bluetooth name of the first electronic device 100, and the second indication information can also be the Bluetooth name of the fourth electronic device 400.
[0078] In some embodiments, when the first electronic device 100 detects that the focus of the third electronic device 300 is not on its display screen and the duration exceeds a preset threshold, the first electronic device 100 sends a second indication message to the third electronic device 400. The preset threshold is not a fixed value; for example, it may be 1 second, 3 seconds, etc.
[0079] In some embodiments, the fourth electronic device 400 may also periodically detect the focus position of the third electronic device 300. When the fourth electronic device 400 detects that the focus of the third electronic device 300 is on its display screen, the fourth electronic device 400 may send first information to the first electronic device 100 indicating that the focus of the third electronic device 300 is on the fourth electronic device 400. In response to the first information, the first electronic device 100 sends second indication information to the third electronic device 300. Alternatively, when the fourth electronic device 400 detects that the focus of the third electronic device 300 is on its display screen, the fourth electronic device 400 may directly send the second indication information to the third electronic device 300.
[0080] When the third electronic device 300 receives the first instruction information, the third electronic device 100 transmits the first identifier during NFC communication. When the third electronic device 300 receives the second instruction information, the third electronic device 300 transmits the second identifier during NFC communication.
[0081] For example, when the third electronic device 300 obtains the first identifier of the first electronic device 100, it may also store the first identifier. When the third electronic device 300 obtains the second identifier of the fourth electronic device 400, it may store the second identifier of the fourth electronic device 400.
[0082] When the second electronic device 200 approaches or touches the third electronic device 300, it can obtain the identifier of the electronic device via NFC communication and establish a connection with the electronic device corresponding to the obtained identifier. That is, if the second electronic device 200 obtains the first identifier, it establishes a connection with the first electronic device 100; if the second electronic device 200 obtains the second identifier, it establishes a connection with the fourth electronic device 400. It should be noted that if the second electronic device 200 and the first electronic device 100 have already established a connection before the second electronic device 200 obtains the first identifier, then the second electronic device 200 does not need to establish a connection with the first electronic device 100 again after obtaining the first identifier.
[0083] In some embodiments, the first electronic device 100 can connect to two or more electronic devices as an extended screen. When the third electronic device obtains the identifier of an electronic device, it can store the correspondence between the electronic device identifier and indication information in an NFC tag. The indication information can be the Bluetooth name of the electronic device, the device identifier of the electronic device, or preset characters, etc. The example of the first electronic device 100 connecting to two or more electronic devices as an extended screen is similar to the example described above of the first electronic device 100 connecting to a fourth electronic device 400 as an extended screen, and will not be repeated here.
[0084] It should be understood that the first electronic device 100 and the fourth electronic device 400 are electronic devices with Bluetooth functionality, such as laptops, tablets, and smart TVs; the second electronic device 200 is an electronic device with both Bluetooth and NFC functionality, such as mobile phones and smartwatches; and the third electronic device 300 is an electronic device with both NFC and Bluetooth functionality, such as mice, remote controls, styluses, keyboards, and gamepads. The electronic devices involved in this application may also have other communication functions such as WiFi, WiFi P2P, and WiFi LAN, which are not limited here.
[0085] It should be understood that Figure 2 The system architecture diagram shown is merely an exemplary architecture provided in this application embodiment, and the system architecture included in this application embodiment is not limited to... Figure 2 The equipment shown may also include more or fewer devices, and Figure 2 The implementation methods described herein are only some of the implementation methods of the embodiments of this application, and may include other implementations, which are not limited here.
[0086] Below, in conjunction with Figure 2 The system architecture diagram shown illustrates the third electronic device 300 provided in this application embodiment, which is a device with NFC and Bluetooth functions.
[0087] Please see Figure 3 This is a schematic diagram of the structure of a third electronic device 300 provided in an embodiment of this application. Figure 3 As shown, the device includes an NFC tag 30, a Bluetooth module 31, a power module 32, and a main control chip 33. Among them:
[0088] The third electronic device 300 can communicate with the network and other devices through the Bluetooth module 31, such as establishing a Bluetooth connection with other devices through the Bluetooth module 31. In this embodiment, the third electronic device 300 mainly establishes a connection with other devices through the Bluetooth module 31, such as a Bluetooth connection, so as to exchange information with other devices, such as obtaining information such as the Bluetooth address and device identifier of other devices.
[0089] The NFC tag 30 is an active NFC tag with erasable and rewritable capabilities, and may include an antenna 301 and a tag chip 302. The antenna 301 is responsible for verifying the data transmission process, while the tag chip 302 is responsible for storing recorded information, such as the acquired Bluetooth address and device identifier. In one implementation, the information stored in the NFC tag can be maintained by the Bluetooth module 31, meaning the Bluetooth module 31 can write the acquired information into the NFC tag. In another implementation, the information stored in the NFC tag can be maintained by the main control chip 33, meaning that after the Bluetooth module 31 acquires the information, it sends the information to the main control chip 33, which then writes the information into the NFC tag.
[0090] The main control chip 33 is the brain that controls the operation of the third electronic device 300. The role of the main control chip 33 varies depending on the specific function of the third electronic device 300. For example, if the third electronic device 300 is a Bluetooth mouse with NFC functionality, then the main control chip 33 is primarily used to process the mouse's position data.
[0091] The power supply module 32 is used to supply power to the various modules of the third electronic device 300.
[0092] It should be understood that Figure 2 The schematic diagram of the third electronic device 300 shown is merely an example of this application; the third electronic device 300 may have more than Figure 3 The number of more or fewer components shown. Figure 3 The various components shown 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.
[0093] The following is a schematic diagram of the structure of an electronic device 500 provided in an embodiment of this application. (In conjunction with...) Figure 2 The system architecture diagram shown indicates that the electronic device 500 can be... Figure 2 The first electronic device 100, the second electronic device 200, or the fourth electronic device 400 are shown in the architecture diagram.
[0094] Please see Figure 4 This is a schematic diagram of the structure of an electronic device 500 provided in an embodiment of this application. It should be understood that... Figure 4 The electronic device 500 shown is merely an example of this application; the electronic device 500 may include more than Figure 4 The more or fewer components shown can be combined into two or more components, or they can have different component configurations. Figure 4 The various components shown 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.
[0095] Electronic device 500 may include: processor 510, external memory interface 520, internal memory 521, universal serial bus (USB) interface 530, charging management module 540, power management module 541, battery 542, antenna 1, antenna 2, mobile communication module 550, wireless communication module 560, audio module 570, speaker 570A, receiver 570B, microphone 570C, headphone jack 570D, sensor module 580, button 590, motor 591, indicator 592, camera 593, display screen 594, and subscriber identification module (SIM) card interface 595, etc. The sensor module 580 may include a pressure sensor 580A, a gyroscope sensor 580B, a barometric pressure sensor 580C, a magnetic sensor 580D, an accelerometer sensor 580E, a distance sensor 580F, a proximity light sensor 580G, a fingerprint sensor 580H, a temperature sensor 580J, a touch sensor 580K, an ambient light sensor 580L, a bone conduction sensor 580M, etc.
[0096] Processor 510 may include one or more processing units, such as application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU). These different processing units may be independent devices or integrated into one or more processors.
[0097] The controller can be the nerve center and command center of the electronic device 500. The controller can generate operation control signals based on the instruction opcode and timing signals to control the fetching and execution of instructions.
[0098] The processor 510 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 510 is a cache memory. This memory can store instructions or data that the processor 510 has just used or that are used repeatedly. If the processor 510 needs to use the instruction or data again, it can directly retrieve it from the memory. This avoids repeated accesses, reduces the waiting time of the processor 510, and thus improves the efficiency of the system.
[0099] In some embodiments, the processor 510 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.
[0100] The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL).
[0101] The I2S interface can be used for audio communication. In some embodiments, the processor 510 may include multiple I2S buses. The processor 510 can be coupled to the audio module 570 via the I2S bus to realize communication between the processor 510 and the audio module 570.
[0102] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 570 and the wireless communication module 560 can be coupled via the PCM bus interface.
[0103] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 510 and the wireless communication module 560.
[0104] The MIPI interface can be used to connect the processor 550 to peripheral devices such as the display 594 and the camera 593. The MIPI interface includes the camera serial interface (CSI) and the display serial interface (DSI).
[0105] The GPIO interface is configurable via software. It can be configured as a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 550 to a camera 593, a display screen 594, a wireless communication module 560, an audio module 570, a sensor module 580, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0106] The USB 530 interface is a USB standard compliant interface, which can be a Mini USB interface, Micro USB interface, USB Type C interface, etc.
[0107] It is understood that the interface connection relationships between the modules illustrated in the embodiments of the present invention are merely illustrative and do not constitute a structural limitation on the electronic device 500. In other embodiments of this application, the electronic device 500 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.
[0108] The charging management module 540 is used to receive charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 540 can receive charging input from the wired charger via a USB interface 530.
[0109] The power management module 541 is used to connect the battery 542, the charging management module 540, and the processor 510. The power management module 541 receives input from the battery 542 and / or the charging management module 540 to power the processor 510, internal memory 521, external memory 520, display 594, camera 593, and wireless communication module 560, etc.
[0110] The wireless communication function of electronic device 500 can be implemented through antenna 1, antenna 2, mobile communication module 550, wireless communication module 560, modem processor, and baseband processor.
[0111] Antennas 1 and 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 500 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 a tuning switch.
[0112] The mobile communication module 550 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 500. The mobile communication module 550 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 550 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 550 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 550 may be housed in the processor 510. In some embodiments, at least some functional modules of the mobile communication module 550 and at least some modules of the processor 510 may be housed in the same device.
[0113] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 570A, receiver 570B, etc.) or displays images or videos through a display screen 594. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 510 and may be housed in the same device as the mobile communication module 550 or other functional modules.
[0114] The wireless communication module 560 can provide solutions for wireless communication applications on the electronic device 500, 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 560 can be one or more devices integrating at least one communication processing module. The wireless communication module 560 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 510. The wireless communication module 560 can also receive signals to be transmitted from processor 510, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.
[0115] In some embodiments, antenna 1 of electronic device 500 is coupled to mobile communication module 550, and antenna 2 is coupled to wireless communication module 560, enabling electronic device 500 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).
[0116] In the embodiments of this application, to achieve wireless communication, the electronic device involved adopts at least one wireless communication technology, such as the one described above. Figure 2 The third electronic device 300 can establish Bluetooth communication with the first electronic device 100, thereby writing information such as the Bluetooth identifier of the first electronic device 100 to the NFC tag of the third electronic device 300 through Bluetooth communication; the second electronic device 200 and the third electronic device 300 use NFC communication to transmit information such as the Bluetooth identifier; the first electronic device 100 and the second electronic device 200 use WLAN communication to realize information sharing, sharing, multi-screen collaboration, etc.
[0117] Electronic device 500 implements display functions through a GPU, a display screen 594, and an application processor. The GPU is a microprocessor for image processing, connecting the display screen 594 and the application processor. The GPU performs mathematical and geometric calculations and is used for graphics rendering. Processor 510 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0118] Display screen 594 is used to display images, videos, etc. Display screen 594 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 500 may include one or N displays 594, where N is a positive integer greater than 1.
[0119] In this embodiment of the application, a user interface such as a multi-screen collaborative window can be displayed on a screen.
[0120] Electronic device 500 can achieve shooting function through ISP, camera 593, video codec, GPU, display 594 and application processor.
[0121] The ISP (Image Signal Processor) is used to process data fed back from the camera 593. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, transforming it into an image visible to the naked eye. The ISP can also perform algorithmic optimization of image noise, brightness, and skin tone. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 593.
[0122] Camera 593 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the electronic device 500 may include one or N cameras 593, where N is a positive integer greater than 1.
[0123] Digital signal processors (DSPs) are used to process digital signals. Besides digital image signals, they can also process other digital signals. For example, when electronic device 500 is selecting a frequency, the DSP is used to perform Fourier transforms on the frequency energy.
[0124] Video codecs are used to compress or decompress digital video. Electronic device 500 can support one or more video codecs. Thus, electronic device 500 can play or record video in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0125] An NPU (Neural Processing Unit) is a computational processor for neural networks (NNs). By borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can rapidly process input information and continuously learn. NPUs can enable intelligent cognitive applications in electronic devices, such as image recognition, facial recognition, speech recognition, and text understanding.
[0126] The external storage interface 520 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 500. The external memory card communicates with the processor 510 through the external storage interface 520 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.
[0127] Internal memory 521 can be used to store computer executable program code, which includes instructions. Internal memory 521 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 electronic device 500 (such as audio data, phonebook, etc.). Furthermore, internal memory 521 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. Processor 510 executes various functional applications and data processing of electronic device 500 by running instructions stored in internal memory 521 and / or instructions stored in memory located in the processor.
[0128] Electronic device 500 can implement audio functions such as music playback and recording through audio module 570, speaker 570A, receiver 570B, microphone 570C, headphone jack 570D, and application processor.
[0129] The audio module 570 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 570 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 570 may be located in the processor 510, or some functional modules of the audio module 570 may be located in the processor 510.
[0130] The speaker 570A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. Electronic device 500 can listen to music or make hands-free calls through the speaker 570A.
[0131] The receiver 570B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. When the electronic device 500 answers a telephone call or voice message, the receiver 570B can be brought close to the ear to listen to the voice.
[0132] Microphone 570C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can speak by bringing their mouth close to microphone 570C, inputting the sound signal into microphone 570C. Electronic device 500 may have at least one microphone 570C. In some embodiments, electronic device 500 may have two microphones 570C, which, in addition to collecting sound signals, can also perform noise reduction. In other embodiments, electronic device 500 may have three, four, or more microphones 570C, which can collect sound signals, reduce noise, identify the sound source, and perform directional recording, etc.
[0133] The 570D headphone jack is used to connect wired headphones. The 570D headphone jack can be a USB 530 interface or a 3.5mm Open Mobile Terminal Platform (OMTP) standard interface, a CTIA (Cellular Telecommunications Industry Association of the USA) standard interface.
[0134] Pressure sensor 580A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 580A can be disposed on display screen 594. There are many types of pressure sensors 580A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may include at least two parallel plates with conductive material. When force is applied to pressure sensor 580A, the capacitance between the electrodes changes. Electronic device 500 determines the pressure intensity based on the change in capacitance. When a touch operation is applied to display screen 594, electronic device 500 detects the intensity of the touch operation based on pressure sensor 580A. Electronic device 500 can also calculate the touch position based on the detection signal from pressure sensor 580A. In some embodiments, touch operations applied to the same touch position but with different touch operation intensities can correspond to different operation commands. For example: when a touch operation with an intensity less than a first pressure threshold is applied to the SMS application icon, a command to view an SMS is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to the SMS application icon, a command to create a new SMS is executed.
[0135] The gyroscope sensor 580B can be used to determine the motion attitude of the electronic device 500. In some embodiments, the gyroscope sensor 580B can determine the angular velocity of the electronic device 500 about three axes (i.e., the x, y, and z axes). The gyroscope sensor 580B can be used for image stabilization. For example, when the shutter is pressed, the gyroscope sensor 580B detects the angle of the electronic device 500's shake, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to counteract the shake of the electronic device 500 by moving in the opposite direction, thus achieving image stabilization. The gyroscope sensor 580B can also be used in navigation and motion-sensing game scenarios.
[0136] The barometric pressure sensor 580C is used to measure air pressure. In some embodiments, the electronic device 500 calculates altitude using the air pressure value measured by the barometric pressure sensor 580C to assist in positioning and navigation.
[0137] The magnetic sensor 580D includes a Hall sensor. The electronic device 500 can use the magnetic sensor 580D to detect the opening and closing of the flip cover. In some embodiments, when the electronic device 500 is a flip phone, the electronic device 500 can detect the opening and closing of the flip cover using the magnetic sensor 580D. Then, based on the detected opening and closing state of the cover or the flip cover, features such as automatic flip unlocking can be set.
[0138] The 580E accelerometer sensor can detect the magnitude of acceleration of an electronic device 500 in various directions (typically three axes). When the electronic device 500 is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the posture of the electronic device, and can be applied to applications such as screen orientation switching and pedometers.
[0139] A distance sensor 580F is used to measure distance. Electronic device 500 can measure distance via infrared or laser. In some embodiments, during a shooting scene, electronic device 500 can utilize the distance sensor 580F to measure distance for rapid focusing.
[0140] The proximity sensor 580G may include, for example, a light-emitting diode (LED) and a light detector, such as a photodiode. The LED may be an infrared LED. The electronic device 500 emits infrared light outward through the LED. The electronic device 500 uses the photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that an object is near the electronic device 500. When insufficient reflected light is detected, the electronic device 500 can determine that no object is near the electronic device 500. The electronic device 500 can use the proximity sensor 580G to detect when a user holds the electronic device 500 close to their ear for a call, so as to automatically turn off the screen to save power. The proximity sensor 580G can also be used in holster mode and pocket mode for automatic unlocking and locking of the screen.
[0141] The ambient light sensor 580L is used to sense ambient light intensity. Electronic device 500 can adaptively adjust the brightness of its display screen 594 based on the sensed ambient light intensity. The ambient light sensor 580L can also be used to automatically adjust white balance when taking photos. The ambient light sensor 580L can also work in conjunction with the proximity sensor 580G to detect whether electronic device 500 is in a pocket, preventing accidental touches.
[0142] The fingerprint sensor 580H is used to collect fingerprints. The electronic device 500 can utilize the characteristics of the collected fingerprints to achieve fingerprint unlocking, accessing application locks, taking photos with fingerprints, answering calls with fingerprints, etc.
[0143] Temperature sensor 580J is used to detect temperature. In some embodiments, electronic device 500 uses the temperature detected by temperature sensor 580J to execute a temperature handling strategy. For example, when the temperature reported by temperature sensor 580J exceeds a threshold, electronic device 500 performs thermal protection by reducing the performance of a processor located near temperature sensor 580J to reduce power consumption. In other embodiments, when the temperature is below another threshold, electronic device 500 heats battery 542 to prevent abnormal shutdown of electronic device 500 due to low temperature. In still other embodiments, when the temperature is below yet another threshold, electronic device 500 boosts the output voltage of battery 542 to prevent abnormal shutdown due to low temperature.
[0144] Touch sensor 580K, also known as a "touch panel," can be located on display screen 594. The touch sensor 580K and display screen 594 together form a touchscreen, also known as a "touchscreen." Touch sensor 580K detects touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through display screen 594. In other embodiments, touch sensor 580K may also be located on the surface of electronic device 500, in a different position than display screen 594.
[0145] The bone conduction sensor 580M can acquire vibration signals. In some embodiments, the bone conduction sensor 580M can acquire vibration signals from the vibrating bone segments of the human vocal cords. The bone conduction sensor 580M can also contact the human pulse to receive blood pressure signals. In some embodiments, the bone conduction sensor 580M can also be incorporated into headphones to form bone conduction headphones. The audio module 570 can parse the voice signals from the vibrating bone segments of the vocal cords acquired by the bone conduction sensor 580M to realize voice functionality. The application processor can parse heart rate information from the blood pressure signals acquired by the bone conduction sensor 580M to realize heart rate detection functionality.
[0146] The SIM card interface 595 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 595 to make contact with and separate from the electronic device 500. The electronic device 500 can support one or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 595 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 595 simultaneously. The multiple cards can be of the same or different types. The SIM card interface 595 is also compatible with different types of SIM cards. The SIM card interface 595 is also compatible with external memory cards. The electronic device 500 interacts with the network through the SIM card to realize functions such as calls and data communication. In some embodiments, the electronic device 500 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 500 and cannot be separated from the electronic device 500.
[0147] The software system of the electronic device 500 is described below. This software system can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application embodiment uses the layered architecture Android system as an example to illustrate the software structure of the electronic device 500.
[0148] Figure 5 This is a schematic diagram of the software structure of an electronic device 500 provided in an embodiment of this application.
[0149] A layered architecture divides software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.
[0150] A layered architecture divides software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.
[0151] The application layer can include a series of application packages.
[0152] like Figure 5 As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and SMS.
[0153] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
[0154] like Figure 5 As shown, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
[0155] The window manager is used to manage windowed applications. It can retrieve screen size, determine the presence of a status bar, lock the screen, and capture screenshots, among other things.
[0156] Content providers store and retrieve data, making that data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.
[0157] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.
[0158] The phone manager is used to provide communication functions for electronic devices 500. For example, it manages call status (including connection and disconnection).
[0159] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.
[0160] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of completed downloads or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating electronic devices, and flashing indicator lights.
[0161] The Android Runtime consists of core libraries and a virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
[0162] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.
[0163] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
[0164] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.
[0165] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.
[0166] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.
[0167] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0168] A 2D graphics engine is a graphics engine for 2D drawing.
[0169] The kernel layer is the layer between hardware and software. The kernel layer contains at least the display driver, camera driver, audio driver, and sensor driver.
[0170] The embodiments involved in this application are described below with reference to the above system architecture diagram and the hardware and software structure diagrams of each electronic device.
[0171] Example 1:
[0172] Please see Figure 6 This is a flowchart of an information processing method provided in an embodiment of this application. The information processing method can be derived from the above... Figure 2 In the system architecture diagram described above, the first electronic device 100, the second electronic device 200, and the third electronic device 300 operate together. For example... Figure 6 As shown, the information processing method may include some or all of the following steps:
[0173] S102: The first electronic device and the third electronic device establish a first connection.
[0174] The first connection can be a wireless connection or a wired connection. For example, a wired connection can be established between the first electronic device and the second electronic device via a data cable, or a wireless connection can be established between the first electronic device and the second electronic device via Bluetooth.
[0175] S104: The third electronic device obtains the first identifier of the first electronic device through the first connection.
[0176] The first identifier includes the Bluetooth address of the first electronic device.
[0177] The third electronic device includes an NFC tag. This NFC tag may be rewritable, meaning the data on the NFC tag can be deleted and rewritten with new data. This NFC tag may be an active NFC tag.
[0178] Through a first connection, such as a Bluetooth connection, the first electronic device can send a first identifier of the first electronic device to a third electronic device, which can store the first identifier in an NFC tag.
[0179] Before writing data into the NFC tag, the third electronic device checks whether the NFC tag is empty. If the NFC tag is empty, the first identifier of the first electronic device is written into the NFC tag. If the NFC tag is not empty, the data in the NFC tag is erased first, and then the first identifier of the first electronic device is written into the NFC tag.
[0180] It should be understood that the third electronic device can obtain the first identifier from the first electronic device through other communication methods, which are not limited here.
[0181] S106: The second electronic device approaches or touches the third electronic device and obtains the first identifier from the third electronic device.
[0182] In some embodiments, the second electronic device has NFC functionality. A user can bring the NFC sensing area of the second electronic device close to the NFC tag of a third electronic device. In response to the proximity or touch operation of the second electronic device, the third electronic device sends a first identifier stored in the NFC tag to the second electronic device.
[0183] In some implementations, a user can bring the NFC sensing area of a second electronic device close to a third electronic device for a first duration (e.g., 2s, 3s, etc.), and the third electronic device, in response to the proximity operation of the second electronic device, sends a first identifier stored in the NFC tag to the second electronic device.
[0184] It should be understood that the second electronic device obtaining the first identifier from the NFC tag of the third electronic device may also include other user operations, which are not limited in this application.
[0185] It should be understood that the second electronic device can obtain the first identifier from the third electronic device through other communication methods, which are not limited here. The following steps will be explained using the example of the second electronic device touching the third electronic device to obtain the identifier of the electronic device.
[0186] S108: The second electronic device uses the first identifier to establish a second connection with the first electronic device.
[0187] The following describes two implementations of the second electronic device using the first identifier to establish a second connection with the first electronic device in step S108.
[0188] Implementation (1):
[0189] In some embodiments, the first electronic device and the second electronic device can establish a Bluetooth connection. The implementation of establishing a Bluetooth connection can be referred to the flowchart of establishing a Bluetooth connection described above (2), which specifically includes: before the first electronic device and the second electronic device establish a connection, the second electronic device first broadcasts, that is, the second electronic device turns on the radio frequency module and continuously sends broadcast signals to the outside world, where t is the broadcast interval time; the first electronic device is in scanning state, at this time, the first electronic device opens the radio frequency scanning window, and when the broadcast radio frequency channel and the scanning radio frequency channel of the first electronic device are in the same channel, the first electronic device scans the broadcast signal sent by the second electronic device; the first electronic device sends a connection request to the second electronic device, and the second electronic device responds to the first electronic device after receiving the connection request. After the first electronic device receives the response information of the second electronic device for the connection request, it indicates that the Bluetooth connection is successfully established.
[0190] Implementation (2):
[0191] In some embodiments, to improve the quality of information interaction between the first electronic device and the second electronic device, such as increasing the transmission rate and transmission capacity, the first electronic device and the second electronic device can also establish a WLAN connection, WiFi connection, WiFi P2P, WiFi LAN, etc., by implementing the Bluetooth connection established in (1). The following description takes establishing a WLAN connection through Bluetooth as an example. Please refer to steps S202-S204 below.
[0192] S202: Through Bluetooth connection, the second electronic device sends connection information for establishing a WLAN connection to the first electronic device, the connection information including at least one of the WLAN name and WLAN password.
[0193] S204: The first electronic device receives the connection information and establishes a WLAN connection with the second electronic device.
[0194] Establishing a WLAN connection between the first electronic device and the second electronic device enables them to be on the same local area network, providing conditions for high-speed information exchange between them.
[0195] S110: The first electronic device and the second electronic device share information through the second connection.
[0196] Below, we will introduce three ways in which the first electronic device and the second electronic device can share information through this second connection.
[0197] Achieve (a):
[0198] Please see Figure 7A This is a schematic diagram of a process for sharing information provided in an embodiment of this application. Before step S106 (the second electronic device approaches or touches the third electronic device), the process further includes:
[0199] S302: The second electronic device receives a first operation from the user, the first operation being used to select first data to be shared.
[0200] Furthermore, based on the second connection between the first electronic device and the second electronic device, the second electronic device sends first data to the first electronic device.
[0201] Achieve (b):
[0202] Please see Figure 7B This is another flowchart illustrating information sharing provided in this application embodiment. After step S108 (the second electronic device uses the first identifier to establish a second connection with the first electronic device), it further includes:
[0203] S304: The second electronic device receives a first operation from the user, the first operation being used to select first data to be shared.
[0204] S306: A second electronic device comes into contact with or touches a third electronic device.
[0205] It should be noted that before executing step S306, the second electronic device and the first electronic device have already established a second connection through step S108. In one scenario, the second connection established between the first and second electronic devices through step S108 is not broken. In this case, if the second electronic device touches or approaches the third electronic device, it does not need to re-establish a second connection with the first electronic device and can directly send the first data to the first electronic device. In another scenario, if the second connection established between the first and second electronic devices has been broken (e.g., if the first and second electronic devices do not share information within a set time, the second connection is automatically broken), then if the second electronic device approaches or touches the third electronic device, it obtains the first identifier (the first identifier includes the Bluetooth address of the first electronic device), and the second electronic device re-establishes a second connection with the first electronic device. The implementation method for the second electronic device to establish a second connection with the first electronic device can be found in the description of steps S106-S108 above, and will not be repeated here.
[0206] Furthermore, based on the second connection between the first electronic device and the second electronic device, the second electronic device sends first data to the first electronic device.
[0207] Implementation (c):
[0208] Please see Figure 7C This is a flowchart illustrating another method of sharing information provided in an embodiment of this application. Following step S108, the method further includes:
[0209] S308: The second electronic device receives a second operation from the user, the second operation being used to share the first data with the first electronic device.
[0210] In the first operation, based on the second connection between the first electronic device and the second electronic device, the second electronic device sends the first data to the first electronic device.
[0211] In implementations (a), (b), and (c) above, the first data can be one or more of the following: a file selected by the user, content copied by the second electronic device, or a first user interface displayed by the second electronic device. Therefore, the sending of the first data from the second electronic device to the first electronic device in the above implementations can include the following methods:
[0212] S1101: The second electronic device sends the target file selected by the user to the first electronic device;
[0213] Alternatively, S1102: The second electronic device sends the content copied by the second electronic device to the first electronic device;
[0214] Alternatively, S1103: The second electronic device sends the first user interface of the second electronic display to the first electronic device.
[0215] It should be understood that the sharing of information between the first electronic device and the second electronic device through the second connection is not limited to the three implementation methods mentioned above, and may also include other implementations, which are not limited here.
[0216] Below, based on the information processing method of steps S102-S110 above, several specific implementation methods will be introduced.
[0217] Implementation method (1):
[0218] Please see Figure 8 This is a schematic diagram of a user interface for establishing a second connection provided in an embodiment of this application. The second connection can be a Bluetooth connection, a WLAN connection, a WiFi connection, etc. Preferably, the first electronic device can be a computer, and the second electronic device can be a mobile phone. Figure 8 As shown, when the first electronic device and the second electronic device establish a second connection for the first time, the first electronic device displays window 801 on the display. Window 801 specifically includes: a display area 8010, an "Allow" control 8011, and a "Deny" control 8012. The display area 8010 is used to output first pairing information to the user, which prompts the user which electronic device the first electronic device will establish a connection with, such as... Figure 8 As shown, the pairing information is "whether to allow the second electronic device to connect to this computer (the first electronic device)". The second electronic device displays window 802 on the monitor, which specifically includes: a display area 8020, a "Cancel" control 8021, and a "Connect" control 8022. The display area 8020 is used to output the second pairing information to the user, which prompts the user which device the second electronic device will connect to, such as... Figure 8 As shown, the second pairing information is "After connecting, you can operate your phone on your computer and share data between devices."
[0219] When the first electronic device receives a user action applied to the "Allow" control 8011, and the second electronic device receives a user action applied to the "Connect" control 8022, the first electronic device and the second electronic device establish a connection for the first time. Otherwise, the first electronic device and the second electronic device fail to establish a second connection for the first time.
[0220] When the first electronic device and the second electronic device re-establish a second connection, the user only needs to touch the second electronic device to the third electronic device to obtain the first identifier, which includes the Bluetooth address of the first electronic device. The second electronic device can then re-establish a second connection with the first electronic device through the method described in steps S106-S108 above, without requiring the user to confirm on the first and second electronic devices separately.
[0221] In some embodiments, the first data is a first user interface displayed by a second electronic device.
[0222] Please see Figure 9 This is a schematic diagram of a first user interface provided in an embodiment of this application. Figure 9 As shown, the second electronic device displays an interface 92 (i.e., the first user interface), which includes a status bar 921, application icons 922, a fixed application bar 923, and a page control bar 924. Wherein:
[0223] The status bar 921 can include the carrier's name (such as China Mobile), time, Wi-Fi icon, signal strength, and current remaining battery power, etc.
[0224] Application icon 922 can be the icon of multiple applications (such as weather icon, stock icon, calculator icon, settings icon, email icon, Alipay icon, Facebook icon, browser icon, gallery icon, music icon, video icon, memo icon, etc.). The icon of any one application can be used in response to user operation, such as touch operation, so that the second electronic device launches the application corresponding to the icon.
[0225] The fixed application bar 923 may contain icons for multiple applications (e.g., dialer icon, message icon, contact icon, camera icon, etc.). These application icons remain displayed during page transitions on the home screen and do not change with page changes controlled by the page control bar 924. Any application icon contained in the fixed application bar 923 can also be used in response to user actions, such as touch operations, to launch the corresponding application on a second electronic device.
[0226] In some implementations, before step S106 (when the second electronic device approaches or touches the third electronic device), the second electronic device receives a first operation, which is used to select first data to be shared. When the second electronic device displays interface 92, it receives the user's first operation, such as the user clicking the "Multi-screen Collaboration" control. The second electronic device determines that the first data is the currently displayed interface 92 (first user interface) of the second electronic device. After step S106, based on the second connection between the first and second electronic devices, the second electronic device sends the first data to the first electronic device. The first electronic device can generate a collaboration window, such as... Figure 9 As shown, the first electronic device displays a collaboration window 901 and displays an interface 91 through the collaboration window. The content displayed on the interface 91 is the same as that of the first user interface.
[0227] In some implementations, after step S108 (the second electronic device uses the first identifier to establish a second connection with the first electronic device), the second electronic device receives the aforementioned first operation. Then, the second electronic device approaches or touches the third electronic device. Based on the connection between the first and second electronic devices, the second electronic device sends the first user interface to the first electronic device. Furthermore, based on the connection between the first and second electronic devices, the second electronic device sends the first user interface to the first electronic device. For example... Figure 9 As shown, the first electronic device displays a collaboration window 901 and displays an interface 91 through the collaboration window. The content displayed on the interface 91 is the same as that of the first user interface.
[0228] In this implementation, it should be noted that before the second electronic device approaches or touches the third electronic device, in one scenario, if the second connection established between the first and second electronic devices via step S108 is not broken, then the second electronic device does not need to re-establish the second connection with the first electronic device when it approaches or touches the third electronic device, and directly sends the first data (first user interface) to the first electronic device. In another scenario, if the second connection established between the first and second electronic devices has been broken (e.g., if the first and second electronic devices do not share information within a set time, the second connection is automatically broken), then the second electronic device approaches or touches the third electronic device, obtains the first identifier, which includes the Bluetooth address of the first electronic device, and re-establishes the second connection with the first electronic device, thereby sending the first data to the first electronic device. The implementation of establishing the second connection between the second and first electronic devices can be found in the description of steps S106-S108 above, and will not be repeated here.
[0229] In some implementations, after step S108 (the second electronic device establishes a second connection with the first electronic device using the first identifier), the second electronic device receives a first operation from the user, which may be: the user clicking the "Multi-screen Collaboration" control. The second electronic device determines that the first data is the currently displayed interface 92 (first user interface) of the second electronic device. Further, the second electronic device receives a second operation from the user, which may be an operation where the user initiates a sharing task on the second electronic device, such as clicking the "Share" control. Then, based on the connection between the first and second electronic devices, the second electronic device sends the first data to the first electronic device. Figure 9 As shown, the first electronic device displays a collaboration window 901 and displays an interface 91 through the collaboration window. The content displayed on the interface 91 is the same as that of the first user interface.
[0230] In some embodiments, a user can control a second electronic device from a first electronic device through a collaborative window. For example, answering audio or video calls on the second electronic device from the first electronic device, opening files on the second electronic device from the first electronic device, dragging files from the first electronic device to the second electronic device (or dragging files from the second electronic device to the first electronic device), running multiple applications on the second electronic device simultaneously on the first electronic device, and so on.
[0231] The following example, dragging a target file from the first electronic device to the second electronic device, illustrates how a user can control the second electronic device from the first electronic device in multi-screen collaboration mode.
[0232] In some embodiments, the first electronic device detects a target operation that shares a target file to a first application (e.g., a user drags the identifier of a target file stored in the first electronic device onto the icon of the first application in a collaboration window; or a user clicks the left mouse button and drags the identifier of the target file, ending the target operation when the user's finger leaves the left mouse button; or a user presses the touchscreen and drags the identifier of the target file, ending the target operation when the user's finger leaves the touchscreen. The target operation can also be other forms of user operation, which are not limited here), and in response to the target operation, sends the target file and the identifier of the first application to the second electronic device, so that the second electronic device can find the first application through the identifier of the first application and open the target file through the first application.
[0233] The target file can be in the form of text, images, audio, video, links, etc. The first application can include social applications (such as WeChat, QQ, Weibo, etc.), editing applications (such as WPS, Notes, etc.), audio and video applications (such as NetEase Cloud Music, QQ Music, etc.), etc.
[0234] In one possible implementation, please refer to Figure 10A These are some user interface diagrams provided in the embodiments of this application. For example... Figure 10A As shown, window 1001 displays the identifier of the target file "Image 1", and in collaboration window 1002, interface 20 is displayed. Interface 20 is the interface 30 currently displayed by the second electronic device. When the first electronic device detects a target operation acting on the identifier of "Image 1" (such as...), Figure 10AAs shown, the target operation drags the identifier of "Image 1" onto the identifier of "Memo" in the collaboration window 1002. The first electronic device transmits the identifiers of "Image 1" and "Memo" to the second electronic device through the established second connection. After receiving the identifiers of "Image 1" and "Memo", the second electronic device locates the application "Memo" through the identifier of "Memo", and then checks whether "Memo" can open "Image 1". Since "Memo" can open image files, "Image 1" is opened by "Memo" and displayed on the second electronic device, as shown. Figure 10B As shown, the second electronic device automatically creates a new note in the "Memo" and displays it on the screen, as shown in interface 31. Interface 31 includes: a return control 40, a previous operation control 41, a next operation control 42, a save control 43, a title area 44, a content display area 45, and an editing area 46 (including list controls, editing controls, image controls, voice controls, and handwriting controls, etc.). The second electronic device automatically inserts "Image 1" into the content display area 45. The user can continue to edit or save the note. For example, when the second electronic device detects that the user clicks the return control 40, it can display the previous user interface; when the second electronic device detects that the user clicks the save control 43, it can save the content of the current title area 44 and the content display area 45. The second electronic device sends interface 31 to the first electronic device, which updates interface 20 to interface 21, which includes the same content as interface 31.
[0235] In one possible implementation, such as Figure 10C As shown, the user can open the memo in the collaboration window 1002. As shown in interface 22, the memo contains multiple notes. The user drags the identifier of the file "Image 1" to the specified note (here, "Note 1xxxxx") through the target operation and releases the target operation. The first electronic device can send "Image 1", the memo identifier, and the identifier of the specified note to the second electronic device. The second electronic device finds the memo on the second electronic device through the memo identifier and the identifier of the specified note, opens the specified note in the memo, and inserts "Image 1" into the specified note, as shown. Figure 10D As shown in interface 31. The second electronic device sends interface 31 to the first electronic device, causing the interface displayed in the collaboration window 1002 to be updated from interface 22 to interface 23. The first electronic device opens "Image 1" in the specified note "Note 1xxxxx" in the memo through the collaboration window 1002.
[0236] It should be understood that in the multi-screen collaboration mode, the implementation of operating the application on the second electronic device on the first electronic device is not limited to the embodiments provided above, and may also include other implementations. For example, if the first application is "WeChat", in the collaboration window, the first electronic device obtains the user's operation on the "WeChat" icon, the first electronic device sends an operation instruction to the second electronic device to open WeChat, the second electronic device opens WeChat after receiving the instruction, and sends the opened WeChat interface to the first electronic device so that the first electronic device displays the opened WeChat interface in the collaboration window.
[0237] It should be understood that Figures 10A-10D The user interface diagram shown is merely an example of an embodiment of this application. The user interface may also include more or fewer controls, and this application does not impose any limitations.
[0238] Implementation Method (II):
[0239] In some implementations, the first data may be a file selected by the user.
[0240] Please see Figure 11 This is a schematic diagram of a second user interface provided in this application. Preferably, the first electronic device is a computer, the second electronic device is a mobile phone, and the third electronic device is a mouse with NFC and Bluetooth functions. Figure 11 As shown, the second electronic device displays an interface 32 (i.e., the second user interface), which includes multiple file options, such as file option 125 (first file option), and each file option corresponds to a file, such as image 124 (first file) corresponding to file option 125.
[0241] In some implementations, after step S108 (the second electronic device establishes a second connection with the first electronic device using the first identifier), the second electronic device receives a first operation applied to the first file option. This first operation is used to select the first data to be shared; for example, the first operation could be a user clicking the first file option. Figure 11 As shown, the first file option 125 is selected, and the first file corresponding to this first file option 125 (image 124) is the file selected by the user. Further, the second electronic device receives a second operation from the user, which is used to share the first data (in this case, the file selected by the user, or referred to as the first file (image 124)) with the first electronic device. For example, the second operation could be: the user clicks the "share" control on the second electronic device. Then, based on the connection between the first and second electronic devices, the second electronic device sends the file selected by the user to the first electronic device.
[0242] In some implementations, the second electronic device may receive the aforementioned first operation before step S106 (when the second electronic device approaches or touches the third electronic device), such as... Figure 11 As shown, the first file option 125 is selected, and the first file corresponding to the first file option 125 (image 124) is the file selected by the user. Furthermore, based on the second connection between the first electronic device and the second electronic device, the second electronic device sends the first user interface to the first electronic device.
[0243] In some implementations, after step S108, the second electronic device receives the first operation described above, and then the second electronic device approaches or touches the third electronic device. Based on the connection between the first electronic device and the second electronic device, the second electronic device sends the first data (first file) to the first electronic device.
[0244] In this implementation, it should be noted that before the second electronic device approaches or touches the third electronic device, in one scenario, if the second connection established between the first and second electronic devices via step S108 is not broken, then the second electronic device does not need to re-establish the second connection with the first electronic device when it approaches or touches the third electronic device, and directly sends the first data to the first electronic device (Figure 124). In another scenario, if the second connection established between the first and second electronic devices has been broken (e.g., if the first and second electronic devices do not share information within a set time, the second connection is automatically broken), then the second electronic device approaches or touches the third electronic device, obtains the first identifier, which includes the Bluetooth address of the first electronic device, and re-establishes the second connection with the first electronic device, thereby sending the first data to the first electronic device. The implementation of establishing the second connection between the second and first electronic devices can be found in the descriptions of steps S106-S108 above, and will not be repeated here.
[0245] After receiving the first data (first file), the first electronic device can perform corresponding operations on the first file. The following describes one implementation of the first electronic device performing operations on the first file.
[0246] In some implementations, a first electronic device receives a first file; then, the first electronic device uses an application corresponding to the first file to open the first file. Specifically, such as... Figure 11As shown, the second electronic device sends the first file (image 124) to the first electronic device through one of the above implementations, and the first electronic device receives the image 124 sent by the second electronic device. In one implementation, the first electronic device detects the file type of image 124, determines it to be "jpg", and then selects "Paint" to open image 124 and displays the opened image 124 on the screen. Figure 11 As shown, the first electronic device displays a window 1003 on the screen. Window 1003 includes an image display area 121, a left-slide control 122, and a right-slide control 123. The image display area 121 is used to display the opened image 124. In response to a user operation (such as a click) on the left-slide control 122, if the currently displayed image 124 is slid to the right, the first electronic device can display the image preceding image 124. In response to a user operation on the right-slide control 123, if the currently displayed image 124 is slid to the left, the first electronic device can display the image following image 124.
[0247] It should be understood that the operation performed by the first electronic device upon receiving the first file is not limited to the above-mentioned operation. Other implementation methods may also be included, such as the first electronic device storing the first file in a preset storage location. This is not limited here.
[0248] It should be understood that the first electronic device can also send the first file to the second electronic device. That is, the first electronic device receives the user's operation, obtains the first file, and then, based on the second connection between the first electronic device and the second electronic device, the first electronic device sends the first file to the second electronic device.
[0249] It should be understood that this is not limited to the above. Figure 11 The provided user interface diagram may include more or fewer controls, which is not limited here.
[0250] Implementation method (3):
[0251] The first data can also be content copied by a second electronic device.
[0252] Please see Figure 12A This is a schematic diagram of a user interface provided in an embodiment of this application. Figure 11 As shown, the second electronic device displays an interface 34, which includes a note "Note 2xxxxx" opened in the memo.
[0253] In some implementations, after step S108 (the second electronic device uses the first identifier to establish a second connection with the first electronic device), the second electronic device receives the user's selection of "AaAAAA", such as... Figure 12AAs shown, "AaAAAA" is the selected content. Then, the second electronic device receives a fourth operation from the user on the selected content. This fourth operation could be a copy operation of the selected content "AaAAAA". The content copied by the second electronic device is the selected content "AaAAAA". Further, the second electronic device receives a second operation from the user, which is used to share the first data (the content copied by the second electronic device) with the first electronic device. For example, the second operation could be the user clicking the "share" control on the second electronic device. Then, based on the connection between the first and second electronic devices, the second electronic device sends the file selected by the user to the first electronic device.
[0254] In some implementations, before step S106 (when the second electronic device approaches or touches the third electronic device), the second electronic device receives a first operation, which is used to select first data to be shared. For example... Figure 11 As shown, the first operation can be a user's selection of "AaAAAA", and the content copied by the second electronic device is the "AaAAAA" selected in the first operation. Furthermore, based on the second connection between the first and second electronic devices, the second electronic device sends the first user interface to the first electronic device.
[0255] In some implementations, after step S108, the second electronic device receives the first operation described above, and then the second electronic device approaches or touches the third electronic device. Based on the connection between the first electronic device and the second electronic device, the second electronic device sends the first data (the content copied by the second electronic device) to the first electronic device.
[0256] In this implementation, it should be noted that before the second electronic device approaches or touches the third electronic device, in one scenario, if the second connection established between the first and second electronic devices via step S108 is not broken, then the second electronic device does not need to re-establish the second connection with the first electronic device when it approaches or touches the third electronic device, and directly sends the first data (the content copied by the second electronic device) to the first electronic device. In another scenario, if the second connection established between the first and second electronic devices has been broken (e.g., if the first and second electronic devices do not share information within a set time, the second connection is automatically broken), then the second electronic device approaches or touches the third electronic device, obtains the first identifier, which includes the Bluetooth address of the first electronic device, and re-establishes the second connection with the first electronic device, thereby sending the first data to the first electronic device. The implementation of establishing the second connection between the second and first electronic devices can be found in the description of steps S106-S108 above, and will not be repeated here.
[0257] It should be understood that, not limited to the implementation methods mentioned above, the second electronic device can also send the content copied by the second electronic device to the first electronic device through other implementation methods, which are not limited here.
[0258] After receiving content copied from the second electronic device, in one implementation, the first electronic device pastes the copied content into the currently displayed user interface. Specifically, the first electronic device detects whether the current focus position is suitable for a paste operation. If so, it automatically pastes the copied content from the second electronic device into the focus position. Thus, from the user's perspective, after performing a copy operation on the first electronic device, simply moving the second electronic device close to the third electronic device will paste the copied content from the second electronic device into the focus position on the first electronic device. Figure 12B As shown, window 1005 displays the opened Word document. After the first electronic device obtains the copied content "AaAAAA", it automatically pastes "AaAAAA" at focus 51.
[0259] In another implementation, when the first electronic device detects the fifth operation, it pastes the content copied by the second electronic device into the user interface currently displayed on the first electronic device. Specifically: such as Figure 12C As shown, window 1005 displays an open Word document. The second electronic device receives the paste operation performed by the user at focus 51 and can paste the content copied by the second electronic device to the focus position on the first electronic device, such as... Figure 12C As shown, paste "AaAAAA" into the focus area of the Word document.
[0260] It should be understood that, through the second connection, the content copied by the first electronic device can also be sent to the second electronic device.
[0261] It should be understood that this is not limited to the above. Figures 12A-12C The provided user interface may include more or fewer controls, which is not limited here.
[0262] The aforementioned information processing method has the following advantages: First, the third electronic device can automatically acquire and store the identifier of the electronic device, solving the problem of difficulty in manually configuring and writing identifiers in existing technologies. Second, through the third electronic device acting as a bridge, the first and second electronic devices can automatically identify, pair, and establish connections without human intervention. Third, the third electronic device can use an active NFC tag with erasable and rewritable capabilities. Compared to existing technologies that fix the identifier of a specific device in the NFC tag, the erasable and rewritable NFC tag allows the third electronic device to pair and connect with multiple different devices, improving the reusability of the NFC tag and enabling the third electronic device to function as a bridge for establishing wireless connections between multiple devices. Fourth, compared to existing technologies that use passive NFC tags, the embodiments of this application use active NFC tags to store identifiers, which can improve the reliability of data during NFC transmission and make data transmission more accurate.
[0263] Example (II):
[0264] Please see Figure 13 This is a flowchart of another information processing method provided in an embodiment of this application. This information processing method can be derived from the above... Figure 2 The various electronic devices in the system architecture diagram shown work together. For example... Figure 13 As shown, the information processing method may include some or all of the following steps.
[0265] S402: The first electronic device and the third electronic device establish a first connection.
[0266] The specific implementation of step S402 can be found in step S102 above, and will not be repeated here.
[0267] S404: The fourth electronic device establishes a third connection with the third electronic device.
[0268] The implementation of step S404 is similar to that of step S202, and will not be described in detail here.
[0269] S406: The third electronic device obtains the first identifier and first instruction information of the first electronic device through the first connection. The first instruction information includes one or more of the device identifier, Bluetooth name, and first preset characters of the first electronic device.
[0270] S408: The third electronic device stores the correspondence between the first identifier and the first instruction information.
[0271] In some possible implementations, the third electronic device can obtain the correspondence between the first identifier and the first indication information, and store the correspondence between the first identifier and the first indication information in the NFC tag.
[0272] S410: The third electronic device obtains the second identifier and second indication information of the fourth electronic device through the third connection. The second identifier includes the Bluetooth address of the fourth electronic device, and the second indication information includes one or more of the device identifier, Bluetooth name, and second preset characters of the fourth electronic device.
[0273] S412: The third electronic device stores the correspondence between the second identifier and the second instruction information.
[0274] In some possible implementations, the third electronic device can obtain the correspondence between the second identifier and the second indication information, and store the correspondence between the second identifier and the second indication information in the NFC tag.
[0275] It should be understood that, in this information processing method, since the NFC tag is used to store the correspondence between the first identifier and the first indication information, and the correspondence between the second identifier and the second indication information, the storage space of the NFC tag can store at least two correspondences between identifiers and indication information.
[0276] In steps S408 and S412 above, the third electronic device stores the correspondence between the first identifier and the first indication information, and the correspondence between the second identifier and the second indication information, into the NFC tag. In one possible implementation: the first electronic device and the third electronic device establish a first connection; the third electronic device obtains the first identifier and the first indication information; then, if the third electronic device detects that the remaining storage space of the NFC tag is greater than a first threshold, and the correspondence between the first identifier and the first indication information does not exist in the NFC tag, the third electronic device stores the correspondence between the first identifier and the first indication information into the NFC tag. Otherwise, the third electronic device outputs an NFC tag writing failure message.
[0277] It should be understood that the first threshold is not a fixed value; the setting of the first threshold is related to the size of the space used to store the identification and indication information in actual applications.
[0278] It should be understood that writing the correspondence between the second identifier and the second indication information into the NFC tag is similar to writing the correspondence between the first identifier and the first indication information into the NFC tag, and will not be elaborated here.
[0279] It should be understood that the implementation of writing the first identifier and the first indication information, and the second identifier and the second indication information into the NFC tag is not limited to the above embodiments, and other implementation methods may also be included, which are not limited here.
[0280] S414: When the first electronic device determines that the focus of the third electronic device is on the first electronic device, the first electronic device sends a first instruction message to the third electronic device; or, when the first electronic device determines that the focus of the third electronic device is not on the first electronic device, the first electronic device sends a second instruction message to the third electronic device.
[0281] Please see Figure 14 This is a schematic diagram illustrating a specific implementation of an information processing method provided in an embodiment of this application. Preferably, the first electronic device is a computer, and the fourth electronic device is a tablet. Figure 14 As shown, in some implementations, the first electronic device and the fourth electronic device can be connected via third-party software (such as "XDisplay") and data cable 161. Furthermore, the user can switch to "Extended" mode on the first electronic device by pressing "Window+P", making the fourth electronic device an extended screen for the first electronic device. The method described in steps S402-S412 above can write the first identifier and first indication information, the second identifier and the second indication information into the NFC tag of the third electronic device. Preferably, the third electronic device is a mouse with NFC and Bluetooth functionality.
[0282] In one possible implementation, after the third electronic device is paired with the first electronic device, the first electronic device can periodically detect the focus position of the third electronic device. When the focus of the third electronic device is detected on the display screen of the first electronic device, the first electronic device sends a first indication message to the third electronic device. The third electronic device receives the first indication message and, based on the stored correspondence between the first indication message and the first identifier, responds to the first indication message and transmits the first identifier during NFC communication. When the focus of the third electronic device is detected not on the display screen of the first electronic device, that is, when the focus of the third electronic device is on the display screen of the fourth electronic device, the first electronic device sends a second indication message to the third electronic device. The third electronic device receives the second indication message and, based on the stored correspondence between the second indication message and the second identifier, responds to the second indication message and transmits the second identifier during NFC communication. For example, if the first indication message is "0" and the second indication message is "1", when the third electronic device receives "0", it transmits the first identifier during NFC communication; when the third electronic device receives "1", it transmits the second identifier during NFC communication. The first indication information can also be the device identifier of the first electronic device, and the second indication information can be the device identifier of the fourth electronic device. When the third electronic device receives the device identifier of the first electronic device, it can transmit the first identifier during NFC communication based on the stored correspondence between the device identifier of the first electronic device and the first identifier. When the third electronic device receives the device identifier of the fourth electronic device, it can transmit the second identifier during NFC communication based on the stored correspondence between the device identifier of the fourth electronic device and the second identifier. For example, the first indication information can also be the Bluetooth name of the first electronic device, and the second indication information can also be the Bluetooth name of the fourth electronic device.
[0283] In some embodiments, when the first electronic device detects that the focus of the third electronic device is not on its display screen and the duration exceeds a preset threshold, the first electronic device sends a second indication message to the third electronic device. The preset threshold is not a fixed value; for example, it may be 1 second, 3 seconds, etc.
[0284] In some embodiments, the fourth electronic device may also periodically detect the focus position of the third electronic device. When the fourth electronic device detects that the focus of the third electronic device is on its display screen, it may send a first message to the first electronic device indicating that the focus of the third electronic device is on its display screen. In response to this first message, the first electronic device sends a second instruction message to the third electronic device. Alternatively, when the fourth electronic device detects that the focus of the third electronic device is on its display screen, it may directly send the second instruction message to the third electronic device.
[0285] When the third electronic device receives the first instruction information, it transmits the first identifier during NFC communication. When the third electronic device receives the second instruction information, it transmits the second identifier during NFC communication.
[0286] For example, when the third electronic device 300 obtains the first identifier of the first electronic device 100, it may also store the first identifier. When the third electronic device 300 obtains the second identifier of the fourth electronic device 400, it may store the second identifier of the fourth electronic device 400.
[0287] When the second electronic device 200 approaches or touches the third electronic device 300, it can obtain the identifier of the electronic device via NFC communication and establish a connection with the electronic device corresponding to the obtained identifier. That is, if the second electronic device 200 obtains the first identifier, it establishes a connection with the first electronic device 100; if the second electronic device 200 obtains the second identifier, it establishes a connection with the fourth electronic device 400. It should be noted that if the second electronic device 200 and the first electronic device 100 have already established a connection before the second electronic device 200 obtains the first identifier, then the second electronic device 200 does not need to establish a connection with the first electronic device 100 again after obtaining the first identifier.
[0288] In some embodiments, the first electronic device 100 can connect to two or more electronic devices as an extended screen. When the third electronic device obtains the identifier of an electronic device, it can store the correspondence between the electronic device identifier and indication information in an NFC tag. The indication information can be the Bluetooth name of the electronic device, the device identifier of the electronic device, or preset characters, etc. The example of the first electronic device 100 connecting to two or more electronic devices as an extended screen is similar to the example described above of the first electronic device 100 connecting to a fourth electronic device 400 as an extended screen, and will not be repeated here.
[0289] The above information processing method allows the second electronic device to establish a connection with the electronic device whose focus is on the third electronic device. For example, when the focus of the third electronic device is on the first electronic device, the second electronic device establishes a connection with the first electronic device; when the focus of the third electronic device is on the fourth electronic device, the second electronic device establishes a connection with the fourth electronic device. Implementing this method allows users to easily switch between multiple electronic devices, enabling interconnection and interoperability between the second electronic device and multiple electronic devices, making information sharing and interaction more convenient.
[0290] 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.
[0291] As used in the above embodiments, depending on the context, the term "when..." can be interpreted as meaning "if...", "after...", "in response to determining...", or "in response to detecting...". Similarly, depending on the context, the phrase "when determining..." or "if (the stated condition or event) is interpreted as meaning "if determining...", "in response to determining...", "when (the stated condition or event) is detected", or "in response to detecting (the stated condition or event)".
[0292] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive), etc.
[0293] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.
Claims
1. An information processing method characterized by comprising: The method is applied to a system including a first electronic device, a second electronic device, and a third electronic device, and the method includes: The first electronic device establishes a first connection with the third electronic device; the first electronic device is a computer or a television; the third electronic device is an accessory device of the first electronic device, including a mouse or a remote control; the first connection is a paired connection. The third electronic device obtains the first identifier of the first electronic device through the first connection and stores the first identifier; The second electronic device approaches or touches the third electronic device; the second electronic device is a user terminal device; The second electronic device obtains the first identifier from the third electronic device via an NFC connection; the first identifier includes the Bluetooth address of the first electronic device; The second electronic device uses the first identifier to establish a second connection with the first electronic device; The first electronic device and the second electronic device share information through the second connection so that when the second electronic device approaches or touches the third electronic device, the content selected, copied, or displayed on the screen of the first electronic device is automatically displayed on the screen of the second electronic device.
2. The method of claim 1, wherein, Before the second electronic device approaches or touches the third electronic device, the method further includes: The second electronic device receives a first operation from the user, the first operation being used to select first data to be shared; The first electronic device and the second electronic device share information through the second connection, specifically: The second electronic device sends the first data to the first electronic device.
3. The method according to claim 1, characterized in that, After the second electronic device approaches or touches the third electronic device, and before the first electronic device and the second electronic device share information through the second connection, the method further includes: The second electronic device receives a first operation from the user, the first operation being used to select first data to be shared; The second electronic device approaches or touches the third electronic device again; The first electronic device and the second electronic device share information through the second connection, specifically: The second electronic device sends the first data to the first electronic device.
4. The method according to claim 1, characterized in that, After the second electronic device approaches or touches the third electronic device, and before the first electronic device and the second electronic device share information through the second connection, the method further includes: The second electronic device receives a second operation from the user, the second operation being used to share first data with the first electronic device; The first electronic device and the second electronic device share information through the second connection, specifically: The second electronic device sends the first data to the first electronic device.
5. The method according to any one of claims 2-3, characterized in that, The first data includes one or more of the following: a file selected by the user, content copied by the second electronic device, and a first user interface displayed by the second electronic device.
6. The method according to claim 5, characterized in that, The first data is the file selected by the user. Before the second electronic device receives the user's first operation, the method further includes: The second electronic device displays a second user interface, which includes a first file option corresponding to a first file; The second electronic device receives the user's first operation, specifically: the second electronic device receives the user's first operation on the first file option; The file selected by the user is the first file corresponding to the first file option; The second electronic device sends the first data to the first electronic device, specifically: the second electronic device sends the first file to the first electronic device.
7. The method according to claim 6, characterized in that, After the second electronic device sends the first data to the first electronic device, the method further includes: The first electronic device receives the first file; The first electronic device opens the first file using an application corresponding to the first file.
8. The method according to claim 4, characterized in that, The first data includes one or more of the following: a file selected by the user, content copied by the second electronic device, and a first user interface displayed by the second electronic device.
9. The method according to claim 8, characterized in that, The first data is the content copied by the second electronic device. Before the second electronic device receives the user's second operation, the method further includes: The second electronic device receives a fourth operation from the user on the selected content, the fourth operation being used to copy the selected content; The content copied by the second electronic device includes the selected content.
10. The method according to claim 9, characterized in that, After the second electronic device sends the first data to the first electronic device, the method further includes: The first electronic device receives the content copied by the second electronic device; The first electronic device pastes the content copied by the second electronic device into the currently displayed user interface; or, When the first electronic device detects the fifth operation, it pastes the content copied by the second electronic device into the user interface currently displayed on the first electronic device.
11. The method according to any one of claims 1-4, characterized in that, The second connection is either a Bluetooth connection or a WLAN connection.
12. The method according to claim 11, characterized in that, The second connection is a WLAN connection. The second electronic device uses the first identifier to establish a second connection with the first electronic device, specifically including: The second electronic device uses the first identifier to establish a Bluetooth connection with the first electronic device; Based on the Bluetooth connection, the second electronic device sends connection information to the first electronic device for establishing a WLAN connection, the connection information including at least one of a WLAN name and a WLAN password; The first electronic device receives the connection information and establishes a WLAN connection with the second electronic device.
13. The method according to claim 1, characterized in that, The system further includes a fourth electronic device, wherein the third electronic device obtains the first identifier and first indication information through the first connection, the first indication information including one or more of the device identifier, Bluetooth name, and first preset characters of the first electronic device, and the method includes: Before the second electronic device obtains the first identifier from the third electronic device, the method further includes: The fourth electronic device establishes a third connection with the third electronic device; The third electronic device obtains the second identifier and second indication information of the fourth electronic device based on the third connection. The second identifier includes the Bluetooth address of the fourth electronic device, and the second indication information includes one or more of the device identifier, Bluetooth name, and second preset characters of the fourth electronic device.
14. The method according to claim 13, characterized in that, After the third electronic device obtains the first identifier of the first electronic device, it further includes: The third electronic device stores the correspondence between the first identifier and the first indication information; After the third electronic device obtains the second identifier of the fourth electronic device, it further includes: The third electronic device stores the correspondence between the second identifier and the second indication information.
15. The method according to claim 14, characterized in that, The method further includes: When the first electronic device determines that the focus of the third electronic device is on the first electronic device, the first electronic device sends a first indication message to the third electronic device; or, When the first electronic device determines that the focus of the third electronic device is not on the first electronic device, the first electronic device sends a second instruction message to the third electronic device.
16. The method according to claim 15, characterized in that, The first electronic device determines that the focus of the third electronic device is not on the first electronic device, specifically including: When the first electronic device detects that the focus of the third electronic device is not on the display screen of the first electronic device and the duration exceeds a preset threshold, the first electronic device determines that the focus of the third electronic device is not on the first electronic device.
17. An information processing method, characterized in that, Applied to a third electronic device, the method includes: A first connection is established with a first electronic device; the first electronic device is a computer or a television, and the third electronic device is an accessory device of the first electronic device, including a mouse or a remote control; the first connection is a paired connection. The first identifier of the first electronic device is obtained through the first connection and stored. The first identifier includes the Bluetooth address of the first electronic device. Approaching or touching the second electronic device; the second electronic device is a user terminal device; The first identifier is sent to the second electronic device via NFC connection. The first identifier is used to enable the first electronic device to establish a second connection with the second electronic device and share information, so that when the second electronic device approaches or touches the third electronic device, the content selected, copied or displayed on the screen of the first electronic device is automatically displayed on the screen of the second electronic device.
18. The method according to claim 17, characterized in that, The method involves obtaining the first identifier and first indication information through the first connection, wherein the first indication information includes one or more of the device identifier, Bluetooth name, and first preset characters of the first electronic device. Before sending the first identifier to the second electronic device, the method further includes: Establish a third connection with a fourth electronic device; The second identifier and second indication information of the fourth electronic device are obtained through the third connection. The second identifier includes the Bluetooth address of the fourth electronic device, and the second indication information includes one or more of the device identifier, Bluetooth name, and second preset characters of the fourth electronic device.
19. The method according to claim 18, characterized in that, After obtaining the first identifier of the first electronic device, the method further includes: Store the correspondence between the first identifier and the first indication information; After obtaining the second identifier of the fourth electronic device, the method further includes: Store the correspondence between the second identifier and the second indication information.
20. The method according to claim 19, characterized in that, Before approaching or touching the second electronic device, the method further includes: Receive the first indication information sent by the first electronic device; Sending the first identifier to the second electronic device specifically involves sending the first identifier corresponding to the first indication information to the second electronic device.
21. An information processing system, characterized in that, The system includes a first electronic device, a second electronic device, and a third electronic device, the third electronic device being used to perform the method as described in any one of claims 17-20.
22. An information processing device, characterized in that, The information processing device includes: one or more processors; Memory; And one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs including instructions that, when executed by the information processing device, cause the information processing device to perform the method as described in any one of claims 17-20.
23. A chip applied to an electronic device, the chip comprising one or more processors, the processors being configured to invoke computer instructions to cause the electronic device to perform the method as described in any one of claims 17-20.
24. A computer program product, characterized in that, The computer program product includes instructions that, when executed on a computer, cause the computer to perform the information processing method as described in any one of claims 17-20.
25. A computer storage medium, characterized in that, Includes computer instructions that, when executed on an electronic device, cause the electronic device to perform the information processing method as described in any one of claims 17-20.