Equipment authentication method and electronic equipment

By identifying the device status and quickly establishing Bluetooth connections, the problem of low efficiency of electronic devices when performing device authentication is solved, rapid device discovery and authentication is achieved, and the efficiency and security of multi-device collaboration are improved.

CN119233253AActive Publication Date: 2024-12-31HONOR DEVICE CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202310781420.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-28
Publication Date
2024-12-31
Estimated Expiration
2043-06-28

AI Technical Summary

Technical Problem

In the prior art, electronic devices are inefficient when performing device authentication, resulting in a long time discovery and authentication process with counter-end devices, affecting the efficiency of multi-device coordination.

Method used

By using the Bluetooth address and the information of the certified device to identify the device status under the user's operation, and quickly establish a Bluetooth connection and perform device authentication based on this status, it supports various triggering mechanisms such as NFC, QR code scanning and device discovery requests, and improves the Equipment discovery and certification efficiency.

Benefits of technology

It significantly shortens the time for device discovery and authentication, improves the efficiency of multi-device collaboration, ensures the speed and simplicity of device authentication, and enhances device security and user interaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119233253A_ABST
    Figure CN119233253A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a device authentication method and an electronic device. The method comprises the following steps: first electronic equipment responds to user operation, acquires a Bluetooth address of second electronic equipment, and identifies an equipment state of the second electronic equipment according to the Bluetooth address of the second electronic equipment and equipment information of authenticated equipment. And if the device state of the second electronic device is a second state, the first electronic device establishes a Bluetooth connection with the second electronic device according to the Bluetooth address of the second electronic device, and performs device authentication with the second electronic device based on the Bluetooth connection. Therefore, the first electronic equipment can respond to the user operation and quickly trigger to discover the second electronic equipment, so as to perform equipment authentication with the second electronic equipment after discovering the second electronic equipment, thereby improving the equipment authentication efficiency. Therefore, the efficiency of multi-device cooperation between the first electronic device and the second electronic device can be improved by improving the device authentication efficiency between the first electronic device and the second electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of terminal technology, and in particular to a device authentication method and an electronic device. Background Art

[0002] Multi-device collaboration is a distributed technology applied to multiple electronic devices. Using multi-device collaboration technology, two or more electronic devices can collaborate across systems and devices to achieve resource sharing and collaborative operation.

[0003] Before an electronic device performs multi-device collaboration with a peer device, the electronic device needs to perform device authentication with the peer device in order to form a network with the peer device. During the process of device authentication between an electronic device and a peer device, the electronic device broadcasts according to a preset trigger mechanism to discover the peer device by itself. Among them, the preset trigger mechanism may include: the electronic device periodically triggers broadcasts according to different cycles under different screen states, the electronic device triggers broadcasts when the specified device state changes, and the electronic device triggers broadcasts when the network group it is in changes. After discovering the peer device, the electronic device performs device authentication with the peer device.

[0004] Taking the preset trigger mechanism of the electronic device continuously broadcasting for 5 seconds every 30 seconds when the screen is on, for example, the electronic device may need to wait for 25 seconds to discover the peer device and perform device authentication with the peer device. It can be seen that the electronic device discovers the peer device by itself and performs device authentication with the peer device, which will take a long time to discover the peer device, and thus cannot guarantee the efficiency of device authentication with the peer device. Summary of the invention

[0005] The embodiments of the present application provide a device authentication method and an electronic device to solve the problem of low efficiency of device authentication.

[0006] In a first aspect, an embodiment of the present application provides a device authentication method, comprising: a first electronic device obtains a Bluetooth address of a second electronic device in response to a user operation. The first electronic device stores device information of an authenticated device, the device information including a Bluetooth address and a device status, and the device status includes a first status and a second status. Among them, the first status includes that the first electronic device has established a Bluetooth connection with the authenticated device or can receive a broadcast response message from the other party, and the second status includes that the first electronic device has not established a Bluetooth connection with the authenticated device. The first electronic device identifies the device status of the second electronic device based on the Bluetooth address of the second electronic device and the device information of the authenticated device. If the device status of the second electronic device is the second status, the first electronic device establishes a Bluetooth connection with the second electronic device based on the Bluetooth address of the second electronic device. The first electronic device performs device authentication with the second electronic device based on the Bluetooth connection.

[0007] In the method provided by the embodiment of the present application, when the first electronic device and the second electronic device support the device collaboration function, the first electronic device can respond to the user operation and quickly trigger the discovery of the second electronic device, so as to perform device authentication with the second electronic device after the second electronic device is discovered, thereby improving the efficiency of device authentication. In this way, when the user wants the first electronic device to perform multi-device collaboration with the second electronic device, the efficiency of multi-device collaboration between the first electronic device and the second electronic device can be improved by improving the device authentication efficiency between the first electronic device and the second electronic device.

[0008] In one implementation, the first electronic device obtains the Bluetooth address of the second electronic device in response to a user operation, including: the first electronic device establishes NFC communication with the second electronic device in response to the user bringing the first electronic device close to or touching the NFC area of ​​the second electronic device. The first electronic device obtains the Bluetooth address of the second electronic device from the second electronic device based on the NFC communication. In this way, the user can quickly and easily trigger the first electronic device to discover the second electronic device by bringing the first electronic device close to or touching the second electronic device.

[0009] In one implementation, the first electronic device obtains the Bluetooth address of the second electronic device in response to the user operation, including: the first electronic device obtains the Bluetooth address associated with the QR code in response to the user using the first electronic device to scan the QR code provided by the second electronic device. In this way, the user can quickly and easily trigger the first electronic device to discover the second electronic device by scanning the code with the first electronic device.

[0010] In one implementation, the first electronic device, in response to a user operation, obtains the Bluetooth address of the second electronic device, including: the first electronic device broadcasts a device discovery request. In response to the user bringing the first electronic device close to the second electronic device, the first electronic device receives a response message broadcast by the second electronic device in response to the device discovery request when the Bluetooth signal strength of the device discovery request is greater than or equal to a strength threshold, the response message including the Bluetooth address of the second electronic device. In this way, the user can quickly and easily trigger the first electronic device to discover the second electronic device by bringing the first electronic device close to the second electronic device.

[0011] In one implementation, the first electronic device, in response to a user operation, obtains the Bluetooth address of the second electronic device, including: the first electronic device, in response to a first operation performed by the user on a first button on a first page, receives a device discovery request broadcast by the second electronic device, the device discovery request including the Bluetooth address of the second electronic device. In this way, the user can quickly and easily trigger the first electronic device to discover the second electronic device by performing the first operation on the first button on the first page.

[0012] In one implementation, the device discovery request of the second electronic device also includes the user account logged in by the second electronic device, and the first electronic device identifies the device status of the second electronic device based on the Bluetooth address of the second electronic device and the device information of the authenticated device, including: the first electronic device determines whether the user account logged in by the local device is the same as the user account logged in by the second electronic device. If they are the same, the first electronic device identifies the device status of the second electronic device based on the Bluetooth address of the second electronic device and the device information of the authenticated device. In this way, the first electronic device can preliminarily determine whether it can be networked with the second electronic device through the user account logged in by the second electronic device to ensure device security and avoid invalid networking operations by the first electronic device.

[0013] In one implementation, the first electronic device identifies the device status of the second electronic device based on the Bluetooth address of the second electronic device and the device information of the authenticated device, including: the first electronic device determines whether the second electronic device is an authenticated device based on the Bluetooth address of the second electronic device. If the second electronic device is an authenticated device, the first electronic device determines the device status of the second electronic device based on the stored device information of the authenticated device. If the second electronic device is not an authenticated device, the first electronic device determines that the second electronic device is in the second state. In this way, before the first electronic device performs device authentication with the second electronic device, it can first identify the device status of the second electronic device, and then perform device authentication with the second electronic device based on different device statuses.

[0014] In one implementation, the first electronic device identifies the device state of the second electronic device according to the Bluetooth address of the second electronic device and the device information of the authenticated device, and further includes: the first electronic device displays a first window in response to a user operation, and the first window includes a first button. After detecting that the first window is displayed, the first electronic device identifies the device state of the second electronic device according to the Bluetooth address of the second electronic device and the device information of the authenticated device. Wherein, in the case where the first electronic device has established a Bluetooth connection with the second electronic device, the first electronic device is used to establish a data transmission path with the second electronic device in response to the second operation performed by the user on the second button. In the case where the first electronic device has not established a Bluetooth connection with the second electronic device, the first electronic device is used to establish a Bluetooth connection with the second electronic device in response to the second operation performed by the user on the second button, and after establishing the Bluetooth connection with the second electronic device, establish a data transmission path with the second electronic device. In this way, the first electronic device can force the second electronic device to go online without the user's perception. If the user performs the first operation based on the first button, the first electronic device can directly establish a data transmission path with the second electronic device that has passed the device authentication, so as to perform device collaboration with the second electronic device, effectively reducing the user's waiting time.

[0015] In one implementation, the first electronic device performs device authentication with the second electronic device based on a Bluetooth connection, including: the first electronic device exchanges security module messages with the second electronic device based on the Bluetooth connection, and the security module messages are used to perform device authentication. If the second electronic device passes the device authentication, the first electronic device transmits the first encrypted information to the second electronic device based on the Bluetooth connection, and receives the second encrypted information transmitted by the second electronic device. Among them, the first encrypted information is obtained by the first electronic device using the first key to encrypt, and the first encrypted information includes the device information and link information of the first electronic device. The second encrypted information is obtained by the second electronic device using the second key to encrypt, and the second encrypted information includes the device information and link information of the second electronic device. In this way, after the second electronic device passes the device authentication, the first electronic device and the second electronic device can obtain more complete information about each other in an encrypted manner, and the security of data transmission can be guaranteed.

[0016] In one implementation, the first electronic device exchanges security module messages with the second electronic device based on the Bluetooth connection, including: the first electronic device obtains the user account logged in by the second electronic device based on the Bluetooth connection. The first electronic device determines whether the user account logged in by the local device is the same as the user account logged in by the second electronic device. If they are the same, the first electronic device exchanges security module messages with the second electronic device based on the Bluetooth connection. In this way, the first electronic device can preliminarily determine whether it can be networked with the second electronic device through the user account logged in by the second electronic device, so as to ensure the security of the device and avoid the first electronic device from performing invalid device authentication operations.

[0017] In one implementation, if the second electronic device passes the device authentication, the first electronic device transmits the first encrypted information to the second electronic device based on the Bluetooth connection, and after receiving the second encrypted information transmitted by the second electronic device, it also includes: the first electronic device stores the full device information of the second electronic device. The full device information of the second electronic device includes the device information, link information and Bluetooth address of the second electronic device. In this way, the first electronic device can, in the subsequent process of coordinating with the second electronic device, after obtaining the Bluetooth address of the second electronic device, directly obtain the corresponding full device information according to the simple Bluetooth address, so as to quickly coordinate with the second electronic device based on the obtained full device information to realize different upper-layer services.

[0018] In one implementation, the first electronic device receives a device discovery request broadcast by the second electronic device in response to a first operation performed by a user on a first button on a first page, and further includes: displaying a first window, the first window being a first area on the second page for displaying device search results, the device search results including the second electronic device, wherein each device search result corresponds to a second button. In this way, the first electronic device can display all discovered devices to the user through the first window, and provide an entry for establishing a data transmission channel for each device.

[0019] In one implementation, the device discovery request also includes a user account logged in by the second electronic device, and the first electronic device displays a first window, including: the first electronic device determines whether the user account information logged in by the local device is the same as the user account information logged in by the second electronic device. If they are the same, the first electronic device displays a first identifier on the second electronic device when displaying the first window. In this way, the user can quickly and accurately locate the discovered device with the same user account logged in as the first electronic device through the first identifier, and then can perform corresponding operations based on the device with the same account.

[0020] In one implementation, after the first electronic device performs device authentication with the second electronic device based on a Bluetooth connection, it also includes: if the second electronic device passes the device authentication, the first electronic device adds the device information of the second electronic device to the device management information, and the device management information includes the device information of the authenticated device. The first electronic device responds to the user's third operation and displays a third page according to the device management information, and the third page includes the first electronic device and the interactive controls of the authenticated device in the first state. In this way, the user can make the authenticated device interact with the first electronic device based on the interactive controls on the third page, which can effectively simplify the user operation and improve the interactivity between the user and the first electronic device.

