Data processing method, electronic device, chip system, and storage medium
Patent Information
- Application Number
- CN202411708370.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-26
- Publication Date
- 2026-09-25
- Estimated Expiration
- 2044-11-26
AI Technical Summary
[0003]但目前手机厂商基本都只能支持自研的配件设备的离线设备查找,对于第三方厂商(如贴牌合作厂商)生产的配件设备,可称之为三方配件设备、非自研配件设备等,则无法实现离线设备查找的能力,导致三方配件设备遗失时,难以找回
Smart Images

Figure CN120434629B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic equipment technology, and in particular to a data processing method, electronic equipment, chip system and storage medium. Background Technology
[0002] Many mobile phone accessories, such as Bluetooth headsets and smart bracelets, now support offline device location capabilities. Even if these accessories cannot connect to the network, they can still report their location information through nearby network-enabled relay devices (such as smartphones), helping users find lost accessories.
[0003] Currently, most mobile phone manufacturers only support offline device retrieval for their own self-developed accessories. For accessories manufactured by third-party companies (such as OEM partners), which can be called third-party accessories or non-self-developed accessories, offline device retrieval is not possible, making it difficult to recover lost third-party accessories. The reason for this is that for third-party accessories to achieve offline device retrieval, they need to implement corresponding password or key algorithms according to the mobile phone manufacturer's protocol requirements to ensure compliance. This not only involves a large amount of development and adaptation work, which is time-consuming and costly, but also some low-end accessories have insufficient computing power to meet the requirements for adapting password or key algorithms, making this method unsuitable. Summary of the Invention
[0004] This application provides a data processing method, electronic device, chip system, and storage medium. By leveraging the computing power of the electronic device, the key data required for offline device lookup can be generated in advance and transmitted to accessory devices. In this way, accessory devices do not need to adapt to the protocol requirements of electronic device manufacturers, and can also report location information based on the key data transmitted by the electronic device, thus realizing the ability to look up offline devices.
[0005] In a first aspect, embodiments of this application provide a data processing method applicable to electronic devices. The method includes: in response to an activation operation of a short-range communication application, displaying an application interface for the short-range communication application, the application interface including first identification information of a first accessory device; in response to a selection operation of the first identification information in the application interface, establishing a short-range communication connection with the first accessory device; based on the short-range communication connection, receiving device authentication data from the first accessory device, the device authentication data indicating that the first accessory device is authorized to join a device lookup network; authenticating the first accessory device based on the device authentication data; in response to successful authentication of the first accessory device, generating key data; and sending the key data to the first accessory device; the key data is used by the first accessory device to generate a first broadcast message when the communication connection with the electronic device is disconnected, the first broadcast message being used to report the location information of the first accessory device.
[0006] As can be seen, this technical solution leverages the computing power of electronic devices to pre-generate the key data required for offline device lookup and transmit it to accessory devices. This eliminates the need for accessory devices to adapt to the protocol requirements of electronic device manufacturers (e.g., they don't need to adapt to the required cryptography or key algorithms) and allows them to report location information based on the key data transmitted by the electronic devices, thus enabling offline device lookup. This approach allows third-party accessory devices to also achieve offline device lookup capabilities, saving third-party manufacturers development and adaptation work, and is also applicable to accessory devices with low computing power. Furthermore, the key data required for offline device lookup is only generated and transmitted to the accessory device after it has been authenticated, confirming that it is authorized to join the device lookup network. This ensures that only authorized accessory devices can perform offline device lookup capabilities, guaranteeing compliance.
[0007] In conjunction with the first aspect, in one possible approach, in response to the successful authentication of the first accessory device, the key data can be generated as follows: A prompt message is output to the display interface of the electronic device, indicating whether to confirm adding the first accessory device to the device search network; and the key data is generated in response to detecting a confirmation command input to the prompt message. Therefore, in this technical solution, the key data required for offline device search is generated and transmitted to the accessory device only after it is determined that the accessory device is authorized to join the device search network and has been permitted by the user to join. This ensures that only authorized and user-permitted accessory devices can achieve the ability to search for offline devices, guaranteeing compliance and meeting user needs.
[0008] In conjunction with the first aspect, one possible approach to generating key data is as follows: A base key is generated; based on this base key, key data including M derived keys, where M is a positive integer, is generated; wherein the base key is also used to bind with the second identification information of the first accessory device; a first broadcast message is generated based on the location information of the first accessory device and the derived key selected from the key data; the first broadcast message is used to instruct that the location information be associated with the second identification information of the first accessory device based on the derived key carried in the first broadcast message. It is evident that the derived key generated based on the base key can be used to identify the accessory device, which facilitates associating the reported location information with the correct accessory device identification information for storage, thereby ensuring the accuracy of the recorded accessory device location information. Furthermore, since the broadcast message is generated based on a derived key selected from the M derived keys, the key used to generate the broadcast message has variability, which can improve the security of location reporting.
[0009] In conjunction with the first aspect, in one possible approach, the method further includes: in response to an operation to open the device search application, displaying an application interface for the device search application, the application interface including third identification information of the first accessory device; in response to a selection operation on the third identification information, obtaining location information of the first accessory device from a server, the location information of the first accessory device being carried in a first broadcast message reported to the server via the device search network; and displaying the location information of the first accessory device in the application interface of the device search application. Therefore, when a accessory device needs to be found, the location information reported by the accessory device can be obtained from the server, and the obtained location information can be displayed in the application interface, allowing the user to intuitively see the location information of the accessory device, thereby helping the user find the accessory device.
[0010] In conjunction with the first aspect, in one possible approach, the electronic device is located within a device search network. The method further includes: receiving a second broadcast message broadcast by the second accessory device, which is generated based on the key data and location information of the second accessory device when the communication connection is lost; and reporting the second broadcast message to a server, wherein the second broadcast message is used to instruct the location information of the second accessory device to be associated with and stored based on the key associated with the second broadcast message. Therefore, the electronic device can receive broadcast messages from accessory devices and report these messages to the server, which is equivalent to reporting the location information of the accessory devices to the server. This facilitates offline locating of accessory devices, helping users find the accessory devices.
[0011] In conjunction with the first aspect, in one possible approach, the above method further includes: establishing an encrypted channel with the first accessory device based on a short-range communication connection; sending key data to the first accessory device can be achieved by encrypting the key data through this encrypted channel. It is evident that the key data required for offline device locating is transmitted to the accessory device in an encrypted manner. This ensures the security of key data transmission and prevents malicious tampering of the key data from causing the accessory device's location information to fail to be reported to the server, thus preventing the locating of the accessory device.
[0012] Secondly, embodiments of this application provide another data processing method that can be applied to a first accessory device. The method includes: in response to detecting a disconnection in the communication connection between the first accessory device and an electronic device, determining the current location information of the first accessory device; generating a first broadcast message based on key data and location information, wherein the key data is received from the electronic device based on the communication connection between the first accessory device and the electronic device, and the key data is generated by the electronic device; and broadcasting the first broadcast message, wherein the first broadcast message is used to report the location information of the first accessory device.
[0013] As can be seen, in this technical solution, the key data is generated by the electronic device and transmitted to the accessory device. That is, by leveraging the computing power of the electronic device, the key data required for offline device lookup is generated in advance and transmitted to the accessory device. In this way, the accessory device does not need to adapt to the protocol requirements of the electronic device manufacturer (such as adapting to the required cryptography or key algorithms), and can still report location information based on the key data transmitted by the electronic device, thus achieving the ability to look up offline devices. This method allows third-party accessory devices to also achieve offline device lookup capabilities, and not only saves third-party manufacturers development and adaptation work, but is also applicable to accessory devices with low computing power.
[0014] In conjunction with the second aspect, in one possible approach, the above method further includes: sending device authentication data to the electronic device based on the communication connection between the first accessory device and the electronic device. This device authentication data is used by the electronic device to authenticate the first accessory device. The key data is received from the electronic device only after the first accessory device has been successfully authenticated, based on the communication connection between the first accessory device and the electronic device. Therefore, the key data required for offline device lookup is only received from the electronic device after the accessory device has been successfully authenticated. This ensures that only authenticated accessory devices can perform offline device lookup, guaranteeing compliance.
[0015] In conjunction with the second aspect, in one possible approach, the key data includes M derived keys, where M is a positive integer, generated based on the base key. The method for generating the first broadcast message based on the key data and location information could be: selecting a derived key from the M derived keys included in the key data; generating the first broadcast message based on the selected derived key and location information; wherein the base key is used to bind to the second identification information of the first accessory device, and the first broadcast message is used to instruct the location information to be associated with the second identification information of the first accessory device based on the derived key associated with the first broadcast message. It is evident that the derived key generated based on the base key can be used to identify the accessory device, which facilitates associating the reported location information with the correct accessory device identification information, thereby ensuring the accuracy of the recorded accessory device location information. Furthermore, since the broadcast message is generated based on the derived key selected from the M derived keys, the key used to generate the broadcast message has variability, which can improve the security of location reporting.
[0016] In conjunction with the second aspect, in one possible approach, the above method further includes: receiving a write instruction input by a first object; writing device authentication data to a first accessory device based on the write instruction; wherein the first object and the second object have established an authorization relationship for the first accessory device, the first object being the production object of the first accessory device, and the second object being the production object of the electronic device. It is evident that the accessory device only writes device authentication data after obtaining authorization from the production object of the electronic device. This ensures that only authorized accessory devices can achieve offline device lookup capabilities, guaranteeing compliance.
[0017] Thirdly, this application provides an electronic device comprising: one or more processors, a memory, and a communication interface; the communication interface is used for information interaction with other devices; the memory is coupled to the one or more processors and is used to store computer program code, the computer program code including computer instructions; the one or more processors call the computer instructions to cause the electronic device to perform: in response to an activation operation for a short-range communication application, displaying an application interface for the short-range communication application, the application interface including first identification information of a first accessory device; in response to a selection operation for the first identification information, establishing a short-range communication connection with the first accessory device; based on the short-range communication connection, receiving device authentication data from the first accessory device; the device authentication data is used to indicate that the first accessory device is authorized to join a device lookup network; authenticating the first accessory device based on the device authentication data; in response to successful authentication of the first accessory device, generating key data; sending the key data to the first accessory device; the key data is used by the first accessory device to generate a first broadcast message when the communication connection with the electronic device is disconnected, the first broadcast message being used to report the location information of the first accessory device.
[0018] In conjunction with the third aspect, in one possible manner, the one or more processors invoke the computer instructions to cause the electronic device to perform: in response to the first accessory device being authenticated, outputting a prompt message on the display interface, the prompt message indicating whether to confirm adding the first accessory device to the device search network; and in response to detecting a confirmation instruction input in response to the prompt message, generating key data.
[0019] In conjunction with the third aspect, in one possible manner, the one or more processors invoke the computer instructions to cause the electronic device to perform: generating a base key; generating key data based on the base key; the key data including M derived keys, where M is a positive integer; wherein the base key is also used to bind with second identification information of the first accessory device; a first broadcast message is generated based on the location information of the first accessory device and the derived key selected from the key data; the first broadcast message is used to instruct the location information to be associated with the second identification information of the first accessory device based on the derived key associated with the first broadcast message.
[0020] In conjunction with the third aspect, in one possible manner, the one or more processors invoke the computer instructions to cause the electronic device to perform: in response to an opening operation for a find-a-device application, displaying an application interface for the find-a-device application, the application interface of the find-a-device application including third identification information of the first accessory device; in response to a selection operation for the third identification information, obtaining location information of the first accessory device from a server, the location information of the first accessory device being carried in a first broadcast message, the first broadcast message being reported to the server via a find-a-device network; and displaying the location information of the first accessory device in the application interface of the find-a-device application.
[0021] In conjunction with the third aspect, in one possible manner, the one or more processors invoke the computer instructions to cause the electronic device to perform: receiving a second broadcast message broadcast by the second accessory device, the second broadcast message being generated by the second accessory device based on the key data and location information corresponding to the second accessory device when the communication connection is disconnected; reporting the second broadcast message to the server; the second broadcast message being used to instruct, based on the key associated with the second broadcast message, to associate and store the location information of the second accessory device with the identification information of the second accessory device.
[0022] In conjunction with the third aspect, in one possible manner, the one or more processors invoke the computer instructions to cause the electronic device to perform: establishing an encrypted channel with the first accessory device based on a short-range communication connection; and transmitting key data to the first accessory device in encrypted form through the encrypted channel.
[0023] Fourthly, this application provides another electronic device, comprising: one or more processors, a memory, and a communication interface; the communication interface is used for information interaction with other devices, the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code including computer instructions, and the one or more processors call the computer instructions to cause the electronic device to perform: in response to detecting a disconnection of the communication connection between the first accessory device and the electronic device, determining the current location information of the first accessory device; generating a first broadcast message based on key data and location information, the key data being received from the electronic device based on the communication connection between the first accessory device and the electronic device, and the key data being generated by the electronic device; and broadcasting the first broadcast message, the first broadcast message being used to report the location information of the first accessory device.
[0024] In conjunction with the fourth aspect, in one possible manner, the one or more processors invoke the computer instructions to cause the electronic device to perform: sending device authentication data to the electronic device based on the communication connection between the first accessory device and the electronic device; the device authentication data is used by the electronic device to authenticate the first accessory device; wherein, key data is received from the electronic device based on the communication connection between the first accessory device and the electronic device, provided that the first accessory device has been successfully authenticated.
[0025] In conjunction with the fourth aspect, in one possible manner, the key data includes M derived keys, which are generated based on a base key, where M is a positive integer. The one or more processors invoke the computer instructions to cause the electronic device to perform: selecting a derived key from the M derived keys included in the key data; generating a first broadcast message based on the selected derived key and location information; wherein the base key is used to bind to the second identification information of the first accessory device, and the first broadcast message is used to indicate that the location information is associated with the second identification information of the first accessory device based on the derived key associated with the first broadcast message.
[0026] In conjunction with the fourth aspect, in one possible manner, the one or more processors invoke the computer instructions to cause the electronic device to perform: receiving a write instruction input by a first object; writing device authentication data to an accessory device based on the write instruction; wherein the first object and the second object have established an authorization relationship for the first accessory device, the first object being the production object of the first accessory device, and the second object being the production object of the electronic device.
[0027] Fifthly, this application provides a chip system including one or more processors, a memory, and an interface circuit. The memory, the interface circuit, and the one or more processors are interconnected via circuits. The memory stores program instructions. When the program instructions are executed by the processor, the chip system implements the method described in the first aspect above, or implements the method described in the second aspect above.
[0028] Sixthly, this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the method described in the first aspect above, or implements the method described in the second aspect above.
[0029] In a seventh 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 implement the method described in the first aspect above, or to implement the method described in the second aspect above. Attached Figure Description
[0030] Figure 1 This application provides an exemplary schematic diagram of the architecture of a data processing system.
[0031] Figures 2A-2D A schematic diagram of an interface for manually triggering a communication connection is provided as an example of an embodiment of this application;
[0032] Figure 3A This application provides an exemplary data interaction process between an electronic device and an accessory device.
[0033] Figure 3B This application provides an exemplary procedure for reporting the location of accessory equipment.
[0034] Figure 4A and Figure 4B This application provides an exemplary schematic diagram of a device search application as an embodiment of the present application.
[0035] Figure 5 A flowchart illustrating a data processing method provided as an example of an embodiment of this application;
[0036] Figure 6 This application provides an exemplary processing flow for obtaining authorization for accessory equipment.
[0037] Figure 7 A flowchart illustrating another data processing method provided as an example of an embodiment of this application;
[0038] Figure 8 A flowchart illustrating yet another data processing method provided as an example of an embodiment of this application;
[0039] Figure 9 A flowchart illustrating yet another data processing method provided as an example of an embodiment of this application;
[0040] Figure 10 This is a schematic diagram of the software structure of an electronic device provided as an example of an embodiment of this application;
[0041] Figure 11 This is a schematic diagram of the hardware structure of an electronic device provided as an example of an embodiment of this application. Detailed Implementation
[0042] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0043] The terms "first," "second," "third," etc., used in the embodiments of this application are to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, it may include a series of steps or units, or optionally, steps or units not listed, or other steps or units inherent to these processes, methods, products, or devices. The terms "one embodiment" or "some embodiments," etc., mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of the embodiments of this application, do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized.
[0044] In the embodiments of this application, the words "exemplary," "for example," or "for instance" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplary," "for example," or "for instance" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of the words "exemplary," "for example," or "for instance" is intended to present the relevant concepts in a specific manner.
[0045] Furthermore, "at least one" refers to one or more, while "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, and c can mean: a, or b, or c, or a and b, or a and c, or b and c, or a, b, and c, where a, b, and c can be single or multiple.
[0046] The term "accessory device" in the following embodiments of this application can refer to various additional smart devices used to enhance or extend the functionality of electronic devices (such as smartphones). Accessory devices may include wearable devices, which are portable smart devices that can be worn directly on the body or integrated into a user's clothing or accessories. The following are some common accessory devices:
[0047] Bluetooth headsets are headphones that connect to devices such as smartphones, tablets, and computers via Bluetooth technology to achieve wireless audio transmission. They can perform one or more of the following functions: wirelessly listening to music, answering phone calls, watching videos and other multimedia content; noise cancellation, touch control, voice assistant, etc.
[0048] A smartwatch is a portable smart device that integrates multiple functions. It is typically worn on the wrist, and some smartwatches may have their own operating system and internet connectivity. It can perform one or more of the following functions: displaying notifications (SMS, calls, emails, etc.), weather forecasts, schedule reminders, etc.; health monitoring (heart rate, steps, sleep quality, etc.); navigation, mobile payments, music control, etc.
[0049] A smart bracelet is a simplified version of a smartwatch, typically worn on the wrist, and focuses on health and activity monitoring. It can perform the following functions: record activity data (steps, running route, calories burned, etc.); monitor heart rate and sleep quality; and provide daily functions such as message notifications, alarms, and sedentary reminders.
[0050] Smart glasses are wearable devices that integrate augmented reality (AR) or virtual reality (VR) technologies, displaying virtual information through a head-mounted or glasses-like design. They can achieve one or more of the following functions: augmented reality display, overlaying virtual information onto a real-world scene; head tracking, adjusting the displayed content based on the user's gaze; voice assistant, photo or video capture, navigation, and other functions.
[0051] Third-party accessories and equipment: These usually refer to products that are not officially manufactured and are used to replace or supplement the original accessories of electronic devices. They can be accessories and equipment produced by third-party manufacturers (such as OEM partners) or non-self-developed accessories and equipment.
[0052] Bluetooth, also known as Classic Bluetooth, is a low-cost, low-power, short-range wireless communication technology that allows devices to transmit data and voice without cables. It enables wireless connection and communication via peer-to-peer networks, facilitating rapid pairing and data transfer between devices.
[0053] BLE (Bluetooth Low Energy): Bluetooth Low Energy is a short-range, low-cost, interoperable wireless technology designed to extend the classic Bluetooth technology.
[0054] ZigBee is a low-power, low-cost, low-data-rate, short-range wireless communication technology. Based on the IEEE 802.15.4 standard, ZigBee is a wireless communication protocol focused on low-data-rate, short-range wireless sensor network applications.
[0055] Key: A string or value used to encrypt and decrypt data.
[0056] A user interface (UI) is the medium through which an application or operating system interacts and exchanges information with the user. It converts the internal form of information into a form that the user can understand. The user interface is written in specific computer languages such as Java or Extensible Markup Language (XML). This source code is parsed and rendered on the electronic device, ultimately presenting content that the user can recognize. A common form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation displayed graphically. It can be visible interface elements displayed on the screen of an electronic device, such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets.
[0057] The data processing method provided in this application can be applied to scenarios involving offline locating accessory devices. This method leverages the computing power of electronic devices (such as smartphones) to pre-generate the key data required for offline device locating and transmit it to the accessory device. This eliminates the need for the accessory device to adapt to the protocol requirements of the electronic device manufacturer (e.g., it doesn't require adaptation to the required cryptography or key algorithms) and allows it to report location information based on the key data transmitted by the electronic device, thus achieving offline device locating capabilities. Using the data processing method provided in this application enables third-party accessory devices to achieve offline device locating capabilities, saving third-party manufacturers development and adaptation work, and is also applicable to accessory devices with low computing power.
[0058] First, the system architecture involved in this application will be described.
[0059] The data processing method provided in this application embodiment can be applied to... Figure 1 The data processing system shown. Figure 1 The data processing system shown may include, but is not limited to, a first electronic device 101, one or more first accessory devices 102, a server 103, and a device lookup network 10. The device lookup network 10 may include one or more second electronic devices 104 and one or more second accessory devices 105. The first electronic device 101 and the second electronic device 104 may be devices with network connectivity, capable of establishing a communication connection with the server 103 via the network. The first accessory devices 102 and the second accessory devices 105 may be wearable devices with short-range communication capabilities. For example, the first accessory devices 102 and the second accessory devices 105 may communicate via Bluetooth. In one possible embodiment, one or more of the first electronic device 101, the first accessory devices 102, and the server 103 may also be included in the device lookup network.
[0060] Figure 1 The number and form of the devices are for illustrative purposes only and do not constitute a limitation on the embodiments of this application. For example, Figure 1 The first electronic device 101 and the second electronic device 104 are exemplarily smartphones. In one possible embodiment, the first electronic device 101 and the second electronic device 104 could also be tablet computers, PDAs, laptops, or other devices capable of connecting to accessory devices, but are not limited thereto. For example, Figure 1The second accessory device 105 is exemplified as a Bluetooth headset or a smart bracelet. In one possible embodiment, the second accessory device 105, like the first accessory device 102, can also be other wearable devices such as smart glasses, smartwatches, or head-mounted displays, but is not limited to these. The server 103 can provide offline device lookup services for electronic devices and accessory devices. In one possible embodiment, the server 103 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, and middleware services.
[0061] In one possible implementation, the device lookup network 10 is a lookup network for a second object (such as mobile phone manufacturer X). The first electronic device 101 and the second electronic device 104 are both manufactured by the second object, meaning they are devices produced by the same manufacturer. The first accessory device 102 is manufactured by a first object, which is different from the second object; that is, the first accessory device 102 and the first electronic device 101 are devices produced by different manufacturers. For example, the first accessory device 102 could be a third-party accessory device. The second accessory device 105 in the device lookup network 10 can be an accessory device produced by the second object, or it can be an accessory device not produced by the second object; for example, the second accessory device 105 could be a third-party accessory device. If the second accessory device 105 is not an accessory device produced by the second object, then the second accessory device 105 joins (or accesses) the device lookup network 10 after obtaining authorization from the second object, and the authorized second accessory device is configured with device authentication data issued by the second object.
[0062] In another possible implementation, the production object of the first accessory device 102 can also be the same as that of the first electronic device 101, that is, the first electronic device 101 and the first accessory device 102 are devices produced by the same manufacturer.
[0063] The following is combined Figure 1 The data processing system shown here, taking a smartphone as the first electronic device 101 and Bluetooth communication as the distance communication capability of the first accessory device 102, exemplifies the application scenarios of the embodiments of this application and the data processing method provided by the embodiments of this application.
[0064] like Figure 2AAs shown, the first electronic device 101 can display a main screen interface, which includes multiple application icons, such as a live streaming application icon, a gallery application icon, a weather application icon, a stock application icon, a calculator application icon, a settings application icon 21, an email application icon, a Facebook application icon, a browser application icon, a music application icon, a video application icon, and an app store icon. Below each application icon is a page indicator to show the positional relationship between the currently displayed page and other pages. The first electronic device 101 can detect a user's selection operation 22 (e.g., a click operation) on the settings application icon 21, and in response to the selection operation 22, the first electronic device 101 can display... Figure 2B The user interface for the settings application is shown.
[0065] like Figure 2B As shown, the user interface of the settings application includes multiple interface objects, such as: a search box, a "WLAN (Wireless Local Area Network)" option, a "Bluetooth" option 23, and a "Mobile Network" option. The first electronic device 101 can detect a user's selection operation 24 (e.g., a click operation) on the "Bluetooth" option 23, and in response to the selection operation 24, the first electronic device 101 can display... Figure 2C The Bluetooth application interface is shown below. Figure 2C As shown, the Bluetooth application interface includes multiple interface objects, such as "Bluetooth switch 25" and "Device name Y1 of the first electronic device 101". When "Bluetooth switch 25" is in the off state, the first electronic device 101 can detect the user's trigger operation 26 (e.g., click operation) on "Bluetooth switch 25". In response to the trigger operation 26, the first electronic device 101 can turn "Bluetooth switch 25" to the on state and start Bluetooth to search for nearby devices that can be paired via Bluetooth. Based on the search results, it can... Figure 2C The Bluetooth application interface shown has been updated to look like this. Figure 2D The Bluetooth application interface shown.
[0066] like Figure 2D As shown, the updated Bluetooth application interface displays name options for nearby devices that can be paired via Bluetooth, such as: "Phone 1", "Phone 2", "Accessory 1", and "Accessory 2". When the accessory device corresponding to the name "Accessory 1" is an accessory device (i.e., the first accessory device 102) that needs to establish a Bluetooth connection with the first electronic device 101, the first electronic device 101 can detect the user's selection operation 28 (e.g., a click operation) on the name option 27 for "Accessory 1". In response to the selection operation 28, the first electronic device 101 can establish a Bluetooth communication connection with the first accessory device 102 (i.e., the accessory device corresponding to the name "Accessory 1"). Figure 3AAs shown, the first electronic device 101 can receive device authentication data from the first accessory device 102 based on the established Bluetooth communication connection. This device authentication data indicates that the first accessory device 102 is authorized to join the second object's device search network 10. The first electronic device 101 can authenticate the first accessory device 102 based on this device authentication data. If the first accessory device 102 is successfully authenticated, it can be confirmed that the first accessory device 102 is authorized to join the second object's device search network 10, that is, it can be confirmed that the method provided in this application embodiment can be used to allow the first accessory device 102 to report its location information based on the device search network 10 to achieve the ability to find offline devices. At this time, the first electronic device 101 can generate the key data required for offline device search and send the key data to the first accessory device 102. Correspondingly, the first accessory device 102 receives the key data from the first electronic device 101 and stores the key data.
[0067] If the Bluetooth communication connection between the first accessory device 102 and the first electronic device 101 is lost, such as Figure 3B As shown, the first accessory device 102 can determine its current location information and generate a first broadcast message based on the key data and the location information; the first accessory device 102 broadcasts the first broadcast message. Upon receiving the first broadcast message, the second electronic device 104 in the device search network 10 can report the first broadcast message to the server 103. The server 103 records the location information reported by the first accessory device 102 based on the first broadcast message. In one possible implementation, if the second accessory device 105 in the device search network 10 also has network connectivity, then the second accessory device 105 can also receive the first broadcast message broadcast by the first accessory device 102 and report the first broadcast message to the server 103.
[0068] As can be seen, in this embodiment, the key required for offline device lookup is generated by the electronic device (e.g., a smartphone). This ensures better compliance with the protocol implementation of the electronic device manufacturer (e.g., a mobile phone manufacturer), which does not impose a heavy burden on accessory manufacturers and also lowers the hardware requirements for accessory devices.
[0069] In situations such as when the first accessory device 102 is lost, and the user of the first electronic device 101 and the first accessory device 102 needs to locate the first accessory device 102, the first electronic device 101 can respond to the user's activation of the device search application by displaying... Figure 4A The application interface (also known as the user interface) for the device search application is shown below. Figure 4AAs shown, the first application interface displays device name options for location lookup, such as "Y1", "Accessory 1", and "Accessory 2". When the accessory device corresponding to the name "Accessory 1" is the accessory device whose location needs to be found (i.e., the first accessory device 102), the first electronic device 101 can detect the user's selection operation 42 (e.g., click operation) on the "Accessory 1" name option 41. In response to the selection operation 42, the first electronic device 101 can obtain the location information of the first accessory device 102 from the server 103. Based on the obtained location information of the first accessory device 102, the first electronic device 101 can... Figure 4A The application interface shown has been updated to look like this. Figure 4B The application interface shown is as follows. Figure 4B As shown, the updated application interface may include the location information of the first accessory device 102 displayed in text form, for example, Figure 4B The location of the first accessory device 102, as shown in section 43, may also include the location information of the first accessory device 102 displayed in graphical form, for example... Figure 4B The location icon shown in Figure 44 is located on the electronic map. The location information of the first accessory device 102 displayed in the application interface of the device search application can help the user successfully locate the location of the first accessory device 102, thereby helping the user find the first accessory device 102.
[0070] In one possible implementation, the first electronic device 101 may also display, upon detecting a user's trigger action on the Bluetooth application icon, such as... Figure 2C The Bluetooth application interface is shown below. For example, if a long press on the Bluetooth application icon in the drop-down menu is detected, the interface will display something like this. Figure 2C The Bluetooth application interface shown is as follows. The first electronic device 101 can also, upon detecting a user's voice command to turn on Bluetooth, activate Bluetooth, search for nearby devices that can be paired via Bluetooth, and directly display the results as shown in the image. Figure 2D The Bluetooth application interface is shown. The voice command, for example, is "Turn on Bluetooth".
[0071] In one possible implementation, the first electronic device 101 may display [the icon] upon detecting a user's trigger action on the device search application icon. Figure 4A The application interface for the device search application is shown. The first electronic device 101 may display the device search application icon in the user interface of the settings application. The first electronic device 101 may also display an icon such as... when a user inputs a voice command to instruct on finding a device is detected. Figure 4AThe application interface for finding devices shown can be accessed via voice commands, or the location information of the corresponding device can be obtained from server 103, and the information obtained can be directly displayed as shown below. Figure 4B The application interface for finding devices is shown.
[0072] The data processing method provided in the embodiments of this application is described in detail below.
[0073] Please see Figure 5 , Figure 5 This is a flowchart illustrating a data processing method provided in an embodiment of this application. The method may include, but is not limited to, the following steps:
[0074] 501, the first electronic device, in response to an activation operation for a short-range communication application, displays an application interface for the short-range communication application, the application interface of which includes first identification information of the first accessory device.
[0075] Short-range communication applications can be communication applications based on short-range wireless communication technologies, such as classic Bluetooth, Bluetooth Low Energy (BLE), ZigBee, etc.
[0076] In some embodiments, the user's activation of a short-range communication application may be for activating the short-range communication function corresponding to the application, such as activating Bluetooth. The first electronic device may respond to this activation operation by enabling the short-range communication function to search for nearby devices capable of establishing short-range communication connections (e.g., Bluetooth connections), and display the application interface of the short-range communication application based on the search results. This application interface may display identification information of nearby devices capable of establishing short-range communication connections. For example, the application interface may be as follows: Figure 2D The user interface shown.
[0077] When the device capable of establishing a short-range communication connection includes the first accessory device, the application interface may include first identification information of the first accessory device. In one possible implementation, the first identification information may be a device model, device name, etc. The first accessory device may be an accessory device that needs to establish a short-range communication connection with the first electronic device.
[0078] Optionally, the activation can be a voice command or a gesture. For example, a voice command could be "Turn on Bluetooth," and a gesture could be a tap on the Bluetooth switch in the application interface.
[0079] In some embodiments, the first accessory device and the first electronic device may belong to different manufacturers (or production entities). For example, the first accessory device may be a third-party accessory device. Because the first accessory device belongs to a different manufacturer than the first electronic device, it typically cannot implement the corresponding password or key algorithm for offline device lookup according to the protocol requirements of the first electronic device's manufacturer, and therefore cannot achieve the capability of offline device lookup. The data processing method provided in the embodiments of this application enables the first accessory device to achieve the capability of offline device lookup.
[0080] 502, the first electronic device, in response to a selection operation for the first identification information, establishes a short-range communication connection with the first accessory device.
[0081] The first identification information of the first accessory device is displayed in the application interface of the short-range communication application. The first electronic device can detect the user's selection operation on the first identification information and, in response to the selection operation, establish a short-range communication connection with the first accessory device. For example, the first electronic device establishes a Bluetooth Low Energy (BLE) connection with the first accessory device.
[0082] In one possible implementation, the selection operation can be a gesture or a voice command. For example, if the first identification information is "Accessory 1", the voice command could be "Pair with Accessory 1", "Connect Accessory 1", etc. A gesture operation could be, for example, a click operation.
[0083] 503, The first accessory device sends device authentication data to the first electronic device based on a short-range communication connection.
[0084] The first accessory device sends device authentication data to the first electronic device based on a short-range communication connection between the first accessory device and the first electronic device. This device authentication data is used to indicate that the first accessory device is authorized to join the second object's device lookup network, for example... Figure 1 In the data processing system shown, the device search network 10 can be used to locate the second object, which may be the production object of the first electronic device. The device authentication data is also used by the first electronic device to authenticate the first accessory device, determining whether the first accessory device is authorized to join the second object's device search network. Only when it is confirmed that the first accessory device is authorized to join the second object's device search network can the method provided in this application be used to allow the first accessory device to report its location information based on the second object's device search network, thereby achieving the ability to locate devices offline.
[0085] In some embodiments, the first accessory device may receive a write instruction input by a first object, and write device authentication data of the first accessory device into the first accessory device based on the write instruction. Here, the first object and the second object have established an authorization relationship for the first accessory device; the first object is the production object of the first accessory device, and the second object is the production object of the first electronic device.
[0086] In one possible implementation, such as Figure 6 As shown, a first object may submit a request to a second object to join a device search network. This request can be used to add a first accessory device to the second object's device search network. Only after the request is approved can the first accessory device subsequently achieve offline device search capabilities based on the method provided in this embodiment. When the second object authorizes the first accessory device to join its device search network through this request, the second object can generate device authentication data for the first accessory device and issue this data to the first object. The first object receives the device authentication data issued by the second object and writes it into the first accessory device. The device authentication data can be a key, digital certificate, etc., and the key can be generated according to a first key algorithm.
[0087] In one possible implementation, the application to join the device search network can be used to request the addition of the first accessory device to the second object's device search network. In this case, the application can carry the device type of the first accessory device (e.g., Bluetooth headset, smartwatch, etc.) and its unique identification information (e.g., device serial number). In this approach, the device authentication data issued by the second object is only used to indicate that the first accessory device is authorized to join the second object's device search network. In another possible implementation, the application to join the device search network can be used to request the addition of all accessory devices under the target device model to the second object's device search network. The target device model is the same as the first accessory device's model. In this case, the application can carry the device type (e.g., Bluetooth headset, smartwatch, etc.) and the target device model. In this approach, the device authentication data issued by the second object is used to indicate that all accessory devices under the target device model (including the first accessory device) are authorized to join the second object's device search network.
[0088] In some embodiments, after the first electronic device and the first accessory device successfully establish a short-range communication connection, the first electronic device may send a device authentication command to the first accessory device based on the communication connection, and the first accessory device may respond to the device authentication command and send device authentication data to the first electronic device based on the communication connection.
[0089] 504, The first electronic device receives device authentication data from the first accessory device based on a short-range communication connection.
[0090] The first electronic device can receive device authentication data sent by the first accessory device based on the short-range communication connection between the first accessory device and the first electronic device.
[0091] 505, The first electronic device certifies the first accessory device based on device certification data.
[0092] The first electronic device authenticates the device authentication data. If the device authentication data is successfully authenticated, the first accessory device is confirmed to be authenticated, and step 506 and subsequent related steps can be executed. If the device authentication data is not successfully authenticated, the first accessory device is confirmed to be authenticated, indicating that it cannot be determined whether the first accessory device is authorized to join the device search network. At this time, the process can be terminated directly.
[0093] In some embodiments, when the device authentication data is a key generated according to a first key algorithm, the first electronic device can generate a key for the first accessory device according to the corresponding key algorithm. If the key generated by the first electronic device matches the key indicated by the device authentication data, the device authentication data can be confirmed as successfully authenticated, i.e., the first accessory device is successfully authenticated. For example, the key indicated by the device authentication data is generated based on the device serial number of the first electronic device according to the first key algorithm. The first electronic device also has the first key algorithm written into it. The first key algorithm can be the key algorithm used by the second authorized device to join the lookup device network association. The first accessory device can send its device serial number and device authentication data together to the first electronic device. The first electronic device generates a key based on the received device serial number according to the first key algorithm. The key generated by the first electronic device is compared with the key indicated by the device authentication data. If the two match, the device authentication data can be confirmed as successfully authenticated.
[0094] In other embodiments, when the device authentication data is a digital certificate, the digital certificate may contain the digital signature of the second object. This digital certificate may be a digital certificate issued when the second object authorizes the device to join the network of devices to be found. The first electronic device can verify the digital signature on the digital certificate. If the digital signature verification is successful, the device authentication data can be confirmed as successfully authenticated, i.e., the first accessory device is successfully authenticated.
[0095] 506, The first electronic device generates key data in response to the successful authentication of the first accessory device.
[0096] Once the first accessory device is authenticated, meaning it is determined that the first accessory device is authorized to join the device search network, key data required for offline device search is generated for the first accessory device. This key data can be generated based on a second key algorithm, which can be implemented based on the protocol requirements of the second object, and is the key algorithm corresponding to the offline device search.
[0097] In some embodiments, the first electronic device can generate a base key, and based on the base key, generate M derived keys, which are key data, where M is a positive integer.
[0098] In one possible implementation, the base key can be a randomly generated key, and the M derived keys can be generated iteratively based on the base key and a second key algorithm. Optionally, the M derived keys can be generated iteratively based on the base key, time (or clock) information, and a second key algorithm. For example, if the key used by the accessory device to report its location needs to be updated daily, and the accessory device's battery life can support up to 3 days of use, then 3 derived keys can be generated to meet the accessory device's key update requirements. Assuming the base key is K and the current time is 2024 / 11 / 1, the base key K and the time 2024 / 11 / 1 can be combined (e.g., concatenated), and the result can be processed using a second key algorithm to obtain a first derived key. The first derived key can be the key that the accessory device should use to report its location on 2024 / 11 / 1. The first derived key can be combined with the time 2024 / 11 / 2, and the result can be processed using a second key algorithm to obtain a second derived key. The second derived key can be the key that the accessory device should use to report its location on 2024 / 11 / 2. The second derived key can be combined with the time 2024 / 11 / 3, and the result can be processed using a second key algorithm to obtain a third derived key. The third derived key can be the key that the accessory device should use to report its location on 2024 / 11 / 3.
[0099] In one possible implementation, the base key can be bound to the second identification information of the first accessory device. The second identification information can be the unique identification information of the first accessory device, such as the device serial number or device MAC address. The first electronic device can report the base key to the server, and the server binds the base key to the second identification information of the first accessory device so that the server can identify, based on the base key, whether the broadcast message is used to report the location information of the first accessory device.
[0100] In some embodiments, the key data may include only one key, which can be used to bind to the second identification information of the first accessory device. The first electronic device may report the key to the server, and the server binds the key to the second identification information of the first accessory device so that the server can identify, based on the key, that the broadcast message is used to report the location information of the first accessory device.
[0101] In some embodiments, when the first accessory device is successfully authenticated, the first electronic device can output a prompt message on the display interface (also referred to as the user interface). This prompt message can be used to ask the user whether to confirm adding the first accessory device to the second object's device search network. The first electronic device detects the user's input instruction in response to the prompt message. If a confirmation instruction is detected, i.e., the user agrees to add the first accessory device to the device search network, the first electronic device generates the key data required for offline device search and sends the key data to the first accessory device. Conversely, if a cancellation instruction is detected, i.e., the user does not agree to add the first accessory device to the device search network, the process can be terminated directly. This gives the user a choice, allowing them to select whether to enable the first accessory device to achieve offline device search capability.
[0102] Optionally, the prompt message can also be used to notify the user that the first accessory device has been authorized to join the second object's device search network, so that the user can be aware of the authentication result of the first accessory device.
[0103] 507, The first electronic device sends key data to the first accessory device.
[0104] The first electronic device can send key data to the first accessory device based on the short-range communication connection between the first accessory device and the first electronic device. This key data is used by the first accessory device to generate a first broadcast message when the communication connection with the first electronic device is lost. The first broadcast message is used to report the location information of the first accessory device.
[0105] In some embodiments, upon successful authentication of the first accessory device, the first electronic device can establish an encrypted channel with the first accessory device based on the established short-range communication connection. After generating key data, the first electronic device can encrypt and transmit the key data to the first accessory device through this encrypted channel, thus ensuring the security of the key data transmission.
[0106] Correspondingly, the first accessory device receives key data from the first electronic device based on the short-range communication connection between the first accessory device and the first electronic device.
[0107] 508, First accessory device storage key data.
[0108] In some embodiments, after the key data storage is complete, the first accessory device can send feedback information to the first electronic device based on the established short-range communication connection. This feedback information indicates that the first accessory device has successfully joined the second object's finder network. Upon receiving this feedback information, the first electronic device can display it on a display interface to inform the user of the result of the first accessory device joining the finder network.
[0109] Only when the first accessory device successfully joins the second object's locator network can it report its location information through the second object's locator network based on the key data sent by the first electronic device, thereby enabling offline device locator capabilities.
[0110] 509, the first accessory device responds to the detection that the communication connection between the first accessory device and the electronic device is disconnected, and determines the current location information of the first accessory device.
[0111] In some embodiments, if the communication connection between the first accessory device and the electronic device is detected to be disconnected, the first accessory device can determine its current location information through a configured positioning device.
[0112] 510. The first accessory device generates a first broadcast message based on the key data and location information. The first broadcast message can be used to report the location information of the first accessory device.
[0113] In some embodiments, the first accessory device may generate a first broadcast message based on key data and location information, according to the message format required by the second object. In this way, only devices generated or authorized by the second object can receive and report the first broadcast message.
[0114] In one possible implementation, as described above, the key data may include M derived keys, which are generated based on the base key. The first accessory device can select a derived key from the M derived keys included in the key data, and generate a first broadcast message based on the selected derived key and location information.
[0115] Optionally, if there is no selection requirement among the M derived keys, a derived key can be randomly selected from the M derived keys. If there is a selection requirement among the M derived keys, a derived key that meets the requirements needs to be selected from the M derived keys. For example, if the corresponding derived key needs to be selected according to time, referring to the example mentioned above, the key data includes a first derived key, a second derived key, and a third derived key, which are the keys that the accessory equipment should use to report its location on 2024 / 11 / 1, 2024 / 11 / 2, and 2024 / 11 / 3, respectively. Assuming that the broadcast message needs to be generated on 2024 / 11 / 3, then the third derived key should be selected.
[0116] Optionally, the selected derived key and location information can be used as the data body to generate a first broadcast message according to the message format required by the second object. This first broadcast message can be used to instruct the location information to be associated with the second identification information of the first accessory device based on the derived key associated with the first broadcast message, i.e., the derived key in the data body of the first broadcast message.
[0117] In one possible implementation, when the key data includes only one key, this key can be used to encrypt the location information, resulting in encrypted location information. This encrypted location information is then used as the data body to generate a first broadcast message according to the message format required by the second object. This improves the security of the location information and prevents malicious tampering. The first broadcast message can be used to indicate the key associated with it—that is, the key used to encrypt the location information—and to associate and store the location information with the second identification information of the first accessory device.
[0118] 511, First accessory equipment broadcasts first broadcast message.
[0119] In some embodiments, the first accessory device may broadcast a first broadcast message to the outside world based on its short-range communication function (e.g., Bluetooth Low Energy BLE) so that devices in the device network that receive the first broadcast message will report the first broadcast message to the server.
[0120] 512, the second electronic device receives the first broadcast message.
[0121] In some embodiments, the short-range communication function of the second electronic device may be enabled, and the second electronic device may receive a first broadcast message broadcast by the first accessory device based on the short-range communication function without establishing a communication connection (or pairing) with the first accessory device. The second electronic device may be an electronic device located near the first accessory device in a device search network.
[0122] 513, the second electronic device reports the first broadcast message to the server.
[0123] In some embodiments, the second electronic device may be able to report the first broadcast message to the server via a network.
[0124] Correspondingly, the server receives the first broadcast message reported by the second electronic device.
[0125] In one possible implementation, if the second accessory device in the search device network also has network connectivity, the second accessory device can also receive the first broadcast message broadcast by the first accessory device and report the first broadcast message to the server.
[0126] 514, The server records the location information of the first accessory device based on the first broadcast message.
[0127] In some embodiments, the server obtains information from the data body of the first broadcast message. If the obtained information includes a derived key and location information, the server can process the derived key based on a corresponding inverse key algorithm to extract the base key used to generate the derived key. For example, referring to the example described above, assuming the derived key obtained from the first broadcast message is a first derived key obtained by combining the base key and the time 2024 / 11 / 2 and processing the combination result using a second key algorithm, then the inverse key algorithm corresponding to the second key algorithm can be used to process the first derived key to obtain the base key and the time 2024 / 11 / 2. If the server has previously bound the base key corresponding to the first accessory device to the second identification information of the first accessory device, the server can determine, based on the extracted base key, that the location information obtained from the first broadcast message is the location information reported by the first accessory device. In this case, the location information obtained from the first broadcast message can be associated and stored with the second identification information of the first accessory device.
[0128] In some embodiments, the server obtains information from the data body of the first broadcast message. If the obtained information includes encrypted location information, the server can use pre-stored keys corresponding to each accessory device to decrypt the encrypted location information until the encrypted location information is successfully decrypted, thus obtaining the location information. If the server has pre-bound the key corresponding to the first accessory device to the second identification information of the first accessory device, the server can determine that the decrypted location information is the location information reported by the first accessory device based on the key that successfully decrypted the encrypted location information. At this time, the decrypted location information can be associated and stored with the second identification information of the first accessory device.
[0129] As can be seen, in this embodiment, the computing power of the electronic device can be used to pre-generate the key data required for offline device lookup and transmit it to the accessory device. This way, the accessory device does not need to adapt to the protocol requirements of the electronic device manufacturer (such as adapting to the required cryptography or key algorithms), and can still achieve offline device lookup capability by reporting location information through the device lookup network based on the key data transmitted by the electronic device. This method allows third-party accessory devices to also achieve offline device lookup capability, saving third-party manufacturers development and adaptation work, and is also applicable to accessory devices with low computing power. Furthermore, the key data required for offline device lookup is only generated and transmitted to the accessory device after it has been authenticated, i.e., it is determined that the accessory device is authorized to join the device lookup network. This ensures that only authorized accessory devices can achieve offline device lookup capability, guaranteeing compliance.
[0130] The above describes the process of generating key data required for offline device locating by electronic devices and reporting location information by accessory devices. The following describes the process of locating accessory devices.
[0131] Please see Figure 7 , Figure 7 This is a flowchart illustrating another data processing method provided in an embodiment of this application. The method may include, but is not limited to, the following steps:
[0132] 701, the first electronic device responds to the opening operation of the device search application by displaying the application interface of the device search application, the application interface of the device search application including the third identification information of the first accessory device.
[0133] In situations such as when a first accessory device is lost, or when the user of the first electronic device and the first accessory device needs to locate the first accessory device, the first electronic device can detect when the user activates the device search application. In response to this activation, the device search application interface is displayed. The device search application interface displays identification information of the device whose location can be found. This identification information may include third identification information of the first accessory device. For example, the application interface is... Figure 4A The user interface shown is Figure 4A The "Accessory 1" in the user interface shown is the third identification information of the first accessory device. Optionally, the third identification information of the first accessory device can be the same as or different from the first identification information of the first accessory device described above.
[0134] 702, In response to the selection operation for the third identification information, the first electronic device sends a device lookup request for the first electronic device to the server.
[0135] A device lookup request can be used to query the location information of a first-part device. The device lookup request can carry secondary identification information of the first-part device, such as its serial number.
[0136] Correspondingly, the server receives a device lookup request from the first electronic device.
[0137] 703, the server responds to the device lookup request and queries the location information of the first accessory device.
[0138] The server can query the location information associated with the second identification information of the first accessory device carried in the device lookup request. This associated location information is the location information of the first accessory device that needs to be obtained. The process of reporting the location information of the first accessory device can be referred to the previous description and will not be repeated here.
[0139] 704, the server returns the location information of the first accessory device to the first electronic device.
[0140] Correspondingly, the first electronic device receives the location information of the first accessory device returned by the server.
[0141] 705, The first electronic device displays the location information of the first accessory device in the application interface of the device search application.
[0142] When the location information of the first accessory device is obtained from the server, the first electronic device can display the location information of the first accessory device in the application interface of the device search application in the form of text, or it can display the location information of the first accessory device in the form of graphics (such as a map) in the application interface of the device search application.
[0143] For example, based on the location information of the first accessory device obtained from the server, the first electronic device can... Figure 4A The application interface shown has been updated to look like this. Figure 4B The application interface shown is as follows. Figure 4B As shown, the updated application interface can include the location information of the first accessory device displayed in text form, i.e. Figure 4B The location of the first accessory device, as shown in section 43, can also include the location information of the first accessory device displayed in graphical form. Figure 4B The location icon shown in Figure 44 is located on the electronic map. The location information of the first accessory device displayed in the application interface of the device search app can help users successfully locate the first accessory device, thus helping them find it.
[0144] In some embodiments, the first accessory device may generate a first broadcast message based on key data, location information, and other specific information. This other specific information includes, but is not limited to, battery level information, location acquisition time information, etc. After the first broadcast message is reported to the server via the device lookup network, the server can store the location information and other specific information (e.g., battery level information) of the first accessory device. Upon receiving a device lookup request for the first accessory device, the server can return the location information and other specific information of the first accessory device to the first electronic device. The first electronic device can then display the location information and other specific information of the first accessory device in the application interface of the device lookup application. For example, ... Figure 4B As shown, the application interface may include the battery information of the first accessory device displayed in graphical form, i.e. Figure 4B The battery level icon shown in 45; it may also include battery level information of the first accessory device displayed in text form, namely the text "60%" next to the battery level icon 45.
[0145] Optionally, the application interface for finding devices can also display the location update time of the first accessory device, for example, Figure 4B The location update time shown in Figure 47 is "2024 / 10 / 1-12:00". This location update time can be returned to the first electronic device along with location information and other data. This location update time can be the location acquisition time reported by the first accessory device, or the time when the server records the location information of the first accessory device.
[0146] Optionally, navigation controls (e.g., ...) can be displayed in the application interface of the device search app. Figure 4B The first electronic device includes navigation controls, sound playback controls, notification controls, etc., as shown in Figure 46. Upon detecting a trigger operation on the navigation controls, the first electronic device can jump to the map application and perform route planning based on the location information of the first accessory device to guide the user to the location of the first accessory device.
[0147] In some embodiments, the first electronic device is located in the device search network, that is, the first electronic device is an electronic device in the device search network. The first electronic device can also perform the functions of the second electronic device described above, that is, report the broadcast message of the accessory device to the server.
[0148] In one possible implementation, the first electronic device receives a second broadcast message broadcast by a second accessory device. The second accessory device may be an accessory device that has successfully joined the second object's device search network. The second broadcast message is generated by the second accessory device based on its corresponding key data and location information when it loses its short-range communication connection with the corresponding electronic device (which may be an electronic device produced by the second object). This key data may be generated by the corresponding electronic device and transmitted to the second accessory device. The related processing steps are described in steps 501-512 and will not be repeated here. Upon receiving the second broadcast message, the first electronic device reports it to the server. The second broadcast message indicates that the location information and identification information of the second accessory device should be associated and stored based on the key associated with the second broadcast message, so that users can subsequently locate the second accessory device. The related processing steps are described in steps 513-514 and 701-705 and will not be repeated here.
[0149] Next, we will describe a possible flow for data processing performed by the electronic device, considering the interaction of its internal modules. In some embodiments, the electronic device may be the first electronic device corresponding to the previous embodiments. Figure 8 As shown, the steps may include, but are not limited to, the following:
[0150] 801, the detection module detects the user's activation of the short-range communication function.
[0151] Short-range communication functionality can be implemented based on short-range wireless communication technology, such as Bluetooth communication.
[0152] Optionally, the activation operation can be a voice command or a gesture. For example, a voice command could be "Turn on Bluetooth," and a gesture could be a click on the Bluetooth switch in the user interface.
[0153] 802, the detection module sends the first message to the short-range communication module.
[0154] The first message can be used to notify the short-range communication module to search for devices.
[0155] 803, the short-range communication module responds to the first message and performs a device search.
[0156] Short-range communication modules can search for nearby devices that can establish short-range communication connections, including electronic devices (such as mobile phones and tablets) and accessory devices (such as Bluetooth headsets and smartwatches).
[0157] 804, the short-range communication module sends search results to the display module.
[0158] Search results can include identification information of nearby devices that can establish short-range communication connections, such as device names or model numbers. If the accessory device requiring the communication connection is within range, the search results will include the target identification information of that accessory device.
[0159] 805, the display module displays content on the user interface based on the search results, and the user interface displays the target identification information of accessory equipment that needs to establish a communication connection.
[0160] 806, the detection module detects the user's selection of target identification information in the user interface.
[0161] Optionally, the selection operation can be a gesture operation or a voice command. For example, if the target identification information is "accessory 1", the voice command could be "pair with accessory 1" or "connect accessory 1". Gesture operations could be, for example, a click operation.
[0162] 807, the detection module sends a second message to the short-range communication module.
[0163] The second message can be used to notify the short-range communication module to establish a short-range communication connection with the accessory device corresponding to the target identification information.
[0164] 808, the short-range communication module responds to the second message and establishes a short-range communication connection with the accessory device corresponding to the target identification information.
[0165] Optionally, a Bluetooth Low Energy (BLE) connection can be established with the accessory device corresponding to the target identification information.
[0166] 809, The short-range communication module sends a third message to the authentication module.
[0167] After successfully establishing a short-range communication connection with the accessory device corresponding to the target identification information, the short-range communication module can send a third message to the authentication module. The third message can be used to indicate that the short-range communication connection has been successfully established, and it can also be used to notify the authentication module to generate a device authentication command.
[0168] 810. The authentication module responds to the third message and generates a device authentication command.
[0169] Among them, the equipment certification instruction can be used to instruct accessory equipment to report equipment certification data.
[0170] 811, the authentication module sends a fourth message to the short-range communication module, the fourth message carrying the device authentication command.
[0171] The fourth message can be used to notify the short-range communication module to send the device authentication command to the accessory device based on the short-range communication connection.
[0172] 812, the short-range communication module responds to the fourth message and sends a device authentication command to the accessory device based on the short-range communication connection.
[0173] 813, The short-range communication module receives device authentication data sent by accessory devices based on the short-range communication connection.
[0174] Device certification data can be used to indicate that accessory equipment is authorized to join a second object's device search network, which can be the production object of the first electronic device. The process by which accessory equipment obtains device certification data is described above and will not be repeated here.
[0175] 814, The short-range communication module sends device authentication data to the authentication module.
[0176] 815, the authentication module authenticates the device authentication data.
[0177] Optionally, the correctness and compliance of the device certification data can be certified.
[0178] 816, the authentication module sends the fifth message to the short-range communication module.
[0179] Once the device authentication data is successfully authenticated, the authentication module can send a fifth message to the short-range communication module. This fifth message can be used to notify the short-range communication module to establish an encrypted channel with the accessory device based on the short-range communication connection.
[0180] 817, the short-range communication module responds to the fifth message and establishes an encrypted channel with the accessory device based on the short-range communication connection.
[0181] 818, the authentication module sends the sixth message to the display module.
[0182] If the device authentication data is successfully authenticated, the authentication module can send a sixth message to the display module. The sixth message can be used to instruct the display module to output a prompt message on the display interface.
[0183] 819, the display module responds to the sixth message and outputs a prompt message to the user interface.
[0184] The notification message can be used to inform the user that the accessory device can be added to the device finder network, and it can also be used to ask the user whether they agree to the accessory device being added to the device finder network.
[0185] 820, the detection module detects the confirmation command entered by the user in response to the prompts in the user interface.
[0186] The confirmation command can be used to instruct the user to agree to add the accessory device to the device search network.
[0187] 821, the detection module sends the seventh message to the key processing module.
[0188] Upon detecting that the user has agreed to allow the accessory device to join the device discovery network, the detection module can send a seventh message to the key processing module. This seventh message can be used to instruct the key processing module to generate key data.
[0189] 822, the key processing module responds to the seventh message and generates key data.
[0190] Once the device authentication data is verified, meaning it is confirmed that the accessory device establishing the short-range communication connection is authorized to join the device lookup network, and the user agrees to the accessory device joining the device lookup network, the key data required for offline device lookup can be generated for the accessory device.
[0191] In some embodiments, the key data may be generated based on a second key algorithm, which may be implemented based on the protocol requirements of the second object, and the offline device searches for the corresponding key algorithm. Optionally, the first electronic device may generate a base key, and based on the base key, generate M derived keys, which constitute the key data. The base key can be used to bind to the second identification information of the accessory device.
[0192] In one possible implementation, the base key can be a randomly generated key, and the M derived keys can be generated iteratively based on the base key and the second key algorithm.
[0193] 823, the key processing module sends the eighth message to the short-range communication module, the eighth message carrying key data.
[0194] The eighth message can be used to notify the short-range communication module to send key data to the accessory device.
[0195] 824, the short-range communication module responds to the eighth message by encrypting and transmitting key data to the accessory device via an encrypted channel.
[0196] Optionally, the short-range communication module can decrypt and encrypt the key data based on the encryption algorithm agreed upon during the establishment of the encrypted channel, and then transmit the encrypted key data to the accessory device in an encrypted manner.
[0197] The key data can be used to generate a first broadcast message when the accessory device loses its communication connection with the first electronic device. This first broadcast message can be used to report the location information of the accessory device. The first broadcast message can be received by a device in the searched device network and reported to the server. The server can record the location information reported by the accessory device based on the first broadcast message. The key data required for offline device search is transmitted to the accessory device in encrypted form, ensuring the security of the key data transmission and guaranteeing that the location information of the accessory device can be successfully reported to the server.
[0198] In some embodiments, the detection module detects a user's activation of the device search application and sends a message to the display module. In response to this message, the display module displays the application interface of the device search application, which includes the identification information of the accessory device. The detection module detects a user's selection of this identification information and sends a message to the device search module. In response to this message, the device search module generates a device search request and sends it to the network communication module. This device search request can be used to query the location information of the accessory device. The network communication module sends the device search request to the server and receives the location information of the accessory device returned by the server in response to the device search request. The network communication module sends the location information of the accessory device to the display module, which displays the location information of the accessory device in the application interface of the device search application.
[0199] In some embodiments, the short-range communication module receives a second broadcast message broadcast by the second accessory device. The second broadcast message may be generated based on key data and location information corresponding to the second accessory device when the short-range communication connection between the second accessory device and the corresponding electronic device (which may be the electronic device produced by the second object) is lost. This key data may be generated by the corresponding electronic device and transmitted to the second accessory device. The short-range communication module sends the second broadcast message to the network communication module, which then reports the second broadcast message to the server. The second broadcast message can be used to instruct the location information of the second accessory device to be associated with and stored with the identification information of the second accessory device based on the key associated with the second broadcast message, so that users can subsequently locate the second accessory device.
[0200] For implementation methods not described exhaustively above, please refer to the relevant descriptions in the method embodiments above, which will not be repeated here.
[0201] In some embodiments, the electronic device may correspond to the first accessory device described in the preceding embodiments. For example... Figure 9 As shown, the steps may include, but are not limited to, the following:
[0202] 901, the short-range communication module establishes a short-range communication connection with electronic devices.
[0203] Optionally, it can establish a Bluetooth Low Energy (BLE) connection with electronic devices.
[0204] 902, the short-range communication module receives device authentication commands from electronic devices based on a short-range communication connection.
[0205] 903, the short-range communication module sends a device authentication command to the authentication module.
[0206] 904. The authentication module responds to the device authentication command and retrieves the device authentication data from the storage module.
[0207] Device certification data can be used to indicate that accessory equipment is authorized to join a second object's device search network, which can be the manufacturer of the electronic equipment. The process by which the first accessory equipment obtains device certification data can be referred to the previous description and will not be repeated here.
[0208] In some embodiments, the input module receives a write instruction from the first object and sends the write instruction to the data processing module. This write instruction carries device authentication data. The data processing module parses the write instruction to obtain the device authentication data and sends it to the storage module. The storage module stores the device authentication data. Here, the first object and the second object have established an authorization relationship for the first accessory device, and the first object can be the production object of the first accessory device. The specific implementation of the authorization relationship between the first object and the second object for the first accessory device can be found in the preceding description.
[0209] 905, the authentication module sends a first notification message to the short-range communication module, the first notification message carrying device authentication data.
[0210] The first notification message can be used to instruct the short-range communication module to send device authentication data to the electronic device. The device authentication data can then be used by the electronic device to authenticate the first accessory device.
[0211] 906, the short-range communication module sends device authentication data to electronic devices based on a short-range communication connection.
[0212] 907, the short-range communication module establishes an encrypted channel with electronic devices based on short-range communication connections.
[0213] 908, the short-range communication module receives encrypted key data transmitted by electronic devices through an encrypted channel.
[0214] The key data may include the key required for offline device lookup. The key data may be generated by the electronic device after the device authentication data is passed, that is, it is determined that the accessory device that establishes the short-range communication connection is authorized to join the device lookup network, and the user agrees to the accessory device joining the device lookup network.
[0215] 909, The short-range communication module sends encrypted key data to the data processing module.
[0216] 910. The data processing module decrypts the encrypted key data to obtain the key data.
[0217] Optionally, the data processing module can decrypt the encrypted key data based on the decryption algorithm agreed upon during the establishment of the encrypted channel to obtain the key data.
[0218] 911, the data processing module sends key data to the storage module.
[0219] 912, the storage module stores key data.
[0220] 913, In the event that the communication connection with the electronic device is lost, the positioning module determines the current location information of the first accessory device.
[0221] 914, the positioning module sends location information to the data processing module.
[0222] 915, the data processing module obtains key data from the storage module.
[0223] When the communication connection with the electronic device is lost, the data processing module retrieves the key data from the storage module.
[0224] 916. The data processing module generates broadcast messages based on key data and location information.
[0225] Optionally, the key data includes M derived keys, which are generated based on the base key. The data processing module can select a derived key from the M derived keys included in the key data, and generate a broadcast message based on the selected derived key and location information. The base key can be bound to the identification information of the first accessory device, and the broadcast message can be used to indicate the location information associated with the identification information of the first accessory device based on the derived key associated with the broadcast message.
[0226] 917, the data processing module sends a second notification message to the short-range communication module, the second notification message carrying a broadcast message.
[0227] The second notification message can be used to notify the short-range communication module to broadcast the broadcast message.
[0228] 918, the short-range communication module broadcasts this broadcast message.
[0229] The short-range communication module broadcasts the first broadcast message to the outside world so that the device in the device network can report the first broadcast message to the server upon receiving it. The server records the location information of the first accessory device based on the first broadcast message.
[0230] For implementation methods not described exhaustively above, please refer to the relevant descriptions in the method embodiments above, which will not be repeated here.
[0231] For example, the software structure of the electronic device in the embodiments of this application will be described below. The electronic device may be a device such as the first electronic device or the second electronic device corresponding to the previous embodiments, or it may be an accessory device such as the first accessory device or the second accessory device corresponding to the previous embodiments.
[0232] Optionally, the software architecture of electronic devices can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. The following section uses the layered architecture of the Android system as an example to introduce the software architecture of electronic devices.
[0233] like Figure 10 As shown, the layered architecture of an electronic device divides the 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 consists of, from top to bottom, the application layer, the application framework layer, and the kernel layer, etc.
[0234] The application layer may include a series of application packages, such as camera, gallery, video playback, system settings, map, and call applications. In this embodiment, when the electronic device is the first or second electronic device corresponding to the previous embodiments, the application layer may also include a display module, a short-range communication application, and a device search application. The display module can be used to control the content output by the user interface, such as outputting identification information of devices that can establish short-range communication connections, outputting prompt information, and outputting identification information of devices that can be searched. The short-range communication application is associated with the short-range communication function and can be used to realize short-range communication connections with other devices and data interaction based on the short-range communication connection. The device search application is associated with the device search function and can be used to interact with the user regarding device search.
[0235] In this embodiment, when the electronic device is an accessory device such as the first accessory device or the second accessory device corresponding to those in the preceding embodiments, the application layer may further include short-range communication applications. Short-range communication applications are associated with short-range communication functions and can be used to establish short-range communication connections with other devices, perform data interaction based on these connections, and broadcast messages to external systems.
[0236] 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.
[0237] The application framework layer can include a window manager. The window manager is used to manage window applications. The window manager can obtain the screen size, determine if a status bar is present, lock the screen, capture screenshots, etc.
[0238] The application framework layer may also include a view system, a notification manager, and so on.
[0239] 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.
[0240] The notification manager allows applications to display notification information in the status bar. It can be used to convey informational messages and can disappear automatically after a short time without user interaction.
[0241] In this embodiment, when the electronic device is the same as the first or second electronic device described in the preceding embodiments, the application framework layer may further include a detection module, a storage module, an authentication module, a short-range communication module, and a key processing module. The detection module can detect operations such as enabling the short-range communication function and detecting user selections of device identification information displayed on the user interface. The storage module can store data, including key algorithms and key data. The authentication module can authenticate the device authentication data of accessory devices. The short-range communication module can implement the short-range communication function and may include: establishing a short-range communication connection with accessory devices, sending data to accessory devices based on the short-range communication connection, and receiving data from accessory devices based on the short-range communication connection. The short-range communication module may be a Bluetooth module. The key processing module can generate the key data required to locate the device.
[0242] When the electronic device is an accessory device such as the first accessory device or the second accessory device corresponding to the embodiments described above, the application framework layer may further include a storage module, an authentication module, a short-range communication module, a positioning module, and a message generation module. The storage module can be used to store data, including device authentication data and key data. The authentication module can be used for processing associated with device authentication data, such as verifying the legality of the device authentication data and retrieving device authentication data from the storage module. The short-range communication module can be used to implement short-range communication functions, including: establishing a short-range communication connection with the electronic device, sending data to the electronic device (such as the first electronic device) based on the short-range communication connection, receiving data from the electronic device based on the short-range communication connection, and broadcasting messages to the outside. The short-range communication module may be a Bluetooth module. The positioning module can be used for positioning to determine the device's location information. The message generation module can be used to generate broadcast messages, for example, generating broadcast messages based on key data and location information.
[0243] In some embodiments, the application framework layer may further include a network communication module, an internal communication module, etc. When the electronic device is the first electronic device or the second electronic device corresponding to those in the preceding embodiments, the network communication module can be used to communicate and interact with the server, such as sending a device search request to the server or receiving location information of accessory devices sent by the server. The internal communication module can be used to realize information interaction between internal modules of the electronic device.
[0244] The kernel layer is the layer between hardware and software. The kernel layer includes at least display drivers, camera drivers, audio drivers, storage drivers, processor drivers, and communication drivers.
[0245] It should be noted that the functional modules included in the above software structure are merely exemplary and do not constitute a specific limitation on the software architecture of the electronic device of this application. In other embodiments, the functional modules included in the above software structure may be more or fewer, and this application does not impose any limitations on this. Although the embodiments of this application use the Android system as an example for illustration, its basic principles are equally applicable to electronic devices based on operating systems such as iOS or Windows.
[0246] It should be understood that, in the embodiments of this application, the electronic device may be a mobile phone, tablet computer, laptop computer, handheld computer, mobile internet device (MID), wearable device, virtual reality (VR) device, augmented reality (AR) device, wireless terminal in industrial control, wireless terminal in self-driving, wireless terminal in remote medical surgery, wireless terminal in smart grid, wireless terminal in transportation safety, wireless terminal in smart city, wireless terminal in smart home, personal digital assistant (PDA), etc., and the embodiments of this application are not limited thereto.
[0247] For example, the hardware structure of the electronic device in the embodiments of this application will be described below. The electronic device may be a device such as the first electronic device or the second electronic device corresponding to the preceding embodiments, or it may be an accessory device such as the first accessory device or the second accessory device corresponding to the preceding embodiments.
[0248] like Figure 11 As shown, the electronic device may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0249] The processor 110 may include one or more processing units, such as an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors. In this embodiment, when the electronic device is the first or second electronic device corresponding to those in the preceding embodiments, the processor can generate key data, verify device authentication data, etc. When the electronic device is an accessory device corresponding to the first or second accessory device in the preceding embodiments, the processor can generate broadcast messages based on key data and location information, etc.
[0250] An NPU (Neural Processing Unit) is a neural network computing processor that, by drawing inspiration from the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, rapidly processes input information and can continuously learn on its own. NPUs enable intelligent cognitive applications in electronic devices, such as image recognition, facial recognition, speech recognition, and text understanding.
[0251] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0252] The wireless communication function of the electronic device can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor, and baseband processor. In this embodiment, when the electronic device is the first or second electronic device corresponding to the previous embodiment, it can communicate and interact with the server based on mobile communication or wireless communication functions, such as obtaining the location information of accessory devices from the server, reporting broadcast information of accessory devices to the server, etc. It can also establish a short-range communication connection with the accessory device based on the short-range communication function (such as Bluetooth) included in the wireless communication function of the electronic device, and send data to the accessory device and receive data from the accessory device based on the short-range communication connection. When the electronic device is the first or second accessory device corresponding to the previous embodiment, it can establish a short-range communication connection with the electronic device (such as the first electronic device) based on the short-range communication function (such as Bluetooth) included in the wireless communication function, and send data to the electronic device and receive data from the electronic device based on the short-range communication connection. It can broadcast messages based on the short-range communication function (such as Bluetooth) included in the wireless communication function.
[0253] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device can be used to cover one or more communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused 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.
[0254] The mobile communication module 150 can provide solutions for wireless communication applications including 2G / 3G / 4G / 5G in electronic devices. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.
[0255] The wireless communication module 160 can provide solutions for wireless communication applications in electronic devices, including wireless local area networks (WLAN) (such as WiFi), Bluetooth (BT), BLE broadcasting, global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), and ZigBee. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signal, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.
[0256] Electronic devices implement display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connecting the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0257] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device may include one or N display screens 194, where N is a positive integer greater than 1. In this embodiment, when the electronic device is the first or second electronic device corresponding to the aforementioned embodiments, the display screen 194 can be used to display... Figures 2A-2D The user interface shown Figures 4A-4B The user interface shown.
[0258] Touch sensor 180K, also known as a "touch panel," can be located on display screen 194. The touch sensor 180K and display screen 194 together form a touchscreen, also known as a "touch screen." Touch sensor 180K detects touch operations applied to or near it. Touch sensor 180K transmits the detected touch operation to the application processor to determine the touch event type. Visual output related to the touch operation can be provided through display screen 194. In other embodiments, touch sensor 180K may also be located on the surface of the electronic device, in a different position than display screen 194. In this embodiment, when the electronic device corresponds to the first or second electronic device in the preceding embodiments, touch sensor 180K can be used to detect user operations such as activating short-range communication functions, selecting device identification information displayed on the user interface, etc.
[0259] It is understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device. In other embodiments, the electronic device may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0260] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as 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 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 accessible to a computer 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).
[0261] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0262] The steps in the method of this application embodiment can be adjusted, combined, or deleted according to actual needs.
[0263] The modules in the device of this application embodiment can be merged, divided, and deleted according to actual needs.
[0264] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, which may include: flash drive, ROM, RAM, disk or optical disk, etc.
[0265] The above-disclosed embodiments are merely one preferred embodiment of this application and only a part of the embodiments of this application. They should not be construed as limiting the scope of the claims of this application.
Claims
1. A data processing method, characterized in that, The method is applied to an electronic device, and the method includes: In response to the activation operation of the short-range communication application, the application interface of the short-range communication application is displayed; the application interface of the short-range communication application includes the first identification information of the first accessory device; In response to a selection operation for the first identification information, a short-range communication connection is established with the first accessory device; Based on the short-range communication connection, device authentication data is received from the first accessory device; the device authentication data is written to the first accessory device based on the write instruction of the first object, and is used to indicate that the first accessory device is authorized to join the device search network; the first object and the second object have established an authorization relationship for the first accessory device, the first object is the production object of the first accessory device, and the second object is the production object of the electronic device, and the first object and the second object are different; Based on the device authentication data, the first accessory device is authenticated; In response to the successful authentication of the first accessory device, a base key is generated, and key data is iteratively generated based on the base key and the current time information; the key data includes M derived keys, each derived key corresponding to a location reporting time, where M is a positive integer; The key data is sent to the first accessory device; the key data is used by the first accessory device to encrypt the location information of the first accessory device by using a derived key selected from the key data that matches the current location reporting time when the communication connection with the electronic device is disconnected, and to generate a first broadcast message based on the encrypted location information, the first broadcast message being used to report the location information of the first accessory device.
2. The method as described in claim 1, characterized in that, In response to the successful authentication of the first accessory device, a base key is generated, and key data is iteratively generated based on the base key and the current time information, including: Upon successful authentication of the first accessory device, a prompt message is displayed on the screen; the prompt message is used to ask whether to confirm adding the first accessory device to the device search network. In response to the detection of a confirmation command for the prompt information, a base key is generated, and key data is iteratively generated based on the base key and the current time information.
3. The method as described in claim 1 or 2, characterized in that, The base key is also used to bind to the second identification information of the first accessory device; the first broadcast message is used to instruct the location information to be associated with and stored with the second identification information of the first accessory device based on the derived key associated with the first broadcast message.
4. The method as described in claim 1 or 2, characterized in that, The method further includes: In response to the activation operation of the Find Device application, the application interface of the Find Device application is displayed, and the application interface of the Find Device application includes the third identification information of the first accessory device; In response to the selection operation for the third identification information, the location information of the first accessory device is obtained from the server; the location information of the first accessory device is carried in the first broadcast message, which is reported to the server through the device search network; The location information of the first accessory device is displayed in the application interface of the device search application.
5. The method as described in claim 1, characterized in that, The electronic device is located in the device search network, and the method further includes: Receive a second broadcast message broadcast by the second accessory device; the second broadcast message is generated by the second accessory device based on the key data and location information corresponding to the second accessory device when the communication connection is disconnected; The second broadcast message is reported to the server; the second broadcast message is used to instruct that the location information of the second accessory device be associated with and stored based on the key associated with the second broadcast message.
6. The method as described in claim 1, characterized in that, The method further includes: An encrypted channel is established between the short-range communication connection and the first accessory device; Sending the key data to the first accessory device includes: The key data is transmitted to the first accessory device via the encrypted channel in an encrypted manner.
7. A data processing method, characterized in that, The method is applied to a first accessory device, and the method includes: Receive the write command from the first object input; Based on the write instruction, device authentication data is written to the first accessory device; wherein, the first object and the second object have established an authorization relationship for the first accessory device, the first object is the production object of the first accessory device, the second object is the production object of the electronic device, and the first object and the second object are different. Based on the communication connection between the first accessory device and the electronic device, the device authentication data is sent to the electronic device; the device authentication data is used by the electronic device to authenticate the first accessory device. In response to detecting a disconnection in the communication connection between the first accessory device and the electronic device, the current location information of the first accessory device is determined; The location information is encrypted using a derived key selected from the key data that matches the current location reporting time, and a first broadcast message is generated based on the encrypted location information. The key data is received from the electronic device based on the communication connection between the first accessory device and the electronic device after the first accessory device has been authenticated. The key data includes M derived keys, which are generated iteratively by the electronic device based on the base key and the current time information corresponding to the first accessory device's successful authentication. Each derived key corresponds to a location reporting time, and M is a positive integer. The first broadcast message is broadcast; the first broadcast message is used to report the location information of the first accessory device.
8. The method as described in claim 7, characterized in that, The base key is used to bind with the second identification information of the first accessory device, and the first broadcast message is used to instruct the location information to be associated with and stored with the second identification information of the first accessory device based on the derived key associated with the first broadcast message.
9. An electronic device, characterized in that, The electronic device includes: one or more processors, a memory, and a communication interface; the communication interface is used to interact with other devices, the memory is used to store program code; the processor is used to run the program code, causing the electronic device to implement the method as described in any one of claims 1-6, or to implement the method as described in claim 7 or 8.
10. A chip system, characterized in that, The chip system includes one or more processors, a memory, and an interface circuit. The memory, the interface circuit, and the one or more processors are interconnected via circuits. The memory stores program instructions. When the program instructions are executed by the processor, the chip system implements the method as described in any one of claims 1-6, or implements the method as described in claim 7 or 8.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method as described in any one of claims 1-6, or the method as described in claim 7 or 8.
Citation Information
Patent Citations
Equipment searching method, electronic equipment and system
CN115914985A