A synergistic method and electronic device
By establishing communication connections between the first electronic device and the second and third electronic devices and using broadcast messages, the problem of the inability to trigger inter-device collaboration in the prior art is solved, and a convenient device collaboration experience and rapid response are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HONOR DEVICE CO LTD
- Filing Date
- 2024-09-14
- Publication Date
- 2026-04-28
AI Technical Summary
In the existing technology, it is impossible to trigger device collaboration between the second and third electronic devices on the device collaboration application interface of the first electronic device.
The first electronic device establishes a communication connection with the second and third electronic devices and notifies them to coordinate via broadcast messages. The broadcast messages contain coordination service information, device identification, and role information to achieve coordination between devices.
It enables convenient initiation of device collaboration between other electronic devices from the first electronic device, improving user experience and speeding up response time, especially by avoiding collaboration latency through Wi-Fi P2P connection.
Smart Images

Figure CN120475336B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communications, and more particularly to a collaborative method and an electronic device. Background Technology
[0002] With the widespread adoption of smart devices and the rapid development of internet technology, different electronic devices can exchange data and achieve device collaboration. Device collaboration can include various collaborative services such as application continuation, screen sharing, call sharing, notification sharing, keyboard and mouse sharing, camera sharing, and network sharing.
[0003] In conventional technology, when a first electronic device establishes a connection with other electronic devices, a user can trigger device collaboration between the first and other electronic devices from the first electronic device. For example, the first electronic device includes a device collaboration application, the interface of which can display the identifier of the first electronic device and the identifiers of the electronic devices connected to it, such as the identifiers of a second and a third electronic device. In response to user operation 1 on the device collaboration application interface, the first electronic device can collaborate with the second electronic device. In response to user operation 2 on the device collaboration application interface, the first electronic device can collaborate with the third electronic device.
[0004] However, it is currently not possible to trigger device collaboration between the second and third electronic devices through the interface of the device collaboration application of the first electronic device. Summary of the Invention
[0005] This application provides a collaboration method and an electronic device, wherein a first electronic device is capable of controlling a second electronic device and a third electronic device to perform device collaboration.
[0006] To achieve the above objectives, the embodiments of this application adopt the following technical solutions:
[0007] In a first aspect, a collaborative method is provided, applied to a first electronic device. The method includes: establishing communication connections between the first electronic device and a second and a third electronic device respectively; displaying a first interface for showing the communication connection relationships between the first, second, and third electronic devices; and sending a broadcast message in response to a first operation by a user on the first interface; the broadcast message is used to notify the second and third electronic devices to perform a first collaborative service.
[0008] In this application, in response to a user's operation on the first interface of the first electronic device, the first electronic device can broadcast a notification to the second and third electronic devices to initiate a first collaborative service. This enables the control of other electronic devices (the second and third electronic devices) for device collaboration from the local device (the first electronic device), facilitating the initiation of device collaboration between other electronic devices from the first electronic device, and helping users conveniently initiate device collaboration between electronic devices, thus improving the user experience. Furthermore, by broadcasting a message, the first electronic device can improve the response speed of the second and third electronic devices.
[0009] In another possible implementation of the first aspect, the broadcast message includes information about the first collaborative service, the device identifier and device information of the collaborative initiator, and the device identifier and device information of the collaborative receiver. The information about the first collaborative service is used to notify the second and third electronic devices what kind of collaborative service is being performed; this information can be the name of the first collaborative service. The device identifiers of the collaborative initiator and the collaborative receiver are used to notify the second and third electronic devices to identify themselves (e.g., collaborative initiator or collaborative receiver). The device identifier is used to uniquely identify an electronic device. The device identifier can be any one or more of ID, UUID, and device number.
[0010] In another possible implementation of the first aspect, the broadcast message is also used to notify the second and third electronic devices to establish a Wi-Fi peer-to-peer (P2P) connection; the Wi-Fi P2P connection is used for the second and third electronic devices to perform the first collaborative service. Because of the high transmission speed of the Wi-Fi P2P connection, the establishment of the Wi-Fi P2P connection between the second and third electronic devices and the performance of the first collaborative service based on the Wi-Fi P2P connection can effectively avoid collaboration latency.
[0011] In another possible implementation of the first aspect, the broadcast message includes information about a first collaborative service, the device identifier and device information of the collaborative initiator, the device identifier and device information of the collaborative receiver, and first information. The information about the first collaborative service is used to notify the second and third electronic devices what kind of collaborative service to perform, and this information can be the name of the first collaborative service. The device identifiers of the collaborative initiator and the collaborative receiver are used to notify the second and third electronic devices to identify themselves (e.g., collaborative initiator or collaborative receiver). The first information is used to instruct the second and third electronic devices to establish a Wi-Fi P2P connection; the collaborative initiator is the second electronic device, and the collaborative receiver is the third electronic device; or, the collaborative initiator is the third electronic device, and the collaborative receiver is the second electronic device. This implementation provides one possible implementation of a broadcast message.
[0012] In another possible implementation of the first aspect, the first information includes: the device role of the collaboration initiator; the device role of the collaboration receiver; the device roles include GO devices and GC devices, and the device roles of the collaboration initiator and the collaboration receiver are different; and the device role is the SSID, password and frequency band of the Wi-Fi hotspot of the electronic device of the GO device.
[0013] In another possible implementation of the first aspect, the first electronic device establishes a first connection with the second electronic device, and the first electronic device establishes a second connection with the third electronic device, wherein the connection method of the first connection is different from that of the second connection. The collaborative method provided in this application can also be implemented when the connection method of the first connection is such as Wi-Fi and the connection method of the second connection is such as Bluetooth.
[0014] In another possible implementation of the first aspect, the first electronic device establishes a first connection with the second electronic device and a second connection with the third electronic device, wherein the connection method of the first connection is the same as that of the second connection.
[0015] In another possible implementation of the first aspect, the first electronic device, the second electronic device, and the third electronic device can be electronic devices within the trust ring corresponding to the first account. The device identifier can be a device number, which is used to uniquely identify an electronic device within the trust ring corresponding to a first account.
[0016] In another possible implementation of the first aspect, the first electronic device and the second electronic device are logged into the first account, while the third electronic device is not logged into the first account. Before displaying the first interface, the first electronic device or the second electronic device can send a first request message to the server, which requests that the third electronic device be added to the trust ring corresponding to the first account. The first electronic device or the second electronic device can receive the device number of the third electronic device sent by the server and send the device number of the third electronic device to the third electronic device. In this application, the electronic device logged into the account, such as the first electronic device or the second electronic device, can apply for a device number for the electronic device not logged into the account, such as the third electronic device. The device number is used to uniquely identify an electronic device within the trust ring corresponding to the first account.
[0017] In another possible implementation of the first aspect, the first electronic device may also receive the device number of the second electronic device sent by the second electronic device.
[0018] In another possible implementation of the first aspect, the first interface displays the identifiers of the second electronic device and the third electronic device; the first operation includes a trigger operation and a drag operation, wherein the trigger operation is an operation on the identifier of the second electronic device on the first interface; the trigger operation is used to trigger the first electronic device to display a list; the list includes information on the collaborative services supported by the second electronic device; and the drag operation is an operation to drag the information of the first collaborative service in the list onto the identifier of the third electronic device.
[0019] Secondly, a collaborative method is provided, applied to a fourth electronic device, which is either a second or a third electronic device. The method includes: receiving a broadcast message sent by a first electronic device; the broadcast message notifying the second and third electronic devices to perform a first collaborative service; responding to the broadcast message and performing the first collaborative service with a target electronic device; where the fourth electronic device is the second electronic device and the target electronic device is the third electronic device; and where the fourth electronic device is the third electronic device and the target electronic device is the second electronic device.
[0020] In this application, the fourth electronic device and the target electronic device can receive broadcasts sent by the first electronic device and, in response to the broadcasts sent by the first electronic device, perform the first collaborative service.
[0021] In another possible implementation of the second aspect, the broadcast message is also used to notify the second electronic device and the third electronic device to establish a Wi-Fi peer-to-peer (P2P) connection; the Wi-Fi P2P connection is used by the second electronic device and the third electronic device to perform a first collaborative service.
[0022] In another possible implementation of the second aspect, the broadcast message includes information about the first collaborative service, the device identifier and device information of the collaborative initiator, the device identifier and device information of the collaborative receiver, and first information; wherein, the first information is used to instruct the second electronic device and the third electronic device to establish a Wi-Fi P2P connection; the collaborative initiator is the second electronic device, and the collaborative receiver is the third electronic device; or, the collaborative initiator is the third electronic device, and the collaborative receiver is the second electronic device. Because Wi-Fi P2P connections have the advantage of high transmission speed, establishing a Wi-Fi P2P connection between the second and third electronic devices and conducting the first collaborative service based on the Wi-Fi P2P connection can effectively avoid latency.
[0023] In another possible implementation of the second aspect, the first information includes: the device role of the collaboration initiator; the device role of the collaboration receiver; the device roles include GO devices and GC devices, and the device roles of the collaboration initiator and the collaboration receiver are different; and the device role is the SSID, password and frequency band of the Wi-Fi hotspot of the electronic device of the GO device.
[0024] In another possible implementation of the second aspect, the device role of the fourth electronic device is a GO device. After receiving the broadcast message sent by the first electronic device, the method further includes: turning on the Wi-Fi hotspot based on the first information in the broadcast message; and responding to the broadcast message by performing a first collaborative service with the target electronic device based on the Wi-Fi hotspot.
[0025] In another possible implementation of the second aspect, the device role of the fourth electronic device is a GC device. After receiving the broadcast message sent by the first electronic device, it searches for Wi-Fi hotspots based on the first information in the broadcast message; in response to the broadcast message, it performs a first collaborative service with the target electronic device based on the Wi-Fi hotspot.
[0026] In another possible implementation of the second aspect, the fourth electronic device is logged into the first account, while the target electronic device is not logged into the first account. The device identifier can be a device number, which uniquely identifies an electronic device within the trust ring corresponding to the first account. Before receiving a broadcast message from the first electronic device, a first request message is sent to the server, requesting that the target electronic device be added to the trust ring corresponding to the first account; the device number of the target electronic device is received from the server; and the device number of the target electronic device is sent to the target electronic device.
[0027] In another possible implementation of the second aspect, the fourth electronic device is not logged into the first account, while the target electronic device and the first electronic device are logged into the first account. The device identifier can be a device number, which uniquely identifies an electronic device within a trust ring corresponding to a first account. The device number of the fourth electronic device is received by either the first electronic device or the target electronic device before receiving a broadcast message sent by the first electronic device.
[0028] Thirdly, a collaborative system is provided, including a first electronic device, a second electronic device, and a third electronic device; the first electronic device establishes a first connection with the second electronic device, and the first electronic device establishes a second connection with the third electronic device; the first electronic device is used to perform the method of any one of the first aspects; the second electronic device and the third electronic device are used to perform a first collaborative service in response to a broadcast message sent by the first electronic device.
[0029] Fourthly, an electronic device is provided, comprising: a memory, a wireless communication module, and one or more processors; the wireless communication module receives and transmits data according to the control of the processor to realize communication between the electronic device and other electronic devices; the memory is coupled to the processor; wherein the memory is used to store computer program code, the computer program code including computer instructions; when the computer instructions are executed by the processor, the electronic device performs the method as described in any one of the first and / or second aspects.
[0030] Fifthly, a chip system is provided that can be applied to an electronic device including memory. The chip system includes one or more interface circuits and one or more processors. The interface circuits and processors are interconnected via lines. The interface circuits are used to receive signals from the aforementioned memory and send the signals to the processors, the signals including computer instructions stored in the memory. When the processor executes the computer instructions, the electronic device performs a method as described in the first aspect and / or the second aspect and any possible design configuration thereof.
[0031] A sixth aspect provides a computer-readable storage medium including computer instructions that, when executed on an electronic device, cause the electronic device to perform a method as described in any one of the first and / or second aspects.
[0032] A seventh aspect is a computer program product comprising a computer program / instructions that, when executed by a processor, implement the steps of any one of the methods of the first aspect and / or the second aspect.
[0033] In understanding, the beneficial effects that the collaborative system of the third aspect, the electronic device of any possible design of the fourth aspect, the chip system of the fifth aspect, the computer-readable storage medium of the sixth aspect, and the computer program product of the seventh aspect can achieve can be referred to as the beneficial effects of the first and second aspects and any possible design of the fourth aspect, which will not be repeated here. Attached Figure Description
[0034] Figure 1 A schematic diagram of a communication network provided in an embodiment of this application;
[0035] Figure 2 A schematic diagram of a display interface provided in an embodiment of this application;
[0036] Figure 3 A schematic diagram of an interface for triggering device collaboration in an embodiment of this application;
[0037] Figure 4 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application;
[0038] Figure 5 A schematic diagram of the software architecture of an electronic device provided in an embodiment of this application;
[0039] Figure 6 This is a schematic diagram illustrating a method for multiple electronic devices to join a trust ring and form a self-organizing network, as provided in an embodiment of this application.
[0040] Figure 7 A flowchart illustrating a collaborative method provided in an embodiment of this application;
[0041] Figure 8 A schematic diagram of another interface for triggering device collaboration of an electronic device provided in an embodiment of this application;
[0042] Figure 9 This is a flowchart illustrating another collaborative method provided in an embodiment of this application. Detailed Implementation
[0043] With the widespread adoption of smart devices and the rapid development of internet technology, different electronic devices can exchange data and achieve device collaboration. Device collaboration can include various collaborative services such as application continuation, screen sharing, call sharing, notification sharing, keyboard and mouse sharing, camera sharing, and network sharing.
[0044] Electronic devices need to establish a connection before they can collaborate. This connection can be wired or wireless. For example, multiple electronic devices can establish a wired connection via a universal serial bus (USB). Alternatively, multiple electronic devices can establish a Bluetooth connection if they have Bluetooth enabled and are within a preset distance. Another example is multiple electronic devices that have wireless local area network (WLAN) enabled and connect to the same local area network via a wireless access point (AP) to establish a Wi-Fi connection. Multiple electronic devices can then synchronize data through this established connection, enabling device collaboration.
[0045] Optionally, the aforementioned multiple electronic devices can be electronic devices within the same trust ring. Multiple electronic devices can establish a trust relationship through trusted authentication, forming a trust ring. There are various ways for multiple electronic devices to form a trust ring. For example, multiple electronic devices logged into the same account, and the multiple electronic devices under the same account trust each other, forming a trust ring. Another example is multiple electronic devices not logged into the same account, but establishing a trust relationship through trusted authentication via a protocol, thus forming a trust ring, etc. For example, such as... Figure 1 As shown, mobile phones, smartwatches, tablets, smart TVs, and personal computers (PCs) form a trust ring by logging into the same account.
[0046] The aforementioned electronic devices possess device collaboration functionality. In response to user input, the electronic device can activate this functionality. Alternatively, the device collaboration functionality can be enabled by default. The following explanation uses a mobile phone as an example to illustrate this solution. Figure 2 As shown, in response to the user's operation of opening the settings application (APP), the mobile phone displays the settings APP interface 201. Interface 201 includes a list of settings items, which includes settings for enabling device collaboration functions. The name of these settings items could be, for example, "Smart Connectivity." In response to the user clicking on these settings items, the mobile phone displays interface 202. Interface 202 includes control 1, which is used to enable the mobile phone's device collaboration function. In response to the user's operation on control 1, the mobile phone enables the device collaboration function, and the mobile phone can display interface 203. Interface 203 displays the names of multiple collaboration services supported by the electronic device and the enabling status of each collaboration service.
[0047] The aforementioned electronic devices, such as the aforementioned mobile phones, may include a device collaboration app. This device collaboration app includes a visual human-computer interaction interface to facilitate user initiation of device collaboration; for example, the device collaboration app may be a trust ring app. After enabling the device collaboration function and wireless communication function, the connected electronic devices can be displayed on the interface of the device collaboration app. For example, taking a trust ring app as an example... Figure 3 As shown, the phone's control center interface 301 displays the Trust Ring APP application card 302. Application card 302 displays the identifiers of electronic devices belonging to the same trust ring as the phone and connected to it. In response to the user clicking application card 302, the phone displays the Trust Ring APP control interface 303. Interface 303 displays the phone's identifier. Interface 303 also displays the identifiers of electronic devices in the same trust ring as the phone and connected to it, such as the identifiers of tablets and PCs. Here, "electronic devices with wireless communication enabled" means that the electronic devices have enabled WLAN and / or Bluetooth functions. Tablets can enable wireless communication functions to establish Wi-Fi or Bluetooth connections with the phone. PCs can enable wireless communication functions to establish Wi-Fi or Bluetooth connections with the phone.
[0048] In conventional technology, users can control their device and connected devices to collaborate via the device collaboration app's control interface. Continuing with... Figure 3 For example, in response to a user clicking the phone's icon, the phone displays a collaboration list 304, which includes the names of the collaboration services supported by the phone. In response to the user dragging "Screen Sharing" from the collaboration list to the tablet's icon, the phone and tablet share their screens, and the phone can display interface 305. Interface 305 displays icon 1, which includes both a screen sharing icon and a phone icon. Icon 1 indicates that the tablet is sharing the phone's screen, and the screen displayed on the phone's screen can be simultaneously displayed on the tablet's screen.
[0049] In conventional technologies, within the device collaboration app interface of the local device, in response to user actions, the local device can collaborate with any one or more connected electronic devices. However, it is currently not possible to trigger device collaboration between electronic devices other than the local device itself within the device collaboration app interface. For example, it is currently not possible for a user to control a tablet computer to share its screen to a PC from control interface 303.
[0050] Therefore, this application provides a collaboration method applied to a first electronic device. The first electronic device establishes connections with a second electronic device and a third electronic device. The first electronic device can receive a first operation from a user on a first interface and control the second and third electronic devices to collaborate. Optionally, the first, second, and third electronic devices can be electronic devices within the same trust ring. Connections between electronic devices within the same trust ring are reliable and can ensure the security of data transmission.
[0051] The method provided in this application embodiment can be applied to electronic devices with data processing capabilities, such as the first electronic device described above. Electronic devices (the first electronic device, the second electronic device, and the third electronic device) may include mobile phones, tablets, laptops, personal computers (PCs), ultra-mobile personal computers (UMPCs), handheld computers, netbooks, smart home devices (e.g., smart TVs, smart screens, large screens, smart speakers, smart air conditioners, etc.), personal digital assistants (PDAs), wearable devices (e.g., smartwatches, smart bracelets, etc.), in-vehicle devices, virtual reality devices, etc., and this application embodiment does not impose any limitations on these. In this application embodiment, the aforementioned electronic devices are electronic devices capable of running an operating system and installing applications. Optionally, the operating system running on the electronic device may be... system, system, Systems, etc.
[0052] Take a mobile phone as an example. Figure 4 As shown, the electronic device 400 may include: a processor 410, a memory 420, a universal serial bus (USB) interface 430, a power management module 440, antennas such as antenna 1 and antenna 2, a communication module 450, a display screen 460, an audio module 470, a camera 480, a sensor module 490, etc.
[0053] Processor 410 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, memory, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). Different processing units may be independent devices or integrated into one or more processors. The controller may serve as the central nervous system and command center of the electronic device 400. The controller can generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution.
[0054] The memory 420 can be used to store computer executable program code, which includes instructions. The processor 410 executes various functional applications and data processing of the electronic device by running the instructions stored in the memory 420. The memory 420 may include a program storage area and a data storage area. The program storage area may store the operating system and at least one application program required for a function (such as sound playback, interface display, etc.). The data storage area may store data created during the use of the electronic device (such as notification messages). Furthermore, the memory 420 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
[0055] The power management module 440 is used to connect the battery to the processor 410. The power management module 440 receives battery and / or power input to power the processor 410, memory 420, communication module 450, display screen 460, and camera 480, etc. The power management module 440 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 440 may also be located within the processor 410.
[0056] The communication module 450 can provide wireless communication solutions for use on the electronic device 400, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR). The communication module 450 can be one or more devices integrating at least one communication processing module. The communication module 450 receives electromagnetic waves via an antenna, performs frequency modulation and filtering of the electromagnetic wave signal, and sends the processed signal to the processor 410. The communication module 450 can also receive signals to be transmitted from the processor 410, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via the antenna. In this embodiment, the wireless communication module 450 can establish one or more connections, including Wi-Fi, Bluetooth, and Wi-Fi peer-to-peer (P2P) connections, with other electronic devices. The wireless communication module 450 can also send signals to electronic devices with established connections.
[0057] In some embodiments, the antenna of the electronic device 400 is coupled to the communication module 450, enabling the electronic device 400 to communicate with networks and other devices via wireless communication technologies. The wireless communication technologies may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, Global Navigation Satellite System (GNSS), WLAN, NFC, FM, and / or IR technologies. The GNSS may include Global Positioning System (GPS), BeiDou Navigation Satellite System (BDS), GLONASS, and / or Galileo.
[0058] Electronic device 400 implements display functions through a GPU, display screen 460, and application processor. The GPU is a microprocessor for image processing, connecting the display screen 460 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 410 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0059] Display screen 460 is used to display images, videos, etc. Display screen 460 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Mini-LED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc.
[0060] Electronic device 400 can achieve shooting function through ISP, camera 480, video codec, GPU, display 460 and application processor.
[0061] The audio module 470 is used to convert digital audio information into analog audio signal output, and also to convert analog audio input into digital audio signal. The audio module 470 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 470 may be located in the processor 410, or some functional modules of the audio module 470 may be located in the processor 410.
[0062] The camera 480 is used to capture still images or videos. An object passes through the lens, generating an optical image that is projected onto a photosensitive element. This photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP (Image Signal Processor) for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP (Digital Signal Processor) for further processing. The DSP converts the digital image signal into standard image signals in formats such as RGB and YUV.
[0063] The sensor module 490 may include pressure sensors, gyroscope sensors, barometric pressure sensors, magnetic sensors, accelerometers, distance sensors, proximity sensors, fingerprint sensors, temperature sensors, touch sensors, ambient light sensors, and bone conduction sensors, etc.
[0064] It is understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 400. In other embodiments, the electronic device 400 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0065] Taking the aforementioned electronic device 400 as an example, which is a mobile phone, the software system of the electronic device 400 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application embodiment uses a layered architecture. Taking the system as an example, the software structure of electronic device 400 is illustrated.
[0066] Figure 5 This is a software structure block diagram of the electronic device 400 according to an embodiment of this application.
[0067] A layered architecture divides software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the system libraries, and the kernel layer.
[0068] The application layer can include a series of application packages. These application packages can include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, SMS, and launcher. Figure 5 As shown in this embodiment, the application layer can be a device-coordinated APP.
[0069] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions. For example... Figure 5 As shown, the application framework layer may include a Wi-Fi service module, a Bluetooth service module, and an input system.
[0070] The Wi-Fi service module provides a set of interfaces for applications or other software modules to control Wi-Fi. For example, applications or other software modules can use these interfaces to call the Wi-Fi service module to perform operations such as discovering devices, connecting to devices, and establishing Wi-Fi connections.
[0071] The Bluetooth service module provides a set of interfaces for applications or other software modules to control Bluetooth. For example, by calling the Bluetooth service module through these interfaces, operations such as turning Bluetooth on and off, searching for and pairing with other devices, and establishing Bluetooth connections can be performed.
[0072] The input system is used to monitor user operations on the touchscreen of electronic device 400 and convert the parameters input by the touchscreen driver into usable events, which are then passed to the relevant upper-layer modules. For example, the input system is used to monitor the touchscreen of electronic device 400 through the touchscreen driver and convert the touch parameters generated by the user's touch operation through the touchscreen into usable events, which are then passed to the upper-layer device collaboration APP.
[0073] For example, in this embodiment, the input system listens to a first operation input by the user, such as listening to the first operation through the touchscreen driver, and reports the first operation to the device collaboration APP. The device collaboration APP can send a broadcast message through the communication module 450, which is used to notify the second electronic device and the third electronic device to perform the first collaborative service.
[0074] The system libraries include the core libraries and the virtual machine. The Android Runtime is responsible for the scheduling and management of the Android system.
[0075] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.
[0076] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
[0077] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.
[0078] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.
[0079] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.
[0080] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0081] A 2D graphics engine is a graphics engine for 2D drawing.
[0082] The kernel layer is the layer between hardware and software. The kernel layer can contain touchscreen drivers, display drivers, audio drivers, sensor drivers, etc.
[0083] The following describes a collaborative method and electronic device provided by this application, with reference to specific embodiments and accompanying drawings. In this application embodiment, the electronic device logs into an account, and with the device collaboration function and wireless communication function enabled, the electronic device can apply to join the trust ring of the logged-in account. For example, when the device collaboration APP is launched for the first time, the electronic device can interact with the cloud-side server to apply to join the trust ring of the logged-in account. For example, taking a mobile phone as an example, after the mobile phone logs into an account and the device collaboration function and wireless communication function are enabled for the first time, the device collaboration APP starts automatically. After the device collaboration APP starts automatically, it applies to the server to join the trust ring corresponding to the account logged into by the mobile phone. Here, enabling the wireless communication function of the electronic device can be understood as enabling the WLAN function and / or Bluetooth function of the electronic device.
[0084] Multiple electronic devices, after enabling wireless communication, can form a trust ring and establish a network. These multiple electronic devices can include a first electronic device, a second electronic device, and a third electronic device. Taking a mobile phone as the first electronic device, a tablet computer as the second electronic device, and a PC as the third electronic device as an example, combined with... Figure 6 This paper introduces a method for forming a trust ring and establishing connections among multiple electronic devices. Figure 6 In this system, the mobile phone, tablet, and PC all have device collaboration and wireless communication functions enabled. The mobile phone and tablet are logged into the same account (e.g., Account 1). The PC is not logged into an account.
[0085] S1. Enable device collaboration and wireless communication functions on your phone, and launch the device collaboration app.
[0086] Figure 2 This shows how to enable device collaboration; your phone can refer to this guide. Figure 2 Enable the device collaboration feature as shown. Optionally, the device collaboration feature on your phone can be enabled by default and does not require manual activation by the user.
[0087] The mobile phone includes a switch for enabling WLAN functionality; in response to the user turning on the switch, the mobile phone enables WLAN functionality. The mobile phone also includes a switch for enabling Bluetooth functionality; in response to the user turning on the switch, the mobile phone enables Bluetooth functionality.
[0088] S2: The tablet computer enables device collaboration and wireless communication functions, and launches the device collaboration app.
[0089] Figure 2 This shows how to enable device collaboration on a mobile phone; tablets can refer to this method. Figure 2Enable device collaboration as shown. Optionally, device collaboration on a tablet can be enabled by default and does not require manual activation by the user. Enabling wireless communication on a tablet is similar to that on a mobile phone and will not be described further here.
[0090] S3, PC enables device collaboration and wireless communication functions, and launches the device collaboration APP.
[0091] Device collaboration features on a PC are enabled by default and do not require manual activation by the user. Enabling wireless communication on a PC is similar to that on a mobile phone, and will not be elaborated upon here.
[0092] The device collaboration app on mobile phones and tablets can be a Trust Ring app. The device collaboration app on a PC can be a PC Manager app. After enabling device collaboration and wireless communication functions, the device collaboration app can start automatically.
[0093] This application does not restrict the execution order of S1, S2, and S3. For example, the execution order could be that a tablet computer executes S2, a PC executes S3, and a mobile phone executes S1. Another example is that a mobile phone executes S1, a PC executes S3, and a tablet computer executes S2. The following explanation uses the sequential execution of S1, S2, and S3 as an example.
[0094] S4, mobile phone sends broadcast 1, tablet sends broadcast 2, PC sends broadcast 3.
[0095] After an electronic device activates its wireless communication function, it can send broadcasts, such as those from mobile phones, tablets, and PCs, to help the device discover itself. The broadcast (Broadcast 1, Broadcast 2, Broadcast 3) includes either a first identifier or a second identifier. The first identifier indicates that the device is logged into an account. The second identifier indicates that the device is not logged into an account. For example, the first identifier could be 11, and the second identifier could be 00. Specifically, Broadcast 1 includes the first identifier. Broadcast 2 includes the first identifier. Broadcast 3 includes the second identifier. The broadcast may also include basic device information. This basic information includes one or more of the following: device identity document (ID), device name, device type, and universally unique identifier (UUID). Furthermore, if the electronic device is logged into an account, the basic information also includes the account information of the logged-in account. The account information can be the username and password. If the electronic device has WLAN enabled, the broadcast can be a Wi-Fi broadcast. If the electronic device has Bluetooth enabled, the broadcast can be a Bluetooth broadcast. If the electronic device has both WLAN and Bluetooth enabled, the broadcast can be a Wi-Fi broadcast and / or a Bluetooth broadcast. After a mobile phone sends broadcast 1, the tablet and PC can listen to broadcast 1. After the tablet sends broadcast 2, the mobile phone and PC can listen to broadcast 2. After the PC sends broadcast 3, the mobile phone and tablet can listen to broadcast 3. This application does not limit the order in which multiple electronic devices send broadcasts. For example, the mobile phone, tablet, and PC can send broadcasts sequentially.
[0096] S5, the mobile phone sends request 1 to the server.
[0097] Request 1 is used to request joining the trust ring corresponding to the first account. Request 1 includes: the username and password of the first account logged in on the mobile phone, basic information about the mobile phone, etc.
[0098] S6, in response to request 1, the server adds the phone to the trust ring corresponding to the first account.
[0099] Optionally, the server verifies the account logged in by the mobile phone based on the username and password in request 1. After successful verification, the server adds the mobile phone to the trust ring corresponding to that account. For example, when a user creates the first account on an electronic device, the device sends the username and password of the first account to the server. The server saves the username and password of the first account. The server can compare the received username and password with the previously saved username and password; if they match, the server verifies the account.
[0100] A trust ring can be a dataset. Adding an electronic device to a trust ring can be understood as the server adding the device's information to the trust ring dataset. The trust ring dataset includes the account name, as well as the device IDs and basic information of the electronic devices under that account. This trust ring dataset indicates that multiple devices logged into that account are trustworthy and can form a self-organizing network based on trust ring technology. This trust ring dataset can be, for example, a data table. For example, this data table can be as shown in Table 1. The device ID is created by the server. The device ID is used to uniquely identify an electronic device within the same trust ring. The device ID of an electronic device within a trust ring is unique. For example, after receiving a request from an electronic device to join the trust ring corresponding to that account, and after successful verification, the server creates a device ID for the electronic device. After creating the device ID, the server can add the device's basic information and device ID to the trust ring dataset.
[0101] Table 1
[0102]
[0103] Specifically, taking an electronic device, such as a mobile phone, requesting to join the trust ring corresponding to the first account as an example. After receiving the request from the mobile phone to join the trust ring corresponding to the first account, the server can first identify whether the first account has already created a trust ring dataset. For example, the server can compare the first account with the accounts that have created trust ring datasets one by one. If the first account is not included in the accounts that have created trust ring datasets, the server identifies that the first account has not created a trust ring dataset. Taking the mobile phone, tablet, and PC all launching the device collaboration app for the first time as an example, since it is the first time launching the device collaboration app, the accounts that have created trust ring datasets do not include the first account. The server can create a corresponding trust ring dataset for the first account. For example, the server can create a data table as shown in Table 1, where the account in the data column is the first account, and the rest of the information is blank. The server creates a device number for the mobile phone. For example, the device number of the mobile phone can be 001. Finally, the server adds the mobile phone to the trust ring corresponding to the first account. For example, the server adds the basic information of the mobile phone and the device number to the trust ring dataset. Taking the trust ring dataset as shown in Table 1 as an example, the server can read the device name and UUID from the basic information of the mobile phone and fill them into the data columns of Table 1. The server can also fill the corresponding device number of the mobile phone into the data columns of Table 1.
[0104] S7, the server sends the mobile phone's device number to the mobile phone.
[0105] After the server adds the mobile phone to the trust ring corresponding to the first account, the server can send the mobile phone's device number to the mobile phone.
[0106] S8, the mobile phone receives the device number and saves it.
[0107] S9, the tablet computer sends request 2 to the server.
[0108] Request 2 is used to request joining the trust ring corresponding to the first account. Request 2 is similar to Request 1, and will not be described in detail here.
[0109] S10, in response to request 2, the server adds the tablet to the trust ring corresponding to the first account.
[0110] Optionally, the server verifies the account logged into by the tablet using the username and password. After successful verification, the server adds the tablet to the trust ring corresponding to that account.
[0111] The server can first identify whether a corresponding trust ring dataset has been created for the first account. Since the server has already created a trust ring dataset for the first account in S6, it can recognize that a trust ring dataset corresponding to the first account has been created. The server can create a device ID for the tablet computer, which can be obtained by incrementing or decrementing an existing device ID. For example, the device ID of the tablet computer could be 002. After creating the device ID, the server adds the tablet computer to the trust ring dataset corresponding to the first account. The corresponding implementation is similar to the specific implementation of the server adding the mobile phone to the trust ring dataset corresponding to the first account, and will not be described in detail here.
[0112] S11, the server sends the tablet computer's device number to the tablet computer.
[0113] After the server adds the tablet to the trust ring corresponding to the first account, the server can send the tablet's device number to the tablet.
[0114] S12, The tablet receives the device number and saves it.
[0115] In this way, electronic devices such as mobile phones and tablets logged into the same account can join the same trust ring after launching the device collaboration app for the first time. The mobile phone and / or tablet can also request that the PC be added to the same trust ring. Specifically, since broadcast 3 carries a second identifier, after receiving broadcast 3 from the PC, the mobile phone and / or tablet can send a first request message, such as request 3, to the server. This request 3 is used to request that the PC be added to the trust ring corresponding to the first account. This embodiment of the application uses the mobile phone sending request 3 as an example.
[0116] S13, the mobile phone hears broadcast 3, and sends request 3 to the server.
[0117] Request 3 includes the username and password of the first account logged in on the mobile phone, and basic information about the PC.
[0118] Broadcast 3 includes basic information about the PC. The mobile phone directly reads this basic information and sends it to the server in request 3.
[0119] S14, in response to request 3, the server adds the PC to the trust ring corresponding to the first account.
[0120] Optionally, the server verifies the account logged in by the mobile phone based on the username and password in request 3. After successful verification, the server adds the PC to the trust ring corresponding to that account. The server can first identify whether a corresponding trust ring dataset has been created for the first account. Since the server has already created a trust ring dataset for the first account in S6, the server can recognize that a trust ring dataset corresponding to the first account has been created. The server can create a device ID for the PC, which could be, for example, 003. After creating the device ID, the server adds the PC to the trust ring dataset corresponding to the first account. The corresponding implementation is similar to the specific implementation of the server adding the mobile phone to the trust ring dataset corresponding to the first account, and will not be described in detail here.
[0121] S15, the server sends the PC's device number to the mobile phone.
[0122] After the server adds the PC to the trust ring corresponding to the first account, the server can send the PC's device number to the mobile phone.
[0123] S16, the mobile phone receives the device number of the PC and sends the device number of the PC to the PC.
[0124] S17, PC receives and saves the device number.
[0125] Optionally, the tablet computer can send request 3 to the server. After the server executes the method described above to add the PC to the trust ring corresponding to the first account, the server can send the PC's device number to the tablet computer. The tablet computer can then send the PC's device number to the PC.
[0126] Optionally, the server can send the trust ring dataset to electronic devices within the trust ring. For example, for a trust ring, the server sends an updated trust ring dataset to the existing electronic devices within that trust ring each time a new electronic device is added. Alternatively, after launching a device collaboration app, an electronic device can proactively retrieve the trust ring dataset corresponding to the trust ring it has joined from the server. In this way, electronic devices can store basic information and device IDs of other electronic devices within the same trust ring.
[0127] After executing S1-S17, the mobile phone, tablet, and PC are all within the trust ring corresponding to the first account, and each electronic device within the trust ring includes a corresponding unique device number.
[0128] Figure 6 Taking three electronic devices as an example, this paper describes a method for adding electronic devices to the same trust ring. In some embodiments, the maximum number of electronic devices allowed to join the same trust ring can be configured by the developer. For example, if the same trust ring includes seven electronic devices, then the device numbers of the electronic devices joining the trust ring can be 001, 002, ..., 007, respectively. If a three-bit identifier is used, the device numbers can be 000, 010, ..., 111, respectively. When the total number of requests to join the trust ring exceeds this maximum number, the server may not add the requesting electronic device to the trust ring.
[0129] Electronic devices within the same trust ring can also form a self-organizing network when device collaboration and wireless communication functions are enabled. The self-organizing process can include device discovery, device connection, and device authentication. Device discovery refers to discovering surrounding devices. Device authentication refers to the device authenticating the discovered peripheral devices. After establishing a connection, the device and the connected peripheral devices communicate via message transmission, maintaining the connection between them. For example, this includes steps S18-S23 as follows. After the mobile phone establishes a connection with the peripheral device and successfully authenticates, the mobile phone can display the following on the first screen: Figure 3 The control interface 303 displays the device identifier. That is, before displaying the first interface, the mobile phone, tablet, and PC need to execute the methods shown in S1-S17 to join the trust ring corresponding to the first account, and execute the methods described in S18-S23 to connect and authenticate with each other. Optionally, the mobile phone, tablet, and PC can first establish a communication connection, and before mutual authentication, the mobile phone, tablet, and PC can execute the methods shown in S1-S17 to join the trust ring corresponding to the first account. That is, the electronic devices can establish a connection and join the trust ring before authentication. This application does not restrict the order of establishing a connection and joining the trust ring.
[0130] S18, the phone and tablet establish the first connection.
[0131] For example, after the phone hears broadcast 2 from the tablet, the phone and tablet establish an initial connection. Alternatively, after the tablet hears broadcast 1 from the phone, the tablet and phone establish an initial connection. The initial connection can be either a Bluetooth connection or a Wi-Fi connection.
[0132] For example, if a mobile phone hears broadcast 2 from a tablet computer, it can send connection request 1 to the tablet computer. Connection request 1 includes the communication methods supported by the mobile phone. If the tablet computer hears broadcast 1 from the mobile phone, it can send connection request 2 to the mobile phone. Connection request 2 includes the communication methods supported by the tablet computer. The communication methods supported by electronic devices such as mobile phones, tablet computers, and PCs can be Wi-Fi communication and / or Bluetooth communication. Optionally, if the electronic device is connected to a Wi-Fi network, the connection request may also include the Service Set Identifier (SSID) and password of the Wi-Fi network to which the electronic device is connected.
[0133] When both WLAN and Bluetooth are enabled on an electronic device, the supported communication methods include Wi-Fi and Bluetooth. When only WLAN is enabled, the supported communication methods include Wi-Fi. When only Bluetooth is enabled, the supported communication methods include Bluetooth. The following explanation uses an electronic device with both WLAN and Bluetooth enabled as an example.
[0134] Mobile phones and tablets can negotiate and establish an initial connection based on the communication method of the other device. Understandably, the electronic device can obtain the communication method of the other device based on the connection request it receives. Taking the communication methods supported by mobile phones, including Wi-Fi and Bluetooth, as an example: If the tablet supports Bluetooth, the tablet and mobile phone establish a Bluetooth connection. As another example, if the tablet supports Wi-Fi and both the tablet and mobile phone are connected to the same Wi-Fi network, a Wi-Fi connection has already been established, and neither device needs to perform any operation. As yet another example, if the tablet supports Wi-Fi but the tablet and mobile phone are connected to different Wi-Fi networks, the tablet can obtain the SSID and password of the Wi-Fi network the mobile phone is connected to, allowing the tablet to access the Wi-Fi network and establish a Wi-Fi connection. Finally, if the tablet supports Wi-Fi but the mobile phone is connected to different Wi-Fi networks, a Bluetooth connection can be established.
[0135] S19 is the first certification for mobile phones and tablets.
[0136] The authentication process may include steps such as same-account authentication and information exchange. Same-account authentication verifies whether the devices are logged into the same account. Both broadcast 1 and broadcast 2 carry the account information of the logged-in account. The mobile phone and tablet can verify whether the account information carried in the broadcast from the other device matches the account information of the already logged-in account. If they match, same-account authentication is successful. After successful same-account authentication, the mobile phone sends its device ID and device information to the tablet, and the tablet sends its device ID and device information to the mobile phone. This process can be called inter-device information exchange. The information may include the device ID and device information.
[0137] Device information may include one or more of the following: ID, device name, device type, UUID, Media Access Control Address (MAC), account information of the account the device is logged into, Internet Protocol Address (IP), and device port information. If the device has wireless AP functionality, the device information may also include: the Wi-Fi hotspot's SSID and password, and the Wi-Fi hotspot's frequency band. Having wireless AP functionality means the device can act as a wireless access point, emitting Wi-Fi signals. This wireless AP function is also known as a hotspot function. For example, a mobile phone's device ID might be 001, and a tablet's device ID might be 002.
[0138] After successful authentication and receiving information from the tablet, the phone can save the tablet's information and add the tablet to its device list. For example, ... Figure 3 As shown, the mobile phone can display the tablet's identifier in the application card 302 of the control center, indicating that the tablet and mobile phone are devices within the trust ring and have established a connection. Additionally, the mobile phone can display the tablet's identifier in the control interface 303 of the trust ring APP, indicating that the mobile phone and tablet are devices within the trust ring and have established a connection. Similarly, after successful authentication and receiving information from the mobile phone, the tablet can save the mobile phone's information and add the mobile phone to its device list. The mobile phone's identifier can be displayed on the device collaboration APP interface of the tablet, indicating that the mobile phone and tablet are devices within the trust ring and have established a connection.
[0139] S20: The mobile phone establishes a second connection with the PC.
[0140] For example, after the mobile phone hears broadcast 3 from the PC, the mobile phone establishes a second connection with the PC. Alternatively, after the PC hears broadcast 1 from the mobile phone, the PC establishes a second connection with the mobile phone. This second connection can be either a Bluetooth connection or a Wi-Fi connection.
[0141] Taking a mobile phone with WLAN and Bluetooth enabled as an example, if the tablet supports Bluetooth communication, the tablet and phone will establish a Bluetooth connection. Alternatively, if the tablet supports Wi-Fi communication and both the tablet and phone are connected to the same Wi-Fi network, a Wi-Fi connection has already been established, and neither needs to perform any operation. Another example: if the tablet supports Wi-Fi communication but the tablet and phone are connected to different Wi-Fi networks, the tablet can obtain the SSID and password of the Wi-Fi network the phone is connected to, allowing the tablet to access that network and establish a Wi-Fi connection. Finally, if the tablet supports Wi-Fi communication but the tablet and phone are connected to different Wi-Fi networks, a Bluetooth connection can be established.
[0142] In this embodiment, the first connection and the second connection can be different connection methods. For example, the first connection is a Wi-Fi connection, and the second connection is a Bluetooth connection. Alternatively, the first connection and the second connection can be the same connection method. For example, both the first and second connections are Wi-Fi connections. Another example is that both the first and second connections are Bluetooth connections. The method for establishing a second connection between a mobile phone and a PC is similar to the method for establishing a first connection between a mobile phone and a tablet computer, as described above, and will not be repeated here.
[0143] S21, a second authentication between the mobile phone and the PC.
[0144] Similarly, the authentication process can include steps such as account authentication and information exchange. In one embodiment, since the PC is not logged into the first account, its broadcast 3 does not include any account information. In this case, the mobile phone and PC can perform account authentication based on the trust ring dataset corresponding to the first account. For example, the mobile phone and PC can obtain the trust ring dataset corresponding to the first account from the server. The mobile phone can look up the PC's basic information, such as its UUID, in the trust ring dataset corresponding to the first account. If the trust ring dataset corresponding to the first account includes the PC's UUID, the mobile phone's authentication of the PC is successful. The PC can look up the mobile phone's basic information, such as its UUID, in the trust ring dataset corresponding to the first account. If the trust ring dataset corresponding to the first account includes the mobile phone's UUID, the PC's authentication of the mobile phone is successful. For another example, the mobile phone and PC can exchange device identifiers. For instance, after establishing a second connection between the mobile phone and PC, they can exchange device numbers through this second connection. Afterward, the mobile phone can look up the PC's device number in the trust ring dataset corresponding to the first account. If the trust ring dataset corresponding to the first account includes the PC's device number, the mobile phone's authentication of the PC is successful. The PC can look up the mobile phone's device number in the trust ring dataset corresponding to the first account. If the trust ring dataset corresponding to the first account includes the phone's device ID, the PC successfully authenticates the phone. After successful authentication with the same account, the phone and PC can perform an information exchange process to send their own device information and device ID to the peer device.
[0145] After successful authentication and receipt of information from the PC, the phone can save the PC's information and add the PC to its device list. For example, such as... Figure 3 As shown, the mobile phone can display the PC's identifier in the application card 302 of the control center, indicating that the PC and the mobile phone are devices within the trust ring and have established a connection. Additionally, the mobile phone can display the PC's identifier in the control interface 303 of the trust ring APP. Similarly, after successful authentication and receiving information from the mobile phone, the PC can save the mobile phone's device information and add the mobile phone to its device list. The mobile phone's identifier can be displayed on the PC's device collaboration APP interface, indicating that the mobile phone and the PC are devices within the trust ring and have established a connection.
[0146] S22, the tablet establishes a third connection with the PC.
[0147] For example, after the tablet hears broadcast 3 from the PC, the tablet establishes a third connection with the PC. Alternatively, after the PC hears broadcast 2 from the tablet, the PC establishes a third connection with the tablet.
[0148] The third connection can be either a Wi-Fi connection or a Bluetooth connection. This application does not impose a specific limitation on this.
[0149] S23, tablets and PCs undergo third-party certification.
[0150] The process of establishing a connection and authentication between a tablet and a PC can be referenced from the process of establishing a connection and authentication between a mobile phone and a PC, and will not be repeated here.
[0151] Similarly, after successful authentication and receiving information from the PC, the tablet can save the PC's device information and add the PC to its device list. The PC's identifier can then be displayed in the device collaboration app on the tablet.
[0152] In this way, mobile phones, tablets, and PCs complete trusted authentication and network formation. In this embodiment, logged-in electronic devices such as mobile phones or tablets can request the server to add unlogged-in electronic devices such as PCs to the same trust ring. Thus, unlogged-in electronic devices can also join the trust ring, facilitating device collaboration between devices.
[0153] Figure 6 The illustrated embodiment describes the process of a mobile phone, tablet, and PC initially establishing a network. When re-establishing the network, since the mobile phone, tablet, and PC are already in the trust ring corresponding to the first account, and with wireless communication functions enabled on all three devices, the mobile phone and tablet can establish a first connection and perform a first authentication. The mobile phone and PC can establish a second connection and perform a second authentication. The tablet and PC can establish a third connection and perform a third authentication. The connection methods for the first and second connections can be different.
[0154] For example, if a mobile phone has both WLAN and Bluetooth enabled, and a PC has Bluetooth enabled, the phone and PC will establish a Bluetooth connection. Alternatively, if both the mobile phone and PC have WLAN and Bluetooth enabled, the phone and PC will establish a Wi-Fi connection. Another example is if both the mobile phone and PC have WLAN and Bluetooth enabled, the phone and PC will establish either a Bluetooth connection or a Wi-Fi connection.
[0155] For example, if a mobile phone has both WLAN and Bluetooth enabled, and a tablet has Bluetooth enabled, the phone and tablet will establish a Bluetooth connection. Alternatively, if both the phone and tablet have WLAN and Bluetooth enabled, they will establish a Wi-Fi connection. Another example is if both the phone and tablet have WLAN and Bluetooth enabled, they will establish either a Bluetooth connection or a Wi-Fi connection. The connection between a tablet and a PC is similar.
[0156] After establishing a communication connection, the control interface of the device collaboration app on the mobile phone is as follows: Figure 3 Interface 303 can display the identifiers of the mobile phone, tablet, and PC. Within the mobile phone's device collaboration app, in response to user actions, the phone can control the tablet and PC for device collaboration. For example, the phone can send a broadcast message, such as a first broadcast, to notify the tablet and PC to initiate device collaboration. This way, the phone only needs to send one broadcast to notify the tablet and PC, improving their response speed and avoiding latency.
[0157] The preceding text described a method for the first, second, and third electronic devices to join a trust ring and establish a trusted connection. After the first, second, and third electronic devices join the trust ring and establish a trusted connection, they can interactively implement a collaborative method provided in the embodiments of this application.
[0158] In some embodiments, the first electronic device, the second electronic device, and the third electronic device do not need to join a trust loop. After the first electronic device establishes a connection with the second and third electronic devices, a self-organizing network is completed, and they can interactively implement the collaborative method provided in the embodiments of this application.
[0159] The following text uses broadcast messages as the first broadcast, combined with... Figure 7 Let me introduce it. Figure 7 In the illustrated embodiment, the mobile phone establishes a communication connection with the tablet and PC. For example, Figure 7 The methods shown include:
[0160] S701, the phone displays the first screen.
[0161] The first interface could be, for example, like this: Figure 3 The control interface 303 is used to display the communication connection between the mobile phone and other electronic devices such as tablets and PCs. For example, the first interface is used to display the identifiers of other electronic devices such as tablets and PCs that have established a communication connection with the mobile phone. That is, when other electronic devices establish a connection with the mobile phone, the mobile phone displays the identifier of the other electronic device on the first interface.
[0162] Optionally, before the phone displays the first interface, it establishes a first connection with the tablet and a second connection with the PC. The connection methods for the first and second connections can be the same or different. The first connection can be a Wi-Fi connection or a Bluetooth connection.
[0163] After a mobile phone establishes a communication connection with a tablet or PC, the mobile phone can display the first screen. For example, if the mobile phone, tablet, and PC are electronic devices within the same trust ring, the mobile phone can display the first screen. Alternatively, even if the mobile phone, tablet, and PC are not electronic devices within the same trust ring, the mobile phone can still display the first screen.
[0164] Optionally, the mobile phone, tablet, and PC are electronic devices within the same trust ring. Before displaying the first interface, the mobile phone and tablet are logged into the first account, while the PC is not. The mobile phone can send a first request message to the server, such as request 3. This first request message requests that the PC be added to the trust ring corresponding to the first account. The mobile phone receives the PC's device identifier from the server and sends the PC's device identifier back to the PC. Alternatively, the tablet can send a first request message to the server, requesting that the PC be added to the trust ring corresponding to the first account. The tablet receives the PC's device identifier from the server and sends the PC's device identifier back to the PC.
[0165] Optionally, the mobile phone can also receive a device identifier from a second electronic device, such as a tablet computer, before displaying the first interface.
[0166] S702, in response to the user's first action on the first interface, sends a first broadcast.
[0167] The first broadcast is a broadcast message. It is used to notify the tablet and PC to initiate their first collaborative activity.
[0168] The first operation triggers the tablet and PC to perform the first collaborative service. Device collaboration can include various collaborative services such as application continuation, screen sharing, call sharing, notification sharing, keyboard and mouse sharing, camera sharing, and network sharing. The first collaborative service is one of the above types of collaborative services. For example, one of the above types of collaborative services can be preset as the first collaborative service. Screen sharing can be preset as the first collaborative service.
[0169] In some embodiments, the first operation may be a user dragging the tablet's icon onto the PC's icon in the control interface of a device collaboration app displayed on a mobile phone. The preset first collaboration service between the tablet and PC may be, for example, screen sharing; when the tablet's icon is dragged onto the PC's icon, the tablet can share its screen on the PC's display. Alternatively, the first operation may be a user dragging the PC's icon onto the tablet's icon in the control interface of a device collaboration app displayed on a mobile phone. The preset first collaboration service between the PC and tablet may be network sharing; when the PC's icon is dragged onto the tablet's icon, the tablet can turn on a Wi-Fi hotspot and send the Wi-Fi hotspot's SSID and password to the PC. The PC can then connect to the Wi-Fi hotspot and share the tablet's network.
[0170] In some embodiments, the first operation includes a trigger operation and a drag operation. The trigger operation is an action of clicking the identifier of the second electronic device on the first interface, which triggers the phone to display a list. This list includes information on collaborative services supported by the second electronic device. The drag operation involves dragging information about a first collaborative service from the list onto the identifier of the third electronic device. The collaborative service information may be the name of the collaborative service.
[0171] For example, in response to a user's action on the tablet's icon in the device collaboration app's control interface displayed on the mobile phone, a list of collaboration services supported by the tablet is displayed. In response to the user dragging information such as the name of the first collaboration service in this list onto the PC's icon, the tablet and PC initiate the first collaboration service. That is, the first operation can include the user triggering the display of the list of collaboration services supported by the tablet on the mobile phone and dragging the name of the first collaboration service in the list onto the PC's icon.
[0172] For example, in response to a user's action on the PC icon in the device collaboration app's control interface displayed on the mobile phone, a list of collaboration services supported by the PC is displayed. In response to the user dragging information such as the name of the first collaboration service in the list onto the tablet's icon, the PC and tablet initiate the first collaboration service. The first operation may include the user triggering the display of the PC's supported collaboration service list on the mobile phone and dragging the name of the first collaboration service in the list onto the tablet's icon.
[0173] The first broadcast may include information about the first collaborative service, such as its name, the device identifier and device information of the initiator, and the device identifier and device information of the receiver. The initiator may be the device that initiates the first collaborative service, such as the device sending the collaborative data corresponding to the first collaborative service. The receiver may be the device that receives the first collaborative service, such as the device receiving the collaborative data corresponding to the first collaborative service. The device information includes one or more of the following: ID, device name, device type, UUID, MAC address, IP address, account information of the account the device is logged into, and device port information. The device identifier is used to uniquely identify an electronic device and may be one or more of ID, UUID, and device number. Optionally, if the mobile phone, tablet, and PC are not in the same trust ring, the device identifier may be ID and / or UUID. If the mobile phone, tablet, and PC are in the same trust ring, the device identifier may be device number.
[0174] For example, if the first operation is a user dragging the tablet icon to the PC icon on the device collaboration app interface displayed on the phone, the collaboration initiator is the tablet, and the collaboration recipient is the PC. Conversely, if the first operation is a user dragging the PC icon to the tablet icon on the device collaboration app interface displayed on the phone, the collaboration initiator is the PC, and the collaboration recipient is the tablet.
[0175] For example, if the first operation involves the user dragging and dropping information about the first collaborative service from the tablet's collaboration list onto the PC's identifier, the collaboration initiator is the tablet, and the collaboration recipient is the PC. Conversely, if the first operation involves the user dragging and dropping the name of the first collaborative service from the PC's collaboration list onto the tablet's identifier, the collaboration initiator is the PC, and the collaboration recipient is the tablet.
[0176] In response to a first broadcast from a first electronic device, a fourth electronic device can engage in a first collaborative service with a target electronic device. The fourth electronic device can be a second electronic device, such as a tablet computer, or a third electronic device, such as a PC. If the fourth electronic device is a second electronic device, such as a tablet computer, the target electronic device is a third electronic device, such as a PC. Alternatively, if the fourth electronic device is a third electronic device, such as a PC, the target electronic device is a second electronic device, such as a tablet computer. The fourth electronic device can be either the initiator or the receiver of the collaboration, and the target electronic device can be either the receiver or the initiator of the collaboration.
[0177] Optionally, the fourth electronic device is logged into the first account, while the target electronic device is not logged into the first account. Before receiving the first broadcast, the fourth electronic device may send a first request message to the server. The first request message is used to request that the target electronic device be added to the trust ring corresponding to the first account. The fourth electronic device may receive the device identifier of the target electronic device sent by the server and send the device identifier of the target electronic device to the target electronic device.
[0178] Optionally, the fourth electronic device is not logged into the first account, while the target electronic device is logged into the first account. Before receiving the first broadcast, the fourth electronic device may receive the device identifier of the fourth electronic device sent by the first electronic device or the target electronic device.
[0179] The following example illustrates this solution using a second electronic device, such as a tablet computer, as the initiator of the collaboration, and a third electronic device, such as a PC, as the recipient. After receiving the first broadcast, the tablet computer can obtain information about the first collaborative service, including the device identifier and information of the initiator, and the device identifier and information of the recipient. Recognizing itself as the initiator, the tablet computer proactively initiates the first collaborative service with the recipient, such as the PC. For example, the tablet computer can execute steps S703 and S704.
[0180] S703, the tablet computer receives the first broadcast.
[0181] Optionally, before receiving the first broadcast, both the mobile phone and tablet are logged into the first account, while the PC is not. The tablet can send a first request message to the server, which requests that the PC be added to the trust ring corresponding to the first account. The tablet receives the PC's device identifier from the server and sends the PC's device identifier back to the PC.
[0182] S704, the tablet computer sends collaborative data corresponding to the first collaborative service to the PC.
[0183] Collaborative data refers to data used for collaborative business operations. As mentioned earlier, device collaboration can include various collaborative services such as application continuation, screen sharing, call sharing, notification sharing, keyboard and mouse sharing, camera sharing, and network sharing. Correspondingly, collaborative data can be data used for application continuation with a PC, screen sharing with a PC, call sharing with a PC, notification sharing with a PC, keyboard and mouse sharing with a PC, camera sharing with a PC, and network sharing with a PC, etc.
[0184] Optionally, during network setup, a third connection is established between the tablet and the PC. If the tablet or PC experiences network instability, the connection between the two may be lost. Therefore, after receiving the first broadcast, the tablet can determine whether a connection has been established with the PC. For example, if the tablet and PC are not connected, the tablet can establish a connection first, and then send collaborative data to the PC through this connection. Alternatively, if the tablet and PC are already connected, the tablet can send collaborative data to the PC through the established connection, such as the aforementioned third connection.
[0185] S705, PC receives the first broadcast.
[0186] Optionally, the PC may receive the device identifier sent by the mobile phone and / or tablet before receiving the first broadcast.
[0187] S706, the PC receives the collaborative data corresponding to the first collaborative service.
[0188] The PC can receive collaborative data. Optionally, the PC can receive collaborative data sent by the tablet only after receiving the first broadcast. For example, after receiving the first broadcast, the PC can obtain information about the first collaborative service, the device identifier and device information of the collaborative initiator, and the device identifier and device information of the collaborative receiver. After receiving the above information, the PC can identify itself as the collaborative receiver and can then receive the collaborative data of the first collaborative service sent by the tablet.
[0189] Optionally, during network setup, a third connection is established between the tablet and the PC. If the tablet or PC experiences network instability, the connection between the PC and the tablet may be lost. Therefore, after receiving the first broadcast, the PC can determine whether a connection has been established with the tablet. For example, if the PC and tablet are not connected, the tablet can first establish a connection with the PC and then receive collaborative data through that connection. In other words, if the PC and tablet are not connected, the connection can be initiated by either the PC or the tablet. Of course, if the tablet and PC are already connected, the PC can receive collaborative data through the established connection, such as the third connection mentioned above.
[0190] Thus, through the control interface of the device collaboration app on the mobile phone, the phone can control the tablet and PC for device collaboration. This helps users control a second electronic device, such as a tablet, and a third electronic device, such as a PC, from a first electronic device, such as a mobile phone. It also helps users trigger device collaboration between other electronic devices connected to their local device, such as the mobile phone.
[0191] by Figure 8 For example, in response to a user clicking the tablet's icon on the control interface 303 of the Trust Ring APP on the phone, the collaboration list 304 is displayed. In response to the user dragging "Screen Sharing" from the collaboration list 304 to the PC's icon, the phone determines that the collaboration initiator is the tablet and the collaboration recipient is the PC. The phone sends a broadcast. The first broadcast includes the name of the collaboration service, such as "Screen Sharing," the device identifier of the collaboration initiator (e.g., 002) and device information, and the device identifier of the collaboration recipient (e.g., 003) and device information. For example, the first field of the first broadcast is used to fill in the device identifier and device information of the collaboration initiator, and the second field of the first broadcast is used to fill in the device identifier and device information of the collaboration recipient. The tablet listens to the first broadcast and sends collaboration data, such as screen data, to the PC. The PC listens to the first broadcast, receives the collaboration data sent by the tablet, and displays the corresponding interface on the screen according to the screen data. For example, as shown... Figure 8 As shown, the PC's display can show the interface displayed on the tablet's display. After receiving the first broadcast, both the tablet and the PC can send a reply broadcast to the mobile phone, indicating that they have received the notification to initiate the first collaborative service. After receiving the reply broadcasts from the tablet and the PC, the mobile phone displays identifier 2 on the control interface 303. Identifier 2 indicates that the tablet and the PC are conducting the first collaborative service, such as the PC sharing the tablet's screen.
[0192] Due to the high transmission speed of Wi-Fi P2P connections, in response to the user's first action, the mobile phone can instruct the PC and tablet to establish a Wi-Fi P2P connection. The Wi-Fi P2P connection is used for the tablet and PC to perform initial collaborative services. Based on this, the first broadcast is also used to notify the tablet and PC to establish a Wi-Fi P2P connection and to perform the initial collaborative services based on this Wi-Fi P2P connection. As one implementation, the first broadcast may also include information for forming a Wi-Fi P2P group, hereinafter referred to as the first information, used to notify the tablet and PC to establish a Wi-Fi P2P connection.
[0193] In this context, two or more electronic devices establish a Wi-Fi P2P connection, forming a P2P group (or Wi-Fi P2P group). Within the P2P group, devices have two roles: P2P group owner (GO) and P2P group client (GC). A GO device can act as a wireless access device, and a GC device can connect to this wireless access device to form a P2P group. A GO device can only connect to a GC and cannot establish connections with other GO devices; a GC device can only connect to one GO device and cannot establish connections with other GO devices or GC devices. The first piece of information includes the device roles of the tablet and PC, the device information of the GO devices, the device information of the GC devices, and the hotspot information of the GO devices.
[0194] The first piece of information includes the GO device's Wi-Fi hotspot information, which includes the Wi-Fi hotspot's SSID, password, and frequency band. The first piece of information also includes the device roles of the initiating and receiving parties. The device roles of the initiating and receiving parties are different.
[0195] When a mobile phone authenticates with a tablet or PC, it obtains the device information of the tablet and the PC. After determining the device role within the P2P group, the mobile phone can carry some or all of the device information corresponding to different device roles in the first broadcast.
[0196] Optionally, the mobile phone can determine whether to instruct the PC and tablet to establish a Wi-Fi P2P connection based on the type of the first collaborative service. For example, the mobile phone includes a whitelist that contains the names of collaborative services based on the Wi-Fi P2P connection. This whitelist may include, for example, the names of one or more collaborative services such as screen sharing, multi-screen collaboration, screen mirroring, screen extension, and application continuation. If the whitelist includes the name of the first collaborative service, the mobile phone carries the first information in the first broadcast.
[0197] Before sending the first broadcast, the mobile phone can first determine the device roles of the tablet and PC in the P2P group.
[0198] As an example, a mobile phone can designate a device with hotspot functionality as a GO device; for instance, a mobile phone can designate a device whose device information includes Wi-Fi hotspot information as a GO device. Figure 6In the illustrated embodiment, after authentication between the mobile phone and the tablet, the mobile phone can obtain and save the tablet's device information; similarly, after authentication between the mobile phone and the PC, the mobile phone can obtain and save the PC's device information. If the tablet's device information includes Wi-Fi hotspot information, the mobile phone designates the tablet as the GO device and the PC as the GC device. If the PC's device information includes Wi-Fi hotspot information, the mobile phone designates the PC as the GO device and the tablet as the GC device. If both the tablet's and PC's device information include Wi-Fi hotspot information, the mobile phone randomly designates one device as the GO device and the other as the GC device.
[0199] As another example, a mobile phone can assign device roles based on the device type. For instance, a mobile phone or tablet can be designated as a GO device, while a PC or smart screen can be designated as a GC device.
[0200] For example, such as Figure 9 As shown, the method may include:
[0201] S901, the phone displays the first screen.
[0202] The first interface can be as follows: Figure 3 The control interface 303 of the device collaboration APP is shown.
[0203] S902, in response to the user's first operation on the first interface, sends a first broadcast.
[0204] The first broadcast is used to notify the tablet to establish a Wi-Fi P2P connection with the PC.
[0205] This Wi-Fi P2P connection is used for the first collaborative business between tablets and PCs.
[0206] The first broadcast includes information about the first collaborative service, such as the name, device identifier and information of the collaborative initiator, device identifier and information of the collaborative receiver, the device role of the collaborative initiator, the device role of the collaborative receiver, and the first information. The first information is used to instruct the tablet to establish a Wi-Fi P2P connection with the PC.
[0207] In response to the first broadcast from the first electronic device, if the fourth electronic device is a GO device, the fourth electronic device activates a Wi-Fi hotspot based on the first information in the first broadcast and performs a first collaborative service with the target electronic device based on the Wi-Fi hotspot. In response to the first broadcast from the first electronic device, if the fourth electronic device is a GC device, the fourth electronic device searches for a Wi-Fi hotspot based on the first information in the first broadcast and performs a first collaborative service with the target electronic device based on the Wi-Fi hotspot. The fourth electronic device can be a tablet computer, and the target electronic device can be a PC. Alternatively, the fourth electronic device can be a PC, and the target electronic device can be a tablet computer. The fourth electronic device can be either the initiator or the receiver of the collaboration, and the target electronic device can be either the receiver or the initiator of the collaboration.
[0208] The following example uses a tablet computer as the initiator of the collaboration and a PC as the recipient. The tablet computer is designated as a GO device, and the PC is designated as a GC device.
[0209] S903, the tablet computer receives the first broadcast.
[0210] S904, the tablet computer turns on a Wi-Fi hotspot.
[0211] The tablet can activate a Wi-Fi hotspot based on the first information in the first broadcast. For example, the SSID, password, and frequency band of the Wi-Fi hotspot activated by the tablet are the same as the SSID, password, and frequency band of the Wi-Fi hotspot of the GO device in the first information.
[0212] S905, PC receives the first broadcast.
[0213] S906, a Wi-Fi hotspot for connecting PCs to tablets.
[0214] In some embodiments, the PC and tablet establish a Wi-Fi or Bluetooth connection before the PC connects to the tablet's Wi-Fi hotspot. In other embodiments, the PC and tablet do not establish a connection before the PC connects to the tablet's Wi-Fi hotspot. Regardless of whether a connection is established between the PC and tablet, after the PC and tablet hear the first broadcast, the tablet will turn on its Wi-Fi hotspot, and the PC will connect to the tablet's Wi-Fi hotspot, thus establishing a Wi-Fi connection. In some embodiments, the PC can request to connect to the tablet's Wi-Fi hotspot multiple times until the PC successfully connects. The PC can search for and connect to the Wi-Fi hotspots carried in the first information in the first broadcast.
[0215] In this way, the tablet and PC can establish a Wi-Fi P2P connection, and after the connection is established, the tablet and PC can perform device collaboration based on the Wi-Fi P2P connection.
[0216] S907: The tablet computer sends collaborative data corresponding to the first collaborative service to the PC via a Wi-Fi P2P connection.
[0217] S908, the PC receives collaborative data corresponding to the first collaborative service via Wi-Fi P2P connection.
[0218] Because of the high transmission speed of Wi-Fi P2P connections, mobile phones can instruct tablets and PCs to establish a Wi-Fi P2P connection. After establishing the Wi-Fi P2P connection, tablets and PCs can perform their first collaborative service based on the Wi-Fi P2P connection, avoiding latency. Especially when the first collaborative service is screen sharing, it can effectively avoid inconsistencies in display caused by latency.
[0219] This application provides an electronic device including a memory, a display screen, and one or more processors. The display screen is coupled to the processors. The memory stores computer program code. The computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device can perform various functions or steps performed by the mobile phone in the above method embodiments. The structure of the electronic device can be referred to... Figure 4 The structure of the electronic device 400 shown.
[0220] This application provides a collaborative system, including a first electronic device, a second electronic device, and a third electronic device; the first electronic device establishes a first connection with the second electronic device, and the first electronic device establishes a second connection with the third electronic device; the first electronic device, the second electronic device, and the third electronic device can execute various functions or steps performed by the mobile phone in the above method embodiments.
[0221] This application embodiment also provides a computer storage medium, which includes computer instructions, when the computer instructions are executed in the aforementioned electronic device (such as...). Figure 4 When the electronic device 400 shown is run, it causes the electronic device to perform the various functions or steps in the above method embodiments.
[0222] This application also provides a computer program product that, when run on a computer, causes the computer to perform the various functions or steps described in the above method embodiments.
[0223] This application also provides a chip system including at least one processor and at least one interface circuit. The processor and the interface circuit are interconnected via lines. For example, the interface circuit can be used to receive signals from other devices (e.g., the memory of an electronic device). As another example, the interface circuit can be used to send signals to other devices (e.g., the processor). Exemplarily, the interface circuit can read instructions stored in the memory and send the instructions to the processor. When the instructions are executed by the processor, the electronic device can perform the steps in the above embodiments. Of course, the chip system may also include other discrete devices, and this application does not specifically limit this.
[0224] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0225] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another apparatus, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0226] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0227] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0228] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0229] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A collaborative method, characterized in that, Applied to a first electronic device, the method includes: The first electronic device establishes communication connections with the second electronic device and the third electronic device, respectively; The first interface is displayed, which is used to display the communication connection relationship between the first electronic device, the second electronic device and the third electronic device; In response to a user's first operation on the first interface, a broadcast message is sent; the broadcast message is used to notify the second electronic device and the third electronic device to perform a first collaborative service based on the communication connection between the second electronic device and the third electronic device.
2. The method according to claim 1, characterized in that, The broadcast message is also used to notify the second electronic device and the third electronic device to establish a Wi-Fi peer-to-peer (P2P) connection. The Wi-Fi P2P connection is used for the second electronic device and the third electronic device to perform the first collaborative service.
3. The method according to claim 2, characterized in that, The broadcast message includes information about the first collaborative service, the device identifier and device information of the collaborative initiator, the device identifier and device information of the collaborative receiver, and the first information; The first information is used to instruct the second electronic device to establish the Wi-Fi P2P connection with the third electronic device; The collaboration initiator is the second electronic device, and the collaboration receiver is the third electronic device; or, the collaboration initiator is the third electronic device, and the collaboration receiver is the second electronic device.
4. The method according to claim 3, characterized in that, The first information includes: The device role of the initiator of the collaboration; The device role of the collaborative receiver; the device role includes GO device and GC device, and the device role of the collaborative initiator is different from that of the collaborative receiver; And, the device role is the SSID, password and frequency band of the Wi-Fi hotspot of the GO device's electronic device.
5. The method according to any one of claims 1-4, characterized in that, The first electronic device establishes communication connections with the second electronic device and the third electronic device, respectively, including: The first electronic device establishes a first connection with the second electronic device, and the first electronic device establishes a second connection with the third electronic device. The connection method of the first connection is different from that of the second connection.
6. The method according to any one of claims 1-4, characterized in that, The first electronic device and the second electronic device are logged into the first account, while the third electronic device is not logged into the first account; the device identifier is a device number, which is used to uniquely identify an electronic device within the trust ring corresponding to the first account; Before displaying the first interface, the method further includes: Send a first request message to the server, the first request message being used to request that the third electronic device be added to the trust ring corresponding to the first account; Receive the device number of the third electronic device sent by the server; Receive the device number of the second electronic device sent by the second electronic device.
7. The method according to claim 6, characterized in that, The method further includes: Send the device number of the third electronic device to the third electronic device.
8. The method according to any one of claims 1-4, characterized in that, The first interface displays the logos of the second electronic device and the third electronic device; The first operation includes a trigger operation and a drag operation. The trigger operation is an operation on the identifier of the second electronic device on the first interface. The trigger operation is used to trigger the first electronic device to display a list. The list includes information on the collaborative services supported by the second electronic device. The drag-and-drop operation is the operation of dragging the information of the first collaborative service in the list onto the identifier of the third electronic device.
9. A collaborative method, characterized in that, Applied to a fourth electronic device, wherein the fourth electronic device is a second or a third electronic device, the method includes: Receive a broadcast message sent by a first electronic device; the broadcast message is used to notify the second electronic device and the third electronic device to perform a first collaborative service; In response to the broadcast message, the first collaborative service is performed with the target electronic device based on the communication connection with the target electronic device; if the fourth electronic device is the second electronic device, the target electronic device is the third electronic device; if the fourth electronic device is the third electronic device, the target electronic device is the second electronic device.
10. The method according to claim 9, characterized in that, The broadcast message is also used to notify the second electronic device and the third electronic device to establish a Wi-Fi peer-to-peer (P2P) connection. The Wi-Fi P2P connection is used for the second electronic device and the third electronic device to perform the first collaborative service.
11. The method according to claim 10, characterized in that, The broadcast message includes information about the first collaborative service, the device identifier and device information of the collaborative initiator, the device identifier and device information of the collaborative receiver, and the first information; The first information is used to instruct the second electronic device to establish the Wi-Fi P2P connection with the third electronic device; The collaboration initiator is the second electronic device, and the collaboration receiver is the third electronic device; or, the collaboration initiator is the third electronic device, and the collaboration receiver is the second electronic device.
12. The method according to claim 11, characterized in that, The first information includes: The device role of the initiator of the collaboration; The device role of the collaborative receiver; the device role includes GO device and GC device, and the device role of the collaborative initiator is different from that of the collaborative receiver; And, the device role is the SSID, password and frequency band of the Wi-Fi hotspot of the GO device's electronic device.
13. The method according to claim 12, characterized in that, The device role of the fourth electronic device is a GO device. After receiving the broadcast message sent by the first electronic device, the method further includes: Based on the first information in the broadcast message, turn on the Wi-Fi hotspot; In response to the broadcast message, performing the first collaborative service with the target electronic device includes: In response to the broadcast message, the first collaborative service is performed with the target electronic device based on the Wi-Fi hotspot.
14. The method according to claim 12, characterized in that, The fourth electronic device is a GC device. After receiving the broadcast message sent by the first electronic device, the method further includes: Based on the first information in the broadcast message, search for Wi-Fi hotspots; In response to the broadcast message, performing the first collaborative service with the target electronic device includes: In response to the broadcast message, the first collaborative service is performed with the target electronic device based on the Wi-Fi hotspot.
15. The method according to any one of claims 9-14, characterized in that, The fourth electronic device is logged into the first account, while the target electronic device is not logged into the first account. The device identifier is a device number, which is used to uniquely identify an electronic device within the trust ring corresponding to the first account. Before receiving the broadcast message sent by the first electronic device, the method further includes: Send a first request message to the server, the first request message being used to request that the target electronic device be added to the trust ring corresponding to the first account; Receive the device number of the target electronic device sent by the server; Send the device number of the target electronic device to the target electronic device.
16. The method according to any one of claims 9-14, characterized in that, The fourth electronic device is not logged into the first account, while the target electronic device and the first electronic device are logged into the first account. The device identifier is a device number, which is used to uniquely identify an electronic device within the trust ring corresponding to the first account. Before receiving the broadcast message sent by the first electronic device, the method further includes: The device number of the fourth electronic device is received from the first electronic device or the target electronic device.
17. A collaborative system, characterized in that, It includes a first electronic device, a second electronic device, and a third electronic device; the first electronic device establishes a first connection with the second electronic device, and the first electronic device establishes a second connection with the third electronic device; the first electronic device is used to perform the method as described in any one of claims 1-8; The second electronic device and the third electronic device are used to perform a first collaborative service in response to a broadcast message sent by the first electronic device.
18. An electronic device, characterized in that, The electronic device includes: a memory, a wireless communication module, and one or more processors; the wireless communication module receives and transmits data according to the control of the processor to realize communication between the electronic device and other electronic devices; the memory is coupled to the processor; wherein the memory is used to store computer program code, the computer program code including computer instructions; when the computer instructions are executed by the processor, the electronic device performs the method as described in any one of claims 1-16.
19. A computer-readable storage medium, characterized in that, Includes computer instructions that, when executed on an electronic device, cause the electronic device to perform the method as described in any one of claims 1-16.
20. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the method as described in any one of claims 1-16.
Citation Information
Patent Citations
File transmission method and related equipment
CN114356195A
Communication method, apparatus, and system
WO2024087071A1