[0021] In one implementation, the device management information also includes a user account logged in by the authenticated device, and the first electronic device responds to the third operation of the user and displays a third page according to the device management information, including: the first electronic device responds to the third operation of the user, and the first electronic device obtains the user account logged in by the authenticated device in the first state. The first electronic device displays the third page based on the user account information logged in by the local device and the user account logged in by the authenticated device in the first state, wherein the third page also includes a second identifier, and the second identifier is located on an interactive control of the authenticated device with the same user account as the first electronic device. In this way, the user can quickly and accurately locate the authenticated device with the same user account as the first electronic device through the second identifier, and then can perform corresponding operations based on the device with the same account.

[0022] In the second aspect, the embodiment of the present application also provides a device authentication apparatus, including: a first response module, for obtaining the Bluetooth address of the second electronic device in response to a user operation. A storage module, for storing device information of the authenticated device, the device information including the Bluetooth address and the device status, the device status including the first status and the second status. Among them, the first status includes that the first electronic device has established a Bluetooth connection with the authenticated device or can receive the broadcast response message of the other party, and the second status includes that the first electronic device has not established a Bluetooth connection with the authenticated device. An identification module, for identifying the device status of the second electronic device according to the Bluetooth address of the second electronic device and the device information of the authenticated device. A connection module, for establishing a Bluetooth connection with the second electronic device according to the Bluetooth address of the second electronic device if the device status of the second electronic device is the second status. An authentication module, for performing device authentication with the second electronic device based on the Bluetooth connection.

[0023] In the apparatus provided by the embodiment of the present application, when the first electronic device and the second electronic device support the networking function, the first electronic device can respond to the user operation, quickly trigger the establishment of a Bluetooth connection with the second electronic device, and perform device authentication with the second electronic device. In this way, when the user wants the first electronic device to network with the second electronic device, the first electronic device can be quickly triggered to perform device authentication on the second electronic device, thereby improving the efficiency of device authentication.

[0024] In a third aspect, an embodiment of the present application further provides a computer-readable storage medium, in which instructions are stored, and when the computer-readable storage medium is run on a computer, the computer executes the above-mentioned aspects and methods of each implementation thereof.

[0025] In a fourth aspect, an embodiment of the present application further provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the above-mentioned aspects and methods of each of its implementation methods.

[0026] In a fifth aspect, an embodiment of the present application further provides a chip system, which includes a processor for supporting the above-mentioned terminal device to implement the functions involved in the above-mentioned aspects, for example, generating or processing the information involved in the above-mentioned method. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 It is a software architecture block diagram of an electronic device implementing multi-device collaboration provided by an embodiment of the present application;

[0028] Figure 2 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;

[0029] Figure 3 is a software structure block diagram of the electronic device of the embodiment of the present application;

[0030] Figure 4 is a flow chart of a device authentication method provided in an embodiment of the present application;

[0031] Figure 5A and Figure 5B This is a first group of interaction example diagrams of a first electronic device discovering a second electronic device, shown in an embodiment of the present application;

[0032] Fig. 6A , Figure 6B , Figure 6C and Fig.6D is a second group of interaction example diagrams of a first electronic device discovering a second electronic device, shown in an embodiment of the present application;

[0033] Fig. 7A , Figure 7B and Figure 7C is a third group of interaction example diagrams of a first electronic device discovering a second electronic device, shown in an embodiment of the present application;

[0034] Fig. 8A and Figure 8B is a fourth group of interaction example diagrams of a first electronic device discovering a second electronic device, shown in an embodiment of the present application;

[0035] Fig. 9 This is a first interaction example diagram of an embodiment of the present application, in which a first electronic device performs device authentication with a second electronic device in response to any user operation in the first to third implementation modes performed by a user;

[0036] Fig.10 This is a second interaction example diagram of an embodiment of the present application, in which a first electronic device performs device authentication with a second electronic device in response to any user operation in the first to third implementation modes performed by a user;

[0037] Fig.11 is a third interaction example diagram of a first electronic device performing device authentication with a second electronic device in response to a user operation in a fourth implementation manner performed by a user, shown in an embodiment of the present application;

[0038] Fig.12 This is an example diagram of a second page when a first electronic device and a second electronic device log in to the same user account, as shown in an embodiment of the present application;

[0039] Fig.13A , Fig. 13B , Fig. 13C and Fig.13D This is an example diagram of an interaction in which a first electronic device displays a third page after a second electronic device passes device authentication, as shown in an embodiment of the present application;

[0040] Fig.14 It is a structural diagram of a device authentication device provided in an embodiment of the present application;

[0041] Fig.15 It is a structural diagram of another device authentication device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0042] The technical solutions in the embodiments of the present application will be described clearly below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments of the present application, other embodiments obtained by ordinary technicians in this field without making creative work all belong to the protection scope of the present application.

[0043] The terms "first", "second", and "third" in the specification and claims of this application are used to distinguish different objects, rather than to limit a specific order. In the description of this application, unless otherwise specified, "at least one" means one, two, and more than two.

[0044] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0045] The terms used in the implementation method part of this application are only used to explain the specific embodiments of this application, and are not intended to limit this application. The embodiments of this application will be described in detail below in conjunction with the accompanying drawings.

[0046] Multi-device collaboration is a distributed technology applied to multiple electronic devices. Using multi-device collaboration technology, two or more electronic devices can collaborate across systems and devices to achieve information synchronization, resource sharing, and collaborative operations.

[0047] Multi-device collaboration can be applied to electronic devices of the same or different types. The types of electronic devices include but are not limited to mobile phones, tablet computers, laptops, large-screen devices (such as smart TVs, smart screens), personal computers (persona1computers, PCs), handheld computers, netbooks, personal digital assistants (personal digital assistants, PDAs), wearable electronic devices, vehicle-mounted devices, virtual reality devices, and other devices.

[0048] Multi-device collaboration needs to be implemented based on the networking relationship between devices. The networking relationship between devices refers to the topological relationship formed by establishing a communication connection between devices after passing device authentication. The electronic device can establish a networking relationship with the peer device through a networking module, and the networking module can be a smart interconnection module. After the electronic device discovers the peer device, the process of authenticating the peer device can also be called the online process of the peer device. In the process of device authentication between the electronic device and the peer device, the electronic device discovers the peer device by broadcasting, and after discovering the peer device, it authenticates the peer device. In order to reduce the power consumption of the electronic device, the electronic device can broadcast according to a preset trigger mechanism. Among them, the preset trigger mechanism may include: the electronic device broadcasts periodically according to different cycles in different screen states, for example, the electronic device broadcasts continuously for 5 seconds every 30 seconds in the bright screen state, and the electronic device broadcasts continuously for 2 seconds or 5 seconds every 5 minutes in the sleep state (screen off and unplugged), wherein the broadcast of 2 seconds and the broadcast of 5 seconds can be performed alternately, and the scanning of the peer device for 2 seconds and stop for 3 seconds. The preset trigger mechanism may also include: the electronic device triggers a broadcast when the specified device state changes, and the electronic device triggers a broadcast when the network group it is in changes. Among them, the specified device state of the electronic device includes the screen unlock state, screen off state, charging state, unplugged state, networking function on, etc. On the basis of periodic broadcasts, when the specified device state changes, or the network group it is in changes, the electronic device triggers an additional broadcast of a certain duration, such as an additional broadcast of 5 seconds. After discovering the peer device, the electronic device performs device authentication with the peer device.

[0049] Figure 1 This is a software architecture block diagram of the electronic device provided in the embodiment of the present application to achieve multi-device collaboration.

[0050] like Figure 1As shown, the software architecture may include an application service framework, a multi-device collaborative decision engine, and a connection basic capability subsystem. The electronic device runs a multi-device collaborative application based on the application service framework, such as PC and mobile phone collaboration, PC and tablet collaboration. After the electronic device starts the multi-device collaborative application, it transmits the relevant data to the connection basic capability subsystem, and realizes the functions of device management, service registration, synchronization of devices, service online and offline through the multi-device collaborative decision engine. The connection basic capability subsystem includes: device management service, peripheral control service, device discovery connection service, and data transmission service. Among them, the device management service can obtain an account through the account service, such as obtaining the user account logged in by the local device and the user account logged in by the peer device. The device discovery connection service can realize regular wake-up through the system timing service, so as to broadcast and discover nearby devices after wake-up. The period of the system timing service scheduled wake-up can meet the preset trigger conditions, such as the broadcast period of the electronic device in different screen states, the change of the specified device state of the electronic device, and the change of the network group where the electronic device is located. After discovering nearby devices, the device discovery connection service can authenticate the device with the peer device through the security service, such as obtaining the device certificate of the peer device, authenticating the same account with the peer device, distributing keys to the peer device, and encrypting and decrypting data during data transmission with the peer device. The data transmission service can establish a near-field physical connection with the peer device through the communication service, and send and receive data through the physical channel. Among them, the communication service can be implemented through low-power hardware.

[0051] The way in which electronic devices discover peer devices by themselves and perform device authentication with the peer devices will take a long time to discover peer devices. Take the preset trigger condition that the electronic device broadcasts for 5 seconds every 30 seconds when the screen is on. The average device discovery and online time between electronic devices and peer devices is 3.9 seconds. In more extreme cases, the electronic device may need to wait 25 seconds to discover the peer device and perform device authentication with the peer device. Therefore, the device authentication efficiency between electronic devices and peer devices is low.

[0052] In order to solve the above technical problems, an embodiment of the present application provides a device authentication method.

[0053] Figure 2 Schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. If the device for multi-device collaboration includes a first electronic device and a second electronic device, the electronic device can be used as both the first electronic device and the second electronic device. Figure 2As shown, the electronic device 100 may include a processor 110, a memory 120, a universal serial bus (USB) interface 130, a radio frequency circuit 140, a mobile communication module 150, a wireless communication module 160, a camera 170, a display screen 180, a touch sensor 190, an air pressure sensor 210 and a button 220, etc.

[0054] The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and / or a neural network processor (neural-network processing unit, NPU), etc. Among them, different processing units can be independent devices, or they can be integrated into one or more processors, for example, integrated into a system on a chip (system on a chip, SoC). A memory can also be set in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a high-speed cache memory. The memory can save instructions or data that the processor 110 has just used or circulated.

[0055] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0056] The memory 120 can be used to store computer executable program codes, and the executable program codes include instructions. The memory 120 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the memory 120 may include one or more storage units, for example, it may include a volatile memory (volatile memory), such as: a dynamic random access memory (DRAM), a static random access memory (SRAM), etc.; it may also include a non-volatile memory (NVM), such as: a read-only memory (ROM), a flash memory, etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the memory 120 and / or instructions stored in a memory provided in the processor.

[0057] It should be noted here that the operating system referred to in the embodiments of the present application includes but is not limited to Android operating system, IOS operating system, iPad OS, Windows operating system, Linux operating system, MAC OS operating system, embedded system, etc.

[0058] The wireless communication function of the electronic device 100 can be implemented through the radio frequency circuit 140, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0059] The radio frequency circuit 140 may include at least one antenna 141 for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication frequency bands. In some embodiments, the antenna may be used in combination with a tuning switch.

[0060] The mobile communication module 150 can provide a solution for wireless communications including 2G / 3G / 4G / 5G, etc., for applications on the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves through the antenna 141, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 141. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0061] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (including but not limited to a speaker, a receiver, etc.), or displays an image or video through a display screen 180. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0062] The wireless communication module 160 may include a wireless fidelity (Wi-Fi) module, a Bluetooth (BT) module, a GNSS module, a near field communication (NFC) module, an infrared (IR) module, etc. The wireless communication module 160 may be one or more devices integrating at least one of the above modules. The wireless communication module 160 receives electromagnetic waves via the antenna 141, modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 may also receive the signal to be sent from the processor 110, modulate the frequency, amplify it, and convert it into electromagnetic waves for radiation via the antenna 141.

[0063] In the embodiment of the present application, the wireless communication function of the electronic device 100 may include, for example, global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), fifth generation mobile networks new radio (5G NR), BT, GNSS, WLAN, NFC, FM, and / or IR. GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS) and / or satellite based augmentation system (SBAS).

[0064] The camera 170 is used to capture still images or videos. The camera 170 includes a lens and a photosensitive element. The object generates an optical image through the lens and is projected onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, RYYB or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 170, where N is a positive integer greater than 1.

[0065] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. NPU can realize applications such as intelligent cognition of electronic device 100, such as image recognition, face recognition, voice recognition, text understanding, etc.

