WO2023138533A1 - Procédé de collaboration de service, dispositif électronique, support de stockage lisible et système de puce - Google Patents

Procédé de collaboration de service, dispositif électronique, support de stockage lisible et système de puce Download PDF

Info

Publication number
WO2023138533A1
WO2023138533A1 PCT/CN2023/072365 CN2023072365W WO2023138533A1 WO 2023138533 A1 WO2023138533 A1 WO 2023138533A1 CN 2023072365 W CN2023072365 W CN 2023072365W WO 2023138533 A1 WO2023138533 A1 WO 2023138533A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
service
heartbeat
foreground
node
Prior art date
Application number
PCT/CN2023/072365
Other languages
English (en)
Chinese (zh)
Inventor
陈登
包尚攀
王娟
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023138533A1 publication Critical patent/WO2023138533A1/fr

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0248Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal dependent on the time of the day, e.g. according to expected transmission activity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present application relates to the technical field of terminal equipment, and in particular to a business collaboration method, electronic equipment, a readable storage medium and a chip system.
  • a distributed scenario is proposed.
  • multiple terminal devices can be networked for data interaction, and different functions of multiple terminal devices can provide services to users at the same time.
  • the terminal device can send a heartbeat message to other terminal devices to determine whether other terminal devices are still in the distributed scenario; the terminal device can also add, delete or replace the stored data according to the detected operation, and can also synchronize the added, deleted or replaced data to other terminal devices.
  • the present application provides a service collaboration method, electronic equipment, a readable storage medium, and a chip system, which solve the problem of increased power consumption of terminal equipment in distributed scenarios in the prior art.
  • a business collaboration method is provided, which is applied to a first terminal device of a distributed system, the distributed system is composed of the first terminal device and a second terminal device, the first terminal device is connected to the second terminal device, and the method includes:
  • Heartbeat message sent by the second terminal device, where the heartbeat message includes a service identifier, and the service identifier is used to indicate the first service running in the foreground of the second terminal device;
  • the first terminal device and the second terminal device first adjust the time corresponding to the heartbeat nodes respectively, to obtain adjusted heartbeat nodes. Afterwards, the first terminal device can obtain the service status of each service of the second terminal device according to the heartbeat message sent by the second terminal device, and according to the service identifier of each service, combined with the business currently running on the foreground of the first terminal device, and then complete data synchronization with the second terminal device based on the adjusted heartbeat node, and complete data synchronization with the second terminal device by using the wake-up time period of the second terminal device, which can reduce the number of wake-up times of the second terminal device, thereby reducing the number of second terminal devices.
  • the power consumption of the second terminal equipment is not limited to the heartbeat message sent by the second terminal device, and according to the service identifier of each service, combined with the business currently running on the foreground of the first terminal device, and then complete data synchronization with the second terminal device based on the adjusted heartbeat node, and complete data synchronization with the second terminal
  • performing data synchronization with the second terminal device according to the service identifier and the service running in the foreground of the first terminal device in combination with the adjusted heartbeat node includes:
  • the service identifier determine whether the service running in the foreground of the first terminal device is consistent with the service running in the foreground of the second terminal device;
  • the second service running in the foreground of the first terminal device is inconsistent with the first service running in the foreground of the second terminal device, at the next time corresponding to the adjusted heartbeat node, send a service message to the second terminal device, and the service message is used to perform data synchronization on the second service between the first terminal device and the second terminal device.
  • the terminal device may delay the collaborative operation with other terminal devices.
  • the heartbeat message and the service message are sent at the same time, and the wake-up time period of the second terminal device is used, thereby reducing the power consumption of the second terminal device.
  • sending a service message to the second terminal device at a time corresponding to the next adjusted heartbeat node includes:
  • the non-real-time collaborative task is triggered, and the service message is sent to the second terminal device.
  • performing data synchronization with the second terminal device based on the service identifier and the service running in the foreground of the first terminal device in combination with the adjusted heartbeat node includes:
  • the service identifier determine whether the service running in the foreground of the first terminal device is consistent with the service running in the foreground of the second terminal device;
  • the service message is used to perform data synchronization on the first service between the first terminal device and the second terminal device.
  • the terminal device can cooperate with other terminal devices in real time to complete data synchronization.
  • the first terminal device completes data synchronization with the second terminal device during the time period when the second terminal device is currently in the wake-up state, which can reduce the number of times the second terminal device is woken up, thereby reducing power consumption of the second terminal device.
  • the method before performing data synchronization with the second terminal device based on the service identifier and the service running in the foreground of the first terminal device in combination with the adjusted heartbeat node, the method further includes:
  • the time corresponding to the heartbeat node of the first terminal device and the heartbeat node of the second terminal device is adjusted to obtain adjusted heartbeat nodes, including:
  • the heartbeat node and the heartbeat period sent by the second terminal device are combined with the heartbeat node and the heartbeat period of the first terminal device to perform calculation to obtain the adjusted heartbeat node.
  • the first terminal device and the second terminal device adjust the heartbeat node and the heartbeat cycle so that the time period for the first terminal device and the second terminal device to wake up is consistent, that is, the first terminal device and the second terminal device send and receive heartbeats
  • the time of the message is consistent, so that the number of times each terminal device is woken up can be reduced.
  • a business collaboration method is provided, which is applied to a second terminal device of a distributed system, the distributed system is composed of a first terminal device and the second terminal device, the first terminal device is connected to the second terminal device, and the method includes:
  • the adjusted heartbeat node send a heartbeat message to the first terminal device, where the heartbeat message includes a service identifier, and the service identifier is used to indicate the first service running in the foreground of the second terminal device;
  • the first terminal device and the second terminal device first adjust the time corresponding to the heartbeat nodes respectively, to obtain adjusted heartbeat nodes.
  • the second terminal device may send a heartbeat message to the first terminal device to inform the first terminal device of the service status of each service run by the second terminal device, and complete data synchronization with the first terminal device according to the service message fed back by the first terminal device based on the service identifier of each service.
  • the wake-up period of the second terminal device may be used to complete data synchronization with the second terminal device, which may reduce the number of times the second terminal device is woken up, thereby reducing power consumption of the second terminal device.
  • the sending a heartbeat message to the first terminal device includes:
  • the second terminal device can indicate the service currently running on the foreground of the second terminal device through the service identifier, so that the first terminal device can determine the time to perform data synchronization with the second terminal device according to the service identifier in the heartbeat message, and use the wake-up period of the second terminal device to complete data synchronization with the second terminal device, which can reduce the number of times the second terminal device is woken up, thereby reducing power consumption of the second terminal device.
  • the determining the service identifier corresponding to the service running in the foreground of the second terminal device includes:
  • the hand-raising action triggered by the first service determine that the first service is running in the foreground of the second terminal device;
  • the performing data synchronization with the first terminal device according to the service message sent by the first terminal device includes:
  • the first terminal device can cooperate with the second terminal device in real time to complete data synchronization. If the service running in the foreground of the first terminal device is different from the service currently running in the foreground of the second terminal device, the first terminal device can delay the cooperative operation with the second terminal device, and use the wake-up time period of the second terminal device to complete data synchronization with the second terminal device, which can reduce the number of times the second terminal device is woken up, thereby reducing the power consumption of the second terminal device.
  • the step of adjusting the time corresponding to the heartbeat node of the first terminal device and the heartbeat node of the second terminal device to obtain the adjusted heartbeat node includes:
  • the adjusted heartbeat node is obtained according to the optimal heartbeat period and the synchronized absolute time.
  • the first terminal device and the second terminal device adjust the heartbeat node and the heartbeat cycle to make the first terminal device and the second terminal device wake up at the same time period, that is, the first terminal device and the second terminal device send and receive heartbeat messages at the same time, so that the number of times each terminal device is woken up can be reduced.
  • a service coordination device which is applied to a first terminal device of a distributed system, the distributed system is composed of the first terminal device and a second terminal device, the first terminal device is connected to the second terminal device, and the device includes:
  • An adjustment module configured to adjust the time corresponding to the heartbeat node of the first terminal device and the heartbeat node of the second terminal device respectively, to obtain adjusted heartbeat nodes
  • a receiving module configured to receive a heartbeat message sent by the second terminal device, where the heartbeat message includes a service identifier, and the service identifier is used to indicate the first service running in the foreground of the second terminal device;
  • a synchronization module configured to perform data synchronization with the second terminal device according to the service identifier and the service running in the foreground of the first terminal device in combination with the adjusted heartbeat node.
  • the synchronization module is specifically configured to determine, according to the service identifier, whether the service running in the foreground of the first terminal device is consistent with the service running in the foreground of the second terminal device; if the second service running in the foreground of the first terminal device is inconsistent with the first service running in the foreground of the second terminal device, send a service message to the second terminal device at the next time corresponding to the adjusted heartbeat node, and the service message is used for data synchronization of the second service between the first terminal device and the second terminal device.
  • the synchronization module is further specifically configured to register a non-real-time collaborative task for the second service running in the foreground of the first terminal device; when the next time corresponding to the adjusted heartbeat node is reached, trigger the non-real-time collaborative task, and send the service message to the second terminal device.
  • the synchronization module is further specifically configured to determine, according to the service identifier, whether the service running in the foreground of the first terminal device is consistent with the service running in the foreground of the second terminal device; if the first service running in the foreground of the first terminal device is consistent with the first service running in the foreground of the second terminal device, send the service message to the second terminal device, and the service message is used to perform data synchronization on the first service between the first terminal device and the second terminal device.
  • the device further includes:
  • An extracting module configured to extract the service identification bit of the heartbeat message to obtain the service identification corresponding to the first service.
  • the The adjustment module is specifically configured to receive the heartbeat node and the heartbeat cycle sent by the second terminal device; according to the preset heartbeat coordination formula, combine the heartbeat node and the heartbeat cycle sent by the second terminal device, and the heartbeat node and the heartbeat cycle of the first terminal device to perform calculations to obtain the adjusted heartbeat node.
  • a service coordination device which is applied to a second terminal device of a distributed system, the distributed system is composed of a first terminal device and the second terminal device, the first terminal device is connected to the second terminal device, and the device includes:
  • An adjustment module configured to adjust the time corresponding to the heartbeat node of the first terminal device and the heartbeat node of the second terminal device respectively, to obtain adjusted heartbeat nodes
  • a sending module configured to send a heartbeat message to the first terminal device at a time corresponding to the adjusted heartbeat node, where the heartbeat message includes a service identifier, and the service identifier is used to indicate the first service running in the foreground of the second terminal device;
  • a synchronization module configured to perform data synchronization with the first terminal device according to the service message sent by the first terminal device.
  • the sending module is specifically configured to determine a service identifier corresponding to a service running in the foreground of the second terminal device; generate the heartbeat message according to the service identifier; and send the heartbeat message to the first terminal device.
  • the sending module is further specifically configured to determine that the first service is running in the foreground of the second terminal device according to a hand-raising action triggered by the first service; and acquire a service identifier corresponding to the first service.
  • the synchronization module is specifically configured to receive a service message sent by the first terminal device, and the service message is used to perform data synchronization on a second service between the first terminal device and the second terminal device; perform data synchronization on the second service with the first terminal device according to the service message.
  • the adjustment module is specifically configured to send the heartbeat node and the heartbeat period of the second terminal device to the first terminal device; receive the absolute time sent by the first terminal device, and synchronize the absolute time with the first terminal device, where the absolute time represents the boot time; receive the calculated optimal heartbeat period sent by the first terminal device; obtain the adjusted heartbeat node according to the optimal heartbeat period and the synchronized absolute time.
  • an electronic device including: a processor, the processor is configured to run a computer program stored in a memory, so that the electronic device implements the business collaboration method according to any one of the first aspect or the second aspect.
  • a computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the business collaboration method according to any one of the first aspect or the second aspect is implemented.
  • a chip system includes a memory and a processor, and the processor executes the computer program stored in the memory, so as to realize the business collaboration method according to any one of the first aspect or the second aspect.
  • FIG. 1A is a schematic diagram of a distributed scenario provided by an embodiment of the present application.
  • FIG. 1B is a schematic diagram of the state of each terminal device in a distributed scenario provided by an embodiment of the present application
  • FIG. 2 is a schematic flow diagram of collaborative operations of terminal devices in a distributed scenario provided by an embodiment of the present application
  • FIG. 3 is a schematic flow chart of a business collaboration method provided by an embodiment of the present application.
  • FIG. 4 is a schematic flow diagram of adjusting the time corresponding to the heartbeat nodes of the central node and the child nodes provided by the embodiment of the present application;
  • FIG. 5A is a schematic diagram of a heartbeat node for cross-device unified heartbeat management provided by an embodiment of the present application
  • FIG. 5B is a schematic diagram of a heartbeat node for unified heartbeat management in the same terminal device provided by an embodiment of the present application;
  • FIG. 6 is a schematic diagram of heartbeat nodes of multiple terminal devices in a distributed scenario provided by an embodiment of the present application.
  • FIG. 7 is a schematic flow diagram of a plurality of terminal devices performing service collaboration according to an embodiment of the present application.
  • FIG. 8 is a schematic diagram of a heartbeat message provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram of another state of each terminal device provided in the embodiment of the present application.
  • FIG. 10 is a schematic diagram of state changes of a terminal device provided in an embodiment of the present application.
  • FIG. 11 is a schematic flowchart of a software for multi-terminal devices performing collaborative operations provided by an embodiment of the present application
  • FIG. 12 is a structural block diagram of a service collaboration device provided by an embodiment of the present application.
  • FIG. 13 is a structural block diagram of another service collaboration device provided by the embodiment of the present application.
  • FIG. 14 is a schematic structural diagram of a terminal device provided in an embodiment of the present application.
  • FIG. 15 is a block diagram of a software structure of a terminal device according to an embodiment of the present application.
  • the distributed scenario may be an application scenario in which distributed technology is used to implement cross-device services.
  • the distributed scenario may include multiple terminal devices, and the hardware of each terminal device may be added to the shared resource pool of the distributed scenario. That is, the hardware and the functions of the hardware can be shared among the various terminal devices.
  • each terminal device can call the hardware of other terminal devices according to the resources in the shared resource pool for different types of services, so as to complete different services in distributed scenarios (such as audio and video calls, cross-terminal collaborative office, and smart vehicle and other cross-device services).
  • the distributed scene includes: mobile phone and TV
  • the mobile phone can call the screen and speakers of the TV to play the video according to the triggered operation.
  • the microphone of the mobile phone can be used to receive voice commands for the TV, and the volume, channel or program played on the TV can be adjusted. etc. to adjust.
  • each terminal device in a distributed scenario can be connected through a communication module, which can be considered as a transmission protocol, and each terminal device in a distributed scenario can be simply and quickly connected to other terminal devices through a communication module, so that the hardware of other terminal devices can be called to complete the corresponding business.
  • a communication module which can be considered as a transmission protocol
  • the communication module can be the communication base of various terminal devices in distributed scenarios such as mobile phones, tablet computers, wearable devices, smart screens, and vehicles, providing a unified communication capability for the interconnection and intercommunication between various terminal devices, and creating conditions for non-inductive discovery and zero-wait transmission between devices.
  • the mobile phone needs to turn on the Bluetooth function first, and after searching for the computer, perform pairing authorization with the computer. After the mobile phone establishes a Bluetooth connection with the computer, the mobile phone can send photos that need to be transferred to the computer.
  • each terminal device can actively discover other terminal devices based on the communication module, and the mobile phone can actively discover the computer in the distributed scenario and establish a connection with the computer through the communication module.
  • the mobile phone and the computer are configured with a photo gallery service, the mobile phone can actively send photos to the computer to realize data synchronization between the mobile phone and the computer for the photo gallery service.
  • FIG. 1A is a schematic diagram of a distributed scenario provided by an embodiment of the present application.
  • the distributed scenario may include: a terminal device A, a terminal device B, and a terminal device C.
  • terminal device B is connected to terminal device A and terminal device C respectively.
  • all terminal devices located in the same distributed scenario can send heartbeat messages and/or service messages to other terminal devices.
  • the heartbeat message is used to detect which terminal devices are included in the distributed scenario, that is, to detect whether other terminal devices are still located in the distributed scenario.
  • the service message is used to realize the cross-device service between each terminal device, and each terminal device can realize data synchronization for the same service through the service message.
  • each terminal device can send service data to other terminal devices through service packets, so that other terminal devices can synchronize service data and complete cross-device services.
  • terminal device B can send heartbeat messages to remote devices (terminal device A and terminal device C) respectively through the communication module to detect whether the remote device is still in the distributed scenario.
  • the terminal device B can also receive the heartbeat message sent by the remote device through the communication module.
  • both terminal device A and terminal device B include the distributed gallery service. If terminal device A is currently running the distributed gallery service in the foreground, and terminal device A detects that a deletion operation is triggered on an image in the distributed gallery, then terminal device A can delete the corresponding image in the distributed gallery. Moreover, terminal device A can also send a service message to terminal device B, instructing terminal device B to perform data synchronization on the distributed gallery in terminal device B according to the service message, that is, to delete the corresponding image in the distributed gallery.
  • both terminal equipment B and terminal equipment C include distributed file manager services. If terminal device B is currently running the distributed file manager service in the foreground, and terminal device B detects that a storage operation is triggered for a file, terminal device B can store the file through the distributed file manager. Moreover, terminal device B can also send a service message to terminal device C, instructing terminal device C to perform data synchronization through the distributed file manager in terminal device C according to the service message, that is, to store the file in terminal device C.
  • FIG. 1B is a schematic diagram of the state of each terminal device in a distributed scenario provided by an embodiment of the present application.
  • FIG. 1B shows the time nodes at which each of the above-mentioned terminal devices sends heartbeat messages (hollow triangles in FIG. 1B ), and also shows the time nodes at which terminal device A and terminal device C send service messages (solid triangles in FIG. 1B ), and also shows the time nodes at which terminal device B receives service messages.
  • each terminal device may enter a sleep state to reduce power consumption of the terminal devices.
  • Each terminal device also needs to periodically send a heartbeat message to other devices to determine whether other terminal devices are still located in the distributed scenario.
  • terminal device A, terminal device B, and terminal device C send heartbeat messages to other terminal devices at different times, and the terminal device receiving the heartbeat message is awakened from the dormant state.
  • terminal device B also sends service packets to terminal device A and terminal device C respectively at different times, then terminal device A and terminal device C are also woken up when receiving the service packets. Therefore, the terminal device A, the terminal device B, and the terminal device C are frequently woken up at multiple times, so that the power consumption of each terminal device increases.
  • the embodiment of the present application proposes a service coordination method, and the terminal device can determine the service running in the foreground of the remote device according to the received heartbeat message sent by the remote device. If the service running in the foreground of the terminal device is different from the service running in the foreground of the remote device, the terminal device can delay data synchronization with the remote device (for example, when the terminal device sends a heartbeat message to the remote device, it also sends a service message to the remote device). If the service running on the foreground of the terminal device is the same as the service running on the foreground of the remote device, the terminal device can synchronize data with the remote device in real time to realize collaborative work.
  • FIG. 2 is a schematic flow diagram of collaborative operation of terminal devices in a distributed scenario provided by an embodiment of the present application.
  • the distributed scenario includes: a first terminal device and a second terminal device, wherein the first terminal device is connected to the second terminal device.
  • the first terminal device may first establish a network with the second terminal device to access a distributed scenario. Afterwards, the first terminal device may receive the heartbeat message sent by the second terminal device, and determine the first service that the second terminal device is currently running in the foreground according to the service state information carried in the heartbeat message.
  • the fact that the first terminal device is running the second service in the foreground but not running the first service in the foreground is different from the fact that the second terminal device is running the first service in the foreground.
  • the first terminal device no longer cooperates with the second terminal device in real time to complete data synchronization. Instead, the delayed non-real-time task can be registered in the task scheduler of the first terminal device, that is, the non-real-time task for synchronizing data between the first service and the second terminal device to realize collaborative operation can be registered.
  • the task scheduler of the first terminal device is used to control the first terminal device to execute each task registered in the task scheduler in a preset order, and the task scheduler can also control the first terminal device to delay execution of non-real-time tasks. For example, the first terminal device executes a certain non-real-time task in the task scheduler only when the first terminal device satisfies a certain condition.
  • the non-real-time task may be a task registered in the task scheduler that can be delayed for execution, or a task that the terminal device can only execute when the state of the terminal device meets a certain condition.
  • the task scheduler may acquire the status of the timer, power supply, and network of the first terminal device, and set constraints for the aforementioned non-real-time tasks according to the acquired statuses.
  • the first terminal device can execute the registered non-real-time task through the task scheduler, that is, the second service in the first terminal device executes cross-device services through the communication module, so that the first service of the first terminal device and the first service of the second terminal device perform cooperative operations to complete data synchronization.
  • the first terminal device and the second terminal device when the first terminal device and the second terminal device are in the wake-up state again, that is, they can send and receive heartbeat messages, the first terminal device can perform cross-device services, so that data transmission can be performed between the first terminal device and the second terminal device, thereby controlling the first service of the second terminal device to cooperate with the first service of the first terminal device to perform cross-device services, and completing the first terminal device.
  • the terminal device and the second terminal device synchronize data for the first service.
  • a distributed scenario may include multiple networked terminal devices.
  • this embodiment of the application uses two terminal devices as an example.
  • the embodiment of this application does not limit the number of terminal devices in a distributed scenario.
  • the following still uses two terminal devices in a distributed scenario as an example to introduce a method for each terminal device to cooperate to execute cross-device services, so as to reduce power consumption of the terminal devices.
  • Fig. 3 is a schematic flowchart of a business collaboration method provided by the embodiment of the present application.
  • the method can be applied to the first terminal device and the second terminal device in the above-mentioned distributed scenario. Referring to Fig. 3 , the method includes:
  • Step 301 Adjust the time corresponding to the heartbeat node of the first terminal device and the heartbeat node of the second terminal device respectively, to obtain adjusted heartbeat nodes.
  • both the first terminal device and the second terminal device are located in a distributed scenario, and the first terminal device is connected to the second terminal device.
  • the heartbeat node can be the moment when each terminal device sends a heartbeat message, and each terminal device periodically sends a heartbeat message, then the duration between every two adjacent heartbeat nodes is the heartbeat cycle.
  • Multiple terminal devices in the distributed scenario can periodically send heartbeat messages, so as to determine each terminal device currently in the distributed scenario through the heartbeat messages.
  • each terminal device sends and receives a heartbeat message, it needs to be woken up to be in the wake-up state, and the time for each terminal device to send a heartbeat message is different, which will cause frequent wakeups for each terminal device, which will increase the standby current of the terminal device and increase the power consumption of the terminal device.
  • the first terminal device and the second terminal device can first adjust the time corresponding to the heartbeat node of the first terminal device and the heartbeat node of the second terminal device, so that each terminal device can send a heartbeat message at the same time, that is, the first terminal device and the second terminal device send the heartbeat message after the same duration for a certain absolute time (such as the power-on time of the first terminal device or the power-on time of the second terminal device), thereby reducing the time each terminal device is in the wake-up state and reducing the power consumption of each terminal device.
  • a certain absolute time such as the power-on time of the first terminal device or the power-on time of the second terminal device
  • the communication module in the distributed scenario may use the first terminal device as a central node and the second terminal device as a child node.
  • the central node can generate an adjusted heartbeat cycle and heartbeat nodes according to the preset heartbeat coordination formula, combined with the heartbeat cycle and heartbeat nodes of the central node, and the heartbeat cycle and heartbeat nodes of the child nodes, and send the adjusted heartbeat cycle and heartbeat nodes to the child nodes, so as to complete the management of the heartbeat nodes of the child nodes through the central node.
  • FIG. 4 is a schematic flow diagram for adjusting the time corresponding to the heartbeat nodes of the central node and the sub-nodes according to the embodiment of the present application.
  • Both the central node and the sub-nodes include a heartbeat management module for unified heartbeat management, and transmit data such as heartbeat cycles and heartbeat nodes of the central node and sub-nodes through the time management module of the communication module in a distributed scenario.
  • the child node can send the heartbeat cycle of the child node to the central node through the time management module of the communication module, and the central node can also synchronize the absolute time of the first terminal device to the child node through the time management module of the communication module, that is, to synchronize the boot time of the first terminal device to the child node.
  • the heartbeat management module of the central node can generate the optimal heartbeat period through the preset heartbeat coordination formula according to the heartbeat period of the sub-node, combined with the heartbeat period of the central node and the heartbeat node, that is, the timer task currently existing in the first terminal device.
  • the central node can also send the generated optimal heartbeat cycle to the sub-node through the communication module.
  • the heartbeat management module of the sub-node can adjust the heartbeat node of the second terminal device according to the received optimal heartbeat cycle, thereby completing the adjustment of the time corresponding to the heartbeat nodes of the first terminal device and the second terminal device.
  • the central node may generate the optimal heartbeat cycle according to the minimum heartbeat cycle of each terminal device in the distributed scenario, and of course, may also generate the optimal heartbeat cycle in other ways, which is not limited in this embodiment of the present application.
  • each terminal device in the distributed scenario can simultaneously run multiple services on the same terminal device during operation.
  • each service can cooperate with other terminal equipment services in real time, and can also cooperate with other terminal equipment services at the time corresponding to the heartbeat node according to the adjusted heartbeat node.
  • the time when the service triggers the collaborative operation can be unified with the heartbeat node of the terminal device.
  • the terminal device can reset the time when the service triggers the collaborative operation based on the absolute time of the terminal device, combined with the time when the business triggers the collaborative operation and the heartbeat cycle of the terminal device, through the preset heartbeat coordination formula, so that the business running on the terminal device can perform collaborative operations with other terminal devices at the time corresponding to the heartbeat node to achieve data synchronization.
  • FIG. 5A a schematic diagram of a heartbeat node for unified heartbeat management across devices is shown.
  • the power-on time of the central node is 11:02:00
  • the power-on time of the child nodes is 11:00:00
  • the heartbeat periods of the central node and the child nodes are both 5 minutes (min).
  • the absolute time of the central node is 6 minutes
  • the absolute time of the child node is 8 minutes.
  • the absolute time corresponding to each primary heartbeat node of the central node and the sub -node is 5min, 10min, and 15min, respectively, that is, the corresponding moments corresponding to the original heartbeat nodes of the central node are 11: 07: 00, 11: 12: 00, and 11:17:00. 00 and 11:15:00 and other times.
  • the central node can synchronize the absolute time of the sub-nodes, and then calculate according to the preset heartbeat coordination formula to obtain the absolute time corresponding to each new heartbeat node of the sub-node, thereby obtaining the time corresponding to each new heartbeat node of the sub-node.
  • the central node can also calculate the time corresponding to other new heartbeat nodes of the child node (such as 11:17:00, etc.), which will not be repeated here.
  • FIG. 5B a schematic diagram of heartbeat nodes for unified heartbeat management in the same terminal device is shown.
  • the boot time of the terminal device is 11:00:00
  • the heartbeat period is 5 minutes
  • the absolute times corresponding to each heartbeat node of the terminal device are respectively 5 minutes, 10 minutes, and 15 minutes.
  • the timer corresponding to the service run by the terminal device is triggered at 11:03:00, that is, the currently running service triggers the collaborative operation when the absolute time is 3 minutes, then the terminal device can adjust the trigger time of the timer according to the heartbeat coordination formula, and use the closest heartbeat node as the trigger time of the timer corresponding to the service.
  • realTrigger table indicates the absolute time corresponding to the updated trigger moment
  • expectTrigger indicates the absolute time corresponding to the original trigger moment
  • Time indicates the heartbeat cycle of the central node.
  • the original trigger time is 11:03:00
  • the corresponding absolute time expectTrigger is 3 minutes
  • a distributed scenario may include multiple networked terminal devices.
  • the central node may adjust the heartbeat node and heartbeat period of the new subnode based on the heartbeat node and heartbeat period of the central node, so that the heartbeat node and heartbeat period of the new subnode are consistent with the heartbeat node and heartbeat period of the central node, thereby realizing unified heartbeat management across devices.
  • FIG. 6 is a schematic diagram of heartbeat nodes of multiple terminal devices in a distributed scenario provided by an embodiment of the present application.
  • the distributed scenario may include terminal device A, terminal device B, terminal device C, and terminal device D.
  • the heartbeat nodes of each terminal device are different.
  • the heartbeat node closest to the current moment can be determined as the heartbeat node of terminal device B according to the heartbeat nodes of multiple terminal devices.
  • multiple terminal devices may also select a central node according to the power supply type of each terminal device. If the power supply of terminal device A is a large-capacity battery, terminal device B is connected to the mains through a power line, and the power supplies of terminal device C and terminal device D are small-capacity batteries, then terminal device B can maintain the power supply state continuously, and terminal device B can be used as the central node, and other terminal devices can be used as sub-nodes, and then according to the heartbeat node and heartbeat cycle of terminal device B, the heartbeat nodes and heartbeat cycles of other terminal devices can be adjusted.
  • Step 302 the second terminal device sends a heartbeat message to the first terminal device.
  • the heartbeat message includes service identifiers of various services currently in the running state of the second terminal device.
  • the first terminal device can send a heartbeat message to the second terminal device according to the heartbeat node, and the second terminal device can also send a heartbeat message to the first terminal device according to the heartbeat node.
  • the following description takes the second terminal device sending a heartbeat message to the first terminal device as an example.
  • the second terminal device may detect the hand-raising action triggered by the first service, which means that the first service is currently running in the foreground.
  • the second terminal device may determine that the service state of the first service is in the running state according to the hand-raising action, and other services not triggered by the hand-raising action are in the dormant state or the suspended state.
  • the gesture of raising the hand triggered by the first service may be a signaling broadcast by the first service, which is used to inform the system that the first service is currently running in the foreground.
  • the service status can include: running state, paused state and dormant state.
  • the running state means that the business is currently running in the foreground
  • the paused state means that the business is currently running in the background
  • the dormant state means that the business is not currently running.
  • the second terminal device can also acquire the service identifier of the first service according to the hand-raising action triggered by the first service, and add the service status of the first service into the heartbeat message together, so that the heartbeat message carries the service identifier of the first service running in the foreground of the second terminal device and the service status of the first service, so that the first terminal device can determine the first service currently running in the foreground of the second terminal device through the heartbeat message.
  • the first terminal device can perform step 303 to realize collaborative work with the second terminal device, and synchronize the data of the second terminal device in the first terminal device. If the service running in the foreground of the first terminal device is inconsistent with the service running in the foreground of the second terminal device, the first terminal device may perform step 304 to realize collaborative work with the second terminal device according to the heartbeat period and heartbeat node of the first terminal device.
  • FIG. 7 is a schematic flow diagram of business collaboration of multiple terminal devices provided by the embodiment of the present application.
  • the distributed library service of the computer is in the running state
  • the distributed file manager service of the tablet computer is in the dormant state.
  • the mobile phone can determine that the computer is running the distributed gallery service in the foreground according to the heartbeat messages sent by the computer and the tablet respectively through the bus channel module of the communication module, and through the business status coordination module in the resource scheduling subsystem.
  • the resource scheduling subsystem of the mobile phone can add the collaborative task corresponding to the distributed gallery service to the system activity window (unfreeze window), and perform resource recovery (such as restoring the Br link and WiFi link) for the distributed gallery service in the communication module through the resource scheduling subsystem, so that the mobile phone can send the service message corresponding to the distributed gallery service to the computer through the communication module.
  • the resource scheduling subsystem of the mobile phone can add the collaborative task corresponding to the distributed file manager service to the system freeze window (freeze window), and release the resources corresponding to the distributed file manager service in the communication module through the resource scheduling subsystem (such as restoring the Br link and WiFi link), so that the mobile phone cannot temporarily send the service message corresponding to the distributed file manager service to the tablet computer through the communication module, but in the system of the mobile phone
  • the service message corresponding to the distributed file manager service can be sent to the tablet computer only after the frozen window satisfies the constraint conditions and is thawed.
  • FIG. 8 is a schematic diagram of a heartbeat message provided by the embodiment of the present application.
  • the heartbeat message may also include a service hand-raising position.
  • the first service of the second terminal device when running in the foreground, it can periodically trigger the hand-raising action, so that the heartbeat message sent by the second terminal device can continuously carry the service identifier and service status of the first service.
  • the trigger period may be consistent with the heartbeat period of the second terminal device, or may be shorter than the heartbeat period of the second terminal device, and the trigger period is not limited in this embodiment of the present application.
  • the first service may trigger a hand-raising action, indicating that the first service is currently in the suspended state.
  • the heartbeat message of the second terminal device may also be added with the service identifier of the first service and the service state indicating the suspended state.
  • Step 303 If the service running in the foreground of the first terminal device is consistent with the service running in the foreground of the second terminal device, the first terminal device sends a service message to the second terminal device.
  • the service message is used to initiate data synchronization between the first terminal device and the second terminal device, so that the second terminal device can send data to the first terminal device according to the service message, thereby realizing data synchronization.
  • the first terminal device may determine according to the heartbeat message that the first service is running in the foreground of the second terminal device. If the first terminal device is currently running the first service in the foreground, the first terminal device can send a service message to the second terminal device, so that in subsequent steps, the first terminal device can cooperate with the second terminal device to complete the first service.
  • the first terminal device may extract data in the heartbeat message to determine that the first service is running in the foreground of the second terminal device. Moreover, the first terminal device is currently running the first service in the foreground, and the first service of the first terminal device can initiate a collaborative operation task, and the first terminal device can add the collaborative operation task to the system activity window of the resource scheduling subsystem according to the service status of the first service in the running state, so that the communication module subsystem of the first terminal device can perform resource recovery for the collaborative operation task, and can send a service message to the second terminal device through the communication module, so that in step 305, the second terminal device can perform collaborative work according to the received service message.
  • the first terminal device if the first terminal device is currently running the first service in the foreground, it means that the first terminal device also has data that needs to be synchronized with the second terminal device for the first service.
  • the heartbeat message sent by the first terminal device to the second terminal device may also include the service identifier of the first service and the service status indicating the running state.
  • the second terminal device can also use a method similar to that of the first terminal device, and the first service of the second terminal device can also initiate a collaborative operation with the first terminal device to complete data synchronization.
  • Step 304 If the service running in the foreground of the first terminal device is inconsistent with the service running in the foreground of the second terminal device, the first terminal device sends a service message to the second terminal device according to the heartbeat node.
  • the first terminal device may delay sending a service message for the second service to the second terminal device for collaborative operation.
  • the first terminal device may extract the data in the heartbeat message, and determine that the second terminal device is running the first service in the foreground, while the first terminal device is currently running the second service in the foreground, and the service running in the foreground of the first terminal device is different from the service running in the foreground of the second terminal device.
  • the first terminal device can mark the first service as running, and exempt the first service from management and control, and then through the resource scheduling subsystem of the first terminal device, add the collaborative operation task initiated by the first service into the system freezing window, so that at the next heartbeat node, the first terminal device and the second terminal device can perform collaborative work on the first service and complete data synchronization.
  • the first terminal device can send a heartbeat message to the second terminal device, and each task in the system freezing window of the first terminal device can also enter the system active window, thereby sending a service message to the second terminal device, so that in step 305, the second terminal device can complete the cooperative task with the first terminal device for the first business, and realize data synchronization.
  • the second terminal device cooperates with the first terminal device to perform cross-device services according to the service message, and synchronizes data between the first terminal device and the second terminal device.
  • the second terminal device can receive the service message sent in real time or delayed by the first terminal device, and according to the received service message, cooperate with the first terminal device for the first service or the second service to realize data synchronization between the first terminal device and the second terminal device.
  • step 303 if both the first terminal device and the second terminal device are currently running the first service in the foreground, after the second terminal device sends a heartbeat message to the first terminal device in step 302, it can receive the service message sent by the first terminal device for the first service in real time, so that it can send service data to the first terminal device according to the received service message, thereby synchronizing the data corresponding to the first service in the first terminal device, and completing the collaborative operation between the first terminal device and the second terminal device.
  • the first terminal device may also send a service message for the second service to the second terminal device while sending a heartbeat message to the second terminal device. That is, the second terminal device needs to wait for one heartbeat cycle before it can receive the service packet for the second service sent by the first terminal device. The second terminal device also needs to wait for one heartbeat period before it can cooperate with the first terminal device for the second service to realize data synchronization.
  • the second terminal device can also send a service message for the first service to the first terminal device according to the received heartbeat message, so that the data corresponding to the first service is synchronized in the first terminal device, and the first terminal device and the second terminal device are set up. Prepared collaborative work.
  • a non-real-time service is taken as an example, that is, the service message that the first terminal device delays sending to the second terminal device is only for the non-real-time service.
  • the terminal device may run non-real-time services or real-time services, and the types of services run by the terminal device in the embodiment of the present application are not limited.
  • non-real-time services of terminal devices may include: non-foreground triggered full or incremental image synchronization, automatic thumbnail preloading or caching, non-foreground triggered data change notification, and non-foreground triggered data interaction service synchronization, etc.
  • some services of the terminal equipment can also be classified as real-time services or non-real-time services according to different conditions. As shown in Table 1, it shows that different services are classified as real-time services or non-real-time services under different conditions.
  • FIG. 9 is another schematic diagram of the state of each terminal device provided by the embodiment of the present application.
  • Each terminal device (terminal device A, terminal device B, terminal device C, and terminal device D) can send a heartbeat message at the same time after adjusting the heartbeat node and the heartbeat cycle (the hollow triangle in the figure), and at the time of sending the heartbeat message, simultaneously send the service message corresponding to the non-real-time service (the striped triangle in the figure).
  • terminal device B and terminal device D may also send service packets corresponding to real-time services at non-heartbeat nodes (solid triangles in the figure).
  • FIG. 10 is a schematic diagram of a state change of a terminal device provided by an embodiment of the present application.
  • the terminal device is frequently woken up, and the standby current of the terminal device also frequently rises.
  • the terminal device is periodically in the wake-up state, and the number of wake-up times is significantly reduced.
  • the standby current of terminal equipment has also dropped significantly.
  • the power consumption of each terminal device is significantly reduced after adding terminal devices in a distributed scenario.
  • the power consumption increases by about 10%; when two or more terminal devices are added in a distributed scenario, the power consumption increases by only 25% to 30%.
  • FIG. 11 is a schematic flowchart of a software for multi-terminal devices performing collaborative operations provided by an embodiment of the present application.
  • the first terminal device and the second terminal device form a network based on a networking protocol through a communication module, and jointly access the distributed scene.
  • the first terminal device may send a heartbeat message through the communication module to determine whether the second terminal device is still located in the distributed scenario.
  • the second terminal device may also send a heartbeat message through the communication module to determine whether the first terminal device is still located in the distributed scenario.
  • the second terminal device runs the distributed gallery in the foreground, and if a triggered operation of adding a picture is detected, the second terminal device may store the added picture. Moreover, at the moment corresponding to the heartbeat node, the second terminal device can determine that the distributed library is currently running through the lifecycle module of the distributed low-power framework in the second terminal device, that is, the distributed library is currently running in the foreground, then the second terminal device can send the service identifier and service status carrying the distributed library to the first terminal device.
  • the first terminal device can receive the heartbeat message sent by the second terminal device, and determine according to the heartbeat message that the second terminal device is currently running the distributed library in the foreground, then the first terminal device can exempt the distributed library through the low-power management module of the distributed low-power framework, so that at the next heartbeat node, the distributed library of the first terminal device can initiate a collaborative operation to the second terminal device.
  • the distributed library of the first terminal device can initiate a collaborative task to the second terminal device through the task scheduling module and the collaborative execution module of the distributed low-power framework.
  • the second terminal device can perform data interaction with the first terminal device through the communication module, and store images stored in the distributed gallery of the second terminal device in the first terminal device, so as to realize business collaboration and complete data synchronization.
  • a terminal device in a distributed scenario, can obtain the service status of each service of other terminal devices according to the received heartbeat message. If the service running in the foreground of other terminal devices is the same as the service running in the foreground of the terminal device, the terminal device can cooperate with other terminal devices in real time to complete data synchronization. If the service running in the foreground of other terminal devices is different from the service currently running in the foreground of the terminal device, the terminal device can delay the collaborative operation with other terminal devices, and use the wake-up time period of other terminal devices to complete data synchronization with other terminal devices, which can reduce the number of times each terminal device is woken up, thereby reducing the power consumption of other terminal devices.
  • each terminal device in a distributed scenario can unify the wake-up time period for each terminal device, that is, unify the time for each terminal device to send and receive heartbeat messages, thereby reducing the number of wake-up times for each terminal device.
  • each terminal device can simultaneously send heartbeat messages and service messages at the time corresponding to the heartbeat node, and jointly use the wake-up time period of each terminal device, thereby reducing the power consumption of each terminal device.
  • FIG. 12 is a structural block diagram of a service collaboration device provided by the embodiment of the present application. For convenience of description, only the parts related to the embodiment of the present application are shown.
  • the device includes:
  • An adjustment module 1201 configured to adjust the time corresponding to the heartbeat node of the first terminal device and the heartbeat node of the second terminal device respectively, to obtain adjusted heartbeat nodes;
  • a receiving module 1202 configured to receive a heartbeat message sent by the second terminal device, where the heartbeat message includes a service identifier, and the service identifier is used to indicate the first service running in the foreground of the second terminal device;
  • the synchronization module 1203 is configured to perform data synchronization with the second terminal device according to the service identifier and the service running in the foreground of the first terminal device in combination with the adjusted heartbeat node.
  • the synchronization module 1203 is specifically configured to determine whether the service running in the foreground of the first terminal device is consistent with the service running in the foreground of the second terminal device according to the service identifier; if the second service running in the foreground of the first terminal device is inconsistent with the first service running in the foreground of the second terminal device, then at the next time corresponding to the adjusted heartbeat node, send a service message to the second terminal device, and the service message is used for data synchronization of the second service between the first terminal device and the second terminal device.
  • the synchronization module 1203 is also specifically configured to register a non-real-time collaborative task for the second service running in the foreground of the first terminal device; when the next time corresponding to the adjusted heartbeat node is reached, trigger the non-real-time collaborative task and send the service message to the second terminal device.
  • the synchronization module 1203 is also specifically configured to determine whether the service running in the foreground of the first terminal device is consistent with the service running in the foreground of the second terminal device according to the service identifier; if the first service running in the foreground of the first terminal device is consistent with the first service running in the foreground of the second terminal device, then send the service message to the second terminal device, and the service message is used for data synchronization of the first service between the first terminal device and the second terminal device.
  • the device also includes:
  • the extracting module 1204 is configured to extract the service identification bits of the heartbeat message to obtain the service identification corresponding to the first service.
  • the adjustment module 1201 is specifically configured to receive the heartbeat node and the heartbeat period sent by the second terminal device; according to the preset heartbeat coordination formula, combine the heartbeat node and the heartbeat period sent by the second terminal device, and the heartbeat node and the heartbeat period of the first terminal device to perform calculations to obtain the adjusted heartbeat node.
  • FIG. 13 is a structural block diagram of another service collaboration device provided by the embodiment of the present application. For convenience of description, only the parts related to the embodiment of the present application are shown.
  • the device includes:
  • An adjustment module 1301, configured to adjust the time corresponding to the heartbeat node of the first terminal device and the heartbeat node of the second terminal device respectively, to obtain adjusted heartbeat nodes;
  • a sending module 1302 configured to send a heartbeat message to the first terminal device at a time corresponding to the adjusted heartbeat node, where the heartbeat message includes a service identifier, and the service identifier is used to indicate the first service running in the foreground of the second terminal device;
  • the synchronization module 1303 is configured to perform data synchronization with the first terminal device according to the service message sent by the first terminal device.
  • the sending module 1302 is specifically configured to determine the service identifier corresponding to the service running in the foreground of the second terminal device; generate the heartbeat message according to the service identifier; and send the heartbeat message to the first terminal device.
  • the sending module 1302 is further specifically configured to determine that the first service is running in the foreground of the second terminal device according to the hand-raising action triggered by the first service; and obtain a service identifier corresponding to the first service.
  • the synchronization module 1303 is specifically configured to receive a service message sent by the first terminal device, and the service message is used to perform data synchronization on the second service between the first terminal device and the second terminal device; perform data synchronization with the first terminal device on the second service according to the service message.
  • the adjustment module 1301 is specifically configured to send the heartbeat node and the heartbeat cycle of the second terminal device to the first terminal device; receive the absolute time sent by the first terminal device, and synchronize the absolute time with the first terminal device, where the absolute time represents the boot time; receive the calculated optimal heartbeat cycle sent by the first terminal device; and obtain the adjusted heartbeat node according to the optimal heartbeat cycle and the synchronized absolute time.
  • a terminal device can obtain the service status of each service of other terminal devices according to the received heartbeat message. If the service running in the foreground of other terminal devices is the same as the service running in the foreground of the terminal device, the terminal device can cooperate with other terminal devices in real time to complete data synchronization. If the service running in the foreground of other terminal devices is different from the service currently running in the foreground of the terminal device, the terminal device can delay the collaborative operation with other terminal devices, and use the wake-up time period of other terminal devices to complete data synchronization with other terminal devices, which can reduce the number of times each terminal device is woken up, thereby reducing the power consumption of other terminal devices.
  • FIG. 14 is a schematic structural diagram of a terminal device provided in an embodiment of the present application.
  • the terminal device may include a processor 1410, an external memory interface 1420, an internal memory 1421, a universal serial bus (universal serial bus, USB) interface 1430, a charging management module 1440, a power management module 1441, a battery 1442, an antenna 1, an antenna 2, a mobile communication module 1450, a wireless communication module 1460, an audio module 1470, a speaker 1470A, a receiver 1470B, a microphone 1470C, Earphone interface 1470D, sensor module 1480, button 1490, motor 1491, indicator 1492, camera 1493, display screen 1494, and subscriber identification module (subscriber identification module, SIM) card interface 1495, etc.
  • a processor 1410 an external memory interface 1420, an internal memory 1421, a universal serial bus (universal serial bus, USB) interface 1430, a charging management module 1440, a power management module 1441, a battery 1442, an antenna 1, an antenna 2, a mobile communication module 1450, a wireless communication module 1460, an audio module 1470,
  • the sensor module 1480 may include a pressure sensor 1480A, a gyroscope sensor 1480B, an air pressure sensor 1480C, a magnetic sensor 1480D, an acceleration sensor 1480E, a distance sensor 1480F, a proximity light sensor 1480G, a fingerprint sensor 1480H, a temperature sensor 1480J, a touch sensor 1480K, an ambient light sensor 1480L, a bone conduction sensor 1480M, and the like.
  • the structure shown in the embodiment of the present invention does not constitute a specific limitation on the terminal device.
  • the terminal device may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components.
  • the illustrated components can be realized in hardware, software or a combination of software and hardware.
  • the processor 1410 may include one or more processing units, for example: the processor 1410 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural network processor). ural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • the controller may be the nerve center and command center of the terminal device.
  • the controller can be based on the instruction opcode and timing information No., generate operation control signals, and complete the control of fetching instructions and executing instructions.
  • a memory may also be provided in the processor 1410 for storing instructions and data.
  • the memory in processor 1410 is a cache memory.
  • the memory may hold instructions or data that the processor 1410 has just used or recycled. If the processor 1410 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 1410 is reduced, thus improving the efficiency of the system.
  • processor 1410 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver/transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI) ), a general-purpose input/output (general-purpose input/output, GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous receiver/transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • the I2C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a serial clock line (derail clock line, SCL).
  • processor 1410 may include multiple sets of I2C buses.
  • the processor 1410 may be respectively coupled to the touch sensor 1480K, the charger, the flashlight, the camera 1493 and the like through different I2C bus interfaces.
  • the processor 1410 may be coupled to the touch sensor 1480K through the I2C interface, so that the processor 1410 and the touch sensor 1480K communicate through the I2C bus interface to realize the touch function of the terminal device.
  • the I2S interface can be used for audio communication.
  • processor 1410 may include multiple sets of I2S buses.
  • the processor 1410 may be coupled to the audio module 1470 through an I2S bus to implement communication between the processor 1410 and the audio module 1470 .
  • the audio module 1470 can transmit audio signals to the wireless communication module 1460 through the I2S interface, so as to realize the function of answering calls through the Bluetooth headset.
  • the PCM interface can also be used for audio communication, sampling, quantizing and encoding the analog signal.
  • the audio module 1470 and the wireless communication module 1460 can be coupled through a PCM bus interface.
  • the audio module 1470 can also transmit audio signals to the wireless communication module 1460 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • a UART interface is generally used to connect the processor 1410 and the wireless communication module 1460 .
  • the processor 1410 communicates with the Bluetooth module in the wireless communication module 1460 through the UART interface to realize the Bluetooth function.
  • the audio module 1470 can transmit audio signals to the wireless communication module 1460 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
  • the MIPI interface can be used to connect the processor 1410 with the display screen 1494, the camera 1493 and other peripheral devices.
  • MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI), etc.
  • the processor 1410 communicates with the camera 1493 through a CSI interface to implement a shooting function of the terminal device.
  • the processor 1410 communicates with the display screen 1494 through the DSI interface to realize the display function of the terminal device.
  • the GPIO interface can be configured by software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can be used to connect the processor 1410 with the camera 1493 , the display screen 1494 , the wireless communication module 1460 , the audio module 1470 , the sensor module 1480 and so on.
  • the GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 1430 is an interface conforming to the USB standard specification, specifically, it may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 1430 can be used to connect the charger to charge the terminal equipment, and can also be used for the terminal equipment Transfer data to and from peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other terminal devices, such as AR devices.
  • the interface connection relationship between the modules shown in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation on the terminal device.
  • the terminal device may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
  • the charging management module 1440 is used for receiving charging input from the charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 1440 can receive charging input from a wired charger through the USB interface 1430 .
  • the charging management module 1440 may receive wireless charging input through a wireless charging coil of the terminal device. While the charging management module 1440 is charging the battery 1442 , it can also provide power for the terminal device through the power management module 1441 .
  • the power management module 1441 is used for connecting the battery 1442 , the charging management module 1440 and the processor 1410 .
  • the power management module 1441 receives the input of the battery 1442 and/or the charging management module 1440, and supplies power for the processor 1410, the internal memory 1421, the external memory, the display screen 1494, the camera 1493, and the wireless communication module 1460, etc.
  • the power management module 1441 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 1441 can also be set in the processor 1410 .
  • the power management module 1441 and the charging management module 1440 may also be set in the same device.
  • the wireless communication function of the terminal device can be realized by the antenna 1, the antenna 2, the mobile communication module 1450, the wireless communication module 1460, the modem processor and the baseband processor.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in an end device can be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 1450 can provide wireless communication solutions including 2G/3G/4G/5G applied on terminal equipment.
  • the mobile communication module 1450 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
  • the mobile communication module 1450 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
  • the mobile communication module 1450 can also amplify the signal modulated by the modem processor, convert it into electromagnetic wave and radiate it through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 1450 may be set in the processor 1410 .
  • at least part of the functional modules of the mobile communication module 1450 and at least part of the modules of the processor 1410 may be set in the same device.
  • a modem processor may include a modulator and a demodulator.
  • the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is passed to the application processor after being processed by the baseband processor.
  • the application processor outputs sound signals through audio equipment (not limited to speaker 1470A, receiver 1470B, etc.), or displays images or videos through display screen 1494 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent of the processor 1410, and be set in the same device as the mobile communication module 1450 or other functional modules.
  • the wireless communication module 1460 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), short-range wireless communication technology (near field com communication, NFC), infrared technology (infrared, IR) and other wireless communication solution.
  • the wireless communication module 1460 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 1460 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 1410 .
  • the wireless communication module 1460 can also receive the signal to be sent from the processor 1410 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the antenna 1 of the terminal device is coupled to the mobile communication module 1450, and the antenna 2 is coupled to the wireless communication module 1460, so that the terminal device 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 (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division multiple access) vision code division multiple access, TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc.
  • GSM global system for mobile communications
  • GPRS general packet radio service
  • code division multiple access code division multiple access
  • CDMA wideband code division multiple access
  • WCDMA wideband code division multiple access
  • time division code division multiple access time-division multiple access
  • LTE long term evolution
  • BT GNSS
  • WLAN NFC
  • the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation) ation systems, SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • Beidou satellite navigation system beidou navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation system
  • the terminal device realizes the display function through the GPU, the display screen 1494, and the application processor.
  • the GPU is a microprocessor for image processing, connected to the display screen 1494 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 1410 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 1494 is used to display images, videos and the like.
  • Display 1494 includes a display panel.
  • the display panel can be liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active-matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting Diodes (quantum dot light emitting diodes, QLED), etc.
  • the terminal device may include 1 or N display screens 1494, where N is a positive integer greater than 1.
  • the terminal device can realize the shooting function through the ISP, the camera 1493, the video codec, the GPU, the display screen 1494, and the application processor.
  • the ISP is used to process the data fed back by the camera 1493 .
  • the light is transmitted to the photosensitive element of the camera through the lens, and the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin color.
  • ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be located in the camera 1493.
  • Camera 1493 is used to capture still images or video.
  • the object generates an optical image through the lens and projects it to the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other image signals.
  • the terminal device may include 1 or N cameras 1493, where N is a positive integer greater than 1.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the terminal equipment selects the frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
  • Video codecs are used to compress or decompress digital video.
  • An end device can support one or more video codecs.
  • the terminal device can play or record video in various encoding formats, such as: moving picture expert group (moving picture experts group, MPEG)1, MPEG2, MPEG3, MPEG4, etc.
  • the NPU is a neural-network (NN) computing processor.
  • NPU neural-network
  • Applications such as intelligent cognition of terminal equipment can be realized through NPU, such as: image recognition, face recognition, speech recognition, text understanding, etc.
  • the external memory interface 1420 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal device.
  • the external memory card communicates with the processor 1410 through the external memory interface 1420 to implement a data storage function. Such as saving music, video and other files in the external memory card.
  • the internal memory 1421 may be used to store computer-executable program codes including instructions.
  • the processor 1410 executes various functional applications and data processing of the terminal device by executing instructions stored in the internal memory 1421 .
  • the internal memory 1421 may include an area for storing programs and an area for storing data.
  • the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like.
  • the storage data area can store data (such as audio data, phone book, etc.) created during the use of the terminal device.
  • the internal memory 1421 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
  • the terminal device may implement an audio function through an audio module 1470, a speaker 1470A, a receiver 1470B, a microphone 1470C, an earphone interface 1470D, and an application processor. Such as music playback, recording, etc.
  • the audio module 1470 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal.
  • the audio module 1470 may also be used to encode and decode audio signals.
  • the audio module 1470 may be set in the processor 1410 , or some functional modules of the audio module 1470 may be set in the processor 1410 .
  • Loudspeaker 1470A also called “horn" is used to convert audio electrical signals into sound signals.
  • the terminal device can listen to music through speaker 1470A, or listen to hands-free calls.
  • Receiver 1470B also called “earpiece” is used to convert audio electrical signals into audio signals.
  • the terminal device answers a phone call or voice information, it can listen to the voice by bringing the receiver 1470B close to the human ear.
  • Microphone 1470C also known as “microphone” or “microphone” is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can put his mouth close to the microphone 1470C to make a sound, and input the sound signal to the microphone 1470C.
  • the terminal device may be provided with at least one microphone 1470C. In other embodiments, the terminal device may be provided with two microphones 1470C, which may also implement a noise reduction function in addition to collecting sound signals. In some other embodiments, the terminal device can also be equipped with three, four or more microphones 1470C to realize sound signal collection, noise reduction, identify sound sources, and realize directional recording functions, etc.
  • the earphone interface 1470D is used to connect wired earphones.
  • the earphone interface 1470D may be a USB interface 1430, or a 3.5mm open mobile terminal platform (open mobile terminal platform, OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the pressure sensor 1480A is used to sense the pressure signal and convert the pressure signal into an electrical signal.
  • pressure sensor 1480A may be located on display screen 1494 .
  • pressure sensors 1480A such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors.
  • a capacitive pressure sensor may be comprised of at least two parallel plates with conductive material.
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example: when there is When the touch operation whose touch operation intensity is less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation whose intensity is greater than or equal to the first pressure threshold acts on the icon of the short message application, the instruction of creating a new short message is executed.
  • the gyroscope sensor 1480B may be used to determine the motion posture of the terminal device.
  • the angular velocity of the terminal device around three axes ie, x, y and z axes
  • the gyro sensor 1480B can be used for image stabilization.
  • the gyro sensor 1480B detects the shake angle of the terminal device, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shake of the terminal device through reverse movement to achieve anti-shake.
  • the gyro sensor 1480B can also be used for navigation and somatosensory game scenes.
  • the air pressure sensor 1480C is used to measure air pressure. In some embodiments, the terminal device calculates the altitude based on the air pressure value measured by the air pressure sensor 1480C to assist positioning and navigation.
  • the magnetic sensor 1480D includes a Hall sensor.
  • the terminal device can use the magnetic sensor 1480D to detect the opening and closing of the flip leather case.
  • the terminal device when the terminal device is a clamshell machine, the terminal device can detect the opening and closing of the clamshell according to the magnetic sensor 1480D.
  • features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 1480E can detect the acceleration of the terminal device in various directions (generally three axes). When the terminal device is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the terminal device, and it can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
  • the end device can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the terminal device may use the distance sensor 1480F for distance measurement to achieve fast focusing.
  • Proximity light sensor 1480G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
  • the light emitting diodes may be infrared light emitting diodes.
  • the terminal device emits infrared light through the light-emitting diode. End devices use photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the terminal device. When insufficient reflected light is detected, the terminal device may determine that there is no object near the terminal device.
  • the terminal device can use the proximity light sensor 1480G to detect that the user holds the terminal device close to the ear to make a call, so as to automatically turn off the screen to save power.
  • the proximity light sensor 1480G can also be used in leather case mode, automatic unlock and lock screen in pocket mode.
  • the ambient light sensor 1480L is used for sensing ambient light brightness.
  • the terminal device can adaptively adjust the brightness of the display screen 1494 according to the perceived ambient light brightness.
  • the ambient light sensor 1480L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 1480L can also cooperate with the proximity light sensor 1480G to detect whether the terminal device is in the pocket to prevent accidental touch.
  • the fingerprint sensor 1480H is used to collect fingerprints.
  • the terminal device can use the collected fingerprint characteristics to unlock the fingerprint, access the application lock, take a photo with the fingerprint, answer the incoming call with the fingerprint, etc.
  • the temperature sensor 1480J is used to detect temperature.
  • the terminal device uses the temperature detected by the temperature sensor 1480J to implement a temperature processing strategy. For example, when the temperature reported by the temperature sensor 1480J exceeds the threshold, the terminal device may reduce the performance of a processor located near the temperature sensor 1480J, so as to reduce power consumption and implement thermal protection.
  • the terminal device when the temperature is lower than another threshold, the terminal device heats the battery 1442 to avoid abnormal shutdown of the terminal device due to low temperature.
  • the terminal device boosts the output voltage of the battery 1442 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 1480K also known as "touch panel”.
  • the touch sensor 1480K can be arranged on the display screen 1494, and the touch sensor 1480K and the display screen 1494 form a touch screen, also called “touch screen”.
  • the touch sensor 1480K is used to detect a touch operation 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 touch operations can be provided through the display screen 1494 .
  • the touch sensor 1480K may also be arranged on the surface of the terminal device, which is different from the position where the display screen 1494 is located.
  • the bone conduction sensor 1480M can acquire vibration signals. In some embodiments, the bone conduction sensor 1480M can acquire the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 1480M can also contact the human pulse and receive the blood pressure beating signal. In some embodiments, the bone conduction sensor 1480M can also be disposed in the earphone, combined into a bone conduction earphone.
  • the audio module 1470 can analyze the voice signal based on the vibration signal of the vibrating bone mass of the vocal part acquired by the bone conduction sensor 1480M, so as to realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 1480M, so as to realize the heart rate detection function.
  • the keys 1490 include a power key, a volume key, and the like. Key 1490 may be a mechanical key. It can also be a touch button.
  • the terminal device can receive key input and generate key signal input related to user settings and function control of the terminal device.
  • Motor 1491 can generate a vibrating reminder.
  • the motor 1491 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
  • touch operations applied to different applications may correspond to different vibration feedback effects.
  • the motor 1491 can also correspond to different vibration feedback effects for touch operations on different areas of the display screen 1494 .
  • Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 1492 can be an indicator light, which can be used to indicate the charging status, the change of the battery capacity, and can also be used to indicate messages, missed calls, notifications, etc.
  • SIM card interface 1495 is used for connecting SIM card.
  • the SIM card can be inserted into the SIM card interface 1495 or pulled out from the SIM card interface 1495 to achieve contact and separation with the terminal device.
  • the terminal device can support 1 or N SIM card interfaces, and N is a positive integer greater than 1.
  • SIM card interface 1495 can support Nano SIM card, Micro SIM card, SIM card, etc.
  • the same SIM card interface 1495 can insert multiple cards at the same time. The types of the multiple cards may be the same or different.
  • the SIM card interface 1495 is also compatible with different types of SIM cards.
  • the SIM card interface 1495 is also compatible with external memory cards.
  • the terminal device interacts with the network through the SIM card to realize functions such as calling and data communication.
  • the terminal device adopts eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the terminal device and cannot be separated from the terminal device.
  • the software system of the terminal device may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture.
  • the Android system with layered architecture is taken as an example to illustrate the software structure of the terminal device.
  • FIG. 15 is a block diagram of a software structure of a terminal device according to an embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces.
  • the Android system is divided into four layers, which are respectively the application program layer, the application program framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer from top to bottom.
  • the application layer can consist of a series of application packages.
  • the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer can include window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
  • a window manager is used to manage window programs.
  • the window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • Content providers are used to store and retrieve data and make it accessible to applications.
  • Said data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebook, etc.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on.
  • the view system can be used to build applications.
  • a display interface can consist of one or more views.
  • a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
  • the telephony manager is used to provide the communication function of the terminal equipment. For example, the management of call status (including connected, hung up, etc.).
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify the download completion, message reminder, etc.
  • the notification manager can also be a notification that appears on the top status bar of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window.
  • prompting text information in the status bar issuing a prompt sound, vibrating the electronic device, and flashing the indicator light, etc.
  • the Android Runtime includes core library and virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function function that the java language needs to call, and the other part is the core library of Android.
  • the application layer and the application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application program layer and the application program framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • a system library can include multiple function modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of various commonly used audio and video formats, as well as still image files, etc.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing, etc.
  • 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer includes at least a display driver, a camera driver, an audio driver, and a sensor driver.
  • a corresponding hardware interrupt is sent to the kernel layer.
  • the kernel layer processes touch operations into original input events (including touch coordinates, time stamps of touch operations, and other information). Raw input events are stored at the kernel level.
  • the application framework layer obtains the original input event from the kernel layer, and identifies the control corresponding to the input event. Taking the touch operation as a touch-click operation, and the control corresponding to the click operation is the control of the camera application icon as an example, the camera application calls the interface of the application framework layer, starts the camera application, and then starts the camera driver by calling the kernel layer, and captures still images or videos through the camera 1493.
  • the disclosed devices and methods may be implemented in other ways.
  • the above-described system embodiments are only illustrative.
  • the division of modules or units is only a logical function division.
  • multiple units or components may be combined or integrated into another system, or some features may be ignored or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
  • the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, all or part of the processes in the methods of the above-mentioned embodiments in the present application can be completed by instructing related hardware through a computer program.
  • the computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, the steps of the above-mentioned method embodiments can be realized.
  • the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form.
  • the computer-readable medium may at least include: any entity or device capable of carrying computer program codes to a terminal device, a recording medium, a computer memory, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), an electrical carrier signal, a telecommunication signal, and a software distribution medium.
  • ROM Read-only memory
  • RAM Random Access Memory
  • an electrical carrier signal a telecommunication signal
  • software distribution medium Such as U disk, mobile hard disk, magnetic disk or optical disk, etc.
  • computer readable media may not be electrical carrier signals and telecommunication signals under legislation and patent practice.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

