Business collaboration method and first electronic equipment
By implementing the business collaboration method in the first electronic device, obtaining and deciding related services of distributed services, the problem of multi-service collaboration cannot be achieved in multi-device scenarios is solved, and intelligent collaborative operation and the effect of reducing development complexity is achieved. .
Patent Information
- Application Number
- CN202310954904.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-31
- Publication Date
- 2025-02-14
AI Technical Summary
The existing technology cannot achieve multi-service collaboration for distributed services in multi-device scenarios, and the service collaborative development is complex and has a large workload.
By introducing a service collaboration method in the first electronic device, after obtaining the operations input by the user, the associated services of the distributed services are automatically acquired, and equipment decisions are made on these services, decision results are generated, and collaborative operations are performed, thereby realizing multi-service collaboration.
It realizes intelligent collaborative operation of distributed services in multiple device scenarios, reduces the complexity and workload of business collaborative development, and provides a more intelligent collaborative experience.
Smart Images

Figure CN119440745A_ABST
Abstract
Description
[Technical field]
[0001] Embodiments of the present invention relate to the field of terminal technology, and specifically to a service collaboration method and a first electronic device. [Background technology]
[0002] In a distributed scenario, multiple electronic devices can form a multi-device connection scenario to provide services to users. In the continuous interaction process of multiple devices, the device decision of the electronic device for distributed services is very important, and the device decision result plays a decisive role in the user's final experience.
[0003] In the related art, when making equipment decisions for distributed services, equipment decisions can only be made for each distributed service individually, thereby failing to achieve multi-service collaboration for distributed services. [Summary of the invention]
[0004] In view of this, an embodiment of the present invention provides a service collaboration method and a first electronic device, which are used to implement multi-service collaboration for distributed services.
[0005] A first aspect provides a service collaboration method, the method being applied to a first electronic device, the method comprising:
[0006] Acquire, according to a first operation input by a user for a first distributed service, at least one associated service of the first distributed service;
[0007] Performing device decision on the first distributed service and the at least one associated service, and generating a device decision result;
[0008] The coordinated operation of the first distributed service and the at least one associated service are executed according to the device decision result.
[0009] In a possible implementation manner, the acquiring at least one associated service of the first distributed service includes:
[0010] At least one associated service associated with the first distributed service is queried according to the set service association relationship.
[0011] In a possible implementation manner, before executing the coordinated operation of the first distributed service according to the device decision result and executing the at least one associated service, the method further includes:
[0012] Determining, according to the set service dependency, an execution order of the first distributed service and the at least one associated service;
[0013] The performing the coordinated operation of the first distributed service and the performing of the at least one associated service according to the device decision result includes:
[0014] According to the device decision result, the coordinated operation of the first distributed service and the at least one associated service are executed in the execution order.
[0015] In a possible implementation manner, the device decision result includes a device decision result of the first distributed service and a device decision result of the associated service;
[0016] The performing device decision on the first distributed service and the at least one associated service to generate a device decision result includes:
[0017] Performing a device decision on the first distributed service, and generating a device decision result for the first distributed service;
[0018] Perform equipment decision on the associated business and generate equipment decision results for the associated business.
[0019] In a possible implementation manner, performing device decision on the first distributed service and generating a device decision result of the first distributed service includes:
[0020] Determining, according to the first operation, a first target device corresponding to the first distributed service;
[0021] The device information of the first target device is determined as a device decision result of the first distributed service.
[0022] In a possible implementation manner, performing device decision on the associated service and generating a device decision result for the associated service includes:
[0023] Determining a second target device corresponding to the associated service according to the acquired decision data;
[0024] The device information of the second target device is determined as the device decision result of the associated service.
[0025] In a possible implementation manner, performing device decision on the associated service and generating a device decision result for the associated service includes:
[0026] Determine, according to the acquired decision data, a second target device corresponding to the associated service, and select a target service from a plurality of candidate services corresponding to the associated service of the second target device;
[0027] The device information of the second target device and the service information of the target service are determined as the device decision result of the associated service.
[0028] In a possible implementation manner, the decision data includes historical operation data and / or decision factors.
[0029] In a possible implementation manner, performing device decision on the associated service and generating a device decision result for the associated service includes:
[0030] Determining, according to a second operation input by the user, a second target device corresponding to the associated service;
[0031] The device information of the second target device is determined as the device decision result of the associated service.
[0032] In a possible implementation manner, performing device decision on the associated service and generating a device decision result for the associated service includes:
[0033] Determine, according to a second operation input by the user, a second target device corresponding to the associated service, and select a target service from a plurality of candidate services corresponding to the associated service of the second target device;
[0034] The device information of the second target device and the service information of the target service are determined as the device decision result of the associated service.
[0035] In a possible implementation manner, the second target device includes a second electronic device or the first electronic device.
[0036] A second aspect provides a first electronic device, comprising: a system control module, a decision engine module, a distributed collaboration framework module and at least one distributed service module;
[0037] The system control module is used to receive a first operation input by a user for a first distributed service;
[0038] The decision engine module is used to obtain at least one associated service of the first distributed service according to a first operation input by a user for the first distributed service; perform device decision on the first distributed service and the at least one associated service to generate a device decision result; and control the distributed collaborative framework module according to the device decision result;
[0039] The distributed collaboration framework module is used to call at least one of the distributed service modules under the control of the decision engine module;
[0040] The distributed service module is used to execute the collaborative operation of the first distributed service, or to execute the associated service.
[0041] In a possible implementation, the decision engine module is further used to determine the execution order of the first distributed service and the at least one associated service according to the set service dependency relationship;
[0042] The decision engine module is specifically used to send the device decision result of the distributed service with the highest priority in the execution order to the distributed service module corresponding to the distributed service with the highest priority according to the execution order, so that the distributed service module corresponding to the distributed service with the highest priority executes the distributed service with the highest priority and returns the execution result of the distributed service with the highest priority, wherein the distributed service with the highest priority includes the first distributed service or the associated service; based on the device decision results of the remaining distributed services, the distributed collaborative framework modules are controlled in sequence according to the execution order, wherein the remaining distributed services include distributed services other than the distributed service with the highest priority in the first distributed service and at least one associated service.
[0043] The third aspect provides a first electronic device, comprising: a display screen; one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, which, when executed by the first electronic device, enable the first electronic device to execute the business collaboration method in the first aspect or any possible implementation of the first aspect.
[0044] The fourth aspect provides a computer-readable storage medium, which includes a stored program, wherein when the program is running, the first electronic device where the computer-readable storage medium is located is controlled to execute the business collaboration method in the first aspect or any possible implementation of the first aspect.
[0045] In the technical solution provided by the embodiment of the present invention, the first electronic device makes a device decision for the first distributed service and its related services together, and executes collaborative operations of the first distributed service and executes related services based on the device decision results, thereby realizing multi-service collaboration of distributed services.
Brief Description of the Drawings
[0046] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0047] Figure 1 is a schematic diagram of a multi-device scenario in a related art;
[0048] Figure 2 is a schematic diagram of a multi-device scenario in another related technology;
[0049] Figure 3 It is a schematic diagram of a multi-device business collaboration system in the related art;
[0050] Figure 4 is a schematic diagram of the hardware structure of an electronic device in some embodiments;
[0051] Figure 5 is a software structure block diagram of a first electronic device in some embodiments;
[0052] Figure 6 is a flowchart of a business collaboration method in some embodiments;
[0053] Figure 7 is a schematic diagram of the structure of a first electronic device in some embodiments;
[0054] Figure 8 is a comparison diagram of the related technology and the business collaboration method in the embodiment of the present invention;
[0055] Fig. 9 is a schematic diagram of a business collaboration method in some embodiments. [Specific implementation method]
[0056] In order to better understand the technical solution of the present invention, the embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0057] It should be clear that the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0058] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0059] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0060] In a multi-device scenario, the combination of input and output devices can be quite complex. For example, in daily office work, users may choose to connect multiple displays to a host computer at the same time in order to improve work efficiency. Figure 1 is a schematic diagram of a multi-device scenario in a related technology, such as Figure 1 As shown, the user connects display screen A, display screen B and display screen C to a host. At this time, the user can display output through three optional display screens. In the above multi-device scenario, there is only one mouse to match the three display screens. After the three display screens are connected to a host, the issues that need attention include which display screen the mouse appears on first, how the mouse should be displayed if the display screen rotates, and how to choose the direction of mouse movement.
[0061] like Figure 1 As shown, when assembling a multi-display office environment, the following situation occurs: after the user assembles several display screens, he turns on the computer and finds that the mouse first appears on the display screen C on the right. When the user moves the mouse to the right out of the display screen C, the mouse actually moves to the display screen B on the left. At this time, the user can only remove the connected display screens and reassemble the multiple display screens after adjusting the positions of the multiple display screens. There are two device selection points in the above scenario: the initial display screen selection corresponding to the mouse and the subsequent display screen selection after the mouse moves out of the current display screen. If the judgment of the display screen orientation is added for these two device selection points, the leftmost display screen is automatically selected as the starting display screen, and the display screen closest to the mouse position is automatically selected when the mouse is moved out of the display screen, so that the situation of reassembling multiple display screens will no longer occur, and the combination of multiple display screens can also appear in a variety of different combinations arranged up, down, left, and right.
[0062] from Figure 1 It can be seen that in the continuous interaction scenario of multiple devices, the decision-making and response of electronic devices are very important.
[0063] Apart from Figure 1 In addition to the scenarios shown, there are some typical scenarios in actual applications that users often encounter and that require device decision-making and response. Figure 2 is a schematic diagram of a multi-device scenario in another related technology, such as Figure 2 As shown, in the driving scenario, the car computer, mobile phone, tablet computer and headset form a multi-device connection scenario, and the car computer, mobile phone, tablet computer and headset form a whole to provide services to users. For example, the user sitting in the co-pilot seat wears headphones and uses a tablet computer, and the mobile phone is navigating for the user sitting in the main driving seat. At this time, the tablet computer needs to decide how to select a sound device to make a sound.
[0064] from Figure 1and Figure 2 It can be seen from the scenario shown that the multi-device scenario requires decision-making and response of the electronic device, and the result of the selection decision plays a decisive role in the user's final experience.
[0065] Figure 3 is a schematic diagram of a multi-device business collaboration system in the related art, such as Figure 3 As shown, Taking the 3.0 super desktop as an example, the multi-device business collaboration system may include a super desktop module, a collaboration capability center, a distributed window management service (DWMS) module, an audio module and a distributed device virtualization (DMSDP) module, wherein the super desktop module includes a collaboration selection module and an application migration module, the collaboration capability center includes a task migration management module, a media migration management module and a hardware migration management module, the DWMS module includes a virtual display (Display) management module and a screen projection transmission module, the audio module includes a media audio migration module and an audio diversion module, the DMSDP module includes a camera collaboration module, a global satellite positioning system (GPS) collaboration module and a microphone (Microphone, Mic) collaboration module, etc.
[0066] like Figure 3 As shown in the figure, the super desktop module is used as the trigger entry of the service, and the collaborative capability center is used as the general manager to call the DWMS module for interface migration, the audio module for audio migration, and the DMSDP module for hardware migration. At the same time, the collaborative dependency relationship of the above migration services needs to be guaranteed. For example, audio migration can be completed first and then interface migration to prevent the sound from remaining on the source device for a short period of time after interface migration.
[0067] Figure 3 The multi-device service collaboration solution shown has the following technical problems:
[0068] The super desktop service is a service that combines multiple collaborative services to achieve the ultimate user experience. When multiple services collaborate, the dependency relationships between services are more complicated to handle, and a system-level collaborative module is required. Currently, this is managed through the collaborative capability center module, but currently only the super desktop service uses this module, and the collaborative mode is very customized and the collaborative capabilities are very limited.
[0069] After selecting collaborative services in the super desktop scenario, some related services have the problem of not knowing how to select devices. If a notification comes in the process of using the super desktop, which device to present the notification on and how to present the notification are issues that need to be solved when implementing collaborative services. Since the service itself lacks user focus judgment and current usage status judgment during service delivery, it can only be implemented as a simple fixed rule.
[0070] It is difficult to ensure a continuous experience when using the super desktop service. For example, when using the super desktop, you need to use voice to play music on the super desktop. The voice operation of the music is completed by calling a third party. The third-party calling system defaults to playing through the local device and cannot automatically transfer to select the source device for playback.
[0071] To sum up, in the related technologies, in a multi-device scenario, after making a device decision for a distributed service, it is impossible to intelligently implement business collaboration of the related services of the distributed service, and thus it is impossible to implement multi-service collaboration of the distributed service; at the same time, in the related technologies, multi-service collaboration solutions are all implemented by the business directly interacting with the distributed capabilities, and each business evolves independently, which makes the workload of business collaboration development large and the development complexity high.
[0072] To solve the above technical problems, an embodiment of the present invention provides a business collaboration method and a first electronic device. The first electronic device obtains at least one associated business of a first distributed business according to a first operation input by a user, performs device decision on the first distributed business and at least one associated business to generate a device decision result, and executes collaborative operations of the first distributed business and at least one associated business according to the device decision result. In an embodiment of the present invention, the first electronic device performs device decision on the first distributed business and its associated businesses together, and executes collaborative operations of the first distributed business and associated businesses according to the device decision result, thereby realizing multi-business collaboration of distributed businesses.
[0073] In the embodiment of the present invention, after making a device decision for a distributed service, the service collaboration of the associated services of the distributed service can be intelligently implemented, thereby forming an overall intelligent collaborative experience.
[0074] In an embodiment of the present invention, a first electronic device makes a device decision for a first distributed service and its associated services, and performs collaborative operations of the first distributed service and executes associated services based on the device decision results. The embodiment of the present invention forms a business-oriented collaborative development framework, which avoids the independent evolution of each business, thereby reducing the workload of collaborative business development and reducing development complexity.
[0075] To achieve multi-service collaboration for distributed services, an embodiment of the present invention provides a communication system, which may include a first electronic device and at least one second electronic device, and the first electronic device and the at least one second electronic device may form a multi-device scenario.
[0076] A communication connection can be established between the first electronic device and the second electronic device. In some embodiments, the first electronic device 10 and the second electronic device 20 can establish a wireless connection through a short-range communication technology, for example, the short-range communication technology may include wireless local area networks (WLAN), Bluetooth (BT) or near field communication (NFC).
[0077] In some embodiments, the first electronic device includes but is not limited to a device equipped with Or other operating system devices. The first electronic device includes but is not limited to mobile phones, car computers, tablet computers, laptops, desktop computers, large-screen devices, etc.
[0078] In some embodiments, the second electronic device includes but is not limited to a device equipped with Or devices with other operating systems. The second electronic device includes but is not limited to mobile phones, car computers, tablet computers, laptops, desktop computers, large-screen devices, etc.
[0079] A super desktop can be established between the first electronic device and the second electronic device, wherein the first electronic device is a local device and the second electronic device is a source device. The first electronic device can access applications on the desktop of the second electronic device through the super desktop, and the super desktop function can be implemented through distributed technology.
[0080] For example, Figure 4 As shown, a schematic diagram of the hardware structure of an electronic device is provided, and the first electronic device and the second electronic device can both adopt Figure 4 The hardware structure of the electronic equipment in the Figure 4As shown, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195. It can be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present invention, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.
[0081] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). Among them, different processing units may be independent devices or integrated into one or more processors. Among them, the controller may generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions. A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a high-speed cache memory. The memory may store instructions or data that the processor 110 has just used or circulated. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. Repeated access is avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
[0082] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc. It can be understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation of the electronic device 100. In other embodiments of the present invention, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0083] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
[0084] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0085] The wireless communication function of the electronic device 100 can be implemented by antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modulation and demodulation processor and baseband processor. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antenna. For example, antenna 1 can be reused as a diversity antenna of a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0086] The mobile communication module 150 can provide a solution for wireless communication including 2G / 3G / 4G / 5G / 6G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter, amplify and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110. The modulation and demodulation processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays an image or video through the display screen 194. In some embodiments, the modem processor can be an independent device. In other embodiments, the modem processor can be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0087] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication technology (NFC), infrared technology (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0088] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), 5G and subsequent evolution standards, BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0089] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute instructions to generate or change display information. The electronic device 100 can implement a shooting function through an ISP, one or more cameras 193, a video codec, a GPU, one or more display screens 194, and an application processor.
[0090] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.
[0091] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121, and / or instructions stored in a memory provided in the processor.
[0092] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0093] The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc. Among them, the touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.
[0094] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
[0095] Figure 5 is a software structure diagram of the first electronic device in some embodiments, such as Figure 5 As shown, the first electronic device may include a system control module, a distributed collaboration framework module, a decision engine module, multiple distributed business modules and multiple capability support modules.
[0096] In one possible implementation, multiple distributed business modules include but are not limited to input method framework, meta-capabilities and audio framework, etc., and multiple capability support modules include but are not limited to distributed hardware management, integrated sensing system, distributed device management, setting database, distributed device capability description, distributed audio, distributed camera, distributed screen, distributed database, distributed soft bus, subsystem capability description and device authentication authorization, etc.
[0097] Each of the above modules in the first electronic device may include at least one sub-module.
[0098] In one possible implementation, the system control module may include trigger decisions; the distributed collaborative framework module may include service recommendations, distributed business shelves, equipment selection and business conflict handling; the decision engine module may include collaborative decisions, distributed decisions, decision factors and decision settings.
[0099] In one possible implementation, the input method framework may include access decision devices, access distributed service management, and input method cross-end collaboration; meta-capabilities may include access distributed service management, access decision devices, and application interface cross-device migration; the audio framework may include access distributed service management, access device decision, and audio cross-end projection.
[0100] In one possible implementation, distributed hardware management may include hardware migration management and virtual node enabling; the integrated sensing system may include orientation perception and distance perception; distributed device management may include device list acquisition and device online and offline monitoring; setting the database may include setting storage and cross-end reading; distributed device capability description may include system capability cross-end synchronization, system capability cross-end monitoring and system information collection; distributed audio may include hardware virtualization and cross-end data synchronization; distributed cameras may include cross-end data synchronization and hardware virtualization; distributed screens may include cross-end data synchronization and hardware virtualization; distributed databases may include data persistence and cross-end data synchronization; distributed soft buses may include device discovery, device networking and device communication; subsystem capability description may include subsystem capability reading and subsystem capability Hill; device authentication authorization may include cross-account authentication.
[0101] like Figure 5 As shown, distributed business capabilities are scattered in various distributed business modules that need to support distributed business. The distributed business modules are uniformly connected to the distributed business shelves, and the distributed business shelves provide collaborative control capabilities; the decision engine module can perform multi-business collaboration based on the set business association relationships and business dependencies. The decision engine module has built-in business association services and business dependencies based on scenarios, and the decision engine module can support business customization.
[0102] like Figure 5 As shown, each module included in the first electronic device and each submodule of each module included in the first electronic device are not limited to Figure 5 In practical applications, the first electronic device may further include other modules, and each module in the first electronic device may further include other sub-modules, which are not listed here one by one.
[0103] The following is a specific example to illustrate the workflow of the business collaboration method. Figure 6 is a flowchart of a business collaboration method in some embodiments, such as Figure 6 As shown, the method includes:
[0104] Step 102: The first electronic device obtains at least one associated service of the first distributed service according to a first operation input by a user for the first distributed service.
[0105] If the user wants to trigger the first distributed service, the user can input the first operation on the first electronic device, and the first operation can be used by the user to trigger the first distributed service. In a possible implementation, the first electronic device and the second electronic device establish a super desktop, and the first electronic device can display the icon of the application on the desktop of the second electronic device through the super desktop. At this time, the first operation is the operation of the user accessing the application, for example, the first operation is the operation of the user clicking on the icon of a certain application; the first electronic device responds to the first operation and displays the page of the application, so the first distributed service includes the application page.
[0106] After the user inputs a first operation to trigger the first distributed service, the electronic device may acquire at least one associated service of the first distributed service, wherein the associated service is a distributed service associated with the first distributed service.
[0107] In the embodiment of the present invention, the first electronic device may set a service association relationship, and the service association relationship may include a correspondence relationship between the first distributed service and the associated service.
[0108] In a possible implementation, the first electronic device queries at least one associated service associated with the first distributed service according to the set service association relationship. For example, if the first distributed service includes an application page, the at least one associated service associated with the application page may include an input method and a camera.
[0109] Step 104: The first electronic device performs device decision on the first distributed service and at least one associated service, and generates a device decision result.
[0110] In the embodiment of the present invention, the device decision result may include the device decision result of the first distributed service and the device decision result of the associated service. Then step 104 may specifically include:
[0111] Step 1042: The first electronic device makes a device decision for the first distributed service and generates a device decision result for the first distributed service.
[0112] In a possible implementation manner, the first electronic device determines a first target device corresponding to the first distributed service according to the first operation; and determines the device information of the first target device as the device decision result of the first distributed service.
[0113] The first target device may be a second electronic device, for example, the first electronic device is a large-screen device, and the second electronic device is a mobile phone. The device information of the first target device is used to identify the first target device, for example, the device information may be a device identification.
[0114] Step 1044: The first electronic device makes a device decision for the associated service and generates a device decision result for the associated service.
[0115] In the embodiment of the present invention, the first electronic device can make a device decision for the associated service in two ways. The first possible implementation is that the first electronic device automatically makes a device decision for the associated service; the second possible implementation is that the first electronic device makes a device decision for the associated service according to the user's selection, that is, the user makes a device decision for the associated service.
[0116] For the case where the first electronic device automatically makes a device decision for the associated service:
[0117] In a possible implementation manner, the first electronic device determines a second target device corresponding to the associated service according to the acquired decision data; and determines the device information of the second target device as the device decision result of the associated service.
[0118] In the embodiment of the present invention, the device information of the second target device is used to identify the second target device. In a possible implementation, the device information may be a device identification. For example, the device identification may be an International Mobile Equipment Identity (IMEI).
[0119] In an embodiment of the present invention, the decision data includes historical operation data and / or decision factors. Optionally, the historical operation data includes but is not limited to the selection results of the device / service list, for example, a recently used device list, a most frequently used device list, a recently used service list, or a most frequently used service list. Optionally, the decision factors include but are not limited to the screen display state, for example, at least one of the screen being on or off, the screen rotation direction, and the screen setting position. In actual applications, the historical operation data may also use other operation data, and the first electronic device may be set according to actual needs, which are not listed here one by one; the decision factors may also use other data, and the first electronic device may be set according to actual needs, which are not listed here one by one.
[0120] For example, the first electronic device can determine the second target device corresponding to the associated service based on the most recently used device. In a communication system formed by the first electronic device and at least one second electronic device, if the first electronic device in the most recently used device list has a higher priority position than other second electronic devices, the second target device determined by the first electronic device is the first electronic device with a higher priority position; if a second electronic device in the most recently used device list has a higher priority position than other electronic devices, the second target device determined by the first electronic device is the second electronic device with a higher priority position.
[0121] In another possible implementation, the first electronic device determines the second target device corresponding to the associated business based on the acquired decision data, and determines the target business from multiple alternative businesses corresponding to the associated business of the second target device; and determines the device information of the second target device and the business information of the target business as the device decision result of the associated business.
[0122] In this implementation, there are multiple candidate services on the second target device. For example, when the associated service is an input method, the multiple candidate services corresponding to the associated service of the second target device include multiple candidate input methods. Therefore, there are multiple input methods on the second target device. At this time, after the first electronic device determines the second target device corresponding to the associated service, it also needs to determine a target service from the multiple candidate services, for example, determine a target input method from the multiple candidate input methods.
[0123] In the embodiment of the present invention, the service information of the target service is used to identify the target service, and the first electronic device can know which service needs to be used through the service information of the target service.
[0124] In an embodiment of the present invention, the decision data includes historical operation data and / or decision factors. Optionally, the historical operation data includes but is not limited to the selection results of the device / service list, for example, a recently used device list, a most frequently used device list, a recently used service list, or a most frequently used service list. Optionally, the decision factors include but are not limited to the screen display state, for example, at least one of the screen being on or off, the screen rotation direction, and the screen setting position. In actual applications, the historical operation data may also use other operation data, and the first electronic device may be set according to actual needs, which are not listed here one by one; the decision factors may also use other data, and the first electronic device may be set according to actual needs, which are not listed here one by one.
[0125] For example, the first electronic device can determine the second target device corresponding to the associated service based on the most recently used device, and select the target service from multiple candidate services based on the most frequently used service. In a communication system formed by a first electronic device and at least one second electronic device, for example, if a second electronic device in the most recently used device list has a higher priority position than other electronic devices, the second target device determined by the first electronic device is the second electronic device with a higher priority position. If a service in the most recently frequently used service list has a higher priority position than other services, the target service determined by the first electronic device is the service with a higher priority position.
[0126] Regarding the case where the first electronic device makes a device decision on the associated service according to the user's selection:
[0127] In a possible implementation, the first electronic device determines a second target device corresponding to the associated service according to a second operation input by the user; and determines the device information of the second target device as a device decision result of the associated service.
[0128] In an embodiment of the present invention, the second operation input by the user can be used to select a second target device from multiple target devices corresponding to the associated service, and the first electronic device can select the second target device from the multiple target devices corresponding to the associated service according to the second operation input by the user. For example, the first electronic device displays a pop-up box, and the device names of multiple target devices are displayed in the pop-up box. The user selects the device name of the second target device from the pop-up box to input the second operation to the first electronic device.
[0129] In another possible implementation, the first electronic device determines a second target device corresponding to the associated service based on a second operation input by the user, and selects a target service from a plurality of candidate services corresponding to the associated services of the second target device; and determines the device information of the second target device and the service of the target service as a device decision result of the associated service.
[0130] In an embodiment of the present invention, the second operation input by the user can be used to select a second target device from multiple target devices corresponding to the associated business and select a target business from multiple alternative businesses corresponding to the associated business of the second target device. Then, the first electronic device can select the second target device from multiple target devices corresponding to the associated business and select the target business from multiple alternative businesses corresponding to the associated business of the second target device according to the second operation input by the user. For example, the first electronic device displays a pop-up box, which displays the device names of multiple target devices and multiple alternative businesses corresponding to the associated business of each target device. The user selects the target business of the second target device from the pop-up box to input the second operation to the first electronic device. Taking the associated business as an input method as an example, the multiple alternative businesses corresponding to the associated business of the second target device include multiple alternative input methods. Therefore, there are multiple alternative input methods on the second target device. At this time, the user selects a target input method on the first electronic device, indicating that the user selects the second target device and the target input method of the second electronic device on the first electronic device.
[0131] In the embodiment of the present invention, the second target device may include a second electronic device or a first electronic device. If the second target device includes the first electronic device, the first electronic device may execute the associated service on the local end.
[0132] In the embodiment of the present invention, the second target device includes a second electronic device, for example, the first electronic device is a large-screen device, and the second electronic device is a mobile phone. The first electronic device can perform the collaborative operation of the associated service through the second electronic device.
[0133] In the embodiment of the present invention, the first distributed service may be associated with one or more associated services. If the first distributed service is associated with multiple associated services, the first electronic device determines a second target device corresponding to each associated service, and the second target devices corresponding to different associated services may be the same or different.
[0134] Step 106: The first electronic device executes a coordinated operation of the first distributed service and executes at least one associated service according to the device decision result.
[0135] In the embodiment of the present invention, the first electronic device performs the collaborative operation of the first distributed service according to the device decision result of the first distributed service.
[0136] The decision result of the first distributed service includes the device information of the first target device, and the first electronic device performs the collaborative operation of the first distributed service with the first target device according to the device information of the first target device.
[0137] In an embodiment of the present invention, the first electronic device performs the associated service according to the device decision result of the associated service. Specifically, the first electronic device performs the associated service locally according to the device decision result of the associated service; or the first electronic device performs the collaborative operation of the associated service according to the device decision result of the associated service.
[0138] If the device decision result of the associated service includes the device information of the second target device and the first target device is the first electronic device, the first electronic device executes the associated service locally according to the device information of the second target device.
[0139] If the device decision result of the associated service includes the device information of the second target device and the first target device is the second electronic device, the first electronic device performs a collaborative operation of the associated service with the second target device according to the device information of the second target device.
[0140] If the device decision result of the associated service includes the device information of the second target device and the service of the target service, and the second target device is the first electronic device, the first electronic device executes the associated service to access the target service of the local end according to the device information of the second target device and the service information of the target service.
[0141] If the device decision result of the associated service includes the device information of the second target device and the business information of the target service, and the second target device is a second electronic device, the first electronic device performs a collaborative operation of the associated service with the second target device based on the device information of the second target device and the business information of the target service to access the target service of the second target device.
[0142] In a possible implementation, the first electronic device may set a service dependency, and the service dependency may include dependencies between multiple distributed services. For example, the first distributed service is distributed service A, and the two associated services may include distributed service B and distributed service C. The service dependency may include distributed service C depending on distributed service B and distributed service B depending on distributed service A, wherein distributed service C depending on distributed service B may indicate that the first electronic device first executes distributed service B and then executes distributed service C; distributed service B depending on distributed service A may indicate that the first electronic device first executes distributed service A and then executes distributed service B. Therefore, the first electronic device may execute distributed service A, distributed service B, and distributed service C in sequence.
[0143] In an embodiment of the present invention, before step 106, the method further includes: the first electronic device determines the execution order of the first distributed service and at least one associated service according to the set service dependency relationship, and preferentially executes the distributed service with a high priority in the execution order. The higher the priority of the distributed service, the higher its execution order. For example, the first distributed service is distributed service A, and the two associated services may include distributed service B and distributed service C. Then the execution order determined according to the set service dependency relationship includes the execution order of distributed service A, distributed service B, and distributed service C in sequence.
[0144] Then step 106 may specifically include: the first electronic device executes the coordinated operation of the first distributed service and executes at least one associated service in the execution order according to the device decision result.
[0145] For example, the execution order includes executing distributed service A, distributed service B and distributed service C in sequence, then the first electronic device first executes the collaborative operation of distributed service A, then executes the collaborative operation of distributed service B, and finally executes the collaborative operation of distributed service C.
[0146] In an embodiment of the present invention, the first electronic device makes a device decision for the first distributed service and its associated services together, and executes collaborative operations of the first distributed service and associated services according to the device decision results, thereby realizing multi-service collaboration of distributed services.
[0147] Figure 7 is a schematic diagram of the structure of the first electronic device in some embodiments, such as Figure 7 As shown, the first electronic device may include a system control module, a decision engine module, a distributed collaboration framework module and at least one distributed service module.
[0148] like Figure 7As shown, the system control module includes trigger decision; the decision engine module includes collaborative decision, and the collaborative decision includes device decision and collaborative control; the distributed collaborative framework module includes distributed business shelves; and the distributed business module includes distributed business registration and distributed collaboration. Figure 7 In the description, three distributed business modules are taken as an example, where the three distributed business modules include distributed business module A, distributed business module B and distributed business module C.
[0149] In an embodiment of the present invention, the system control module is used to trigger the decision engine module to execute a device decision on the first distributed service according to a first operation input by a user for the first distributed service; the decision engine module is used to obtain at least one associated service of the first distributed service under the triggering of the system control module; to make a device decision on the first distributed service and the at least one associated service to generate a device decision result; and to control the distributed collaborative framework module according to the device decision result; the distributed collaborative framework module is used to call at least one of the distributed service modules under the control of the decision engine module; the distributed service module is used to execute collaborative operations of the first distributed service, or to execute the associated service according to the device decision result.
[0150] In the embodiment of the present invention, the decision engine module is specifically used to query at least one associated service associated with the first distributed service according to the set service association relationship.
[0151] In an embodiment of the present invention, the decision engine module is also used to determine the execution order of the first distributed business and the at least one associated business according to the set business dependency; the decision engine module is specifically used to send the device decision result of the distributed business with the highest priority in the execution order to the distributed business module corresponding to the distributed business with the highest priority according to the execution order, so that the distributed business module corresponding to the distributed business with the highest priority executes the distributed business with the highest priority and returns the execution result of the distributed business with the highest priority, wherein the distributed business with the highest priority includes the first distributed business or the associated business; based on the device decision results of the remaining distributed businesses, the distributed collaborative framework modules are controlled in sequence according to the execution order, wherein the remaining distributed businesses include distributed businesses other than the distributed business with the highest priority in the first distributed business and at least one associated business.
[0152] In an embodiment of the present invention, the device decision result includes the device decision result of the first distributed service and the device decision result of the associated service. The decision engine module is specifically used to make a device decision for the first distributed service to generate a device decision result for the first distributed service; and to make a device decision for the associated service to generate a device decision result for the associated service.
[0153] In a possible implementation, the decision engine module is specifically configured to determine, according to the first operation, a first target device corresponding to the first distributed service; and determine device information of the first target device as a device decision result of the first distributed service.
[0154] In another possible implementation, the decision engine module is specifically configured to determine, according to the first operation, a first target device corresponding to the first distributed service; and determine the device information of the first target device as a device decision result of the first distributed service.
[0155] In another possible implementation, the decision engine module is specifically configured to determine, based on the acquired decision data, a second target device corresponding to the associated service; and determine the device information of the second target device as a device decision result of the associated service.
[0156] In another possible implementation, the decision engine module is specifically used to determine the second target device corresponding to the associated business based on the acquired decision data, and select the target business from multiple alternative businesses corresponding to the associated business of the second target device; and determine the device information of the second target device and the business information of the target business as the device decision result of the associated business.
[0157] In another possible implementation, the decision engine module is specifically configured to determine a second target device corresponding to the associated service according to a second operation input by the user; and determine device information of the second target device as a device decision result of the associated service.
[0158] In another possible implementation, the decision engine module is specifically used to determine a second target device corresponding to the associated business based on a second operation input by the user, and select a target business from multiple alternative businesses corresponding to the associated business of the second target device; and determine the device information of the second target device and the business information of the target business as the device decision result of the associated business.
[0159] Figure 7 The modules of the first electronic device can be used to execute the service collaboration method. Figure 7 Describe the specific process of business collaboration in detail. Figure 7In the description, a first distributed business includes distributed business A and at least one associated business includes distributed business B and distributed business C. The distributed business module corresponding to distributed business A is distributed business module A, the distributed business module corresponding to distributed business B is distributed business module B, and the distributed business module corresponding to distributed business C is distributed business module C. The execution order includes executing distributed business A, distributed business B and distributed business C in sequence.
[0160] When the distributed service module is started, it registers the service with the distributed service shelf in the distributed collaboration framework module. Figure 7 As shown, distributed business module A registers business with the distributed business shelf when it is started, distributed business module B registers business with the distributed business shelf when it is started, and distributed business module C registers business with the distributed business shelf when it is started, see Figure 7 Step 0 shown.
[0161] The trigger decision in the system control module triggers the device decision in the decision engine module to execute the device decision for the first distributed service according to the first operation input by the user for the first distributed service, see Figure 7 Step 1 shown. Specifically, the trigger decision may trigger the device decision by way of a function call, so as to trigger the device decision to execute the device decision for the first distributed service.
[0162] The device decision, under the triggering of the triggering decision, obtains at least one associated service of the first distributed service; performs device decision on the first distributed service and the at least one associated service, and generates a device decision result. Furthermore, the device decision is also used to determine the execution order of the first distributed service and the at least one associated service according to the set service dependency.
[0163] The device decision in the decision engine module can send the device decision result of the first distributed service to the distributed service module corresponding to the first distributed service, see Figure 7 Step 2 shown. In a possible implementation, if the decision engine module does not set a service dependency, the device decision may send the device decision result of the first distributed service to the distributed service module corresponding to the first distributed service. Figure 7 As shown, the device decision sends the device decision result of distributed service A to distributed service module A.
[0164] In a possible implementation, the decision engine module has built-in service dependencies, and the device decision sends the device decision result of the distributed service with the highest priority in the execution order to the distributed service module corresponding to the distributed service. Figure 7As shown, the distributed service with the highest priority in the execution order is distributed service A, and the distributed service module corresponding to distributed service A is distributed service module A, then the device decision is used to send the device decision result of the first distributed service A to the distributed service module A, so that the distributed service module A can perform the coordinated operation of the first distributed service A according to the device decision result of distributed service A. For another example, or, the distributed service with the highest priority in the execution order is distributed service B, and the distributed service module corresponding to the distributed service B is distributed service module B, then the device decision can also send the device decision result of distributed service B to the distributed service module B, so that the distributed service module B can perform the coordinated operation of distributed service B, which is not specifically drawn.
[0165] Furthermore, the distributed service module corresponding to the first distributed service executes the coordinated operation of the first distributed service according to the device decision result of the first distributed service. Figure 7 As shown, the distributed service module A executes the collaborative operation of the distributed service A according to the device decision result of the distributed service A.
[0166] Then, after executing the coordinated operation of the first distributed service, the distributed service module corresponding to the first distributed service returns the execution result of the first distributed service to the device decision. Figure 7 As shown, after executing the coordinated operation of distributed service A, distributed service module A returns the execution result of distributed service A to the device decision. The device decision can know that the execution of distributed service A is completed according to the returned execution result of distributed service A, and can continue to execute other distributed services.
[0167] Device decision sends the device decision results of distributed service B to collaborative control in the order of execution, see Figure 7 Step 3 shown. Collaborative control calls the business collaborative interface of distributed business B to control the distributed business shelves in the distributed collaborative framework module according to the device decision result of distributed business B, see Figure 7 Step 4 shown; the distributed business shelf calls the distributed business module B under the control of the collaborative control, so that the distributed business module B executes the distributed business B, for example, the distributed business module B executes the collaborative operation of the distributed business B, or the distributed business module B executes the distributed business B on the local end, see Figure 7 Step 5 as shown.
[0168] Furthermore, after executing the collaborative operation of distributed service B, distributed service module B returns the execution result of distributed service B to device decision making. Based on the returned execution result of distributed service B, device decision making can know that the execution of distributed service B is complete and can continue to execute the remaining distributed services. In one possible implementation, distributed service module B can directly send the execution result of distributed service B to device decision making; in another possible implementation, distributed service module B can send the execution result of distributed service B to the distributed service shelf in the distributed collaborative framework module, and the distributed service shelf returns the execution result of distributed service B to device decision making.
[0169] The equipment decision results of distributed service C are sent to the collaborative control according to the execution order, see Figure 7 Step 3 shown. Collaborative control calls the business collaborative interface of distributed business C to control the distributed business shelves in the distributed collaborative framework module according to the device decision result of distributed business C, see Figure 7 Step 4 shown; the distributed business shelf calls the distributed business module C under the control of the collaborative control, so that the distributed business module C executes the distributed business C, for example, the distributed business module C executes the collaborative operation of the distributed business C, or the distributed business module C executes the distributed business C on the local end, see Figure 7 Step 6 as shown.
[0170] Furthermore, after executing the collaborative operation of the distributed service C, the distributed service module C returns the execution result of the distributed service C to the device decision. The device decision can learn that the execution of the distributed service C is completed based on the returned execution result of the distributed service C. In one possible implementation, the distributed service module C can directly send the execution result of the distributed service C to the device decision; in another possible implementation, the distributed service module C can send the execution result of the distributed service C to the distributed service shelf in the distributed collaborative framework module, and the distributed service shelf returns the execution result of the distributed service C to the device decision.
[0171] In the embodiment of the present invention, the execution order of distributed services is determined according to the service dependency relationship, and the execution of subsequent distributed services is triggered by the returned execution results of the distributed services, thereby realizing the chain triggering of the execution of distributed services according to the execution order.
[0172] In an embodiment of the present invention, in a possible implementation, if the decision engine module does not set a business dependency, the execution order between the first distributed business and at least one associated business is not limited. In this case, the collaborative operation of the first distributed business can be executed first, and after the collaborative operation of the first distributed business is executed, the remaining associated businesses are continued to be executed according to the returned execution result of the first distributed business. Since the execution order of the remaining associated businesses is not limited, after executing one associated business, another associated business is continued to be executed according to the returned execution result of the associated business, and so on, until all associated businesses are executed.
[0173] use Figure 7 The first electronic device can realize Figure 6 The business collaboration method shown in the figure, so the specific description of the business collaboration method can be found in Figure 6 The description in the illustrated embodiment will not be repeated here.
[0174] Figure 8 is a comparison diagram of the related technology and the business collaboration method in the embodiment of the present invention, such as Figure 8 As shown, in the related technology, only device decisions can be made for each distributed service individually, and then collaborative operations can be performed on each distributed service individually. For example, in the related technology, device decisions are made for distributed service A individually and collaborative operations on distributed service A are performed through distributed service module A, device decisions are made for distributed service B individually and collaborative operations on distributed service B are performed through distributed service module B, and device decisions are made for distributed service C individually and collaborative operations on distributed service C are performed through distributed service module C, thereby failing to achieve multi-service collaboration for distributed services.
[0175] like Figure 8 As shown, in an embodiment of the present invention, the first electronic device makes a device decision for the first distributed service and its associated services together, and performs collaborative operations of the first distributed service and performs associated services according to the device decision results. For example, the first electronic device makes a device decision for distributed service A and its associated distributed services B and C together, and performs collaborative operations of distributed service A according to the device decision result of distributed service A, performs collaborative operations of distributed service B according to the device decision result of the associated distributed service B, and performs collaborative operations of distributed service C according to the device decision result of the associated distributed service C, thereby realizing multi-service collaboration of distributed services.
[0176] In an embodiment of the present invention, the distributed collaboration framework module can provide the capability of multi-business collaboration, and the decision engine module can complete the rules of multi-business collaboration, such as business association relationships and business dependency relationships, so that the distributed collaboration framework module knows how to collaborate multiple distributed businesses.
[0177] The technical solution of the embodiment of the present invention is beneficial to the unified collaborative control of distributed services and the subsequent development of auxiliary distributed features, avoiding the problem that a distributed feature has to interact with distributed services at the same time. The solution of the embodiment of the present invention can support the configuration of distributed services and greatly reduce the workload of distributed feature development.
[0178] The following describes in detail the service collaboration method and the first electronic device provided in the embodiment of the present invention through a specific example. Fig. 9 is a schematic diagram of a business collaboration method in some embodiments, for example, Fig. 9 In the example, the first distributed service is the Huawei video page, the associated service is the input method, the distributed service module A is the meta-capability, the distributed service module B is the input method framework, and the system control is the system control of Huawei video.
[0179] like Fig. 9 As shown, the meta-capability registers the business with the distributed business shelf when it is started, and the input method framework registers the business with the distributed business shelf when it is started. Fig. 9 Step 0 shown. The trigger decision in Huawei Video triggers the device decision in the decision engine module to execute the device decision on the Huawei Video page according to the first operation input by the user on the Huawei Video page, see Fig. 9 Step 1 shown.
[0180] like Fig. 9 As shown, when the trigger decision is triggered, the device decision obtains the associated business input method of the Huawei video page; the device decision is performed on the Huawei video page and the input method, and the device decision result of the Huawei video page and the device decision result of the input method are generated, wherein the device decision result of the Huawei video page includes the device information of the first target device, and the device decision result of the input method includes the device information of the second target device and the business information of the target business; and the device decision also determines the execution order of the Huawei video page and the input method according to the set business dependency.
[0181] In a possible implementation, the device decision can determine the second target device corresponding to the input method according to the decision data, and determine the target input method from the multiple candidate input methods corresponding to the input method of the second target device, and determine the device information of the second target device and the business information of the target input method as the device decision result of the input method, wherein the second target device can be the first electronic device or the second electronic device. In this way, the device decision can automatically determine the optimal target input method according to the decision data. In particular, when the second target device can be the first electronic device, the target input method of this end can be automatically retained, thereby facilitating the user's further operation of the input method.
[0182] In another possible implementation, the device decision determines the second target device corresponding to the input method according to the second operation input by the user, selects the target input method from multiple candidate input methods corresponding to the input method of the second target device, and determines the device information of the second target device and the business information of the target input method as the device decision result of the input method, wherein the second target device can be the first electronic device or the second electronic device. In this way, the device decision determines the target input method of the second electronic device according to the second operation input by the user, thereby enabling the user to select the optimal target input method by himself, and facilitating the user's further operation of the input method.
[0183] like Fig. 9 As shown, the device decision sends the device decision result of the Huawei video page with a high priority in the execution order to the meta-capability, so that the meta-capability can perform the collaborative operation of the Huawei video page with the first target device according to the device decision result of the Huawei video page, see Fig. 9 Step 2 shown. Further, after executing the collaborative operation of the Huawei video page, the meta-capability returns the execution result of the Huawei video page to the device decision.
[0184] like Fig. 9 As shown, the device decision is executed in the order in which the device decision result of the input method with a low priority in the execution order is sent to the collaborative control, see Fig. 9 Step 3 shown. Collaborative control calls the business collaborative interface of the input method framework to control the distributed business shelves in the distributed collaborative framework module according to the device decision result of the input method. Fig. 9 Step 4 shown; the distributed business shelf calls the input method framework under the control of the collaborative control, so that the input method framework and the second target device perform collaborative operations of the input method, see Fig. 9 Step 5 as shown.
[0185] like Fig. 9 As shown, when the first electronic device makes a device decision for the Huawei video page, it also automatically makes a device decision for the input method associated with the Huawei video page, and this can be achieved without the Huawei video page controlling the input method separately.
[0186] In the embodiment of the present invention, the first electronic device makes a device decision for the first distributed service and its associated services, and performs the collaborative operation of the first distributed service and the associated services according to the device decision result, so that the collaborative operation of the services is more intelligent, the workload of the collaborative development of services is small, and the development of collaborative services is simpler. The technical solution of the embodiment of the present invention can realize device selection in a multi-device scenario.
[0187] Compared with the related art that triggers collaboration through specific services, the embodiments of the present invention trigger collaboration when the distributed service status changes, that is, the services in the system are triggered on demand. For example, in the super desktop scenario, the related art triggers page collaboration by the desktop module to start a service collaboration process, while the embodiments of the present invention trigger service collaboration autonomously when a new page is pulled up.
[0188] In an embodiment of the present invention, when the state of a distributed business changes, the decision engine module is called to determine whether collaboration is required, and the decision engine module can decide whether to trigger collaboration based on the decision data. For example, in a super desktop scenario, to pull up a new page, the decision engine module can return the device decision result based on the display identifier (DisplayId) of the page pull-up according to the most recently used device list or the most frequently used device list to determine whether business collaboration needs to be triggered. The decision data may include historical operation data and / or decision factors.
[0189] In the embodiment of the present invention, business associations and business dependencies can be predefined, and when a business collaboration is triggered, the associated business collaboration needs to be triggered synchronously to form a collaborative whole. For example, in the super desktop scenario, the audio needs to be migrated synchronously when the page is migrated. When the meta-capability triggers the page collaboration, the system synchronously triggers the audio collaboration, and defines the business dependency as page dependency on audio. Then, the page collaboration will be triggered after the audio collaboration is completed, to prevent the page from being pulled up in advance before the audio collaboration is completed, which may cause the sound to leak out of the source device.
[0190] The technical solution provided by the embodiment of the present invention can solve the problem of high complexity of business collaboration, and can also effectively solve the problem of high complexity of multi-business collaboration in some typical difficult scenarios.
[0191] For example, in a super desktop scenario, it is necessary to coordinate distributed services such as pages, cameras, and audio according to the scenario. By adopting the solution of the embodiment of the present invention, the super desktop only needs to pull up the page normally, and the collaborative operations of distributed services such as cameras and audio can be automatically triggered according to the business dependencies, thereby greatly reducing the complexity of implementing multi-business collaboration.
[0192] For another example, in a super desktop scenario, in the related technology, an electronic device can only pull up a new page based on a display identifier (DisplayId), and there is often a lack of information. The solution of continuously maintaining the decision information of the relevant page selection by the activity service management (ActivityManagerService, AMS) is costly to implement and the code is confusing. However, by adopting the solution in the embodiment of the present invention, the decision engine module continuously holds the decision data that the decision depends on, ensuring that subsequent pages can be pulled up on the electronic device.
[0193] An embodiment of the present invention provides a first electronic device, which includes: a display screen; one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, which, when executed by the first device, enable the first device to execute each step in the above-mentioned business collaboration method embodiment.
[0194] An embodiment of the present invention provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a first electronic device, the first electronic device executes each step in the above-mentioned business collaboration method embodiment.
[0195] An embodiment of the present invention provides a computer program product including instructions, and when the computer program product is run on a computer or any at least one processor, the computer is enabled to execute each step in the above-mentioned business collaboration method embodiment.
[0196] In the embodiments of the present invention, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent the existence of A alone, the existence of A and B at the same time, and the existence of B alone. A and B may be singular or plural. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can be represented by: a, b, c, ab, ac, bc, or abc, where a, b, c may be single or multiple.
[0197] Those skilled in the art will appreciate that the various units and algorithm steps described in the embodiments disclosed herein can be implemented in a combination of electronic hardware, computer software, and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present invention.
[0198] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0199] In several embodiments provided by the present invention, if any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.
[0200] The above is only a specific embodiment of the present invention. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. The protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A business collaboration method, characterized in that: The method is applied to a first electronic device, and the method includes: Acquire, according to a first operation input by a user for a first distributed service, at least one associated service of the first distributed service; Performing device decision on the first distributed service and the at least one associated service, and generating a device decision result; The coordinated operation of the first distributed service and the at least one associated service are executed according to the device decision result.
2. The method according to claim 1, characterized in that The acquiring at least one associated service of the first distributed service includes: At least one associated service associated with the first distributed service is queried according to the set service association relationship.
3. The method according to claim 1, characterized in that Before executing the coordinated operation of the first distributed service according to the device decision result and executing the at least one associated service, the method further includes: Determining, according to the set service dependency, an execution order of the first distributed service and the at least one associated service; The performing the coordinated operation of the first distributed service and the performing of the at least one associated service according to the device decision result includes: According to the device decision result, the coordinated operation of the first distributed service and the at least one associated service are executed in the execution order.
4. The method according to claim 1, characterized in that: The device decision result includes the device decision result of the first distributed service and the device decision result of the associated service; The performing device decision on the first distributed service and the at least one associated service to generate a device decision result includes: Performing a device decision on the first distributed service, and generating a device decision result for the first distributed service; Perform equipment decision on the associated business and generate equipment decision results for the associated business.
5. The method according to claim 4, characterized in that The performing device decision on the first distributed service and generating a device decision result of the first distributed service includes: Determining, according to the first operation, a first target device corresponding to the first distributed service; The device information of the first target device is determined as a device decision result of the first distributed service.
6. The method according to claim 4, characterized in that The performing equipment decision on the associated service and generating an equipment decision result for the associated service includes: Determining a second target device corresponding to the associated service according to the acquired decision data; The device information of the second target device is determined as the device decision result of the associated service.
7. The method according to claim 4, characterized in that The performing equipment decision on the associated service and generating an equipment decision result for the associated service includes: Determine, according to the acquired decision data, a second target device corresponding to the associated service, and select a target service from a plurality of candidate services corresponding to the associated service of the second target device; The device information of the second target device and the service information of the target service are determined as the device decision result of the associated service.
8. The method according to claim 6 or 7, characterized in that: The decision data includes historical operation data and / or decision factors.
9. The method according to claim 4, characterized in that The performing equipment decision on the associated service and generating an equipment decision result for the associated service includes: Determining, according to a second operation input by the user, a second target device corresponding to the associated service; The device information of the second target device is determined as the device decision result of the associated service.
10. The method according to claim 4, characterized in that The performing equipment decision on the associated service and generating an equipment decision result for the associated service includes: Determine, according to a second operation input by the user, a second target device corresponding to the associated service, and select a target service from a plurality of candidate services corresponding to the associated service of the second target device; The device information of the second target device and the service information of the target service are determined as the device decision result of the associated service.
11. The method according to any one of claims 6 to 10, characterized in that: The second target device includes a second electronic device or the first electronic device.
12. A first electronic device, characterized in that: include: A system control module, a decision engine module, a distributed collaboration framework module and at least one distributed business module; The system control module is used to trigger the decision engine module to execute a device decision for the first distributed service according to a first operation input by a user for the first distributed service; The decision engine module is used to obtain at least one associated service of the first distributed service under the triggering of the system control module; make a device decision for the first distributed service and the at least one associated service to generate a device decision result; and control the distributed collaborative framework module according to the device decision result; The distributed collaboration framework module is used to call at least one of the distributed service modules under the control of the decision engine module; The distributed service module is used to execute the collaborative operation of the first distributed service, or to execute the associated service.
13. The first electronic device according to claim 12, characterized in that: The decision engine module is further used to determine the execution order of the first distributed service and the at least one associated service according to the set service dependency relationship; The decision engine module is specifically used to send the device decision result of the distributed service with the highest priority in the execution order to the distributed service module corresponding to the distributed service with the highest priority according to the execution order, so that the distributed service module corresponding to the distributed service with the highest priority executes the distributed service with the highest priority and returns the execution result of the distributed service with the highest priority, wherein the distributed service with the highest priority includes the first distributed service or the associated service; based on the device decision results of the remaining distributed services, the distributed collaborative framework modules are controlled in sequence according to the execution order, wherein the remaining distributed services include distributed services other than the distributed service with the highest priority in the first distributed service and at least one associated service.
14. A first electronic device, characterized in that: include: Display screen; one or more processors; Memory; And one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, which, when executed by the first electronic device, enable the first electronic device to execute the business collaboration method described in any one of claims 1 to 11.
15. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the first electronic device where the computer-readable storage medium is located is controlled to execute the business collaboration method according to any one of claims 1 to 11.