[0066] The display screen 180 is used to display images, videos, etc. The display screen 180 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), MiniLED, MicroLED, Micro-OLED, quantum dot light-emitting diodes (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 180, where N is a positive integer greater than 1.

[0067] The touch sensor 190 is also called a "touch control device". The touch sensor 190 can be arranged on the display screen 180. The touch sensor 190 and the display screen 180 form a touch screen, also called a "touch control screen". The touch sensor 190 is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 180. In other embodiments, the touch sensor 190 can also be arranged on the surface of the electronic device 100, which is different from the position of the display screen 180.

[0068] The air pressure sensor 210 is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 210 to assist in positioning and navigation.

[0069] The key 220 includes a power key, a volume key, etc. The key 220 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.

[0070] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0071] The following is an exemplary description of the various method steps of the multi-device collaboration method provided in the embodiment of the present application.

[0072] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present invention, the Android system of the layered architecture is taken as an example to exemplify the software structure of the electronic device 100.

[0073] Figure 3 It is a software structure block diagram of the electronic device 100 according to an embodiment of the present application.

[0074] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.

[0075] The application layer can include a series of application packages.

[0076] like Figure 3 As shown, the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.

[0077] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0078] like Figure 3 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.

[0079] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.

[0080] Content providers are used to store and retrieve data and make it accessible to applications. The data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0081] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.

[0082] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).

[0083] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0084] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.

[0085] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.

[0086] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.

[0087] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0088] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0089] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

[0090] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0091] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0092] A 2D graphics engine is a drawing engine for 2D drawings.

[0093] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.

[0094] The device authentication method provided in the embodiment of the present application can be implemented in the first electronic device.

[0095] Figure 4 It is a flow chart of a device authentication method provided in an embodiment of the present application.

[0096] like Figure 4 As shown, when the first electronic device and the second electronic device enable the multi-device collaboration function, the method may include the following steps S401-S404:

[0097] Step S401: The first electronic device obtains the Bluetooth address of the second electronic device in response to a user operation.

[0098] The user operation is used to quickly trigger the first electronic device to discover the second electronic device. The user operation may include: the user brings the first electronic device close to or touches the Near Field Communication (NFC) area of ​​the second electronic device, the user uses the first electronic device to scan the QR code provided by the second electronic device, the user brings the first electronic device close to the second electronic device, and the user performs a first operation on the first button on the first page. Among them, the first page can be a multi-device collaboration page, and the first button can be an entry to search for nearby devices, such as a collaboration option for a specified type of device in a multi-device collaboration page. The first operation can be a single-click operation, a double-click operation, a long press operation, etc.

[0099] If the first electronic device finds the second electronic device, the Bluetooth address of the second electronic device can be obtained. The Bluetooth address of the second electronic device may include: Basic Rate (BR) Media Access Control Address (MAC), Bluetooth Low Energy (BLE) MAC.

[0100] The user operation quickly triggers the first electronic device to discover the second electronic device, and then quickly triggers the first electronic device to go online to the second electronic device.

[0101] After acquiring the Bluetooth address of the second electronic device, the first electronic device may further display a first window. The first window may be used to prompt the user that the second electronic device has been discovered. The first window includes a second button, and the user may perform a second operation based on the second button to enable the first electronic device to establish a data transmission channel with the second electronic device. The second operation may be a single-click operation, a double-click operation, a long-press operation, etc. The first window may further include a cancel button, and the user may perform an operation based on the cancel button to prohibit the first electronic device from establishing a data transmission channel with the second electronic device, and to enable the first electronic device to close the first window.

[0102] In one implementation, the first window may be a toast. In this way, the first electronic device can display a smaller toast to minimize the obstruction of the interface displayed by the first electronic device when quickly prompting the user that the second electronic device has been found. The toast includes a second button, such as a connect button. When the user performs a second operation based on the second button, the electronic device will establish a data transmission channel with the second electronic device in response to the second operation.

[0103] In one implementation, the first window is the first area in the second page for displaying device search results. The second page can be a collaborative page for a specified type of device, wherein the entrance to the second page can be set on the first page, such as the entrance to the second page is the first button on the first page. If the first electronic device finds the second electronic device, the device search results include the device search results of the second electronic device. In this way, the first electronic device can display all the discovered electronic devices to the user by displaying the first window. The first window includes a second button, wherein each device search result corresponds to a first button, such as a connect button. When the user performs a second operation based on the first button corresponding to the device search result of the second electronic device, the electronic device will respond to the second operation and establish a data transmission channel with the second electronic device.

[0104] Based on different user operations of the user, the first electronic device will display in different forms. The different interactions of the first electronic device in response to the user operations are described in combination with the following implementations.

[0105] In a first implementation manner, the user operation is that the user brings the first electronic device close to or touches the NFC area of ​​the second electronic device.

[0106] Both the first electronic device and the second electronic device have NFC functions. For example, both the first electronic device and the second electronic device are equipped with NFC chips. The NFC area of ​​the second electronic device can be identified by an NFC mark so that the user can accurately locate the NFC area of ​​the second electronic device. In response to the user's operation of bringing it close to or touching the NFC area of ​​the second electronic device, the first electronic device discovers the second electronic device and establishes NFC communication with the second electronic device. Thus, the first electronic device can obtain the Bluetooth address of the second electronic device from the second electronic device based on NFC communication. Based on the NFC communication between the first electronic device and the second electronic device, the Bluetooth address of the second electronic device obtained by the first electronic device is BR MAC, which has a smaller data volume, is more suitable for transmission through NFC communication, and has a faster transmission speed.

[0107] In this way, the user can simply and quickly trigger the first electronic device to discover the second electronic device by bringing the first electronic device close to or touching the second electronic device.

[0108] Figure 5A and Figure 5B This is a first group of interaction example diagrams of a first electronic device discovering a second electronic device, shown in an embodiment of the present application.

[0109] The first electronic device may be a mobile phone, and the second electronic device may be a PC. Both the mobile phone and the PC are in a bright screen state, and both the mobile phone and the PC have Bluetooth functions turned on. Figure 5A As shown, an NFC logo 501 can be pasted on the lower right corner of the PC. When the user wants to establish a network between the mobile phone and the PC, the user can perform user operation 11 by bringing the mobile phone close to or touching the NFC logo 501. Figure 5B As shown, when the mobile phone touches the NFC mark 501, the mobile phone finds the PC and establishes NFC communication with the PC. Taking the Bluetooth address of the PC as BRMAC_1 as an example, the PC sends BR MAC_1 to the mobile phone through NFC communication. After the mobile phone obtains the BR MAC_1 of the PC, it can leave the NFC area of ​​the PC. However, the mobile phone needs to remain within the range of Bluetooth communication with the PC. After the mobile phone obtains the BR MAC_1 of the PC, the first window is displayed. Taking the first window as a pop-up window as an example, Figure 5BAs shown, the mobile phone displays a pop-up window 502, which includes a second button 503 and a cancel button 504. If the user performs a second operation on the second button 503, the mobile phone will respond to the second operation and establish a data transmission path with the PC. If the user performs a second operation on the cancel button 504, the mobile phone will respond to the second operation and not establish a data transmission path with the PC.

[0110] In a second implementation manner, the user operation is that the user uses the first electronic device to scan the QR code provided by the second electronic device.

[0111] The first electronic device has a function of scanning a QR code. Among them, a QR code scanning entrance can be set on the fourth page. In some embodiments, the fourth page can be a desktop, a smart vision page, a browser page, etc., and the QR code scanning entrance can be an icon of a code scanning application on the desktop, an icon of a code scanning in a smart vision page, an icon of a code scanning on a browser page, etc. When the first electronic device displays the fourth page, the user can click on the scanning entrance on the fourth page to make the first electronic device display the scanning page.

[0112] The second electronic device has a function of providing a QR code. Among them, a display entrance of the QR code can be set on the fifth page. In some embodiments, the fifth page can be a multi-device collaboration page, and the display entrance of the QR code can be a collaboration option for a specified type of device in the multi-device collaboration page. When the second electronic device displays the fifth page, the user can click on the display entrance of the QR code on the fifth page to display the QR code on the second electronic device. Alternatively, the second electronic device can paste the QR code on the device housing. The QR code is associated with the Bluetooth address of the second electronic device.

[0113] When the first electronic device displays a scan box and the second electronic device displays a QR code, the user uses the scan box of the first electronic device to scan the QR code provided by the second electronic device. In response to the user operation, the first electronic device finds the second electronic device when the QR code is recognized, and obtains the Bluetooth address associated with the QR code in the scan box.

[0114] In this way, the user can simply and quickly trigger the first electronic device to discover the second electronic device by scanning the code.

[0115] After acquiring the Bluetooth address of the second electronic device, the first electronic device further displays a first window. The first window is similar to the first window in the first implementation manner and is not described in detail here.

[0116] Fig. 6A , Figure 6B , Figure 6C and Fig.6DThis is a second group of interaction example diagrams of a first electronic device discovering a second electronic device, shown in an embodiment of the present application.

[0117] The first electronic device may be a mobile phone, and the second electronic device may be a PC. Both the mobile phone and the PC are in a bright screen state, and both the mobile phone and the PC have Bluetooth functions turned on. Fig. 6A As shown, the mobile phone displays a fourth page, such as a desktop, which includes a QR code scanning entry, such as a scan code icon 601. The user can perform a click operation 13 on icon 601. The PC displays a fifth page, such as a multi-device collaboration page, which includes a QR code display entry, such as a mobile phone collaboration option 602. The user can perform a click operation 14 on option 602. Figure 6B As shown, the mobile phone displays a scan page 603 in response to the click operation 13, and the PC displays a QR code 604 in response to the click operation 14. When the user wants to establish a network between the mobile phone and the PC, the user can scan the QR code 604 of the PC through the scan page 603 on the mobile phone. Figure 6C As shown, when the QR code 604 is within the scanning range of the scanning page 603, the mobile phone recognizes the QR code 604 and obtains the associated Bluetooth address, such as BR MAC_2, through the QR code 604. After obtaining the BR MAC_2 of the PC, the mobile phone can move away from the PC. However, the mobile phone needs to remain within the range of Bluetooth communication with the PC. After the mobile phone obtains the BR MAC_2 of the PC, the first window is displayed. Take the first window as an example, as shown in Fig.6D As shown, the mobile phone jumps to display a pop-up window 605. The pop-up window 605 includes a second button 606 and a cancel button 607. If the user performs a second operation on the second button 606, the mobile phone will respond to the second operation and establish a data transmission path with the PC. If the user performs a second operation on the cancel button 607, the mobile phone will respond to the second operation and not establish a data transmission path with the PC.

[0118] In a third implementation manner, the user operation is that the user brings the first electronic device close to the second electronic device.

[0119] The first electronic device has a function of broadcasting a device discovery request. After the first electronic device turns on the Bluetooth function, it starts broadcasting the device discovery request externally.

[0120] The second electronic device has a function of scanning nearby devices. Among them, an entry for scanning nearby devices can be set on the fifth page. In some embodiments, the sixth page can be a multi-device collaboration page, and the entry for scanning nearby devices can be a collaboration option for a specified type of device in the multi-device collaboration page. When the second electronic device displays the sixth page, the user can click on the entry for scanning nearby devices on the sixth page to make the second electronic device scan nearby devices.

[0121] After the second electronic device starts scanning nearby devices, the user brings the first electronic device close to the second electronic device. The second electronic device can receive the device discovery request broadcast by the first electronic device, and determine the distance between it and the first electronic device according to the Bluetooth signal strength of the device discovery request. Among them, the stronger the Bluetooth signal strength, the closer the second electronic device can determine to be to the first electronic device. The weaker the Bluetooth signal strength, the farther the second electronic device can determine to be to the first electronic device. When the second electronic device determines that the Bluetooth signal strength of the received device discovery request is greater than or equal to the strength threshold, it can be determined that the distance between it and the first electronic device is less than or equal to the distance threshold, that is, the first electronic device and the second electronic device are close enough. When the second electronic device determines that the Bluetooth signal strength of the received device discovery request is greater than or equal to the strength threshold, it broadcasts a response message in response to the device discovery request of the first electronic device, and carries the Bluetooth address of the second electronic device in the response message. When the first electronic device receives the response message, it is equivalent to discovering the second electronic device. Based on the way that the second electronic device transmits the Bluetooth address by broadcasting the response information, the Bluetooth address of the second electronic device obtained by the first electronic device is BR MAC, and the data volume of BR MAC is smaller and more suitable for broadcasting.

[0122] In this way, the user can simply and quickly trigger the first electronic device to discover the second electronic device by bringing the first electronic device closer to the second electronic device.