La présente demande est applicable au domaine technique des terminaux et concerne un procédé de collaboration de service, un dispositif électronique, un support de stockage lisible et un système de puce. Le procédé comprend : l'ajustement des moments correspondant à un nœud de battement de cœur d'un premier dispositif terminal et à un nœud de battement de cœur d'un second dispositif terminal, respectivement ; la réception d'un paquet de battement de cœur envoyé par le second dispositif terminal, le paquet de battement de cœur comprenant un identifiant de service, et l'identifiant de service étant utilisé pour indiquer un premier service s'exécutant au premier plan du second dispositif terminal ; et en fonction de l'identifiant de service et d'un service s'exécutant au premier plan du premier dispositif terminal et en combinaison avec les nœuds de battement de cœur ajustés, la réalisation d'une synchronisation de données avec le second dispositif terminal. Le premier dispositif terminal peut déterminer, selon le paquet de battement de cœur reçu, un premier service s'exécutant au premier plan du second dispositif terminal, effectuer une opération collaborative avec le second dispositif terminal en temps réel ou avec un délai, et réaliser une synchronisation de données avec d'autres dispositifs terminaux en utilisant la période de temps de réveil du second dispositif terminal, de manière à pouvoir réduire le nombre de réveils de chaque dispositif terminal et à pouvoir réduire la consommation d'énergie du second dispositif terminal.
PCT/CN2023/072365 2022-01-22 2023-01-16 Procédé de collaboration de service, dispositif électronique, support de stockage lisible et système de puce WO2023138533A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210075719.6 2022-01-22
CN202210075719.6A CN116528337A (zh) 2022-01-22 2022-01-22 业务协同方法、电子设备、可读存储介质和芯片系统

