WO2024051718A1 - Procédé de synchronisation de données, et appareil et système associés - Google Patents

Procédé de synchronisation de données, et appareil et système associés Download PDF

Info

Publication number
WO2024051718A1
WO2024051718A1 PCT/CN2023/117140 CN2023117140W WO2024051718A1 WO 2024051718 A1 WO2024051718 A1 WO 2024051718A1 CN 2023117140 W CN2023117140 W CN 2023117140W WO 2024051718 A1 WO2024051718 A1 WO 2024051718A1
Authority
WO
WIPO (PCT)
Prior art keywords
water level
level information
central
data
data synchronization
Prior art date
Application number
PCT/CN2023/117140
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 WO2024051718A1 publication Critical patent/WO2024051718A1/fr

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • 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

Definitions

  • the present application relates to the field of terminals, and in particular, to a data synchronization method and related devices and systems.
  • this kind of data synchronization between terminal devices is mainly achieved through end-to-end synchronization.
  • the terminal device will wake up other terminal devices in the terminal set and establish connections with each other terminal device respectively for data synchronization.
  • a terminal collection usually contains multiple terminal devices. If the data of each terminal device changes, data synchronization is performed through the above end-to-end synchronization method, which may cause a large amount of power consumption loss.
  • This application provides a data synchronization method and related devices and systems, in order to reduce the power consumption caused by data synchronization between multiple devices.
  • this application provides a data synchronization method, which is applied to a communication system in which there are three or more terminal devices.
  • the method includes: when the data is updated, the first device in the communication system sends water level information to a central device in the communication system.
  • the water level information is used to indicate the update status of the data.
  • the central device is used to maintain the communication system. Water level information of each device; the second device in the communication system obtains the water level information from the central device when there is a need for data synchronization; the second device performs data synchronization based on the water level information.
  • the water level information is used to record the data update status of the terminal equipment.
  • the water level information of the data will be compared first, and then the increase or decrease of the data will be determined.
  • the water level information of each terminal device in the communication system can be synchronized to the central device, and other terminal devices do not need to be frequently awakened to synchronize the water level information.
  • the terminal device needs data synchronization, it can first exchange water level information with the central device and perform data synchronization based on the water level information. In this way, frequent awakening of multiple other terminal devices in the communication system due to data synchronization can be avoided, and the number of connections established between devices can be reduced, thereby reducing the power consumption of the communication system due to data synchronization.
  • the water level information includes first water level information corresponding to system function-related data of the first device, and the first water level information is used to indicate The update status of the system function-related data; and, the first device sends water level information to the central device when the data is updated, including: the first device sends the water level information to the central device when the system function-related data is updated. Next, send the first water level information to the central device.
  • the second device when there is a data synchronization requirement, obtains the water level information from the central device, including: when the second device detects the user's bright screen operation, determines whether the first There is a synchronization requirement for system function-related data of a device; the second device obtains the first water level information from the central device; the second device performs data synchronization based on the water level information, including: the second device Based on the first water level information, the system function related data is synchronized.
  • the system function-related data of the terminal device is the data required for the normal use of the terminal device, such as device name, configuration file, etc.
  • the terminal device begins to synchronize with the central device Water level information of these data, and data synchronization is performed based on the water level information. In this way, the normal operation of the terminal device can be ensured.
  • a first application is installed in the first device, and the water level information includes second water level information corresponding to data of the first application; And, the first device sends water level information to the central device when the data is updated, including: the first device sends the water level information to the central device when the data of the first application is updated. the second water level information.
  • the first application program is also installed in the second device; when there is a need for data synchronization, the second device obtains the water level information from the central device, including: the second When the first application is opened, the device determines that there is a data synchronization requirement for the first application; the second device obtains the second water level information from the central device; the second device Performing data synchronization based on the water level information includes: the second device performing data synchronization of the first application based on the second water level information.
  • the water level information of the data is synchronized to the central device.
  • data synchronization is triggered, the water level information of the data is obtained from the central device and corresponding
  • the terminal device is connected to the terminal device for data synchronization, so that it is not necessary to synchronize all the data every time the terminal device wakes up.
  • the user opens a specific application on the terminal device less frequently, so the frequency of data synchronization based on the application will also be smaller, which can further reduce the power consumption caused by data synchronization.
  • the second device performs data synchronization based on the water level information, including: the second device synchronizes data with the first device based on the water level information.
  • the device performs data synchronization.
  • the terminal device After obtaining the water level information from the central device, the terminal device can connect to the terminal device whose data indicated by the water level information is updated and perform data synchronization.
  • the updated data indicated by the water level information can also be stored in the central device.
  • the terminal device can also perform data synchronization with the central device based on the water level information.
  • the central device is a device in the communication system that meets preset conditions; the preset conditions include one or more of the following: being an active device , is a passive device but the remaining power exceeds the first preset threshold, the processing resources exceed the second preset threshold, the storage space exceeds the third preset threshold, the online time exceeds the fourth preset threshold, or the method of accessing the communication system It is one of the default methods.
  • the central device needs to be an active device or a device with sufficient power to meet the power consumption requirements generated by frequently receiving and sending water level information; the central device needs to be a device with fast processing speed and large storage space to meet the storage of water level information.
  • the central equipment needs to be able to exist in the communication system for a long time and be able to establish high-speed communication connections with other terminal equipment to provide fast and stable data synchronization services.
  • the central device can quickly, stably, and long-term provide water level information synchronization services for other terminal devices in the communication system.
  • the devices in the communication system that meet the above preset conditions are multiple devices, and the multiple devices are multiple candidate central devices.
  • the central device is selected from the multiple candidate central devices by the voting device. It is obtained that the voting device is a device in the communication system other than the plurality of candidate central devices.
  • each voting device determines the central device from multiple candidate central devices based on one or more of the following: network connection mode with each candidate central device, within a preset period The frequency of connections to each candidate central device or the amount of data synchronization required with each candidate central device.
  • the terminal device in the communication system determines that it meets the preset conditions, it recommends itself as a candidate central device; when there are multiple candidate central devices, other terminal devices in the communication system that do not meet the preset conditions can become voting devices and become candidates.
  • the basis for voting can be the network connection method between the voting equipment and the candidate central equipment, the frequency of connection with each candidate central equipment within a preset period, or the demand for data synchronization with each candidate central equipment; in this way, You can select the most suitable central device in the communication system, which can provide fast and stable water level information synchronization services for other terminal devices in the system.
  • the central device in the communication system includes a first central device and a second central device, and the first central device and the second central device synchronize their respective maintained data in real time. Water level information.
  • the third device in the communication system receives a query message from the fourth device, where the query message is used to query the central device of the communication system, so
  • the fourth device is a device newly added to the communication system; the third device sends a reply message to the fourth device, and the reply message indicates the central device.
  • a query message is first sent to any terminal device in the system to query whether There is a central device, and the terminal device that receives the query information will reply to it with the existence of the current central device and the information of the central device. If there is a central device, the new terminal device synchronizes data based on the central device; if there is no central device, the new terminal device determines whether it is suitable to become a central device based on whether its status meets the conditions.
  • each device in the communication system re-determines the central device of the communication system when the central device exits the communication system.
  • each terminal device in the system chooses whether to become a candidate central device according to its own situation, and finally determines a new central device.
  • this application provides a communication system, which includes a first device, a second device and a central device, wherein the first device is configured to send water level information to the central device when data is updated. , the water level information is used to indicate the update status of the data; the central device is used to maintain the water level information of each device in the communication system; the second device is used to obtain data from the central device when there is a need for data synchronization. The water level information is obtained and used for data synchronization based on the water level information.
  • the water level information includes first water level information corresponding to system function-related data of the first device, and the first water level information is used to indicate The update status of the system function-related data; and the first device is specifically configured to send the first water level information to the central device when the system function-related data is updated.
  • the second device is specifically configured to: when detecting the user's screen brightening operation, determine that there is a synchronization requirement for system function-related data of the first device, and obtain the first data from the central device. Water level information, and based on the first water level information, synchronizes the system function-related data of the first device.
  • a first application is installed in the first device, and the water level information includes second water level information corresponding to data of the first application; And, the first device is specifically configured to send the second water level information to the central device when the data of the first application program is updated.
  • the first application program is also installed in the second device; the second device is specifically configured to: when the first application program is opened, determine the existence of the first application program. For data synchronization requirements, obtain the second water level information from the central device, and perform data synchronization of the first application program based on the second water level information.
  • the second device is specifically configured to perform data synchronization with the first device based on the water level information.
  • the central device is a device in the communication system that meets preset conditions; the preset conditions include one or more of the following: being an active device , is a passive device but the remaining power exceeds the first preset threshold, the processing resources exceed the second preset threshold, the storage space exceeds the third preset threshold, the online time exceeds the fourth preset threshold, or the method of accessing the communication system It is one of the default methods.
  • the devices in the communication system that meet the above preset conditions are multiple devices, and the multiple devices are multiple candidate central devices.
  • the central device is selected from the multiple candidate central devices by the voting device. It is obtained that the voting device is a device in the communication system other than the plurality of candidate central devices.
  • the voting device is used to determine the central device from multiple candidate central devices based on one or more of the following: network connection mode with each candidate central device, preset The frequency of connection to each candidate central device or the demand for data synchronization with each candidate central device during the period.
  • the central device in the communication system includes a first central device and a second central device, and the first central device and the second central device synchronize their respective maintained data in real time. Water level information.
  • the communication system further includes a third device and a fourth device, the third device is configured to receive a query message from the fourth device, the query message is For querying the central device of the communication system, the fourth device is a device newly added to the communication system; the third device is also used to send a reply message to the fourth device, and the reply message indicates that the central equipment.
  • each device in the communication system is also configured to re-determine the central device of the communication system when the central device exits the communication system. .
  • this application provides a data synchronization method, which can be applied to the terminal device in the first aspect.
  • the method includes: when the data is updated, sending water level information to the central device.
  • the water level information Used to indicate the update status of the data, the central device is used to maintain the water level information of the first device; in the case of being awakened by the second device, based on the water level information Perform data synchronization with the second device.
  • the present application provides a data synchronization method, which can be applied to the terminal device in the first aspect.
  • the method includes: receiving water level information from the first device, the water level information being used to indicate the data the updated status; sending the water level information to the second device.
  • this application provides a data synchronization method, which can be applied to the terminal device in the first aspect.
  • the method includes: when there is a need for data synchronization, obtaining water level information from a central device, and the water level The information is used to indicate the update status of the data, the central device is used to maintain the water level information; the second device performs data synchronization based on the water level information.
  • the present application provides a terminal device that can implement the method executed by the first device in the above aspects, or can implement the method executed by the second device in the above aspects, or can implement the method executed by the central device in the above aspects.
  • the terminal device includes modules or units for implementing the above method. It should be understood that the units or modules included in the terminal device can be implemented in software and/or hardware.
  • the present application provides a terminal device, including a processor.
  • the processor can implement the method executed by the first device in the above aspects, or can implement the method executed by the second device in the above aspects, or can implement the method executed by the second device in the above aspects. Methods for realizing the execution of central equipment in the above aspects.
  • the terminal device may also include a memory for storing instructions and data.
  • the memory is coupled to the processor, and when the processor executes instructions stored in the memory, the methods described in the above aspects can be implemented.
  • the terminal device may also include a communication interface, which is used for the terminal device to communicate with other devices.
  • the communication interface may be a transceiver, a circuit, a bus, a module or other types of communication interfaces.
  • the present application provides a chip system that includes at least one processor for supporting functions involved in implementing the method performed by the first device in the above aspects, or that can implement the second method in the above aspects.
  • the functions involved in the methods performed by the device may realize the functions involved in the methods performed by the central device in the above aspects, such as receiving or processing the data and/or information involved in the above methods.
  • the chip system further includes a memory, the memory is used to store program instructions and data, and the memory is located within the processor or outside the processor.
  • the chip system can be composed of chips or include chips and other discrete devices.
  • the present application provides a computer-readable storage medium, including a computer program, which, when run on a computer, causes the computer to implement the method executed by the first device in the above aspects, or to implement the second method in the above aspects.
  • the present application provides a computer program product.
  • the computer program product includes: a computer program (which may also be called a code, or an instruction).
  • a computer program which may also be called a code, or an instruction.
  • the computer program When the computer program is run, it causes the computer to perform the above aspects.
  • Figure 1 is a schematic structural diagram of a terminal device provided by an embodiment of the present application.
  • Figure 2 is a schematic diagram of the software structure of the terminal device provided by the embodiment of the present application.
  • Figure 3 is a schematic diagram of the application scenario of the data synchronization method provided by the embodiment of the present application.
  • Figure 4 is a schematic diagram of a data synchronization method
  • Figure 5 is a schematic flow chart of the data synchronization method provided by the embodiment of the present application.
  • Figure 6 is a schematic diagram of the application scenario of the data synchronization method provided by the embodiment of the present application.
  • Figure 7 is a schematic flow chart for the terminal device to determine the central device in the embodiment of the present application.
  • Figure 8 is a schematic flow chart of a terminal device confirmed to be a candidate central device provided by an embodiment of the present application.
  • Figure 9 is a flow chart of data synchronization after the terminal device joins the terminal system in the embodiment of the present application.
  • Figure 10 is a schematic diagram of the internal interaction of the terminal device provided by the embodiment of the present application.
  • Figure 11 is a schematic block diagram of a data synchronization device provided by an embodiment of the present application.
  • predefinition can be realized by pre-saving corresponding codes, tables or other methods that can be used to indicate relevant information in the terminal device. This application does not limit its specific implementation method.
  • Save may refer to saving in one or more memories, and the one or more memories may be a separate setting, or may be integrated in an encoder, a decoder, or an electronic device.
  • the one or more memories may also be partially provided separately and partially integrated in a decoder, processor, or electronic device.
  • the type of memory can be any form of storage medium, and this application is not limited thereto.
  • Terminal set a terminal set consisting of three or more terminal devices.
  • the terminal devices in the terminal set can use one or more wireless communication technologies for wireless communication.
  • the wireless communication technologies used include but are not limited to: Bluetooth (BT) technology, wireless fidelity (WI-FI) technology, peer-to-peer (P2P) technology, near field communication (NFC) technology, ZigBee )technology.
  • the terminal devices in the terminal set can transmit data, signals, and information to each other through wired or wireless communication.
  • the information that can be transmitted to each other includes but is not limited to: text, documents, pictures, audio, video, and user operations. Instructions, configuration information of terminal equipment, etc.
  • Water level information Information used to indicate the update status of data in the terminal device.
  • the water level information can contain a timestamp for recording data changes. Each time the data changes, a timestamp will be recorded in the water level information. Through the water level information, the interval between the time when the data last changed and the current time can be obtained. When synchronizing data between terminal devices, the water level information can be used to compare the update time of data in the terminal devices to determine the change of data.
  • the first terminal device and the second terminal device perform data synchronization at the first moment.
  • the first data of the first terminal device is the same as the second data of the second terminal device, indicating the first water level information of the first data.
  • Both the record data and the second water level information indicating the second data are changed at the first time; if the first data is changed at the second time after the first time, the water level information used to indicate the first data is recorded at the first time.
  • a piece of data is changed at the second moment; at the third moment after the second moment, when the first device and the second device perform data synchronization, the data change time indicated by the first water level information and the second water level information can be compared.
  • the interval between the time when the first data is changed and the current time is less than the interval between the time when the second data is changed and the current time, then the second device updates the second data to make it the same as the first data.
  • the terminal equipment may also be called user equipment (UE), user unit, user station, mobile station, mobile station, mobile device, user terminal, terminal, wireless communication device, user agent or user device.
  • UE user equipment
  • FIG. 1 shows a schematic structural diagram of a terminal device 100.
  • the terminal device 100 can be any device with wireless transceiver function and data storage function, and can be a mobile phone, a tablet computer (pad), a computer with wireless transceiver function (such as a notebook computer, a handheld computer, etc.), a smart phone TVs, personal digital assistants (PDAs), smart printers, smart home appliances, handheld devices with wireless communication functions, computers or other processing equipment, vehicle-mounted terminals, wearable devices (smart watches, smart bracelets, smart glasses, etc. ), virtual reality (VR) terminal equipment, augmented reality (AR) terminal equipment, etc., the embodiments of this application are not limited to this.
  • VR virtual reality
  • AR augmented reality
  • the terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, and a battery. 142.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor (ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processing unit (NPU), etc.
  • application processor application processor, AP
  • modem processor graphics processing unit
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • baseband processor baseband processor
  • NPU neural network processing unit
  • different processing units can be independent devices or integrated in one or more processors.
  • the processor can generate operation control signals based on the instruction opcode and timing signals to complete the control of fetching and executing instructions.
  • the processor 110 may also be provided with a memory for storing instructions and data.
  • the memory in processor 110 may be a cache memory.
  • the memory may store instructions or data that have been used by the processor 110 or are used more frequently. If the processor 110 needs to use the instructions or data, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
  • processor 110 may include one or more interfaces. Interfaces may include integrated circuit (inter-integrated circuit, I2C) interface, integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, pulse code modulation (pulse code modulation, PCM) interface, universal asynchronous receiver and transmitter (universal asynchronous receiver/transmitter (UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and /or universal serial bus (USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • UART universal asynchronous receiver and transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the interface connection relationships between the modules illustrated in the embodiments of the present application are only schematic illustrations and do not constitute a structural limitation on the terminal device 100 .
  • the terminal device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 140 may receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive wireless charging input through the wireless charging coil of the terminal device 100 . While charging the battery 142, the charging management module 140 can also provide power to the terminal device through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, the wireless communication module 160, and the like.
  • the power management module 141 can also be used to monitor battery capacity, battery cycle times, battery health status (leakage, impedance) and other parameters.
  • the power management module 141 may also be provided in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the terminal device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in terminal device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example: Antenna 1 can be reused as a diversity antenna for a wireless LAN. In other embodiments, antennas may be used in conjunction with tuning switches.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied to the terminal device 100.
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves through the antenna 1 for radiation.
  • at least part of the functional modules of the mobile communication module 150 may be disposed in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • a modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the application processor outputs sound signals through audio devices (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194.
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent of the processor 110 and may be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide wireless local area networks (WLAN) (such as Wi-Fi network), Bluetooth, Bluetooth low energy (BLE), ultra-wideband (Ultra) that are applied on the terminal device 100. wide band, UWB), global satellite navigation system (GNSS), frequency modulation (FM), NFC technology, infrared technology (infrared, IR) and other wireless communication solutions.
  • WLAN wireless local area networks
  • BLE Bluetooth low energy
  • UWB wide band
  • GNSS global satellite navigation system
  • FM frequency modulation
  • NFC technology infrared technology
  • IR infrared technology
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation
  • the antenna 1 of the terminal device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the terminal device 100 can communicate with the network and other terminal devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (code division multiple access, CDMA), broadband code Wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi- zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the terminal device 100 can implement display functions through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is an image processing microprocessor and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • the display screen 194 is used to display images, videos, etc.
  • Display 194 includes a display panel.
  • Terminal device 100 may include one or more display screens 194.
  • the terminal device 100 can implement the shooting function through the ISP, camera 193, video codec, GPU, display screen 194, application processor, etc.
  • the ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, the light is transmitted to the camera sensor through the lens, the optical signal is converted into an electrical signal, and the camera sensor passes 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. In some embodiments, the ISP may be provided in the camera 193.
  • Camera 193 is used to capture still images or video.
  • the object passes through the lens to produce an optical image that is projected onto the photosensitive element.
  • the photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to convert it into a digital image signal.
  • ISP outputs digital image signals to DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other format image signals.
  • the terminal device 100 may include one or more cameras 193.
  • 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 device 100 selects a 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.
  • the terminal device 100 may support one or more video codecs. In this way, the terminal device 100 can play or record videos in multiple encoding formats, such as moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
  • MPEG moving picture experts group
  • MPEG2 MPEG2, MPEG3, MPEG4, etc.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement the data storage function. Such as saving music, videos, etc. files in external memory card.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the processor 110 executes instructions stored in the internal memory 121 to execute various functional applications and data processing of the terminal device 100 .
  • the internal memory 121 may include a program storage area and a data storage area. Among them, the stored program area can store an operating system, at least one application program required for a function (such as a sound playback function, an image playback function, etc.).
  • the storage data area can store data created during use of the terminal device 100 (such as audio data, address book, etc.).
  • the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
  • the terminal device 100 can use the audio module 170, such as the speaker 170A, the receiver 170B, the microphone 170C and the headphone interface 170D, and application processors to implement audio functions. For example, music playback, recording, etc.
  • the audio module 170 such as the speaker 170A, the receiver 170B, the microphone 170C and the headphone interface 170D, and application processors to implement audio functions. For example, music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
  • Speaker 170A also called “speaker” is used to convert audio electrical signals into sound signals.
  • the terminal device 100 can listen to music through the speaker 170A, or listen to hands-free calls.
  • Receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the terminal device 100 answers a call or a voice message, the voice can be heard by bringing the receiver 170B close to the human ear.
  • Microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak close to the microphone 170C with the human mouth and input the sound signal to the microphone 170C.
  • the terminal device 100 may be provided with at least one microphone 170C. In other embodiments, the terminal device 100 may be provided with two microphones 170C, which in addition to collecting sound signals, may also implement a noise reduction function. In other embodiments, the terminal device 100 can also be equipped with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions, etc.
  • the headphone interface 170D is used to connect wired headphones.
  • the headphone interface 170D may be a USB interface 130, or may be a 3.5mm 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 buttons 190 include a power button (also called a power button), a volume button, etc.
  • the button 190 may be a mechanical button or a touch button.
  • the terminal device 100 may receive key input and generate key signal input related to user settings and function control of the terminal device 100 .
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for vibration prompts for incoming calls and can also be used for touch vibration feedback.
  • touch operations for different applications can correspond to different vibration feedback effects.
  • the motor 191 can also respond to different vibration feedback effects for touch operations in different areas of the display screen 194 .
  • Different application scenarios such as time reminders, receiving information, alarm clocks, games, etc.
  • the touch vibration feedback effect can also be customized.
  • the indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, or may be used to indicate messages, missed calls, notifications, etc.
  • the SIM card interface 195 is used to connect a SIM card.
  • the SIM card can be connected to or separated from the terminal device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 .
  • the terminal device 100 may support one or more SIM card interfaces.
  • SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card, etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may be the same or different.
  • the SIM card interface 195 is also compatible with different types of SIM cards.
  • the SIM card interface 195 is also compatible with external memory cards.
  • the terminal device 100 interacts with the network through the SIM card to implement functions such as calls and data communications.
  • the terminal device 100 adopts eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the terminal device 100 and cannot be separated from the terminal device 100 .
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal device 100.
  • the terminal device 100 may include more or less components than shown in the figures, or combine some components, or split some components, or arrange different components.
  • the components illustrated may be implemented in hardware, software, or a combination of software and hardware.
  • Figure 2 is a schematic diagram of the software structure of a terminal device provided by an embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has clear roles and division of labor.
  • the layers communicate through software interfaces.
  • the system is divided into four layers. From top to bottom, they are the application layer, the application framework layer (which may be referred to as the framework layer), the system service layer (which may be referred to as the system layer), and the kernel layer.
  • the application layer can include a series of application packages. As shown in Figure 2, the application layer can include applications such as gallery, contacts, memos, text messages, maps, music, videos, calendars, etc.
  • the application framework layer provides application programming interface (API) and programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer can include a user interface (UI) framework, an application framework, an ability framework, etc.
  • UI user interface
  • the embodiments of this application do not limit this in any way.
  • the system service layer can include multiple functional modules. For example: data management services, distributed soft bus, etc.
  • data management services can be used for distributed data management, including: data storage, data synchronization, synchronization water level management, distributed clock, conflict resolution, etc.
  • Data management services include databases, which are used to save data.
  • the update status of data in the database can be characterized by water level information.
  • data of different applications can be stored in different data tables in the database and can be accessed through Characterized by different water level information.
  • Distributed soft buses can be used to automatically discover surrounding devices and connect these devices to form a network. Using distributed soft bus technology, these devices can be connected to the network based on different connection technologies, allowing devices to be interconnected more conveniently and efficiently.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer includes Bluetooth driver, Wi-Fi driver, display service (also called display driver), memory driver, audio driver, etc.
  • display driver also called display driver
  • audio driver etc.
  • the embodiments of this application do not impose any limitations on this.
  • Data synchronization is a method of data sharing between terminal devices, which can keep the data in different terminal devices consistent, so that users can obtain the same data on different devices.
  • Figure 3 is a schematic diagram of an application scenario of the data synchronization method provided by the embodiment of the present application.
  • the terminal set includes multiple terminal devices.
  • the plurality of terminal devices may include, for example, smartphones, tablet computers, smart TVs, computers, smart watches, etc.
  • Each terminal device has a wireless transceiver function and a data storage function.
  • the terminal devices can communicate through wireless connections to form a communication system.
  • a terminal device can send data to and receive data from other terminal devices in the terminal set.
  • the wireless connection may include, but is not limited to, Bluetooth, Wi-Fi, P2P, NFC, ZigBee, etc. This application includes but is not limited to these.
  • terminal devices in the terminal set can be connected through low-power wireless communication technology, such as using BLE keepalive. For example, terminal devices may periodically send heartbeat packets to each other to indicate that they are still in the terminal set.
  • data transmission connections can be established between terminal devices, such as using Wi-Fi, P2P and other technologies for data synchronization.
  • the terminal devices in the terminal set may also include other devices with wireless transceiver functions.
  • the number can be any number of three or more.
  • the terminal collection when the data stored in the terminal device changes, it will connect with other terminal devices and send its own water level information and its own changed data to other terminals.
  • the other terminals will use the water level information and data to Update its own corresponding data to achieve data consistency between terminal devices.
  • terminal devices in the terminal set can be connected through low-power wireless communication technology.
  • the terminal device can communicate through a low-power connection, send data packets to other terminal devices to indicate that data changes have occurred, and wake up the data transmission services of other terminal devices, and finally wake up All other terminal devices in the terminal set establish data transmission connections between them, for example, establish Wi-Fi connections, and then perform water level information exchange and data synchronization based on the data transmission connections.
  • Figure 4 is a schematic diagram of a data synchronization method. As shown in Figure 4, if the data in terminal device #1 changes, terminal device #1 can wake up terminal devices #2 to #5 in the terminal set and establish data transmission connections with terminal devices #2 to #5 respectively. , perform end-to-end data synchronization.
  • FIG. 4 shows the connections that each terminal device needs to establish with other terminal devices for end-to-end data synchronization. It can be seen that end-to-end data synchronization will frequently wake up the terminal device and establish communication connections, causing power consumption loss.
  • this application proposes a data synchronization method.
  • the data update of the terminal equipment in the terminal set causes the water level to be updated
  • the water level information of the terminal equipment is synchronized through the central equipment without immediately Data synchronization across the entire collection of terminals.
  • data synchronization is performed based on the water level information synchronized from the central device.
  • any terminal device in the terminal set updates data, it will not immediately wake up other terminal devices in the terminal set, but first synchronize the water level information with the central device. Therefore, the power consumption loss caused by frequently waking up all other terminal devices in the terminal set for each data update can be avoided.
  • other terminal devices can perform data synchronization based on the water level information synchronized from the central device, that is, data synchronization is performed based on demand. Therefore, a terminal device that needs data synchronization can wake up the central device and the terminal device that needs to be synchronized without waking up other terminal devices in the terminal set, reducing the number of device wake-ups and avoiding power consumption losses of other terminal devices. For terminal devices that have no need for data synchronization for the time being, they can still maintain their current status without being affected by data synchronization between other devices. Therefore, power consumption losses caused by unnecessary data synchronization can also be reduced.
  • FIG. 5 is a schematic flow chart of a data synchronization method provided by an embodiment of the present application. This method can be applied to a terminal collection, for example, can be applied to the terminal collection shown in FIG. 3 .
  • the terminal set includes three or more terminal devices.
  • different terminal devices will be given different names in the following, such as the first device, the second device and the central device. These names are only for convenience. Distinguishing between different terminal devices should not constitute any limitation.
  • the first device and the second device may be any type of terminal device, including but not limited to: mobile phones, tablets, smart watches, smart TVs, computers, etc.
  • the method shown in Figure 5 may include steps 501 to 505. Each step in the method 500 is described in detail below.
  • Step 501 The first device updates data.
  • the data here may include but is not limited to: data related to the application in the first device, such as contact names and mobile phone number data in the address book, photo data in the gallery, etc.; data related to the system functions of the first device, Such as device name data, Wi-Fi password data, profile data, etc.
  • the applications installed in the first device may include but are not limited to the address book and gallery listed above. This application does not limit the applications installed in the first device.
  • Step 502 The first device sends water level information to the central device, where the water level information is used to indicate the update status of the data.
  • the central device is a terminal device in the terminal set and is used to maintain water level information of each terminal device including the first device in the terminal set.
  • the central device can receive and store water level information from other terminal devices in the terminal set, and can also receive and store data indicated by the water level information.
  • the central device may be a terminal device pre-selected by each terminal device in the terminal set, or a pre-defined terminal device.
  • the number of central devices can be one or more. When there are multiple central devices, the multiple central devices can serve as backup for each other.
  • the first device sends water level information to the central device, which specifically includes: the first device wakes up the central device; the first device establishes a data transmission connection with the central device; and the first device sends water level information to the central device through the data transmission connection.
  • the first device sends a signal to the central device through BLE to wake up the Wi-Fi chip and data synchronization service of the central device.
  • the first device establishes a Wi-Fi connection with the central device and sends a signal to the central device through the Wi-Fi connection.
  • the central device sends water level information that indicates the updated status of the data.
  • the first device After updating the data, the first device only needs to establish a connection with the central device to synchronize the water level information, without having to wake up other terminal devices in the terminal set, establish a transmission connection, and synchronize the water level information, thereby reducing the time required to wake up the device and establish a connection. and the power consumption caused by synchronizing water level information.
  • Each terminal device in the terminal set stores data and corresponding water level information. Whenever the data of a certain terminal device is updated, the water level information indicating this update can be sent to the central device, and the central device The water level information of each terminal device in the terminal set can be maintained. Other terminal devices only need to connect to the central device to obtain water level information, and then they can obtain the data update status of each terminal device in the terminal collection.
  • Step 503 The second device determines that there is a data synchronization requirement.
  • One possible situation in which the second device determines that there is a data synchronization requirement is that the second device has a synchronization requirement for system function-related data.
  • the second device can determine whether there is a synchronization requirement for system function-related data based on whether the user needs to use the device.
  • system function-related data may specifically refer to data that affects the user's normal use of device functions, including but not limited to, device name, Wi-Fi password, configuration file (profile), etc.
  • the mobile phone can determine that there is no need for data synchronization.
  • the phone can light up the screen.
  • the mobile phone confirms that the user is about to use the mobile phone.
  • the screen-brightening operation may include, for example, but is not limited to, pressing the switch key, turning the phone to vertical orientation, tapping the screen, etc.
  • Another possible situation in which the second device determines that there is a data synchronization requirement is that the second device has a data synchronization requirement for the application program.
  • the second device can determine whether there is a data synchronization requirement for a certain application based on whether the user opens the application.
  • the second device is a mobile phone.
  • the mobile phone address book ie, an example of an application
  • the mobile phone determines that there is no synchronization requirement for the address book data.
  • the phone determines that the user needs to obtain the contact data in the address book and determines that there is a data synchronization requirement for the application.
  • the second device determines that there is a need for data synchronization is that the second device can display a button or operation interface for instructing data synchronization, and the user can issue an instruction for data synchronization through manual operation.
  • the second device based on the user This operation determines that the user has data synchronization needs.
  • Step 504 The second device obtains water level information from the central device.
  • step 504 may specifically include: the second device wakes up the central device, the second device establishes a connection with the central device, the second device sends a water level information synchronization request to the central device, and the central device receives the water level information synchronization sent by the second device. After the request, the corresponding water level information is sent to the second device.
  • the water level information may be sent by the first device to the central device.
  • the second device sends a data packet to the central device through BLE to wake up the Wi-Fi chip and data synchronization component of the central device, and establishes a Wi-Fi connection with the central device; the second device sends a data packet to the central device through Wi-Fi.
  • the device sends a water level information synchronization request, and the central device sends water level information to the second device through Wi-Fi.
  • the second device can also passively obtain water level information from the central device. For example, after detecting that the second device is online, the central device can proactively send water level information to the second device, so that the second device can determine whether data synchronization is required. In this case, step 504 may be performed before step 503.
  • Step 505 The second device performs data synchronization based on the water level information.
  • the second device When the second device obtains the water level information from the central device and determines that there is a need for data synchronization, it can perform data synchronization with the first device corresponding to the water level information.
  • the second device can wake up the first device, establish a data transmission connection with the first device, send a data synchronization request to the first device, and the first device sends the updated data to the second device,
  • the second device updates local data based on the data.
  • the second device can send a data packet to the first device through BLE, wake up the Wi-Fi chip and data synchronization component of the first device, the second device establishes a Wi-Fi connection with the first device, and communicates with the first device through Wi-Fi.
  • Send a data synchronization request to the first device the first device sends the updated data to the second device through Wi-Fi, and the second device updates local data based on the data.
  • each device in the terminal set when each device in the terminal set synchronizes the water level information to the central device, it can also synchronize the data corresponding to the water level information to the central device; after the second device obtains the water level information, it can also synchronize the water level information to the central device.
  • Send a data synchronization request to the central device the central device sends the data that the second device needs to synchronize to the second device, and the second device updates the local data based on the data.
  • the terminal set shown in Figure 6 includes smartphones, tablets, smart TVs, and computers. Among them, it is assumed that the computer is the central device. When there is no need for data synchronization, terminal devices are connected to each other through BLE.
  • the smartphone When the data of the smartphone (ie, an example of the first device) is updated, the smartphone can establish a Wi-Fi connection with the computer and send water level information to the computer through the Wi-Fi connection. The water level information is used to indicate the data in the smartphone. update status.
  • the smart TV ie, an example of the second device
  • the smart TV has a need for synchronization of the data
  • the smart TV can establish a Wi-Fi connection with the computer and send a water level synchronization request to the computer.
  • the computer After receiving the water level synchronization request, the computer sends a request to the smart TV.
  • the TV sends water level information. Based on the water level information, the smart TV determines that it needs to synchronize data with the smart phone, so it can wake up the smart phone, establish a Wi-Fi connection with the smart phone, and send a data synchronization request to the smart phone.
  • the smart TV After receiving the data synchronization request, the smart TV sends a request to the smart phone.
  • the TV sends data, and the smart TV updates local data based on the data.
  • the smart TV and tablet will not be woken up when the mobile phone synchronizes water level information with the computer, and the tablet will not be woken up when the smart TV synchronizes data.
  • Figure 6 is only an example, and this application does not limit the connection technology relied on to establish data transmission connections between devices, nor does it limit the number and form of the first device, the second device and the central device.
  • the first device sends the water level information to the central device without immediately initiating data synchronization within the terminal set. Therefore, the power consumption loss caused by frequently waking up all other terminal devices in the terminal set for each data update can be avoided.
  • the second device in the terminal set needs to perform data synchronization, it can first obtain the water level information from the central device, and then perform data synchronization after confirming that there is updated data. Therefore, when a terminal device in the terminal set needs data synchronization, it wakes up the central device and the terminal device that needs to be synchronized, and establishes a connection with them. It does not need to wake up other terminal devices in the terminal set and establish multiple connections, thereby reducing the cost of the device.
  • the number of wake-ups and the number of connection establishments can reduce power consumption.
  • terminal devices that have no need for data synchronization for the time being they can still maintain their current status without being affected by data synchronization between other devices. Therefore, power consumption losses caused by unnecessary data synchronization can also be reduced.
  • the terminal set may also include multiple central devices, and the multiple central devices may serve as backups for each other.
  • the multiple central devices can synchronize locally maintained water level information in real time. Whenever the water level information maintained by one of the central devices changes, the water level information is synchronized with each other, so that the two central devices have the same Water level information. In this way, all central equipment provided The water level information is consistent.
  • the water level information can be uploaded to either of the two central devices.
  • the second device has data synchronization requirements, it can obtain water level information from either of the two central devices, and establish a connection with the terminal device corresponding to the water level information for data synchronization.
  • the central device includes a first central device and a second central device.
  • Water level information transmission connections and data transmission connections are maintained between the two central devices.
  • the water level information maintained by the two central devices can be synchronized in real time and is therefore consistent.
  • the water level information of the first central device changes, the water level information can be immediately sent to the second central device, and the second central device updates its own water level information accordingly; similarly, after the water level information of the second central device changes, it can The water level information is immediately sent to the first central device, and the first central device updates its own water level information accordingly. It is assumed that the first device has a communication connection with the first central device, the second device has a communication connection with the second central device, and the first central device has a communication connection with the second central device.
  • the first device can upload the water level information to the first central device, and the first central device and the second central device can synchronize the water level information. Thereafter, the second device can obtain water level information from the second central device when there is a need for data synchronization.
  • Communication connections between terminal devices may include but are not limited to Wi-Fi connections or Bluetooth connections, which are not specifically limited in this application.
  • central devices can back up each other.
  • one of the central devices cannot connect to other terminal devices and synchronize water level information due to disconnection or failure, other central devices can perform the functions of the above central device. This improves the reliability of the terminal device data synchronization service in the terminal system.
  • the central device can be preset by the user or determined by each terminal device in the terminal system. The process of determining the central device will be described below with reference to FIG. 7 .
  • Figure 7 is a schematic flow chart of the terminal device determining the central device in the embodiment of the present application. As shown in Figure 7, the method for a terminal device to determine a central device may include steps 701 to 703. Each step in Figure 7 is explained in detail below.
  • Step 701 Three or more terminal devices are networked to form a terminal set.
  • Step 702 Each terminal device in the terminal set decides whether to become a candidate central device based on whether its own conditions meet preset conditions.
  • the preset conditions may include one or more of the following: the terminal device is an active device; the terminal device is a passive device, but the remaining power exceeds the first preset threshold; the processing resources of the terminal device exceed the second preset threshold; The storage space of the terminal device exceeds the third preset threshold; the online time of the terminal device exceeds the fourth preset threshold; the terminal device accesses the communication system in one of the preset ways.
  • Each of the above preset thresholds may be a threshold value predefined by the user, or a threshold value preconfigured on the terminal device.
  • the terminal device is an active device, and the terminal device is a passive device but the remaining power is greater than the first preset threshold.
  • the purpose is to select a device with sufficient power as the central device, which can satisfy the need for the central device to be frequently awakened due to water level information synchronization. Power consumption requirements for frequently establishing transmission connections with terminal devices.
  • the terminal device is an active device, and the terminal device is a passive device but has sufficient power. These two optional conditions can be used to determine whether the terminal device has sufficient power, as long as one of them is met. Alternatively, the active device can also be used as the preferred condition. When there is an active device, the active device is selected as the central device; when there is no active device, the remaining power exceeds the first preset threshold. passive equipment as central equipment.
  • the processing resources can be the computing power of the chip in the terminal device, or the ability to respond to data synchronization requests from other terminal devices, or the ability of the terminal device to read and send its own data. Selecting a device whose processing resources exceed the second preset threshold as the central device aims to select a device with strong processing capabilities as the central device, so that the central device can quickly respond to the water level synchronization needs of the terminal device.
  • the storage space may be the available storage space of the terminal device. Selecting a device with a storage space longer than the third preset threshold as the central device aims to select a device with a large storage space as the central device, which can meet the requirement of the central device to store water level information of multiple terminal devices in the terminal set.
  • the online duration may be the duration that the terminal device exists in the terminal collection. Selecting a device whose online time exceeds the fourth preset threshold as the central device aims to select a device with a long online time as the central device, which can ensure that the central device can be stably in the terminal collection for a long time and can reduce the central failure caused by the central node going offline. The frequency of node election, thereby improving the stability of the data synchronization service.
  • the way in which the terminal device accesses the communication system may refer to the way in which the terminal device connects to other terminal devices in the terminal set.
  • the preset method includes, for example, Wi-Fi connection, P2P connection, etc.
  • the preset method can be defined as a network connection method with high reliability, so that the central device determined based on this preset method can transmit data to other terminal devices at high speed, thereby improving the reliability of data transmission.
  • the process shown in Figure 8 uses the terminal device as the execution subject and describes the process in which the terminal device determines whether it meets the preset conditions and then determines whether to recommend itself as the central device. It can be understood that after a terminal device recommends itself as a central device, it can become a candidate central device, and it can be further combined with the conditions of other terminals in the terminal set to determine whether it can become a central device.
  • Step 801 obtain the power connection status
  • Step 802 Determine whether it is an active device according to the power connection situation. If so, execute step 806. If not, execute step 803;
  • Step 803 obtain the remaining power
  • Step 804 Determine whether the remaining power exceeds the first preset threshold. If so, execute step 806. If not, execute step 805;
  • Step 805 Determine not to recommend itself as a candidate central device. If the terminal device determines that it does not recommend itself as a central device, that is, it will not become a candidate central device, it can no longer perform subsequent steps, and the process can end here.
  • Step 806, obtain the processing resource size
  • Step 807 Determine whether the processing resources exceed the second preset threshold. If so, execute step 807; if not, execute step 805;
  • Step 808 Obtain the size of its own storage space
  • Step 809 Determine whether the storage space exceeds the third preset threshold. If so, execute step 810. If not, execute step 805;
  • Step 810 Get your online time
  • Step 811 Determine whether the online duration exceeds the fourth preset threshold. If yes, execute step 812. If not, execute step 805;
  • Step 812 Obtain the method of accessing the communication system
  • Step 813 Determine whether the access method is one of the preset methods. If so, execute step 814. If not, execute step 805;
  • Step 814 Recommend yourself as the central device.
  • the process shown in Figure 8 is only a possible implementation method for the terminal device to determine whether to recommend itself as the central device, and should not constitute a limitation on this application.
  • the steps may also be deleted. Or increase or adjust the execution order of some of the steps.
  • steps 806, 807 and steps 808, 809 can replace the execution order
  • steps 808, 809 and steps 810, 811 can also replace the execution order, and so on.
  • the terminal device can also judge the above conditions at the same time, such as executing step 802, step 804, step 807, step 809, step 811 and step 813 at the same time, and combining the judgment results of each step, Determine whether to recommend yourself as a central device.
  • the above preset conditions constrain the central device from different dimensions, so that the determined central device satisfies at least one of the following: having sufficient power, having high processing power, having sufficient storage space, It has a long online time and high transmission reliability.
  • Each terminal device in the terminal set can make a judgment based on the same preset conditions to determine whether it meets the preset conditions.
  • the terminal device becomes a candidate central device and sends this information to other terminal devices.
  • other terminal devices receive this information.
  • the terminal device cannot become a candidate central device.
  • the terminal device can become a voting device for voting to determine the central device when there are multiple candidate central devices.
  • each terminal device in the terminal set does not meet the above preset conditions, each terminal device cannot become a candidate central device. Since the central device cannot be determined, the data synchronization between terminal devices is carried out end-to-end according to the method in the existing technology.
  • Step 703 The voting device determines the central device from the candidate central devices.
  • each terminal device After each terminal device becomes a candidate central device, it can send a broadcast message to broadcast that the terminal device becomes a candidate central device.
  • the voting device may determine the central device from the candidate central devices based on the received broadcast message.
  • the voting device confirms that the candidate central device is the central device.
  • the voting device can vote to select the central device from multiple candidate central devices.
  • Each voting device can score each candidate center device based on one or more of the following: the network connection status of the voting device with each candidate center device, the frequency of connection with each candidate center device within a preset period Or the amount of data synchronization required with each candidate central device.
  • the network connection status between the voting equipment and each candidate center equipment may refer to the transmission between the voting equipment and the candidate center equipment. Enter the preset packet transmission rate.
  • the connection frequency with each candidate central device within the preset period may be a connection frequency calculated by the voting device based on a predefined usage period when no central device exists and the number of connections to the candidate central device within the period.
  • the demand for data synchronization with each candidate central device may be the amount of data that needs to be transmitted when the voting device confirms data synchronization based on the water level information of the candidate central device.
  • the voting device votes to select the central device from multiple candidate center devices.
  • the candidate center device sends a scoring request to the voting device.
  • the voting device scores each candidate center device based on the above voting basis, and then sends the score to the candidate center. equipment.
  • Candidate central devices can determine whether they can serve as the central device of the communication system based on their respective score values.
  • the voting equipment divides the network connection status with each candidate central device into different levels, and scores 1-5.
  • the voting device adds the scores corresponding to the same candidate center device and sends them to the candidate center device.
  • the candidate center device obtains its own score from each voting device and adds it to obtain its own total score.
  • Each candidate center device Compare their respective total score values to determine the central device.
  • each candidate central device sends its own score value to other candidate central devices, and then selects the candidate central device with the highest score as the central device.
  • a central device may be determined from multiple candidate central devices.
  • the candidate central device determines that it can serve as the central device when its respective score value is greater than the preset value. At this time, one central device may be determined from the plurality of candidate central devices, or multiple central devices may be determined.
  • each terminal device in the terminal set can perform the data synchronization method as shown in Figure 5. If the central device is not determined through the above method, each terminal device in the terminal set can perform data synchronization according to the existing data synchronization method.
  • each terminal device in the terminal set selects a candidate central device based on power status, processing resources, storage space, online time, and network status, and based on the network connection status and short-term connection frequency between other terminal devices and the candidate central device , the data synchronization demand is determined by the central device, and a central device can be selected that can be online for a long time and provide fast and stable water level information synchronization. It can also reduce unnecessary device wake-ups, thereby reducing power consumption.
  • the method of determining the central device from the terminal set is not limited to the method illustrated herein. This application does not limit the specific method of determining the central device. Due to the high mobility of terminal devices, the terminal devices in the terminal collection may change. For example, some terminal devices may exit the terminal set, and some terminal devices may join the terminal set. Therefore, the status of the central device may also change. For example, if you exit the terminal device set, the terminal set changes from the status of having a central device to the status of not having a central device; or the central device may not be suitable as a center due to other reasons such as power disconnection. Equipment and terminal collections may also change from a central device state to a central device state. After the terminal set changes to a state without a central device, it can reselect the central device and perform data synchronization based on the reselected central device; it can also perform data synchronization according to existing technical methods.
  • Figure 9 takes the fourth device as an example to describe the process of determining the central device and then performing data synchronization after the fourth device joins the terminal set.
  • the fourth device sends a query message to the third device in the terminal set to query whether there is a central device in the terminal set.
  • the query message may be a broadcast message
  • the terminal device that receives the query message may reply a message to the fourth device to indicate whether there is a central device.
  • the third device receives the query message from the fourth device and replies with a message to the fourth device to indicate whether there is a central device.
  • the third device indicates the central device in a reply message sent to the fourth device. Then the fourth device uses the method shown in Figure 5 to synchronize data.
  • the third device indicates that there is no central device in a reply message sent to the fourth device. Then the fourth device determines whether it meets the preset condition, where the preset condition is the preset condition in step 702 mentioned above. If the fourth device meets the preset conditions, the device becomes the central device in the terminal set, and other terminal devices in the terminal set perform data synchronization based on the central device according to the method shown in Figure 5. If the fourth device does not meet the preset conditions, there is no central device in the terminal set, and the data synchronization between the terminal devices is performed according to the existing data synchronization method, which will not be described again here.
  • Figure 10 shows the interaction process between various modules in the data management service in more detail.
  • the data management service may include a data synchronization component, which includes a central node maintenance module, a data policy synchronization module, a central node election module and a device information maintenance module.
  • a data synchronization component which includes a central node maintenance module, a data policy synchronization module, a central node election module and a device information maintenance module.
  • the device information maintenance module can maintain the basic information of the terminal device.
  • the basic information can include any one or more of the following: the active status of the terminal device, the remaining power of the terminal device, the processing resources of the terminal device, the Storage space, the online duration of the terminal device, and the way the terminal device accesses the communication system. It should be understood that the basic information here can be used in the above step 702 as a basis for the terminal device to confirm that it is a candidate central device.
  • the device information maintenance module can also maintain the interactive information of the terminal device.
  • the interactive information can include any one or more of the following: the network connection status of the terminal device and other terminal devices, the network connection status of the terminal device and other terminal devices during a preset period of time. Within the connection frequency, the demand for data synchronization between this terminal device and other terminal devices. It should be understood that the interactive information here can be used in the above step 703 as a basis for the voting device to score each candidate central device.
  • the central node election module can determine whether it is a candidate central device. For example, the central node election module performs the above step 702 to confirm whether it becomes a candidate central device based on the basic information of the terminal device in the device information maintenance module.
  • the central node election module can also broadcast the election participation information, and confirm the central device from multiple candidate central devices based on the scores received from the voting devices within a predefined time. The specific steps are as described in step 703. , and will not be repeated here.
  • the central node election module can also perform the above step 703 to score candidate central devices based on the basic information of the terminal device in the device information maintenance module.
  • the central node maintenance module can maintain the status information of the central device. For example, after the central node election module selects the central device, the central node maintenance module can store information indicating the central device; after receiving the central device from other terminal devices, After a query broadcast, information instructing the central device can be sent in response to the query broadcast. Alternatively, after the central node election module does not elect a central device, the central node maintenance module can store information indicating that there is no central device; after receiving a central device query broadcast from other terminal devices, it can respond to the query broadcast and instruct the terminals to assemble. There is no central node in it.
  • the data synchronization strategy module can select a data synchronization strategy based on the central device status information in the central node maintenance module. For example, if there is a central device in the terminal set, and there is a data synchronization requirement, the data synchronization strategy module generates a data synchronization strategy based on the central node as shown in Figure 5; if there is no central device in the terminal set, when there is data synchronization When synchronization is required, the data synchronization strategy module generates a data synchronization strategy based on existing technology.
  • FIG 11 is a schematic block diagram of a data synchronization device provided by an embodiment of the present application.
  • the data synchronization 1100 may include a transceiver unit 1110 and a processing unit 1120.
  • the above-mentioned data synchronization device 1100 may correspond to the first device in the above method embodiment, for example, it may be the first device, or a component configured in the first device, such as a chip, a chip system, a processor, etc.
  • the device 1100 corresponds to the first device, it can be used to execute the method executed by the first device.
  • the transceiver unit 1110 is configured to send water level information to the central device when the data is updated;
  • the processing unit 1120 is configured to send water level information to the central device based on the water level information and the The second device performs data synchronization.
  • the above-mentioned data synchronization device 1100 may correspond to the central device in the above method embodiment, for example, it may be a central device, or a component configured in the central device, such as a chip, a chip system, a processor, etc.
  • the device 1100 corresponds to the central device, it can be used to execute the method executed by the central device.
  • the transceiver unit 1110 is configured to receive water level information from a first device, where the water level information is used to indicate the update status of the data; the transceiver unit 1110 is also configured to send the water level to a second device. information.
  • the above-mentioned data synchronization device 1100 may correspond to the second device in the above method embodiment, for example, it may be the second device, or a component configured in the second device, such as a chip, a chip system, a processor, etc.
  • the device 1100 corresponds to a second device, it can be used to execute a method executed by the second device.
  • the transceiver unit 1110 is configured to obtain water level information from a central device when there is a data synchronization requirement. The water level information is used to indicate the update status of data, and the central device is used to maintain the water level information. ;
  • the processing unit 1120 is used to perform data synchronization based on the water level information.
  • the transceiver unit 1110 in the data synchronization device can be implemented through a communication interface; the processing unit 1120 in the data synchronization device can be implemented through at least one processor.
  • the transceiver unit 1110 in the data synchronization device can be implemented through an input/output interface, a circuit, etc., and the processing unit 1120 in the data synchronization device It can be realized through a processor, microprocessor or integrated circuit integrated on the chip or chip system.
  • This application also provides a communication system, which includes the first device, the second device and the central device in the above method embodiment.
  • This application also provides a processing device, including at least one processor, and the at least one processor is used to execute a computer program stored in a memory, so that the processing device executes the first device and the second device in the above method embodiment. Or the method performed by the central device.
  • the processing device may be one or more chips.
  • the processing device may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), or a system on chip (SoC), or It can be a central processing unit (CPU), a network processor (NP), a digital signal processing circuit (DSP), or a microcontroller unit , MCU), it can also be a programmable logic device (PLD) or other integrated chip.
  • FPGA field programmable gate array
  • ASIC application specific integrated circuit
  • SoC system on chip
  • CPU central processing unit
  • NP network processor
  • DSP digital signal processing circuit
  • MCU microcontroller unit
  • PLD programmable logic device
  • the computer program product includes: a computer program (which can also be called a code, or an instruction).
  • a computer program which can also be called a code, or an instruction.
  • the computer program When the computer program is run, it causes the computer to execute the method executed by the first device in the above embodiment. , or the method executed by the second device, or the method executed by the central device.
  • This application also provides a computer-readable storage medium that stores a computer program (which may also be called a code, or an instruction).
  • a computer program which may also be called a code, or an instruction.
  • processor in the embodiment of the present application may be an integrated circuit chip with signal processing capabilities.
  • each step of the above method embodiment can be completed through an integrated logic circuit of hardware in the processor or instructions in the form of software.
  • the above-mentioned processor can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. or any combination thereof.
  • DSP digital signal processor
  • ASIC application-specific integrated circuit
  • FPGA off-the-shelf programmable gate array
  • a general-purpose processor can be a microprocessor or any conventional processor, etc.
  • the memory in the embodiment of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories.
  • non-volatile memory can be read-only memory (ROM), programmable ROM (PROM), erasable programmable read-only memory (erasable PROM, EPROM), electrically removable memory. Erase electrically programmable read-only memory (EPROM, EEPROM) or flash memory.
  • Volatile memory can be random access memory (RAM), which is used as an external cache.
  • RAM static random access memory
  • DRAM dynamic random access memory
  • SDRAM synchronous dynamic random access memory
  • double data rate SDRAM double data rate SDRAM
  • DDR SDRAM double data rate SDRAM
  • ESDRAM enhanced synchronous dynamic random access memory
  • SLDRAM synchronous link dynamic random access memory
  • direct rambus RAM direct rambus RAM
  • the methods provided by the above embodiments can be implemented in whole or in part through software, hardware, firmware, or any combination thereof.
  • software When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product may include one or more computer instructions.
  • the computer program instructions When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another, e.g., the computer instructions may be transferred from a website, computer, server, or data center Transmission to another website, computer, server or data center by wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more available media integrated.
  • the available media may be magnetic media (eg, floppy disk, hard disk, magnetic disk), optical media (eg, DVD), or semiconductor media (eg, solid state disk, SSD)) etc.
  • the disclosed systems, devices and methods can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined or can be integrated into another system, or some features can be ignored, or not implemented.
  • the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the 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 shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some 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 can be integrated into one processing unit, each unit can exist physically alone, or two or more units can be integrated into one unit.
  • the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium.
  • the technical solution of the present application is essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product.
  • the computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of this application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory, random access memory, magnetic disk or optical disk and other various media that can store program codes.

Landscapes

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

Abstract

Les modes de réalisation de la présente demande concernent un procédé de synchronisation de données, et un appareil et un système associés. Le procédé peut être appliqué à un système de communication comprenant au moins trois dispositifs, de façon à mettre en œuvre une synchronisation de données. Le procédé comprend les étapes suivantes : un premier dispositif dans un système de communication envoie des informations de filigrane à un dispositif central dans le système de communication lorsque des données sont mises à jour, les informations de filigrane étant utilisées pour indiquer un état de mise à jour des données, et le dispositif central étant utilisé pour maintenir les informations de filigrane de chaque dispositif dans le système de communication ; un second dispositif dans le système de communication acquiert les informations de filigrane à partir du dispositif central lorsqu'il existe une exigence de synchronisation de données ; et le second dispositif met en œuvre une synchronisation de données sur la base des informations de filigrane. Au moyen de la présente demande, une synchronisation de filigrane est mise en œuvre sur la base d'un dispositif central, et il n'est pas nécessaire de réveiller tous les autres dispositifs dans un système chaque fois que les données d'un dispositif sont mises à jour, de sorte qu'il soit possible d'empêcher le réveil fréquent de chaque dispositif dans le système en raison d'une synchronisation de données, ce qui permet de réduire le nombre d'établissements de connexion entre les dispositifs, et de réduire également les pertes de consommation d'énergie provoquées par la synchronisation de données.
PCT/CN2023/117140 2022-09-09 2023-09-06 Procédé de synchronisation de données, et appareil et système associés WO2024051718A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211100244.8 2022-09-09
CN202211100244.8A CN117692466A (zh) 2022-09-09 2022-09-09 一种数据同步方法及相关装置、系统

Publications (1)

Publication Number Publication Date
WO2024051718A1 true WO2024051718A1 (fr) 2024-03-14

Family

ID=90127099

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/117140 WO2024051718A1 (fr) 2022-09-09 2023-09-06 Procédé de synchronisation de données, et appareil et système associés

Country Status (2)

Country Link
CN (1) CN117692466A (fr)
WO (1) WO2024051718A1 (fr)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105141687A (zh) * 2015-08-19 2015-12-09 焦点科技股份有限公司 一种生产消息的方法
CN105187472A (zh) * 2015-06-02 2015-12-23 小米科技有限责任公司 数据同步方法及装置
CN107295097A (zh) * 2017-07-17 2017-10-24 深圳市金立通信设备有限公司 数据同步方法、服务器及设备
CN108183965A (zh) * 2018-01-15 2018-06-19 郑州云海信息技术有限公司 一种数据同步方法、装置、设备、系统及可读存储介质
CN110688254A (zh) * 2019-09-06 2020-01-14 北京达佳互联信息技术有限公司 一种数据同步方法、装置、电子设备及存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105187472A (zh) * 2015-06-02 2015-12-23 小米科技有限责任公司 数据同步方法及装置
CN105141687A (zh) * 2015-08-19 2015-12-09 焦点科技股份有限公司 一种生产消息的方法
CN107295097A (zh) * 2017-07-17 2017-10-24 深圳市金立通信设备有限公司 数据同步方法、服务器及设备
CN108183965A (zh) * 2018-01-15 2018-06-19 郑州云海信息技术有限公司 一种数据同步方法、装置、设备、系统及可读存储介质
CN110688254A (zh) * 2019-09-06 2020-01-14 北京达佳互联信息技术有限公司 一种数据同步方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN117692466A (zh) 2024-03-12

Similar Documents

Publication Publication Date Title
WO2020211733A1 (fr) Procédé, dispositif et système de connexion bluetooth
CN110381345B (zh) 一种投屏显示方法及电子设备
JP7378576B2 (ja) リモコン装置を用いたワンタッチスクリーンプロジェクションを実施するための端末装置、方法及びシステム
WO2021082829A1 (fr) Procédé de connexion bluetooth et appareil associé
CN110166820B (zh) 音视频的播放方法、终端及装置
CN111405681B (zh) Wi-Fi Aware的建链方法、系统、电子设备和存储介质
WO2021043219A1 (fr) Procédé de reconnexion bluetooth et appareil associé
CN112954819B (zh) 一种设备组网方法、电子设备及系统
WO2021143314A1 (fr) Procédé de réduction de la consommation d'énergie d'un terminal mobile et terminal mobile
CN112584463B (zh) 一种多设备之间的信息同步方法、系统及电子设备
CN114895991B (zh) 内容分享方法和电子设备
CN114339709A (zh) 无线通信方法和终端设备
US20240215088A1 (en) Device networking method, electronic device, and storage medium
WO2021043250A1 (fr) Procédé de communication bluetooth, et dispositif associé
WO2024051718A1 (fr) Procédé de synchronisation de données, et appareil et système associés
WO2022095581A1 (fr) Procédé de transmission de données et dispositif terminal
US20240129352A1 (en) Live broadcast method, apparatus, and system
WO2023236670A1 (fr) Procédé de gestion de transmission de données, dispositif électronique et support de stockage
WO2022228241A1 (fr) Procédé, appareil et système de commande de dispositif terminal
CN117098253A (zh) 组网的方法和装置
CN116744275A (zh) 通信方法、电子设备及装置
CN114697438A (zh) 一种利用智能设备进行通话的方法及设备
CN118057879A (zh) 一种保活方法、通信系统、电子设备及介质
CN118075719A (zh) 状态通知方法和装置

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: 23862412

Country of ref document: EP

Kind code of ref document: A1