[0123] After acquiring the Bluetooth address of the second electronic device, the first electronic device further displays a first window. The first window is similar to the first window in the first implementation manner and is not described in detail here.

[0124] Fig. 7A , Figure 7B and Figure 7C This is a third group of interaction example diagrams of a first electronic device discovering a second electronic device shown in an embodiment of the present application.

[0125] The first electronic device may be a mobile phone, and the second electronic device may be a PC. Both the mobile phone and the PC are in a bright screen state, and both the mobile phone and the PC have Bluetooth functions turned on. Fig. 7A As shown, the mobile phone broadcasts a device discovery request. The PC displays a sixth page, such as a multi-device collaboration page, which includes an entry for scanning nearby devices, such as option 701 for mobile phone collaboration. The user can perform a click operation 15 on option 701. Figure 7B As shown, the PC scans nearby devices in response to the click operation 15. When the user wants to establish a network between the mobile phone and the PC, the user performs the operation 16 of bringing the mobile phone closer to the PC. The PC determines the distance from the mobile phone based on the Bluetooth signal strength of the received device discovery request. Figure 7CAs shown in the figure, when the PC determines that the Bluetooth signal strength of the device discovery request is greater than or equal to the strength threshold, it broadcasts a response message to the mobile phone. The response message carries the Bluetooth address of the PC, such as BR MAC_3. The mobile phone receives the response message and discovers the PC. After obtaining the BR MAC_3 of the PC, the mobile phone displays the first window. Take the first window as an example, as shown in the figure. Figure 7C As shown, the mobile phone displays a pop-up window 702. The pop-up window 702 includes a second button 703 and a cancel button 704. If the user performs a second operation on the second button 703, the mobile phone will respond to the second operation and establish a data transmission path with the PC. If the user performs a second operation on the cancel button 704, the mobile phone will respond to the second operation and not establish a data transmission path with the PC.

[0126] In a fourth implementation manner, the user operation is a first operation performed by the user on a first button on the first page.

[0127] The second electronic device has a function of broadcasting a device discovery request. After the second electronic device turns on the Bluetooth function, it starts to broadcast a device discovery request. The device discovery request may include the Bluetooth address of the second electronic device, such as BLE MAC or BR MAC, and may also include device information of the second electronic device, such as a logged-in user account.

[0128] When a user wants to network the first electronic device with the second electronic device, the user can perform a first operation on the first button on the first page when the first electronic device displays the first page, so that the first electronic device searches for nearby devices. After the second electronic device turns on the device discovery service, it broadcasts a device discovery request. In response to the first operation, the first electronic device receives the device discovery request broadcast by the second electronic device. After receiving the device discovery request of the second electronic device, the first electronic device discovers the second electronic device and can obtain the Bluetooth address of the second electronic device from the received device discovery request.

[0129] In this way, the user can simply and quickly trigger the first electronic device to discover the second electronic device by triggering the first electronic device to receive a device discovery request from a nearby device.

[0130] Fig. 8A and Figure 8B This is a fourth group of interaction example diagrams of a first electronic device discovering a second electronic device shown in an embodiment of the present application.

[0131] The first electronic device may be a PC, and the second electronic device may be a tablet computer. Both the PC and the tablet computer are in a bright screen state, and both the PC and the tablet computer have Bluetooth functions turned on. Fig. 8AAs shown, the tablet computer broadcasts a device discovery request. The PC displays a first page, such as a multi-device collaboration page, which includes a first button, such as an entry for searching for nearby devices on the multi-device collaboration page, such as option 801 for tablet collaboration. When the user wants to establish a network for the PC and the tablet computer, the user operation can be performed on option 801, such as clicking operation 17. Figure 8B As shown, the PC searches for nearby devices in response to the click operation 17. When the PC receives the device discovery request broadcast by the tablet computer, the tablet computer is discovered. The PC obtains the Bluetooth address of the tablet computer from the received device discovery request, such as BLE MAC_4. After obtaining the BR MAC_4 of the tablet computer, the PC displays a first window. The first window may be the first area on the second page, and the first window includes the device search results. Figure 8B As shown, the PC displays a first window 802 on the second page. The first window 802 includes device search results. For example, if the devices searched by the PC include a tablet computer and a mobile phone, the device search results in the first window 802 include a tablet computer and a mobile phone. It can be seen that when the PC finds a tablet computer, the device search results of the tablet computer can be displayed in the first window 802. The first window 802 includes second buttons 803, and each second button 803 corresponds to a device search result.

[0132] The first electronic device stores device information of an authenticated device. An authenticated device is an electronic device that is discovered by the first electronic device and has passed device authentication of the first electronic device. A networking relationship has been established between the first electronic device and the authenticated device. Based on the networking relationship, the first electronic device can obtain the connection and transmission information of the authenticated device based on the data transmitted or cached data when the authenticated device is discovered, and can directly connect the device and transmit data with the authenticated device based on the connection and transmission information. The first electronic device can store the device information of the authenticated device in the form of a device list.

[0133] The device information includes: a Bluetooth address and a device state. The Bluetooth address may include: a BR MAC, a BLE MAC. The device state includes a first state and a second state. The first state may also be referred to as an online state, and the second state may also be referred to as an offline state. The first state includes that the first electronic device has established a Bluetooth connection with the authenticated device or can receive a broadcast response message from the other party. The networking relationship between the first electronic device and the authenticated device in the first state can be maintained and used, for example, the first electronic device establishes a long connection with the authenticated device, or sends a broadcast to the authenticated device through a heartbeat broadcast, a unicast confirmation, etc., and can receive a broadcast response message from the authenticated device. The second state includes that the first electronic device has not established a Bluetooth connection with the authenticated device. The networking relationship between the first electronic device and the authenticated device in the second state cannot be maintained and used. For example, the first electronic device disconnects the long connection with the authenticated device, or the first electronic device cannot receive a broadcast response message from the authenticated device through a heartbeat broadcast, a unicast confirmation, etc., or the authenticated device cannot pass the device authentication of the first electronic device again.

[0134] Step S402: The first electronic device identifies the device status of the second electronic device according to the Bluetooth address of the second electronic device and the device information of the authenticated device.

[0135] The first electronic device can determine whether the second electronic device is an authenticated device based on the Bluetooth address of the second electronic device. For example, the first electronic device determines whether the device information of the authenticated device contains the Bluetooth address of the second electronic device. If so, the second electronic device is an authenticated device; if not, the second electronic device is not an authenticated device.

[0136] If the second electronic device is an authenticated device, the first electronic device determines the device state of the second electronic device based on the stored device information of the authenticated device. For example, if the device state in the device information with the same Bluetooth address is the first state, the device state of the second electronic device is the first state, and if the device state in the device information with the same Bluetooth address is the second state, the device state of the second electronic device is the second state.

[0137] If the second electronic device is not an authenticated device, the first electronic device determines that the second electronic device is in a second state.

[0138] In some embodiments, based on the first to third implementations of the user operation in step S401, after detecting that the first window is displayed, the first electronic device identifies the device status of the second electronic device based on the Bluetooth address of the second electronic device and the device information of the authenticated device. After the first electronic device displays the first window, the first electronic device can automatically force the second electronic device to go online, that is, identify the device status of the second electronic device, and perform device authentication with the second electronic device, without the user having to perform the second operation based on the second button. In this way, the first electronic device can force the second electronic device to go online without the user's perception. If the user performs the second operation based on the second button, the first electronic device can directly establish a data transmission path with the second electronic device that has passed the device authentication, so as to perform device collaboration with the second electronic device, effectively reducing the user's waiting time.

[0139] In some embodiments, after detecting that the first window is displayed, the first electronic device may also determine the service type before executing step S402. The service is the service that the first electronic device and the second electronic device want to run after the first electronic device and the second electronic device pass device authentication. The service type may include a first type and a second type, the first type being an open type, that is, allowing / supporting the service that the first electronic device and the second electronic device run based on smart interconnection, and the second type being a closed type, that is, not allowing / supporting the service that the first electronic device and the second electronic device run based on smart interconnection. When the service type is the first type, the first electronic device executes step S402. When the service type is the second type, the first electronic device does not execute step S402.

[0140] In some embodiments, based on the fourth implementation of the user operation in step S401, the first electronic device obtains the user account logged in by the second electronic device before identifying the device status of the second electronic device. The device discovery request broadcast by the second electronic device may include device information, such as the logged-in user account. After the first electronic device receives the device discovery request of the second electronic device, it can obtain the user account logged in by the second electronic device from the device discovery request. The first electronic device determines whether the user account logged in by the local device is the same as the user account logged in by the second electronic device. If the first electronic device and the second electronic device log in to the same user account, the first electronic device identifies the device status of the second electronic device. If the first electronic device and the second electronic device log in to different user accounts, the first electronic device no longer performs the online process for the second electronic device. In this way, the second electronic device can be authenticated once by the user account logged in by the first electronic device and the second electronic device to further ensure the identity security of the user of the second electronic device. It is also possible to avoid executing subsequent device status identification and device authentication processes when the second electronic device and the first electronic device log in to different user accounts, wasting resources.

[0141] Step S403: if the device state of the second electronic device is the second state, the first electronic device establishes a Bluetooth connection with the second electronic device according to the Bluetooth address of the second electronic device.

[0142] If the device state of the second electronic device is the first state, the first electronic device can directly connect to and transmit data with the second electronic device.

[0143] If the device state of the second electronic device is the second state, the first electronic device establishes a Bluetooth connection with the second electronic device according to the Bluetooth address of the second electronic device. For example, if the Bluetooth address of the second electronic device is BR MAC, the first electronic device establishes a BR connection with the second electronic device according to the BR MAC. If the Bluetooth address of the second electronic device is BLE MAC, the first electronic device establishes a BLE connection with the second electronic device according to the BLE MAC.

[0144] Step S404: the first electronic device performs device authentication with the second electronic device based on the Bluetooth connection.

[0145] After the first electronic device establishes a Bluetooth connection with the second electronic device, it exchanges security module information with the second electronic device based on the Bluetooth connection to perform device authentication based on the interacted security module information. In this way, when the first electronic device and the second electronic device support multi-device collaboration, the first electronic device can quickly trigger the establishment of a Bluetooth connection with the second electronic device in response to user operations, and perform device authentication with the second electronic device, which can effectively avoid waiting for a long time for the first electronic device to self-discover the second electronic device, thereby improving device authentication efficiency.

[0146] In some embodiments, before the first electronic device exchanges security module messages with the second electronic device, it can obtain the user account logged in by the second electronic device through a Bluetooth connection. The first electronic device determines whether the user account logged in by the local device is the same as the user account logged in by the second electronic device. If the first electronic device and the second electronic device are logged in with the same user account, the first electronic device exchanges security module messages with the second electronic device based on the Bluetooth connection and performs device authentication with the second electronic device. If the first electronic device and the second electronic device are logged in with different user accounts, the first electronic device terminates the device authentication process with the second electronic device. In this way, the second electronic device can be authenticated once through the user accounts logged in by the first electronic device and the second electronic device to further ensure the identity security of the user of the second electronic device. It is also possible to avoid executing subsequent device authentication processes and wasting resources when the second electronic device and the first electronic device are logged in with different user accounts.

[0147] In some embodiments, during the process of the first electronic device and the second electronic device performing device authentication by exchanging security module messages, if the first electronic device and the second electronic device pass the authentication, the first electronic device and the second electronic device obtain the key according to the security module information. For example, the first electronic device obtains the first key according to the security module information transmitted by the second electronic device, and the second electronic device obtains the second key according to the security module information transmitted by the first electronic device. The first electronic device and the second electronic device use the keys they each hold to exchange encrypted information to complete the device authentication process. Among them, the first electronic device uses the first key to encrypt and obtain the first encrypted information, and transmits the first encrypted information to the second electronic device. The second electronic device uses the second key to encrypt and obtain the second encrypted information, and transmits the second encrypted information to the first electronic device.

[0148] In some embodiments, the first encrypted information may include device information and link information of the first electronic device. The second encrypted information may include device information and link information of the second electronic device. Among them, the device information of the first electronic device and the second electronic device may include: device ID, operating status, device type, device model, supported collaborative functions, whether smart interconnection is supported, supported smart interconnection version, etc. Among them, the device ID may include node identification (Node ID), universally unique identifier (UUID), unique device identifier (UDID), etc. The device status may include screen on, screen off, sleep, etc. The collaborative function may include screen extension, screen projection, super call, screen mirroring, multi-screen collaboration, super notification, keyboard and mouse sharing, super keyboard and mouse, etc. The device type may include mobile phones, folding screen mobile phones, PCs, tablets, etc. The link information of the first electronic device and the second electronic device may include: link status, network status, etc. Therefore, the first electronic device and the second electronic device can obtain more comprehensive information about each other during the device authentication process.