Publications (1)

Publication Number Publication Date
WO2023138533A1 true WO2023138533A1 (fr) 2023-07-27

Family

ID=87347842

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/072365 WO2023138533A1 (fr) 2022-01-22 2023-01-16 Procédé de collaboration de service, dispositif électronique, support de stockage lisible et système de puce

Country Status (2)

Country Link
CN (1) CN116528337A (fr)
WO (1) WO2023138533A1 (fr)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102202073A (zh) * 2010-03-24 2011-09-28 杭州华三通信技术有限公司 一种分布式系统及其数据同步方法
US20130031565A1 (en) * 2011-07-28 2013-01-31 Sap Ag Managing consistent interfaces for a product design version hierarchy business object across heterogeneous systems
CN104243527A (zh) * 2013-06-20 2014-12-24 华为技术有限公司 数据同步方法、数据同步装置及分布式系统
CN105991720A (zh) * 2015-02-13 2016-10-05 阿里巴巴集团控股有限公司 配置变更方法及设备
CN106157129A (zh) * 2015-04-17 2016-11-23 阿里巴巴集团控股有限公司 一种实现分布式系统跨时域一致性方法及装置
CN109408224A (zh) * 2018-09-17 2019-03-01 华为技术有限公司 数据同步方法、分布式系统与应用节点
CN109861922A (zh) * 2019-02-21 2019-06-07 北京百度网讯科技有限公司 用于控制流量的方法和装置
CN112417052A (zh) * 2020-12-03 2021-02-26 腾讯科技(深圳)有限公司 区块链网络中的数据同步方法、装置、设备及存储介质
CN112532753A (zh) * 2021-02-09 2021-03-19 腾讯科技(深圳)有限公司 区块链系统的数据同步方法、装置、介质及电子设备
US11159455B1 (en) * 2018-12-28 2021-10-26 Innovium, Inc. Reducing power consumption in an electronic device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102202073A (zh) * 2010-03-24 2011-09-28 杭州华三通信技术有限公司 一种分布式系统及其数据同步方法
US20130031565A1 (en) * 2011-07-28 2013-01-31 Sap Ag Managing consistent interfaces for a product design version hierarchy business object across heterogeneous systems
CN104243527A (zh) * 2013-06-20 2014-12-24 华为技术有限公司 数据同步方法、数据同步装置及分布式系统
CN105991720A (zh) * 2015-02-13 2016-10-05 阿里巴巴集团控股有限公司 配置变更方法及设备
CN106157129A (zh) * 2015-04-17 2016-11-23 阿里巴巴集团控股有限公司 一种实现分布式系统跨时域一致性方法及装置
CN109408224A (zh) * 2018-09-17 2019-03-01 华为技术有限公司 数据同步方法、分布式系统与应用节点
US11159455B1 (en) * 2018-12-28 2021-10-26 Innovium, Inc. Reducing power consumption in an electronic device
CN109861922A (zh) * 2019-02-21 2019-06-07 北京百度网讯科技有限公司 用于控制流量的方法和装置
CN112417052A (zh) * 2020-12-03 2021-02-26 腾讯科技(深圳)有限公司 区块链网络中的数据同步方法、装置、设备及存储介质
CN112532753A (zh) * 2021-02-09 2021-03-19 腾讯科技(深圳)有限公司 区块链系统的数据同步方法、装置、介质及电子设备