[0149] In some embodiments, after acquiring the second encrypted information, the first electronic device stores the full device information of the second electronic device. The full device information of the second electronic device includes the device information, link information and Bluetooth address of the second electronic device. The first electronic device can use the same module, such as a networking module, to manage / store the full device information of the second electronic device, for example, storing the full device information of the second electronic device to the device information of the authenticated device. Thus, in the subsequent process of collaboration with the second electronic device, after acquiring the Bluetooth address of the second electronic device, the first electronic device can directly acquire the corresponding full device information based on the simple Bluetooth address, so as to quickly collaborate with the second electronic device based on the acquired full device information to realize different upper-layer services.

[0150] The device authentication method steps S401-S404 of the embodiment of the present application are schematically described with reference to the following examples.

[0151] Example 1

[0152] This example illustrates a first interactive process in which a first electronic device performs device authentication with a second electronic device in response to any user operation in the first to third implementation modes performed by a user.

[0153] Fig. 9 This is a first interaction example diagram shown in an embodiment of the present application, in which a first electronic device performs device authentication with a second electronic device in response to any user operation in the first to third implementation modes performed by the user.

[0154] like Fig. 9 As shown, taking the user operation in the first implementation mode as an example, the first electronic device may be a mobile phone, and the second electronic device may be a PC. The modules of the mobile phone participating in the first interaction process include a pop-up application, a networking module, a device management module, a collaborative service module, and a communication module. The modules of the PC participating in the first interaction process include a communication module, a collaborative service module, a device management module, and a networking module. Among them, the networking module of the mobile phone and the networking module of the PC may be a smart interconnection module.

[0155] The communication module of the mobile phone provides an NFC communication function, and the communication module of the PC provides an NFC communication function. When the user brings the mobile phone close to or touches the NFC area of ​​the PC, the communication module of the mobile phone and the communication module of the PC generate induction, and the mobile phone discovers the PC. The PC instructs the smart interconnection module to create a session service through the collaborative service module. The mobile phone establishes an NFC connection with the PC through the communication module, and the PC transmits a Bluetooth address, such as BR MAC, to the mobile phone based on the NFC connection through the communication module. The mobile phone can also transmit a Bluetooth address, such as BR MAC, to the PC based on the NFC connection through the communication module. The communication module of the mobile phone transmits a message of discovering the device to the collaborative service module, and the message of discovering the device includes the BR MAC of the PC. The communication module of the PC transmits a message of discovering the device to the collaborative service module, and the message of discovering the device includes the BR MAC of the mobile phone. The mobile phone transmits a notification of initiating a pop-up window to the pop-up application through the collaborative service module, and the notification includes the BR MAC of the PC. In response to the notification, the pop-up application of the mobile phone displays a first window, such as a pop-up window.

[0156] After the mobile phone displays the pop-up window, the pop-up application calls the forced online interface of the smart interconnection module to trigger the smart interconnection module to execute forced online on the PC. The smart interconnection module of the mobile phone determines the service type of the corresponding service of the pop-up application. When the service type is the first type, the mobile phone identifies the device status of the PC through the smart interconnection module according to the BR MAC of the PC and the stored device information of the authenticated device. If the device status of the PC is the first status, that is, the PC is online, the smart interconnection module sends an online notification to the pop-up application, and the online notification may include the device ID of the PC, such as the Node ID of the PC. Among them, if the device information of the authenticated device includes the device ID, the smart interconnection module can obtain the corresponding device ID from the device information of the authenticated device according to the BR MAC of the PC.

[0157] If the device status of the PC is the second status, that is, the PC is offline, the smart interconnection module sends an offline notification to the pop-up application, and the smart interconnection module sends a connection instruction to the communication module, and the connection instruction may include the BR MAC of the PC. The mobile phone establishes a BR connection with the PC through the communication module according to the BR MAC of the PC. After the mobile phone and the PC successfully establish a BR connection, the communication module of the mobile phone feeds back a BR connection success notification to the smart interconnection module, and the communication module of the PC feeds back a BR connection success notification to the smart interconnection module.

[0158] The mobile phone performs device authentication with the smart interconnection module of the PC through the smart interconnection module. Among them, the module of the mobile phone participating in the first interaction process may also include a security service module, and the module of the PC participating in the first interaction process may also include a security service module. The mobile phone performs device authentication with the smart interconnection module and the security service module of the PC through the smart interconnection module and the security service module. The mobile phone sends a notification of device authentication to the security service module through the smart interconnection module, and the security service module of the mobile phone exchanges security module messages with the security service module of the PC based on the BR connection, and uses the security module messages to perform device authentication. Before the security service module of the mobile phone exchanges security module messages with the security service module of the PC based on the BR connection, the security service module of the mobile phone can determine whether the mobile phone and the PC are logged in to the same user account, and when the same user account is logged in, it exchanges security module messages with the PC.

[0159] If the PC fails to pass the authentication, the security service module of the mobile phone returns a notification of authentication failure to the smart interconnection module, and the smart interconnection module feeds back the authentication failure notification to the pop-up application. Among them, the authentication failure notification may include the reason for the authentication failure. When the user performs the first operation on the first button in the first window, the pop-up application can determine that it cannot directly establish a data transmission channel with the PC based on the smart interconnection according to the authentication failure notification. If the mobile phone and the PC pass the device authentication, the security service module of the mobile phone returns the first key to the smart interconnection module, and the security service module of the PC returns the second key to the smart interconnection module. The smart interconnection module of the mobile phone and the smart interconnection module of the PC use the first key and the second key to exchange the first encrypted information and the second encrypted information respectively. The first encrypted information and the second encrypted information may include the device information and link information of the corresponding electronic device, etc. After the smart interconnection module of the mobile phone and the smart interconnection module of the PC obtain the encrypted information of the other party, confirm that the authentication is successful. Among them, the mobile phone feeds back the authentication success notification to the pop-up application through the smart interconnection module, and the authentication success notification may include the device ID of the PC, and the device ID of the PC may be obtained by the mobile phone from the second encrypted information, such as the Node ID of the PC. When the user performs the first operation on the first button in the first window, the pop-up application can determine that it can directly establish a data transmission channel with the PC based on the smart interconnection according to the authentication success notification. After the PC passes the authentication, the smart interconnection module of the mobile phone sends a device BR online message to the device management module to add the PC to the authenticated device. The device BR online message may include the device information of the PC, such as device ID, device status, device type, etc. The mobile phone can update and display the relevant page according to the device BR online message through the device management module. The mobile phone can manage / store the full device information of the PC through the smart interconnection module, and the full device information of the PC may include the BR MAC, device information and link information of the PC. After the mobile phone passes the authentication, the smart interconnection module of the PC sends a device BR online message to the device management module to add the mobile phone to the authenticated device. The device BR online message may include the device information of the mobile phone, such as device ID, device status, device type, etc. The PC can update and display the relevant page according to the device BR online message through the device management module. The PC can manage / store the full device information of the mobile phone through the smart interconnection module, and the full device information of the mobile phone may include the BR MAC, device information and link information of the mobile phone.

[0160] Example 2

[0161] This example illustrates a second interactive process in which the first electronic device performs device authentication with the second electronic device after displaying the first window in response to any user operation in the first to third implementation modes performed by the user.

[0162] Fig.10This is a second interaction example diagram shown in an embodiment of the present application, in which a first electronic device performs device authentication with a second electronic device in response to any user operation in the first to third implementation modes performed by the user.

[0163] like Fig.10 As shown, taking the user operation in the first implementation mode as an example, the first electronic device may be a mobile phone, and the second electronic device may be a PC. The modules of the mobile phone participating in the second interaction process include a business module, a device management module, and a networking module. Among them, the business module corresponds to the pop-up application. The modules of the PC participating in the second interaction process include a networking module. Among them, the networking module of the mobile phone and the networking module of the PC may be a smart interconnection module.

[0164] After the user brings the mobile phone close to or touches the NFC area of ​​the PC, the first window, such as a pop-up window, is displayed. The process can refer to Example 1 and will not be repeated here. The mobile phone calls the device management's force online by MAC address (forceOnlineByMac) interface through the business module to notify the PC to be forced online. The device management module constructs a device information (DeviceInfo) object and calls the authentication device (verifyDevice()) interface of the smart interconnection module to authenticate the PC through the smart interconnection module and force the PC to go online. The smart interconnection module of the mobile phone identifies the device status of the PC based on the BR MAC of the PC and the device information of the stored authenticated devices. If the device status of the PC is the first state, that is, the PC is online, the smart interconnection module calls back the authentication callback device authentication pass (VerifyCallback.onDeviceVerifyPass) interface of the business module and carries the device ID of the PC, such as the Node ID of the PC. If the device status of the PC is the second status, that is, the PC is not online, the smart interconnection module calls back the authentication callback device authentication failure (VerifyCallback.onDeviceVerifyFail) interface of the business module, and notifies the business module that authentication is in progress. If the device status of the PC is the second status, the mobile phone performs device authentication with the smart interconnection module of the PC through the smart interconnection module. The device authentication process can refer to Example 1 and will not be repeated here. After the authentication is completed, the smart interconnection module of the mobile phone calls back the corresponding authentication callback (VerifyCallback) interface of the business module according to the authentication result, and puts the PC online. Among them, if the PC passes the device authentication, the smart interconnection module of the mobile phone calls back the Pass interface of VerifyCallback. If the PC fails the device authentication, the smart interconnection module of the mobile phone calls back the Fail interface of VerifyCallback.

[0165] Example 3

[0166] This example illustrates a third interaction process in which the first electronic device performs device authentication with the second electronic device in response to a user operation in the fourth implementation manner performed by the user.

[0167] Fig.11 This is a third interaction example diagram of an embodiment of the present application, in which a first electronic device performs device authentication with a second electronic device in response to a user operation in a fourth implementation manner performed by a user.

[0168] like Fig.11 As shown, taking the user operation in the fourth implementation as an example, the first electronic device may be a PC, and the second electronic device may be a tablet computer. The modules of the PC participating in the third interaction process include a communication module, a collaborative service module, a device management module, and a networking module. The modules of the tablet computer participating in the third interaction process include a networking module, a device management module, a collaborative service module, and a communication module. Among them, the networking module of the PC and the networking module of the tablet computer may be a smart interconnection module.

[0169] The communication module of the PC provides a BLE / BR communication function, and the communication module of the tablet computer provides a BLE / BR communication function. The tablet computer notifies the smart interconnection module to create a session service (addSessionService) through the collaborative service module, and notifies the smart interconnection module to start the device discovery service (publishDiscoveryService). The smart interconnection module of the tablet computer notifies the communication module to start the device discovery service, and the tablet computer broadcasts the device discovery request. The user performs a second operation based on the second button on the second page displayed by the PC, such as clicking the tablet collaboration option on the multi-device collaboration page. This process can refer to the relevant instructions of the fourth implementation method of the user operation, which will not be repeated here. In response to the second operation, the PC notifies the smart interconnection module through the collaborative service module to start searching for nearby devices (startDiscovery). The smart interconnection module of the PC notifies the communication module to start searching for nearby devices. Taking the PC discovering a tablet computer based on the BLE discovery protocol as an example, the communication module of the PC sends a device discovery message (onDeviceFound) to the smart interconnection module, and the device discovery message may include the BLE / BR MAC of the tablet computer. The device discovery message may also include a user account that the tablet computer has logged in. The communication module of the tablet computer sends a device discovery message to the smart interconnection module, which may include the BLE / BR MAC of the PC. The smart interconnection module of the PC transmits the BLE / BR MAC of the tablet computer and the logged-in user account to the collaborative service module.

[0170] The collaborative service module of the PC determines whether the tablet computer and the local computer are logged in with the same user account according to the user account logged in by the tablet computer and the user account logged in by the local computer. If the tablet computer and the local computer are logged in with different user accounts, the PC ignores this task. If the tablet computer and the local computer are logged in with the same user account, the collaborative service module of the PC calls the forced online interface of the device management module to force the tablet computer to go online. The device management module of the PC calls the forced online interface of the smart interconnection module to trigger the smart interconnection module to force the tablet computer to go online. The PC identifies the device status of the PC through the smart interconnection module according to the BLE / BR MAC of the tablet computer and the device information of the stored authenticated device. If the device information of the authenticated device includes device information such as the device ID of the authenticated device, the PC can obtain the device information of the tablet computer when discovering the tablet computer, and identify the device status of the PC according to the device information of the tablet computer and the device information of the authenticated device. If the device status of the tablet computer is the first state, that is, the tablet computer is in the online state, the smart interconnection module sends an online notification to the device management module, which may include the device ID of the tablet computer, such as the UUID of the tablet computer. In response to the notification, the device management module requests the UDID of the tablet computer from the smart interconnection module. After obtaining the UDID of the tablet computer, the device management module sends an online success message to the collaborative service module, where the message includes the UDID of the tablet computer.

[0171] If the device state of the tablet computer is the second state, that is, the tablet computer is offline, the smart interconnection module sends an offline notification to the device management module, and the device management module sends an offline notification to the collaborative service module. The smart interconnection module also sends a connection instruction to the communication module, and the connection instruction may include the BLE / BR MAC of the tablet computer. The PC establishes a BLE / BR connection with the tablet computer through the communication module according to the BLE / BR MAC of the tablet computer.

[0172] After the PC successfully establishes a BLE / BR connection with the tablet computer, the PC performs device authentication with the tablet computer's smart interconnection module through the smart interconnection module. Among them, the module of the PC participating in the third interaction process may also include a security service module, and the module of the tablet computer participating in the third interaction process may also include a security service module. The PC performs device authentication with the tablet computer's smart interconnection module and security service module through the smart interconnection module and the security service module. The PC sends a notification of device authentication to the security service module through the smart interconnection module, and the security service module of the PC exchanges security module messages with the tablet computer's security service module based on the BLE / BR connection, and uses the security module messages to perform device authentication. Before the PC's security service module exchanges security module messages with the tablet computer's security service module based on the BLE / BR connection, the PC's security service module can determine whether the local machine and the tablet computer are logged in to the same user account, and when the same user account is logged in, it exchanges security module messages with the tablet computer.

[0173] If the tablet computer fails to pass the authentication, the security service module of the PC returns a notification of authentication failure to the smart interconnection module, and the smart interconnection module feeds back the authentication failure notification to the device management module. Among them, the authentication failure notification may include the reason for the authentication failure. The device management module then feeds back the authentication failure notification to the collaborative service module. If the tablet computer passes the authentication, the security service module of the PC returns the first key to the smart interconnection module, and the security service module of the tablet computer returns the second key to the smart interconnection module. The smart interconnection module of the PC and the smart interconnection module of the tablet computer use the first key and the second key to exchange the first encrypted information and the second encrypted information respectively. The first encrypted information and the second encrypted information may include the device information and link information of the corresponding electronic device, etc. After the smart interconnection module of the PC and the smart interconnection module of the tablet computer obtain the encrypted information of the other party, confirm that the authentication is successful. The PC feeds back the authentication success notification to the device management module through the smart interconnection module, and the authentication success notification may include the device ID of the tablet computer. The device ID of the tablet computer may be obtained by the PC from the second encrypted information, or it may be obtained when the PC discovers the tablet computer. The device management module then feeds back the authentication success notification to the collaborative service module, and adds the tablet computer to the authenticated devices. The PC can manage / store the full device information of the tablet computer through the smart interconnection module. The full device information of the tablet computer can include the BLE / BR MAC, device information and link information of the tablet computer. After the PC passes the authentication, the smart interconnection module of the tablet computer sends a device BR online message to the device management module to add the PC to the authenticated devices. The device BR online message can include the device information of the PC, such as device ID, device status, device type, etc. The tablet computer can update and display the relevant pages according to the device BR online message through the device management module. The tablet computer can manage / store the full device information of the PC through the smart interconnection module. The full device information of the PC can include the BLE / BR MAC, device information and link information of the PC.

[0174] In some embodiments, based on the user operation of the fourth implementation method in step S401, if the second electronic device is logged in to the same user account as the discovered device, the first electronic device displays a first identifier on the device search results of the discovered device with the same user account as the first electronic device in the first window.

[0175] In this way, the user can use the first identifier to quickly and accurately locate the discovered device that has the same user account as the first electronic device logged in, and then can perform corresponding operations based on the device with the same account.

[0176] Fig.12 This is an example diagram of a second page when a first electronic device and a second electronic device log in to the same user account, as shown in an embodiment of the present application.

[0177] The first electronic device may be a PC, and the second electronic device may be a tablet. If the device search results include a tablet and a mobile phone, the device information of the tablet includes the device type, such as a tablet, the device model, such as V7Pro, and the logged-in user account, such as user account b. The device information of the mobile phone includes the device type, such as a folding screen mobile phone, the device model, such as Magic V, and the logged-in user account, such as user account c. Fig.12 As shown, the first window 1201 of the second page includes device search results for tablet computers and mobile phones. If the user account logged in by the PC is user account b, the device search results for the tablet computer also include a first identifier, such as "my device".

[0178] The first electronic device is configured with a page for displaying the authenticated device in the first state, and the page may be a third page. The third page includes the first electronic device and interactive controls of the authenticated device in the first state.

[0179] After the second electronic device passes the authentication, the first electronic device adds the device information of the second electronic device to the device management information. The device management information includes the device information of the authenticated device, such as device ID, device type, device status, device type, etc. The device management information can be stored / managed by the device management module.

[0180] The first electronic device displays a third page according to the device management information in response to a third operation of the user.

[0181] If the second electronic device passes the device authentication and is in the first state, the third page includes the identification of the second electronic device. If the second electronic device fails the device authentication or is in the second state, the third page does not include the identification of the second electronic device.

[0182] In some embodiments, the first electronic device may set an entry to the third page on a seventh page, such as a control center page. The user may perform a third operation on the entry to the third page, and the third operation may be a single-click operation, a double-click operation, a long-press operation, etc. In response to the third operation, the first electronic device displays a third page, and the third page includes the first electronic device and the interactable controls of the authenticated device in the first state.

[0183] In this way, when the user needs to use the first electronic device to collaborate with the authenticated device, the user can establish a data transmission channel between the authenticated device and the first electronic device based on the interactive controls on the third page, which can effectively simplify user operations and improve the interactivity between the user and the first electronic device. When the first electronic device establishes a data transmission channel with the second electronic device, the first electronic device can obtain the full information of the second electronic device based on the full information of the authenticated device and the device ID, Bluetooth address, etc. of the second electronic device, and collaborate with the second electronic device based on the full information of the second electronic device.

[0184] In some embodiments, the second information may include a user account logged in by the authenticated device. If the second electronic device passes the device authentication, the device information of the second electronic device stored by the first electronic device includes the user account logged in by the second electronic device.

[0185] In response to the third operation of the user, the first electronic device obtains the user account logged in by the authenticated device in the first state.

[0186] The first electronic device displays a third page based on the user account information logged in by the local device and the user account logged in by the authenticated device in the first state. The third page also includes a second identifier, which is located on an interactive control of the authenticated device with the same user account as the first electronic device.

[0187] In this way, the user can quickly and accurately locate the authenticated device that has logged in the same user account as the first electronic device through the second identifier, and then can perform corresponding operations based on the device with the same account.

[0188] Fig.13A , Fig. 13B , Fig. 13C and Fig.13D This is an example diagram of an interaction in which a first electronic device displays a third page after a second electronic device passes device authentication, as shown in an embodiment of the present application.

[0189] The first electronic device may be a mobile phone, and the second electronic device may be a PC. Both the mobile phone and the PC are in a bright screen state, and both the mobile phone and the PC have Bluetooth functions turned on. Fig.13AAs shown, the mobile phone displays the seventh page, such as the control center page, which includes an entrance to the third page, such as icon 1301. After the PC passes the device authentication of the mobile phone, if the user performs a third operation on icon 1301, such as click operation 18, the mobile phone responds to click operation 18 and displays the third page according to the device information of the authenticated device. Take the device management information including the device information of the PC and the tablet computer, wherein the device information of the PC includes the device status, such as the first status, the device type, such as PC, the device model, such as MagicBook X14, and the logged-in user account, such as user account a. The device information of the tablet computer includes the device status, such as the first status, the device type, such as tablet computer, the device model, such as V7 Pro, and the logged-in user account, such as user account b as an example. Fig. 13B As shown, the first page includes interactive controls 1302 for mobile phones, interactive controls 1303 for PCs, and interactive controls 1304 for tablet computers. The icon of interactive control 1303 corresponds to the device type of the PC, and is an icon of a PC. The icon of interactive control 1304 corresponds to the device type of the tablet computer, and is an icon of a tablet computer. If the user account logged in by the mobile phone is user account a, then interactive control 1303 also includes a first identifier, such as "My Device". When the user needs the mobile phone to collaborate with the PC, such as Fig. 13C As shown, an operation is performed on the interactive control 1303, such as a drag operation 19. Fig.13D As shown, the mobile phone moves the interactive control 1303 to contact the interactive control 1302 in response to the drag operation 19, and after the interactive control 1303 contacts the interactive control 1302, the collaborative task of the mobile phone and the PC is performed.

[0190] The embodiments provided in the present application above introduce the various schemes of the device authentication method provided in the present application. It is understandable that in order to realize the above functions, the electronic device includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.

[0191] Fig.14 is a schematic diagram of a device authentication apparatus provided in an embodiment of the present application. In one embodiment, an electronic device, such as a first electronic device, can be Fig.14 The hardware devices shown in the figure implement the corresponding functions. Fig.14 As shown, the device authentication apparatus may include: a display screen 1001 , a memory 1002 , a processor 1003 and a communication module 1004 . The above components may be connected via one or more communication buses 1005 .

[0192] In one embodiment, the display screen 1001 may include a display panel 10011 and a touch sensor 10012, wherein the display panel 10011 is used to display an image, and the touch sensor 10012 may pass the detected touch operation to the application processor to determine the type of touch event, and provide a visual output related to the touch operation through the display panel 10011. The processor 1003 may include one or more processing units, for example: the processor 1003 may include an application processor, a modem processor, a graphics processor, an image signal processor, a controller, a video codec, a digital signal processor, a baseband processor, and / or a neural network processor, etc. Among them, different processing units may be independent devices or integrated in one or more processors. The memory 1002 is coupled to the processor 1003 and is used to store various software programs and / or multiple sets of instructions. The memory 1002 may include a volatile memory and / or a non-volatile memory.

[0193] When the software program and / or multiple groups of instructions in the memory 1002 are executed by the processor 1003, the first electronic device implements the following method steps: in response to the user operation, the Bluetooth address of the second electronic device is obtained. The first electronic device stores the device information of the authenticated device, and the device information includes the Bluetooth address and the device status, and the device status includes the first state and the second state. Among them, the first state includes that the first electronic device has established a Bluetooth connection with the authenticated device or can receive the broadcast response message of the other party, and the second state includes that the first electronic device has not established a Bluetooth connection with the authenticated device. According to the Bluetooth address of the second electronic device and the device information of the authenticated device, the device status of the second electronic device is identified. If the device status of the second electronic device is the second state, a Bluetooth connection is established with the second electronic device according to the Bluetooth address of the second electronic device. Device authentication is performed with the second electronic device based on the Bluetooth connection.

[0194] In the apparatus provided by the embodiment of the present application, when the first electronic device and the second electronic device support the device collaboration function, the first electronic device can respond to the user operation and quickly trigger the discovery of the second electronic device, so as to perform device authentication with the second electronic device after the second electronic device is discovered, thereby improving the efficiency of device authentication. In this way, when the user wants the first electronic device to perform multi-device collaboration with the second electronic device, the efficiency of multi-device collaboration between the first electronic device and the second electronic device can be improved by improving the efficiency of device authentication between the first electronic device and the second electronic device.

[0195] In one implementation, when the software program and / or the plurality of groups of instructions in the memory 1002 are executed by the processor 1003, the first electronic device specifically implements the following method steps to obtain the Bluetooth address of the second electronic device in response to the user operation: in response to the user bringing the first electronic device close to or touching the NFC area of ​​the second electronic device, establish NFC communication with the second electronic device. Obtain the Bluetooth address of the second electronic device from the second electronic device based on the NFC communication. In this way, the user can quickly and easily trigger the first electronic device to discover the second electronic device by bringing the first electronic device close to or touching the second electronic device.

[0196] In one implementation, when the software program and / or the plurality of groups of instructions in the memory 1002 are executed by the processor 1003, the first electronic device specifically implements the following method steps to obtain the Bluetooth address of the second electronic device in response to the user operation: in response to the user using the first electronic device to scan the QR code provided by the second electronic device, obtain the Bluetooth address associated with the QR code. In this way, the user can quickly and easily trigger the first electronic device to discover the second electronic device by scanning the code with the first electronic device.