Also Published As

Publication number Publication date
CN116528337A (zh) 2023-08-01

Similar Documents

Publication Publication Date Title
CN110191442B (zh) 一种蓝牙连接方法、设备及系统
WO2020259452A1 (fr) Procédé d'affichage plein écran pour terminal mobile et appareil
WO2022257977A1 (fr) Procédé de projection d'écran pour dispositif électronique, et dispositif électronique
WO2020143380A1 (fr) Procédé de transmission de données et dispositif électronique
WO2021185141A1 (fr) Procédé et système d'établissement de liaison sensible au wi-fi, dispositif électronique et support de stockage
WO2020077512A1 (fr) Procédé de communication vocale, dispositif électronique et système
US20230189366A1 (en) Bluetooth Communication Method, Terminal Device, and Computer-Readable Storage Medium
CN112492193B (zh) 一种回调流的处理方法及设备
WO2021043046A1 (fr) Procédé et dispositif de gestion et de commande de ressources
WO2021104104A1 (fr) Procédé de traitement d'affichage écoénergétique, et appareil
WO2020056684A1 (fr) Procédé et dispositif utilisant de multiples écouteurs tws connectés en mode relais pour réaliser une interprétation automatique
CN112181616B (zh) 任务处理方法及相关装置
WO2023005282A9 (fr) Procédé et appareil de poussée de message
EP4033341A1 (fr) Procédé d'affichage permanent et dispositif mobile
WO2022262492A1 (fr) Procédé et appareil de téléchargement de données, et dispositif terminal
WO2020134868A1 (fr) Procédé d'établissement de connexion, et appareil terminal
US20240098354A1 (en) Connection establishment method and electronic device
WO2022252972A1 (fr) Procédé d'affichage de fenêtre et dispositif électronique
EP4280596A1 (fr) Procédé d'appel vidéo et dispositif associé
WO2023138533A1 (fr) Procédé de collaboration de service, dispositif électronique, support de stockage lisible et système de puce
WO2024093614A1 (fr) Procédé et système d'entrée de dispositif, dispositif électronique et support de stockage
WO2023160205A1 (fr) Procédé de commande de processus, dispositif électronique et support de stockage lisible
WO2024067037A1 (fr) Procédé et système d'appel de service, dispositif électronique
WO2023020420A1 (fr) Procédé d'affichage de volume, dispositif électronique et support de stockage
WO2024001773A1 (fr) Procédé de migration de données, dispositif électronique et système de mise en réseau

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23742848

Country of ref document: EP

Kind code of ref document: A1