[0197] In one implementation, when the software program and / or multiple groups of instructions in the memory 1002 are executed by the processor 1003, the first electronic device specifically implements the following method steps to obtain the Bluetooth address of the second electronic device in response to the user operation: broadcast a device discovery request. In response to the user bringing the first electronic device close to the second electronic device, receiving a response message broadcast by the second electronic device in response to the device discovery request when the Bluetooth signal strength of the device discovery request is greater than or equal to the strength threshold, the response message includes the Bluetooth address of the second electronic device. In this way, the user can quickly and easily trigger the first electronic device to discover the second electronic device by bringing the first electronic device close to the second electronic device.

[0198] In one implementation, when the software program and / or the plurality of groups of instructions in the memory 1002 are executed by the processor 1003, the first electronic device specifically implements the following method steps to obtain the Bluetooth address of the second electronic device in response to the user operation: in response to the first operation performed by the user on the first button on the first page, receiving a device discovery request broadcast by the second electronic device, the device discovery request including the Bluetooth address of the second electronic device. In this way, the user can quickly and easily trigger the first electronic device to discover the second electronic device by performing the first operation on the first button on the first page.

[0199] In one implementation, the device discovery request of the second electronic device also includes the user account logged in by the second electronic device. When the software program and / or multiple groups of instructions in the memory 1002 are executed by the processor 1003, the first electronic device specifically implements the following method steps to identify the device status of the second electronic device based on the Bluetooth address of the second electronic device and the device information of the authenticated device: Determine whether the user account logged in by the local device is the same as the user account logged in by the second electronic device. If they are the same, identify the device status of the second electronic device based on the Bluetooth address of the second electronic device and the device information of the authenticated device. In this way, the first electronic device can preliminarily determine whether it can be networked with the second electronic device through the user account logged in by the second electronic device to ensure device security and avoid invalid networking operations by the first electronic device.

[0200] In one implementation, when the software program and / or multiple groups of instructions in the memory 1002 are executed by the processor 1003, the first electronic device specifically implements the following method steps to identify the device status of the second electronic device based on the Bluetooth address of the second electronic device and the device information of the authenticated device: determine whether the second electronic device is an authenticated device based on the Bluetooth address of the second electronic device. If the second electronic device is an authenticated device, determine the device status of the second electronic device based on the stored device information of the authenticated device. If the second electronic device is not an authenticated device, determine that the second electronic device is in the second state. In this way, before the first electronic device performs device authentication with the second electronic device, it can first identify the device status of the second electronic device, and then perform device authentication with the second electronic device based on different device states.

[0201] In one implementation, when the software program and / or multiple groups of instructions in the memory 1002 are executed by the processor 1003, the first electronic device specifically implements the following method steps to identify the device status of the second electronic device according to the Bluetooth address of the second electronic device and the device information of the authenticated device: in response to the user operation, display the first window, the first window includes the second button. After detecting that the first window is displayed, identify the device status of the second electronic device according to the Bluetooth address of the second electronic device and the device information of the authenticated device. Wherein, in the case where the first electronic device has established a Bluetooth connection with the second electronic device, the first electronic device is used to establish a data transmission path with the second electronic device in response to the second operation performed by the user on the second button. In the case where the first electronic device has not established a Bluetooth connection with the second electronic device, the first electronic device is used to establish a Bluetooth connection with the second electronic device in response to the second operation performed by the user on the second button, and after establishing the Bluetooth connection with the second electronic device, establish a data transmission path with the second electronic device. The first electronic device can force the second electronic device to go online without the user's perception. If the user performs the second operation based on the second button, the first electronic device can directly establish a data transmission path with the second electronic device that has passed the device authentication, so as to perform device collaboration with the second electronic device, effectively reducing the user's waiting time.

[0202] In one implementation, when the software program and / or multiple groups of instructions in the memory 1002 are executed by the processor 1003, the first electronic device specifically implements the following method steps to realize device authentication based on Bluetooth connection with the second electronic device: exchange security module messages with the second electronic device based on Bluetooth connection, and the security module messages are used to perform device authentication. If the second electronic device passes the device authentication, the first encrypted information is transmitted to the second electronic device based on the Bluetooth connection, and the second encrypted information transmitted by the second electronic device is received. Among them, the first encrypted information is obtained by the first electronic device using the first key to encrypt, and the first encrypted information includes the device information and link information of the first electronic device. The second encrypted information is obtained by the second electronic device using the second key to encrypt, and the second encrypted information includes the device information and link information of the second electronic device. In this way, after the second electronic device passes the device authentication, the first electronic device and the second electronic device can obtain more complete information of each other in an encrypted manner, and the security of data transmission can be guaranteed.

[0203] In one implementation, when the software program and / or multiple groups of instructions in the memory 1002 are executed by the processor 1003, the first electronic device specifically implements the following method steps to achieve the exchange of security module messages with the second electronic device based on the Bluetooth connection: obtain the user account logged in by the second electronic device based on the Bluetooth connection. Determine whether the user account logged in by the local device is the same as the user account logged in by the second electronic device. If they are the same, exchange security module messages with the second electronic device based on the Bluetooth connection. In this way, the first electronic device can preliminarily determine whether it can be networked with the second electronic device through the user account logged in by the second electronic device to ensure the security of the device and avoid invalid device authentication operations by the first electronic device.

[0204] In one implementation, when the software program and / or multiple groups of instructions in the memory 1002 are executed by the processor 1003, the first electronic device specifically implements the following method steps to achieve that if the second electronic device passes the device authentication, the first encrypted information is transmitted to the second electronic device based on the Bluetooth connection, and after receiving the second encrypted information transmitted by the second electronic device: the full device information of the second electronic device is stored. The full device information of the second electronic device includes the device information, link information and Bluetooth address of the second electronic device. In this way, the first electronic device can, in the subsequent process of cooperating with the second electronic device, after obtaining the Bluetooth address of the second electronic device, directly obtain the corresponding full device information according to the simple Bluetooth address, so as to quickly cooperate with the second electronic device based on the obtained full device information to realize different upper-layer services.

[0205] In one implementation, when the software program and / or multiple groups of instructions in the memory 1002 are executed by the processor 1003, the first electronic device is also caused to implement the following method steps: the first electronic device displays a first window in response to a first operation performed by a user on a first button on a first page. The first window is a first area on a second page for displaying device search results, and the device search results include a second electronic device, wherein each device search result corresponds to a second button. In this way, the first electronic device can display all discovered devices to the user through the first window, and provide an entry for each device to establish a data transmission channel.

[0206] In one implementation, the device discovery request includes a user account logged in by the second electronic device. When the software program and / or multiple groups of instructions in the memory 1002 are executed by the processor 1003, the first electronic device specifically implements the following method steps to display the first window in response to the first operation performed by the user on the first button on the first page: determine whether the user account information logged in by the local device is the same as the user account information logged in by the second electronic device. If they are the same, the first identifier is displayed on the second electronic device when the first window is displayed. In this way, the user can quickly and accurately locate the discovered device with the same user account logged in as the first electronic device through the first identifier, and then perform corresponding operations based on the device with the same account.

[0207] In one implementation, when the software program and / or multiple groups of instructions in the memory 1002 are executed by the processor 1003, the first electronic device also implements the following method steps: if the second electronic device passes the device authentication, the first electronic device adds the device information of the second electronic device to the device management information, and the device management information includes the device information of the authenticated device. In response to the user's third operation, a third page is displayed according to the device management information, and the third page includes the first electronic device and the interactive controls of the authenticated device in the first state. In this way, the user can make the authenticated device interact with the first electronic device based on the interactive controls on the third page, which can effectively simplify the user operation and improve the interactivity between the user and the first electronic device.

[0208] In one implementation, the device management information also includes a user account logged in by the authenticated device. When the software program and / or multiple groups of instructions in the memory 1002 are executed by the processor 1003, the first electronic device specifically implements the following method steps to realize the third page displayed according to the device management information in response to the user's third operation: in response to the user's third operation, obtain the user account logged in by the authenticated device; display the third page according to the user account information logged in by the local computer and the user account logged in by the authenticated device. Among them, the third page also includes a second identifier, and the second identifier is located on the interactive control of the authenticated device with the same user account logged in as the first electronic device. In this way, the user can quickly and accurately locate the authenticated device with the same user account logged in as the first electronic device through the second identifier, and then can perform corresponding operations based on the same account device.

[0209] Fig.15 is a schematic diagram of the structure of another device authentication apparatus provided in an embodiment of the present application. In one embodiment, an electronic device, such as a first electronic device, can be Fig.15 The software device shown in the figure realizes the corresponding functions. Fig.15As shown, the device authentication apparatus may include: a first response module 1501, a storage module 1502, an identification module 1503, a connection module 1504 and an authentication module 1505. Among them:

[0210] The first response module 1501 is used to obtain the Bluetooth address of the second electronic device in response to the user operation. The storage module 1502 is used to store the device information of the authenticated device, the device information includes the Bluetooth address and the device status, and the device status includes the first status and the second status. Among them, the first status includes that the first electronic device has established a Bluetooth connection with the authenticated device or can receive the broadcast response message of the other party, and the second status includes that the first electronic device has not established a Bluetooth connection with the authenticated device. The identification module 1503 is used to identify the device status of the second electronic device according to the Bluetooth address of the second electronic device and the device information of the authenticated device. The connection module 1504 is used to establish a Bluetooth connection with the second electronic device according to the Bluetooth address of the second electronic device if the device status of the second electronic device is the second state. The authentication module 1505 is used to perform device authentication with the second electronic device based on the Bluetooth connection.

[0211] In the apparatus provided by the embodiment of the present application, when the first electronic device and the second electronic device support the networking function, the first electronic device can respond to the user operation, quickly trigger the establishment of a Bluetooth connection with the second electronic device, and perform device authentication with the second electronic device. In this way, when the user wants the first electronic device to network with the second electronic device, the first electronic device can be quickly triggered to perform device authentication on the second electronic device, thereby improving the efficiency of device authentication.

[0212] In one implementation, the first response module 1501 is specifically used to: establish NFC communication with the second electronic device in response to the user bringing the first electronic device close to or touching the NFC area of ​​the second electronic device. Obtain the Bluetooth address of the second electronic device from the second electronic device based on the NFC communication. In this way, the user can quickly and easily trigger the first electronic device to discover the second electronic device by bringing the first electronic device close to or touching the second electronic device.

[0213] In one implementation, the first response module 1501 is specifically used to: in response to the user using the first electronic device to scan the QR code provided by the second electronic device, obtain the Bluetooth address associated with the QR code. In this way, the user can quickly and easily trigger the first electronic device to discover the second electronic device by scanning the code with the first electronic device.

[0214] In one implementation, the first response module 1501 is specifically used to: in response to the user bringing the first electronic device close to the second electronic device, receive a response message broadcast by the second electronic device in response to the device discovery request when the Bluetooth signal strength of the device discovery request is greater than or equal to the strength threshold, wherein the response message includes the Bluetooth address of the second electronic device. In this way, the user can quickly and easily trigger the first electronic device to discover the second electronic device by bringing the first electronic device close to the second electronic device.

[0215] In one implementation, the first response module 1501 is specifically used to: in response to a first operation performed by a user on a first button on a first page, receive a device discovery request broadcast by a second electronic device, the device discovery request including a Bluetooth address of the second electronic device. In this way, the user can quickly and easily trigger the first electronic device to discover the second electronic device by performing the first operation on the first button on the first page.

[0216] In one implementation, the device discovery request of the second electronic device also includes the user account logged in by the second electronic device, and the identification module 1503 is specifically used to determine whether the user account logged in by the local device is the same as the user account logged in by the second electronic device. If they are the same, the device status of the second electronic device is identified according to the Bluetooth address of the second electronic device and the device information of the authenticated device. In this way, the first electronic device can preliminarily determine whether it can be networked with the second electronic device through the user account logged in by the second electronic device to ensure device security and avoid invalid networking operations of the first electronic device.

[0217] In one implementation, the identification module 1503 is specifically used to: determine whether the second electronic device is an authenticated device based on the Bluetooth address of the second electronic device. If the second electronic device is an authenticated device, determine the device status of the second electronic device based on the stored device information of the authenticated device. If the second electronic device is not an authenticated device, determine that the second electronic device is in the second state. In this way, before the first electronic device performs device authentication with the second electronic device, it can first identify the device status of the second electronic device, and then perform device authentication with the second electronic device based on different device statuses.

[0218] In one implementation, the identification module 1503 is specifically used to: display a first window in response to a user operation, wherein the first window includes a second button. After detecting that the first window is displayed, the device status of the second electronic device is identified according to the Bluetooth address of the second electronic device and the device information of the authenticated device. Wherein, in the case where the first electronic device has established a Bluetooth connection with the second electronic device, the first electronic device is used to establish a data transmission path with the second electronic device in response to the second operation performed by the user on the second button. In the case where the first electronic device has not established a Bluetooth connection with the second electronic device, the first electronic device is used to establish a Bluetooth connection with the second electronic device in response to the second operation performed by the user on the second button, and after establishing the Bluetooth connection with the second electronic device, establish a data transmission path with the second electronic device. The first electronic device can force the second electronic device to go online without the user's perception. If the user performs the second operation based on the second button, the first electronic device can directly establish a data transmission path with the second electronic device that has passed the device authentication, so as to perform device collaboration with the second electronic device, effectively reducing the user's waiting time.

[0219] In one implementation, the authentication module 1505 is specifically used to: exchange security module messages with the second electronic device based on a Bluetooth connection, and the security module messages are used to perform device authentication. If the second electronic device passes the device authentication, the first encrypted information is transmitted to the second electronic device based on the Bluetooth connection, and the second encrypted information transmitted by the second electronic device is received. Among them, the first encrypted information is obtained by encrypting the first electronic device using the first key, and the first encrypted information includes the device information and link information of the first electronic device. The second encrypted information is obtained by encrypting the second electronic device using the second key, and the second encrypted information includes the device information and link information of the second electronic device. In this way, after the second electronic device passes the device authentication, the first electronic device and the second electronic device can obtain more complete information of each other in an encrypted manner, and the security of data transmission can be guaranteed.

[0220] In one implementation, the authentication module 1505 is specifically used to: obtain the user account logged in by the second electronic device based on the Bluetooth connection. Determine whether the user account logged in by the local device is the same as the user account logged in by the second electronic device. If they are the same, exchange security module messages with the second electronic device based on the Bluetooth connection. In this way, the first electronic device can preliminarily determine whether it can be networked with the second electronic device through the user account logged in by the second electronic device to ensure device security and avoid invalid device authentication operations by the first electronic device.

[0221] In one implementation, if the second electronic device passes the device authentication, the storage module 1502 is specifically used to: store the full device information of the second electronic device. The full device information of the second electronic device includes the device information, link information, and Bluetooth address of the second electronic device. In this way, the first electronic device can, in the subsequent process of cooperating with the second electronic device, after obtaining the Bluetooth address of the second electronic device, directly obtain the corresponding full device information according to the simple Bluetooth address, so as to quickly collaborate with the second electronic device based on the obtained full device information to realize different upper-layer services.

[0222] In one implementation, a display module 1506 is further included. The display module 1506 is specifically used to: display a first window in response to a first operation performed by a user on a first button on the first page. The first window is a first area on the second page for displaying device search results, and the device search results include a second electronic device, wherein each device search result corresponds to a first button. In this way, the first electronic device can display all discovered devices to the user through the first window, and provide an entry for each device to establish a data transmission channel.

[0223] In one implementation, the device discovery request of the second electronic device also includes the user account logged in by the second electronic device, and the display module 1506 is specifically used to determine whether the user account information logged in by the local device is the same as the user account information logged in by the second electronic device. If they are the same, the first identifier is displayed on the second electronic device when the first window is displayed. In this way, the user can quickly and accurately locate the discovered device with the same user account logged in as the first electronic device through the first identifier, and then perform corresponding operations based on the device with the same account.

[0224] In one implementation, the storage module 1502 is specifically used to: if the second electronic device passes the device authentication, add the device information of the second electronic device to the device management information. The display module 1506 is used to respond to the user's third operation and display a third page according to the device management information, and the third page includes the first electronic device and the interactive controls of the authenticated device in the first state. In this way, the user can interact with the authenticated device and the first electronic device based on the interactive controls on the third page, which can effectively simplify the user operation and improve the interactivity between the user and the first electronic device.

[0225] In one implementation, the device management information also includes a user account logged in by the authenticated device, and the display module 1506 is specifically used to: in response to the user's third operation, obtain the user account logged in by the authenticated device in the first state. According to the user account information logged in by the local computer and the user account logged in by the authenticated device in the first state, the third page is displayed. Among them, the third page also includes a second identifier, and the second identifier is located on the interactive control of the authenticated device with the same user account logged in as the first electronic device. In this way, the user can quickly and accurately locate the authenticated device with the same user account logged in as the first electronic device through the second identifier, and then can perform corresponding operations based on the same account device.

[0226] The above specific implementation methods further explain in detail the purpose, technical solutions and beneficial effects of the embodiments of the present application. It should be understood that the above are only specific implementation methods of the embodiments of the present application and are not used to limit the protection scope of the embodiments of the present application. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the embodiments of the present application should be included in the protection scope of the embodiments of the present application.

Claims

1. A device authentication method, characterized in that: The method comprises: The first electronic device acquires the Bluetooth address of the second electronic device in response to the user operation, wherein the first electronic device stores device information of the authenticated device, the device information includes the Bluetooth address and the device status, and the device status includes a first status and a second status, wherein the first status includes that the first electronic device has established a Bluetooth connection with the authenticated device or can receive a broadcast response message from the other party, and the second status includes that the first electronic device has not established a Bluetooth connection with the authenticated device; The first electronic device identifies the device status of the second electronic device according to the Bluetooth address of the second electronic device and the device information of the authenticated device; If the device state of the second electronic device is the second state, the first electronic device establishes a Bluetooth connection with the second electronic device according to the Bluetooth address of the second electronic device; The first electronic device performs device authentication with the second electronic device based on the Bluetooth connection.

2. The device authentication method according to claim 1, characterized in that: The first electronic device acquires the Bluetooth address of the second electronic device in response to a user operation, including: The first electronic device establishes NFC communication with the second electronic device in response to the user bringing the first electronic device close to or touching the NFC area of ​​the second electronic device; The first electronic device acquires a Bluetooth address of the second electronic device from the second electronic device based on the NFC communication.

3. The device authentication method according to claim 1, characterized in that: The first electronic device acquires the Bluetooth address of the second electronic device in response to a user operation, including: In response to a user using the first electronic device to scan a two-dimensional code provided by the second electronic device, the first electronic device obtains a Bluetooth address associated with the two-dimensional code.

4. The device authentication method according to claim 1, characterized in that: The first electronic device acquiring the Bluetooth address of the second electronic device in response to the user operation includes: The first electronic device broadcasts a device discovery request; In response to a user bringing the first electronic device close to the second electronic device, the first electronic device receives a response message broadcast by the second electronic device in response to the device discovery request when the Bluetooth signal strength of the device discovery request is greater than or equal to a strength threshold, the response message including the Bluetooth address of the second electronic device.

5. The device authentication method according to claim 1, characterized in that: The first electronic device acquiring the Bluetooth address of the second electronic device in response to the user operation includes: The first electronic device receives a device discovery request broadcast by the second electronic device in response to a first operation performed by a user on a first button on a first page, where the device discovery request includes a Bluetooth address of the second electronic device.

6. The device authentication method according to claim 5, characterized in that: The device discovery request also includes a user account logged in by the second electronic device, and the first electronic device identifies the device status of the second electronic device according to the Bluetooth address of the second electronic device and the device information of the authenticated device, including: The first electronic device determines whether the user account logged in by the local device is the same as the user account logged in by the second electronic device; If they are the same, the first electronic device identifies the device status of the second electronic device according to the Bluetooth address of the second electronic device and the device information of the authenticated device.

7. The device authentication method according to claim 1, characterized in that: The first electronic device identifies the device status of the second electronic device according to the Bluetooth address of the second electronic device and the device information of the authenticated device, including: The first electronic device determines whether the second electronic device is an authenticated device according to the Bluetooth address of the second electronic device; If the second electronic device is an authenticated device, the first electronic device determines the device status of the second electronic device according to the stored device information of the authenticated device; If the second electronic device is not an authenticated device, the first electronic device determines that the second electronic device is in the second state.

8. The device authentication method according to any one of claims 1 to 4 and 7, characterized in that: The first electronic device identifies the device status of the second electronic device according to the Bluetooth address of the second electronic device and the device information of the authenticated device, further comprising: The first electronic device displays a first window in response to the user operation, wherein the first window includes a second button; After detecting that the first window is displayed, the first electronic device identifies the device status of the second electronic device according to the Bluetooth address of the second electronic device and the device information of the authenticated device; Wherein, when the first electronic device and the second electronic device have established a Bluetooth connection, the first electronic device is used to establish a data transmission path with the second electronic device in response to a second operation performed by the user on the second button; When the first electronic device has not established a Bluetooth connection with the second electronic device, the first electronic device is used to establish a Bluetooth connection with the second electronic device in response to a second operation performed by the user on the second button, and after establishing the Bluetooth connection with the second electronic device, establish a data transmission path with the second electronic device.

9. The device authentication method according to claim 1, characterized in that: The first electronic device performing device authentication with the second electronic device based on the Bluetooth connection includes: The first electronic device exchanges a security module message with the second electronic device based on the Bluetooth connection, wherein the security module message is used for device authentication; If the second electronic device passes the device authentication, the first electronic device transmits first encrypted information to the second electronic device based on the Bluetooth connection, and receives second encrypted information transmitted by the second electronic device, wherein the first encrypted information is encrypted by the first electronic device using a first key, and the first encrypted information includes device information and link information of the first electronic device, and the second encrypted information is encrypted by the second electronic device using a second key, and the second encrypted information includes device information and link information of the second electronic device.

10. The device authentication method according to claim 9, characterized in that: The first electronic device exchanging a security module message with the second electronic device based on the Bluetooth connection includes: The first electronic device obtains a user account logged in by the second electronic device based on the Bluetooth connection; The first electronic device determines whether a user account logged in by the first electronic device is the same as a user account logged in by the second electronic device; If they are the same, the first electronic device exchanges security module messages with the second electronic device based on the Bluetooth connection.

11. The device authentication method according to claim 9 or 10, characterized in that: If the second electronic device passes the device authentication, the first electronic device transmits the first encrypted information to the second electronic device based on the Bluetooth connection, and after receiving the second encrypted information transmitted by the second electronic device, the method further includes: The first electronic device stores the full device information of the second electronic device, where the full device information of the second electronic device includes device information, link information, and a Bluetooth address of the second electronic device.

12. The device authentication method according to claim 5, characterized in that: The first electronic device receives, in response to a first operation performed by a user on a first button on a first page, a device discovery request broadcast by the second electronic device, further comprising: A first window is displayed, where the first window is a first area on the second page for displaying device search results, where the device search results include the second electronic device, wherein each device search result corresponds to a second button.

13. The device authentication method according to claim 12, characterized in that: The device discovery request also includes a user account logged in by the second electronic device, and the first electronic device displays a first window, including: The first electronic device determines whether the user account information logged in by the first electronic device is the same as the user account information logged in by the second electronic device; If they are the same, the first electronic device displays the first identifier on the second electronic device when displaying the first window.

14. The device authentication method according to claim 1, characterized in that: After the first electronic device performs device authentication with the second electronic device based on the Bluetooth connection, the method further includes: If the second electronic device passes the device authentication, the first electronic device adds the device information of the second electronic device to the device management information, and the device management information includes the device information of the authenticated device; The first electronic device displays a third page according to the device management information in response to a third operation of the user, and the third page includes interactive controls of the first electronic device and the authenticated device in the first state.

15. The device authentication method according to claim 14, characterized in that: The device management information also includes a user account logged in by the authenticated device, and the first electronic device displays a third page according to the device management information in response to a third operation of the user, including: In response to a third operation of the user, the first electronic device obtains a user account logged in by the authenticated device in the first state; The first electronic device displays the third page based on the user account information logged in by the local device and the user account logged in by the authenticated device in the first state, wherein the third page also includes a second identifier, and the second identifier is located on an interactive control of the authenticated device with the same user account as that logged in by the first electronic device.

16. An electronic device, characterized in that: include: Processor and memory; The memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes the device authentication method according to any one of claims 1 to 15.

Citation Information

Patent Citations

  • Bluetooth communication method and system and electronic device

    CN105246029A

  • Bluetooth scanning method and electronic device

    CN110072221A

  • Data Transfer Method and Electronic Device

    US20210400744A1

  • Method for mutual recognition or mutual trust between bluetooth devices

    US20220330029A1