Data synchronization method and device and electronic equipment

CN120358376APending Publication Date: 2025-07-22GUANGZHOU AUTOMOBILE GROUP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510339677.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-20
Publication Date
2025-07-22

AI Technical Summary

Technical Problem

There is a delay problem in the audio and video synchronization between different on-board terminals in the vehicle, which makes it impossible to effectively realize multi-screen interaction and the user experience is low.

Method used

By synchronizing the application data to the cloud when the first on-board terminal of the vehicle is running the target application, and sending a serial number to the cloud when the second on-board terminal starts the target application, the cloud determines the application data based on the serial number and synchronizes it to the second on-board terminal, and synchronizes the synchronization of multiple on-board terminals using non-audio and video projection transmission method.

Benefits of technology

The delay in synchronization of multi-vehicle terminal applications in vehicles is shortened, the accuracy and user experience of synchronization of multi-vehicle terminal applications is improved, and the synchronous playback and control of multi-screen interaction is realized.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120358376A_ABST
    Figure CN120358376A_ABST
Patent Text Reader

Abstract

The invention discloses a data synchronization method and device and electronic equipment, and the method comprises the steps: synchronizing the application data of a target application to a cloud end under the condition that a first vehicle-mounted terminal of a vehicle operates the target application; if a second vehicle-mounted terminal in the vehicle starts the target application, the serial number of the target application installed in the second vehicle-mounted terminal is sent to the cloud, and the serial numbers of the same application program installed in different vehicle-mounted terminals are consistent; and receiving application data sent by the cloud and synchronizing the application data to the target application in the second vehicle-mounted terminal, the application data being determined by the cloud according to the serial number, and then synchronizing the applications simultaneously operated by the plurality of vehicle-mounted terminals in the vehicle by adopting a cloud synchronization mode according to the serial number of the application. And the synchronization time delay of the multiple vehicle-mounted terminal applications in the vehicle is shortened.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of information technology, and more particularly, to a data synchronization method, apparatus, and electronic device. Background Art

[0002] With the development of the automotive technology field, vehicles are becoming more and more intelligent, and there are more and more screens installed in the vehicle. Among them, Ethernet is often used for screen mirroring between different hosts in the vehicle, and the remaining screens (such as the secondary screen, the rear screen, etc.) all display the screen mirroring content of the main screen, so as to achieve the same screen display and realize multi-screen interaction. However, during the transmission of in-vehicle audio and video through Ethernet, due to the large number of load nodes in the in-vehicle Ethernet, audio is prone to lag relative to video, and the projection to other screens (such as the secondary screen, the rear screen, etc.) has a relatively large lag relative to the main screen video, and effective synchronization cannot be achieved. Summary of the Invention

[0003] In view of this, embodiments of the present application propose a data synchronization method, apparatus, and electronic device to improve the above problems.

[0004] In a first aspect, an embodiment of the present application provides a data synchronization method, the method including: when a target application runs on a first in-vehicle terminal of a vehicle, synchronizing application data of the target application to the cloud; if the target application is started on a second in-vehicle terminal in the vehicle, sending a serial number of the target application installed in the second in-vehicle terminal to the cloud, where serial numbers of the same application installed on different in-vehicle terminals are the same; receiving the application data sent by the cloud, and synchronizing the application data to the target application in the second in-vehicle terminal, where the application data is determined by the cloud according to the serial number.

[0005] In a second aspect, an embodiment of the present application provides a data synchronization method, the method including: when a target application runs on a first in-vehicle terminal of a vehicle, receiving the application data of the target application uploaded by the first in-vehicle terminal; receiving the serial number of the target application uploaded by a second in-vehicle terminal of the vehicle, where the serial number is sent after the second in-vehicle terminal starts the target application, and serial numbers of the same application installed on different in-vehicle terminals are the same; determining the application data of the target application according to the serial number; sending the application data to the second in-vehicle terminal, so that the second in-vehicle terminal synchronizes the application data to the target application.

[0006] In a third aspect, an embodiment of the present application provides a data synchronization device, which includes: an application data synchronization to cloud module, a serial number sending module, and an application data synchronization to application module. Among them, the application data synchronization to cloud module is used to synchronize the application data of the target application to the cloud when the first in-vehicle terminal of the vehicle runs the target application; the serial number sending module is used to send the serial number of the target application installed in the second in-vehicle terminal to the cloud if the second in-vehicle terminal in the vehicle starts the target application, where the serial numbers of the same application installed in different in-vehicle terminals are the same; the application data synchronization to application module is used to receive the application data sent by the cloud and synchronize the application data to the target application in the second in-vehicle terminal, and the application data is determined by the cloud according to the serial number.

[0007] In a fourth aspect, an embodiment of the present application provides a data synchronization device, which includes: an application data receiving module, a serial number receiving module, an application data determining module, and an application data sending module. Among them, the application data receiving module is used to receive the application data of the target application uploaded by the first in-vehicle terminal when the first in-vehicle terminal of the vehicle runs the target application; the serial number receiving module is used to receive the serial number of the target application uploaded by the second in-vehicle terminal of the vehicle, where the serial number is sent after the second in-vehicle terminal starts the target application, and the serial numbers of the same application installed in different in-vehicle terminals are the same; the application data determining module is used to determine the application data of the target application according to the serial number; the application data sending module is used to send the application data to the second in-vehicle terminal so that the second in-vehicle terminal synchronizes the application data to the target application.

[0008] In a fifth aspect, an embodiment of the present application provides an electronic device, which includes a memory and a processor, the memory is coupled to the processor, and the memory stores instructions. When the instructions are executed by the processor, the processor executes the data synchronization method provided in the first aspect and the data synchronization method provided in the second aspect.

[0009] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, in which program code is stored, and the program code can be called by a processor to execute the data synchronization method provided in the first aspect and the data synchronization method provided in the second aspect.

[0010] In the solution of this application, when the target application runs on the first in-vehicle terminal of the vehicle, the application data of the target application is synchronized to the cloud. If the second in-vehicle terminal in the vehicle starts the target application, the serial number of the target application installed in the second in-vehicle terminal is sent to the cloud, where the serial numbers of the same application installed on different in-vehicle terminals are the same; receive the application data sent by the cloud and synchronize the application data to the target application in the second in-vehicle terminal. The application data is determined by the cloud according to the serial number. Thus, in the way of cloud synchronization, when any in-vehicle terminal in the vehicle enters the application, the application data of the application is sent down to the cloud, and when other in-vehicle terminals in the vehicle enter the application, the serial number of the application in the other in-vehicle terminal is sent to the cloud, so that when the cloud determines that the application is the same application in the same vehicle according to the serial number of the application, the application data of the application is synchronized to the application in other in-vehicle terminals. The same application running on multiple in-vehicle terminals in the vehicle is synchronized through the non-audio-video projection transmission method, shortening the delay of multi-in-vehicle terminal application synchronization in the vehicle and improving the accuracy of multi-in-vehicle terminal application synchronization. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the technical solutions in the embodiments of this application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of this application. For those skilled in the art, without creative efforts, other drawings can be obtained according to these drawings.

[0012] Figure 1 The flowchart of the data synchronization method provided by an embodiment of this application is shown;

[0013] Figure 2 The flowchart of the data synchronization method provided by an embodiment of this application is shown;

[0014] Figure 3 The flowchart of the data synchronization method provided by an embodiment of this application is shown;

[0015] Figure 4 The block diagram of the data synchronization device provided by an embodiment of this application is shown;

[0016] Figure 5 The block diagram of the data synchronization device provided by an embodiment of this application is shown;

[0017] Figure 6 The block diagram of the electronic device provided by an embodiment of this application is shown;

[0018] Figure 7A storage unit for storing or carrying program codes for implementing a data synchronization method according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0019] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0020] Currently, multiple screens can be set up in the car; different hosts can also be set up in the car to correspond to different screens. Among them, Ethernet is often used for data transmission and screen projection between different hosts, and the remaining screens (such as the secondary screen, the rear screen, etc.) all display the content of the main screen projection, so as to achieve the same-screen display and realize multi-screen interaction. In the current process of transmitting in-vehicle audio and video communications through Ethernet, due to the large number of in-vehicle Ethernet load nodes, the immature Ethernet audio and video bridging technology, and the small amount of audio data compared to video, when driven by different hosts for playback on multiple screens, it is easy for the audio to be delayed relative to the video, and the projection to other screens (such as the secondary screen, the rear screen, etc.) has a large delay relative to the main screen video, so that effective synchronization cannot be achieved.

[0021] In addition, during the Ethernet transmission screen projection process, the video projection adopts the server / client mode, and the compressed video is transmitted between different hosts through LAN technology. When the main screen is projected to other screens, the other screens can only display the content of the main screen and cannot control the main screen. The screen projection must be exited before interaction can be carried out. It cannot meet the needs of multi-screen interaction in the car, resulting in a poor user experience.

[0022] Exemplary, the solution proposed in the related art is to realize the transmission of audio and video through hardware video projection transmission to meet the needs of same-screen display on multiple screens; this solution has a high delay in the car, and it is easy for the audio and video to be out of sync, and it is easy for multiple hosts to cause the picture to lag behind the sound. Moreover, if only the screen projection method is used, the projected screen (such as the secondary screen, the rear screen, etc.) can only display the content displayed on the main screen, which cannot meet the needs of multi-screen interaction in the car (such as being unable to order songs through multiple screens, or to independently control each screen, etc.).

[0023] Therefore, in the related art, there is a challenge of improving the synchronization accuracy of applications in multiple on-board terminals in a vehicle.

[0024] In view of the above problems, through long-term research, the inventors have proposed a data synchronization method, apparatus, and electronic device provided in the embodiments of the present application. By adopting the cloud synchronization method, when any in-vehicle terminal in the vehicle enters an application, the application data of the application is sent to the cloud, and when other in-vehicle terminals in the vehicle enter the application, the serial number of the application in the other in-vehicle terminals is sent to the cloud, so that when the cloud determines that the application is the same application in the same vehicle according to the serial number of the application, the application data of the application is synchronized to the application in the other in-vehicle terminals. By means of non-audio and video screen mirroring transmission, the same application simultaneously running on multiple in-vehicle terminals in the vehicle is synchronized, shortening the latency of multi-in-vehicle terminal application synchronization and improving the accuracy of multi-in-vehicle terminal application synchronization. Among them, the specific data synchronization method will be described in detail in the subsequent embodiments.

[0025] The embodiments related to the present application will be described below with reference to the accompanying drawings.

[0026] Please refer to Figure 1 , Figure 1 which shows a schematic flowchart of a data synchronization method provided in an embodiment of the present application. In a specific embodiment, the data synchronization method can be applied to a data synchronization apparatus 200 as shown in Figure 4 and an electronic device 100 configured with the data synchronization apparatus 200 ( Figure 6 ). The following will take the electronic device as an example to illustrate the specific process of this embodiment. Of course, it can be understood that the electronic device to which this embodiment is applied can include devices such as vehicles, robots, transportation devices, and in-vehicle terminals, which are not limited herein. The following will elaborate in detail on the Figure 1 shown process. The model training can specifically include the following steps:

[0027] Step S110: When the target application is running on the first in-vehicle terminal of the vehicle, synchronize the application data of the target application to the cloud.

[0028] In some embodiments, the electronic device can be a vehicle, which can include multiple in-vehicle terminals. The same application program can be installed on different in-vehicle terminals respectively, so that different in-vehicle terminals can actively call the application program. Among them, the in-vehicle terminals in the vehicle can be used to implement data communication, information processing, and control functions between the vehicle and external systems, and can also be understood as the host of the vehicle.

[0029] Among them, the vehicle can be communicatively connected to an associated cloud. Among them, when the target application runs on the first on-vehicle terminal of the vehicle, the vehicle can synchronize the application data of the target application to the cloud communicatively connected. Among them, the cloud can include devices such as computers, desktop computers, servers, vehicles, etc. Among them, the first on-vehicle terminal can be any one of the on-vehicle terminals in the vehicle, such as the on-vehicle terminal in the front row of the vehicle, the on-vehicle terminal in the rear row of the vehicle, etc., which is not limited herein. Among them, the target application can be any application program installed on the on-vehicle terminal in the vehicle, such as a music playback application, a video playback application, etc., which is not limited herein.

[0030] Among them, the application data of the application can include application content data, application cache data, application configuration data, application log data, application platform data, system-level application data, etc., which is not limited herein. Correspondingly, when the target application runs on the first on-vehicle terminal of the vehicle, the vehicle can synchronize the application data of the target application to the cloud, so as to realize the synchronization of the application running on the on-vehicle terminal by means of cloud synchronization.

[0031] As an implementable manner, the application data of the target application can include at least one of multimedia data, text data, and document data. Correspondingly, when the target application runs on the first on-vehicle terminal of the vehicle, the vehicle can synchronize the application data of the target application to the cloud, so as to synchronously send the corresponding screen and sound of the target application to the on-vehicle terminals that synchronously run the target application by means of cloud synchronization, and realize multi-screen projection and mutual reverse control.

[0032] Step S120: If the second on-vehicle terminal in the vehicle starts the target application, send the serial number of the target application installed in the second on-vehicle terminal to the cloud, where the serial numbers of the same application program installed in different on-vehicle terminals are the same.

[0033] In some embodiments, if the second on-vehicle terminal in the vehicle starts the target application, the serial number of the target application installed in the second on-vehicle terminal can be sent to the cloud. Among them, the serial numbers of the same application program installed in different on-vehicle terminals in the vehicle are the same.

[0034] Among them, the second vehicle-mounted terminal can be any vehicle-mounted terminal in the vehicle other than the first vehicle-mounted terminal, and the target application can be installed in the second vehicle-mounted terminal. Among them, the startup of the target application by the second vehicle-mounted terminal in the vehicle can be understood as the entry of other vehicle-mounted terminals in the vehicle into the target application. Correspondingly, when the vehicle enters the target application through the second vehicle-mounted terminal, the second vehicle-mounted terminal in the vehicle can send the serial number of the target application installed in the second vehicle-mounted terminal to the cloud, so that the cloud can determine whether the second vehicle-mounted terminal and the first vehicle-mounted terminal belong to the same vehicle according to the serial number, and determine whether it is necessary to synchronize the application data of the target application running in the first vehicle-mounted terminal to the second vehicle-mounted terminal, so that the target application started in the second vehicle-mounted terminal is synchronized with the target application running in the first vehicle-mounted terminal.

[0035] Exemplarily, if the cloud determines that the serial number of the target application started by the second vehicle-mounted terminal is consistent with the serial number of the target application running in the first vehicle-mounted terminal, it can be determined that the second vehicle-mounted terminal and the first vehicle-mounted terminal belong to the same vehicle, and it can also be determined that it is necessary to send the application data of the target application running in the first vehicle-mounted terminal to the second vehicle-mounted terminal, so that the target application started in the second vehicle-mounted terminal is synchronized with the target application running in the first vehicle-mounted terminal.

[0036] Step S130: Receive the application data sent by the cloud and synchronize the application data to the target application in the second vehicle-mounted terminal, where the application data is determined by the cloud according to the serial number.

[0037] In some embodiments, the cloud can determine the application data of the target application started in the second vehicle-mounted terminal according to the serial number of the target application installed in the second vehicle-mounted terminal. Among them, the application data can be the application data of the target application running in the first vehicle-mounted terminal sent by the first vehicle-mounted terminal received by the cloud. Among them, if the cloud determines that the serial number of the target application started by the second vehicle-mounted terminal is consistent with the serial number of the target application running in the first vehicle-mounted terminal, it can send the application data of the target application running in the first vehicle-mounted terminal sent by the first vehicle-mounted terminal received to the second vehicle-mounted terminal. Correspondingly, the second vehicle-mounted terminal can receive the application data sent by the cloud and can synchronize the application data to the target application in the second vehicle-mounted terminal, so as to realize the synchronization of the target application running in the second vehicle-mounted terminal in the vehicle with the target application running in the first vehicle-mounted terminal. By synchronizing the application data through the cloud, the delay of multi-vehicle-mounted terminal application synchronization in the vehicle is shortened, and the accuracy of multi-vehicle-mounted terminal application synchronization is improved; among them, each vehicle-mounted terminal synchronizing the target application can independently control the target application, which also improves the user experience.

[0038] Exemplarily, a vehicle includes multiple screens, and different screens correspond to different vehicle-mounted terminals. When any screen in the vehicle enters an application, the vehicle-mounted terminal corresponding to this screen can be determined as the first vehicle-mounted terminal, and this first vehicle-mounted terminal can send the application data of this application to the cloud; correspondingly, the cloud can also obtain the serial number of this application as the first serial number. Among them, when other screens in the vehicle enter the application, the cloud can determine the vehicle-mounted terminal corresponding to this other screen as the second vehicle-mounted terminal, and can obtain the serial number of the application sent by this second vehicle-mounted terminal as the second serial number. If it is determined that this second serial number is consistent with this first serial number, it can be determined that the screen corresponding to the first vehicle-mounted terminal and the screen corresponding to the second vehicle-mounted terminal in the same vehicle are synchronized screens, and the application data of the application obtained by the cloud can be sent to this second vehicle-mounted terminal, thereby automatically synchronizing the applications running in the second vehicle-mounted terminal and the first vehicle-mounted terminal, automatically entering the same-screen page of the same vehicle, shortening the delay for the synchronized screens to achieve the same screen, effectively avoiding the problems of delay and out-of-sync caused by multiple hosts transmitting the screen projection image and sound through the video projection method, and by synchronizing the application data to the vehicle-mounted terminals corresponding to the synchronized screens through the cloud, the rate of the same-frequency screen display and sound output is increased, and while realizing multi-screen projection, mutual reverse control of multiple screens can also be realized, enhancing the user experience.

[0039] A data synchronization method provided by an embodiment of the present application, when a target application is running on a first vehicle-mounted terminal of a vehicle, synchronizes the application data of the target application to the cloud. If the target application is started on a second vehicle-mounted terminal in the vehicle, the serial number of the target application installed in the second vehicle-mounted terminal is sent to the cloud, where the serial numbers of the same application program installed in different vehicle-mounted terminals are the same; receive the application data sent by the cloud, and synchronize the application data to the target application in the second vehicle-mounted terminal, and the application data is determined by the cloud according to the serial number. Thus, by using the cloud synchronization method, when any vehicle-mounted terminal in the vehicle enters an application, the application data of the application is sent to the cloud, and when other vehicle-mounted terminals in the vehicle enter this application, the serial number of this application in this other vehicle-mounted terminal is sent to the cloud, so that when the cloud determines that this application is the same application in the same vehicle according to the serial number of this application, the application data of this application is synchronized to the applications in other vehicle-mounted terminals, and the same application running simultaneously on multiple vehicle-mounted terminals in the vehicle is synchronized through a non-audio-video projection transmission method, shortening the delay of multi-vehicle-mounted terminal application synchronization in the vehicle and improving the accuracy of multi-vehicle-mounted terminal application synchronization.

[0040] Please refer to Figure 2 , Figure 2 shows a schematic flowchart of the data synchronization method provided by an embodiment of the present application. This method is applied to the above-mentioned electronic device. Next, it will be directed to Figure 2The following is a detailed description of the process shown. The data synchronization method may specifically include the following steps:

[0041] Step S210: When the target application is running on the first in-vehicle terminal of the vehicle, synchronize the application data of the target application to the cloud.

[0042] Step S220: If the second in-vehicle terminal in the vehicle starts the target application, send the serial number of the target application installed in the second in-vehicle terminal to the cloud, where the serial numbers of the same application installed on different in-vehicle terminals are the same.

[0043] For the specific descriptions of steps S210 - S220, please refer to the descriptions of steps S110 - S120 above, and will not be elaborated here one by one.

[0044] Step S230: Receive the application data sent by the cloud, and based on the synchronization playback time interface corresponding to the target application, synchronize the multimedia data included in the application data to the target application in the second in-vehicle terminal for playback. The synchronization playback time interface is used to ensure that the multimedia data included in the application data of the target application is synchronously played on the corresponding in-vehicle terminals.

[0045] In some embodiments, the application data of the application may include multimedia data, which may include text data, image data, audio data, video data, animation data, etc., and is not limited herein.

[0046] In some embodiments, the same application may be installed on different in-vehicle terminals in the vehicle, and the serial numbers of the same application installed on different in-vehicle terminals may be the same. Optionally, while the same application is installed on different in-vehicle terminals in the vehicle, a synchronization playback time interface may be customized for the application. The synchronization playback time interface may be used to ensure that the multimedia data included in the application data of the application is synchronously played on the corresponding in-vehicle terminals, so as to synchronize the time of playing multimedia data of the application on different in-vehicle terminals through the synchronization playback time interface, avoiding video delay, and eliminating the need for the user to manually click the screen mirroring to make the application display on the same screen on different in-vehicle terminals, reducing the delay of the same picture in multi-screen video display.

[0047] Optionally, applying the corresponding synchronous playback time interface can implement the function of synchronous audio and video playback in the application. This synchronous playback time interface can allow users to set and adjust the playback time of the audio and video streams to ensure that they can be played synchronously. Among them, audio and video synchronization can be achieved by comparing the timestamps of the audio and video; among them, the timestamp of the audio can be obtained through the audio playback interface, and the timestamp of the video can be provided by the video decoder. Among them, this synchronous playback time interface can allow users to specify the synchronous playback time point of the audio and video streams; optionally, the playback rate of the audio and video can also be adjusted to achieve a better synchronization effect, so as to ensure that the video and audio do not become asynchronous during playback, improving the user experience.

[0048] Among them, the second in-vehicle terminal in the vehicle can receive the application data of the target application sent by the cloud, and based on the synchronous playback time interface corresponding to the target application, synchronize the multimedia data included in the application data to the target application in the second in-vehicle terminal for playback, ensuring the synchronization of the target application running on different in-vehicle terminals, and also ensuring the synchronization of the multimedia data included in the application data of the target application when played on different in-vehicle terminals, improving the user experience.

[0049] Step S240: Display the corresponding application interface according to the application data through the second in-vehicle terminal.

[0050] In some embodiments, after the second in-vehicle terminal in the vehicle receives the application data of the target application sent by the cloud, it can display the corresponding application interface according to the application data through the second in-vehicle terminal. Among them, the second in-vehicle terminal can be corresponding to a screen. Correspondingly, the second in-vehicle terminal can display the corresponding application interface on the screen according to the application data, so that the second in-vehicle terminal enters the same-car and same-frequency page corresponding to the target application, so as to realize the control of the target application through the second in-vehicle terminal, improving the user experience.

[0051] Step S250: If the first in-vehicle terminal or the second in-vehicle terminal is the in-vehicle terminal located in the back row of the vehicle, play the audio data included in the application data through the vehicle's whole-vehicle speaker.

[0052] In some embodiments, a vehicle may be provided with a vehicle-wide speaker. Accordingly, if the vehicle determines that the first in-vehicle terminal or the second in-vehicle terminal of the running target application is an in-vehicle terminal located in the rear row of the vehicle, the vehicle may play the audio data included in the application data of the target application through the vehicle-wide speaker, thus effectively avoiding the problem of delay caused by the in-vehicle terminal in the rear row transmitting audio to the in-vehicle terminal or earphone in the front row via Ethernet. Additionally, it can be understood that during the process of the vehicle playing the audio data included in the application data of the target application through the vehicle-wide speaker, the audio data included in the application data of the target application sent by the cloud to the in-vehicle terminal in the front row or the in-vehicle terminal in the rear row can be processed by a single in-vehicle terminal in the front row or the in-vehicle terminal in the rear row, and the processed audio data is played through the vehicle-wide speaker, avoiding the sound delay caused by different in-vehicle terminals processing audio for playback and also avoiding the problem of audio-video asynchronization.

[0053] As an implementable manner, the first in-vehicle terminal may be an in-vehicle terminal located in the front row of the vehicle. Optionally, when the first in-vehicle terminal of the vehicle runs the target application, the vehicle may play the audio data included in the application data of the target application through the vehicle-wide speaker for all passengers in the vehicle to listen to the audio, or play the audio data included in the application data of the target application through the earphone corresponding to the first in-vehicle terminal for the user of the earphone to listen to the audio, protecting the privacy of the user.

[0054] Exemplarily, when the first in-vehicle terminal of the vehicle runs the target application, the vehicle may receive a first instruction for applying to occupy the vehicle-wide speaker for audio playback of the target application, and in response to the first instruction, play the audio data included in the application data of the target application through the vehicle-wide speaker.

[0055] As an implementable manner, the first vehicle-mounted terminal may be a vehicle-mounted terminal located in the front row of the vehicle, and the second vehicle-mounted terminal may be a vehicle-mounted terminal located in the rear row of the vehicle. Optionally, when the first vehicle-mounted terminal of the vehicle runs a target application, the vehicle may play the audio data included in the application data of the target application through the earphone corresponding to the first vehicle-mounted terminal for the user of the earphone to listen to the audio, protecting the privacy of the user. Optionally, after the first vehicle-mounted terminal of the vehicle runs the target application and the second vehicle-mounted terminal starts the target application, the vehicle may also play the audio data included in the application data of the target application through the vehicle's entire vehicle speaker for all passengers in the vehicle to listen to the audio, so as to process the audio data included in the application data of the target application through a single vehicle-mounted terminal in the front row or the rear row of the vehicle and play the processed audio data through the entire vehicle speaker, avoiding the sound delay caused by different vehicle-mounted terminals processing and playing audio and also avoiding the problem of audio and video out of sync. Optionally, after the first vehicle-mounted terminal of the vehicle runs the target application and the second vehicle-mounted terminal starts the target application, the vehicle may also play the audio data included in the application data of the target application through the earphone corresponding to the first vehicle-mounted terminal and the earphone corresponding to the second vehicle-mounted terminal respectively for the user of the earphone to listen to the audio, protecting the privacy of the user.

[0056] Exemplarily, after the first vehicle-mounted terminal of the vehicle runs the target application and the second vehicle-mounted terminal starts the target application, the vehicle may receive a second instruction for applying to occupy the entire vehicle speaker to play the audio of the target application input through the vehicle-mounted terminal located in the rear row of the vehicle, and in response to the second instruction, play the audio data included in the application data of the target application through the vehicle's entire vehicle speaker, so that the user can automatically select whether to trigger the entire vehicle speaker, improving the user experience.

[0057] Exemplarily, a vehicle may include multiple screens, different screens may correspond to different vehicle-mounted terminals, and the serial numbers of the same application installed on different vehicle-mounted terminals may be the same. Among them, when the vehicle is powered on, if any screen in the vehicle enters an application, the vehicle-mounted terminal corresponding to the screen may send the application data and the serial number of the application to the cloud; it can also be understood that when the first vehicle-mounted terminal of the vehicle runs a target application, the first vehicle-mounted terminal may synchronize the application data of the target application and the serial number of the target application installed in the first vehicle-mounted terminal to the cloud. Among them, when other screens enter the application, the cloud may obtain the serial number of the application sent by the vehicle-mounted terminal corresponding to the other screen; it can also be understood that if the second vehicle-mounted terminal of the vehicle starts the target application, the second vehicle-mounted terminal may send the serial number of the target application installed in the second vehicle-mounted terminal to the cloud.

[0058] Among them, if the cloud determines that the serial number of the target application installed in the first vehicle terminal is the same as the serial number of the target application installed in the second vehicle terminal, it can be determined that the first vehicle terminal and the second vehicle terminal are in the same vehicle, and the applications running in the first vehicle terminal and the second vehicle terminal are the same. Accordingly, the cloud can synchronize the application data of the target application sent by the first vehicle terminal with the same obtained serial number of the target application to the second vehicle terminal according to the serial number of the target application installed in the second vehicle terminal. Accordingly, the second vehicle terminal can receive the application data sent by the cloud and synchronize the application data to the target application in the second vehicle terminal, so as to automatically synchronize the process of the target application running in the first vehicle terminal in the second vehicle terminal and automatically enter the same vehicle and same screen page, avoiding the problems of delay and out-of-sync caused by multiple hosts transmitting application data through Ethernet to achieve screen projection and sound transmission. By synchronizing through the cloud, the rate of synchronous screen display and sound output is improved, and multi-screen control can be achieved while realizing multi-screen projection, enhancing the user experience.

[0059] The data synchronization method provided by an embodiment of the present application, compared with Figure 1 the data synchronization method shown, in this embodiment, the multimedia data included in the application data can also be synchronized to the target application in the second vehicle terminal for playback based on the synchronous playback time interface corresponding to the target application. The synchronous playback time interface is used to ensure that the multimedia data included in the application data of the target application is synchronously played in the corresponding vehicle terminal, so as to synchronize the time for playing multimedia data of the application in different vehicle terminals through the synchronous playback time interface, avoiding the problem of out-of-sync of the same screen images in different vehicle terminals.

[0060] At the same time, in this embodiment, after synchronizing the application data to the target application in the second vehicle terminal, the second vehicle terminal can display the corresponding application interface according to the application data, so that the second vehicle terminal automatically enters the same frequency page corresponding to the target application, so as to perform reverse control on the target application through the second vehicle terminal, improving the user experience.

[0061] In addition, the application data in this embodiment includes audio data. In this embodiment, after synchronizing the application data to the target application in the second vehicle terminal, if the first vehicle terminal or the second vehicle terminal is a vehicle terminal located in the back row of the vehicle, the audio data is played through the vehicle's whole vehicle speaker. Thus, the audio data included in the application data of the target application is processed by a single front-row vehicle terminal or a rear-row vehicle terminal, and the processed audio data is played through the whole vehicle speaker, avoiding the sound delay of playing audio processed by different vehicle terminals and the problem of out-of-sync between audio and video, and improving the accuracy of multi-vehicle terminal application synchronization.

[0062] Please refer to Figure 3 , Figure 3 which shows a schematic flow diagram of the data synchronization method provided by an embodiment of the present application. In a specific embodiment, the data synchronization method can be applied to a data synchronization device 300 as shown in Figure 5 and an electronic device 100 configured with the data synchronization device 300( Figure 6 ). Hereinafter, taking the electronic device as an example, the specific process of this embodiment will be described. Of course, it can be understood that the electronic device to which this embodiment is applied may include devices such as vehicles, desktop computers, laptop computers, server vehicle-mounted terminals, etc., which are not limited herein. Next, the process shown in Figure 3 will be elaborated in detail. The data synchronization method may specifically include the following steps:

[0063] Step S310: When the target application runs on the first vehicle-mounted terminal of the vehicle, receive the application data of the target application uploaded by the first vehicle-mounted terminal.

[0064] In some embodiments, the electronic device may be a cloud server (or cloud). Among them, the cloud can be communicatively connected to the vehicle. Among them, multiple vehicle-mounted terminals may be provided in the vehicle, and the same application program may be installed in different vehicle-mounted terminals. Among them, when the target application runs on the first vehicle-mounted terminal of the vehicle, the cloud can receive the application data of the target application uploaded by the first vehicle-mounted terminal in the vehicle communicatively connected to the cloud, so as to synchronize the application data to the vehicle-mounted terminals running the target application through the cloud. Among them, the cloud can also obtain the serial number of the target application installed on the first vehicle-mounted terminal sent by the first vehicle-mounted terminal.

[0065] Step S320: Receive the serial number of the target application uploaded by the second vehicle-mounted terminal of the vehicle, where the serial number is sent after the second vehicle-mounted terminal starts the target application, and the serial numbers of the same application program installed in different vehicle-mounted terminals are the same.

[0066] In some embodiments, the serial numbers of the same application program installed in different vehicle-mounted terminals in the vehicle may be the same. Among them, when the second vehicle-mounted terminal in the vehicle starts the target application, the second vehicle-mounted terminal can send the serial number of the target application installed on the second vehicle-mounted terminal to the cloud communicatively connected to the vehicle. Correspondingly, the cloud can receive the serial number of the target application uploaded by the second vehicle-mounted terminal of the vehicle, so as to determine whether to send the application data of the target application received from the first vehicle-mounted terminal to the second vehicle-mounted terminal according to the serial number, so that the second vehicle-mounted terminal and the first vehicle-mounted terminal synchronously run the target application.

[0067] Step S330: Determine the application data of the target application according to the serial number.

[0068] In some embodiments, the cloud can determine the application data of the target application according to the serial number of the target program sent by the second vehicle-mounted terminal received. Among them, the cloud can compare the serial number of the target application sent by the second vehicle-mounted terminal of the received vehicle with the serial number of the target application sent by the first vehicle-mounted terminal received, and determine the application data corresponding to the target program installed in the second vehicle-mounted terminal according to the comparison result. Exemplarily, if the cloud determines that the serial number of the target application sent by the second vehicle-mounted terminal is consistent with the serial number of the target application sent by the first vehicle-mounted terminal, the application program of the target application sent by the received first vehicle-mounted terminal can be determined as the application data corresponding to the target program installed in the second vehicle-mounted terminal.

[0069] Optionally, if the cloud determines that the serial number of the target application sent by the second vehicle-mounted terminal is inconsistent with the serial number of the target application sent by the first vehicle-mounted terminal, it can be determined that the second vehicle-mounted terminal and the first vehicle-mounted terminal do not belong to the same vehicle. It can also be understood that the target applications running in the second vehicle-mounted terminal and the first vehicle-mounted terminal do not need to be synchronized. Accordingly, the cloud can send an instruction to request the application data of the target application installed in the second vehicle-mounted terminal to the second vehicle-mounted terminal, so that the second vehicle-mounted terminal sends the application data of the target application installed in the second vehicle-mounted terminal to the cloud in response to the instruction, and the cloud performs synchronization control on the target applications in the synchronized vehicle-mounted terminals according to the serial number of the target application and the application data.

[0070] Step S340: Send the application data to the second vehicle-mounted terminal so that the second vehicle-mounted terminal synchronizes the application data to the target application.

[0071] In some embodiments, after the cloud obtains the application data corresponding to the target program installed in the second vehicle-mounted terminal, it can send the application data to the second vehicle-mounted terminal so that the second vehicle-mounted terminal synchronizes the application data to the target application, realizing the synchronization of the target application running in the second vehicle-mounted terminal in the vehicle with the target application running in the first vehicle-mounted terminal, shortening the delay of multi-vehicle-mounted terminal application synchronization in the vehicle, and improving the accuracy of multi-vehicle-mounted terminal application synchronization. Among them, it should be noted that each vehicle-mounted terminal synchronizing the target application can independently control the target application, improving the user experience.

[0072] A data synchronization method provided by an embodiment of the present application receives the application data of a target application uploaded by a first in-vehicle terminal of a vehicle when the target application is running on the first in-vehicle terminal; receives the serial number of the target application uploaded by a second in-vehicle terminal of the vehicle, where the serial number is sent after the second in-vehicle terminal starts the target application, and the serial numbers of the same application installed on different in-vehicle terminals are the same; determines the application data of the target application according to the serial number; and sends the application data to the second in-vehicle terminal so that the second in-vehicle terminal synchronizes the application data to the target application. Thus, in the way of cloud synchronization, when any in-vehicle terminal in the vehicle enters the application, the application data of the application is sent to the cloud, and when other in-vehicle terminals in the vehicle enter the application, the serial number of the application in the other in-vehicle terminals is sent to the cloud, so that when the cloud determines that the application is the same application in the same vehicle according to the serial number of the application, the application data of the application is synchronized to the application in the other in-vehicle terminals. The same application running on multiple in-vehicle terminals in the vehicle is synchronized by means of non-audio-video screen mirroring transmission, shortening the delay of multi-in-vehicle terminal application synchronization in the vehicle and improving the accuracy of multi-in-vehicle terminal application synchronization.

[0073] Please refer to Figure 4 , Figure 4 which shows a block diagram of a data synchronization device provided by an embodiment of the present application. The data synchronization device 200 is applied to the above-mentioned electronic device, and the following will elaborate in detail on Figure 4 the process shown. The data synchronization device 200 includes: an application data synchronization to cloud module 210, a serial number sending module 220, and an application data synchronization to application module 230, where:

[0074] The application data synchronization to cloud module 210 is configured to synchronize the application data of the target application to the cloud when the target application is running on a first in-vehicle terminal of the vehicle.

[0075] The serial number sending module 220 is configured to send the serial number of the target application installed in the second in-vehicle terminal to the cloud if the second in-vehicle terminal in the vehicle starts the target application, where the serial numbers of the same application installed on different in-vehicle terminals are the same.

[0076] The application data synchronization to application module 230 is configured to receive the application data sent by the cloud and synchronize the application data to the target application in the second in-vehicle terminal, and the application data is determined by the cloud according to the serial number.

[0077] Further, the application data synchronization to application module 230 may include: a synchronous playback time interface application unit, where:

[0078] The synchronous playback time interface application unit is used to synchronize the multimedia data included in the application data to the target application in the second vehicle-mounted terminal for playback based on the synchronous playback time interface corresponding to the target application. The synchronous playback time interface is used to ensure that the multimedia data included in the application data of the target application is synchronously played in the corresponding vehicle-mounted terminal.

[0079] Further, after synchronizing the application data to the target application in the second vehicle-mounted terminal, the data synchronization device 200 may further include: an application interface display unit, where:

[0080] The application interface display unit is used to display a corresponding application interface through the second vehicle-mounted terminal according to the application data.

[0081] Further, the application data includes audio data. After synchronizing the application data to the target application in the second vehicle-mounted terminal, the data synchronization device 200 may further include: a vehicle-wide speaker playback unit, where:

[0082] The vehicle-wide speaker playback unit is used to play the audio data through the vehicle's vehicle-wide speakers if the first vehicle-mounted terminal or the second vehicle-mounted terminal is the vehicle-mounted terminal located in the rear row of the vehicle.

[0083] Further, the application data includes at least one of multimedia data, text data, and document data.

[0084] Please refer to Figure 5 , Figure 5 which shows a block diagram of a data synchronization device provided in an embodiment of the present application. The data synchronization device 300 is applied to the above-mentioned electronic device. The following will elaborate in detail on the Figure 5 process shown. The data synchronization device 300 includes: an application data receiving module 310, a serial number receiving module 320, an application data determining module 330, and an application data sending module 340, where:

[0085] The application data receiving module 310 is used to receive the application data of the target application uploaded by the first vehicle-mounted terminal when the target application is running on the first vehicle-mounted terminal of the vehicle.

[0086] The serial number receiving module 320 is used to receive the serial number of the target application uploaded by the second vehicle-mounted terminal of the vehicle, where the serial number is sent after the second vehicle-mounted terminal starts the target application, and the serial numbers of the same application installed on different vehicle-mounted terminals are the same.

[0087] An application data determination module 330 is configured to determine application data of the target application according to the serial number.

[0088] An application data sending module 340 is configured to send the application data to the second vehicle-mounted terminal, so that the second vehicle-mounted terminal synchronizes the application data to the target application.

[0089] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the foregoing method embodiments, and will not be described herein again.

[0090] In several embodiments provided in the present application, the coupling between modules can be electrical, mechanical, or other forms of coupling.

[0091] In addition, in each embodiment of the present application, each functional module can be integrated in a processing module, or each module can exist physically alone, or two or more modules can be integrated in one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules.

[0092] Please refer to Figure 6 , which shows a structural block diagram of an electronic device provided by an embodiment of the present application. The electronic device 100 can be a device with processing capabilities such as a core network or a cloud platform. Among them, the electronic device 100 can be understood as a server. The electronic device 100 in the present application can include one or more of the following components: a processor 110, a memory 120, and one or more application programs, where one or more application programs can be stored in the memory 120 and configured to be executed by one or more processors 110, and one or more programs are configured to execute the methods described in the foregoing method embodiments.

[0093] Among them, the processor 110 may include one or more processing cores. The processor 110 connects various parts within the entire electronic device 100 through various interfaces and circuits. By running or executing instructions, programs, code sets, or instruction sets stored in the memory 120, and by invoking the data stored in the memory 120, it performs various functions of the electronic device 100 and processes data. Optionally, the processor 110 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), or programmable logic array (PLA). The processor 110 may integrate a combination of one or more of a central processing unit (CPU), a graphics processing unit (GPU), and a modem, etc. Among them, the CPU mainly processes the operating system, user interface, application programs, etc.; the GPU is responsible for rendering and drawing the content to be displayed; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110 and may be implemented separately through a communication chip.

[0094] The memory 120 may include random access memory (RAM) and may also include read-only memory. The memory 120 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 120 may include a program storage area and a data storage area. Among them, the program storage area may store instructions for implementing the operating system, instructions for implementing at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store the data created during the use of the electronic device 100 (such as phone book, audio and video data, chat record data, etc.).

[0095] Please refer to Figure 7 , which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. Program code is stored in the computer-readable medium 400, and the program code can be called by the processor to execute the methods described in the above method embodiments.

[0096] The computer-readable storage medium 400 can be an electronic memory such as a flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, a hard disk, or a ROM. Optionally, the computer-readable storage medium 400 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 400 has a storage space for program code 410 that executes any of the method steps in the above-described method. These program codes can be read out from or written into one or more computer program products. The program code 410 can be compressed in a suitable form, for example.

[0097] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application and are not intended to limit them. Although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments or equivalently replace some of the technical features. These modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A data synchronization method, characterized in that, The method includes: When the target application runs on the first in-vehicle terminal of the vehicle, synchronize the application data of the target application to the cloud; If the second in-vehicle terminal in the vehicle starts the target application, send the serial number of the target application installed in the second in-vehicle terminal to the cloud, where the serial numbers of the same application installed on different in-vehicle terminals are the same; Receive the application data sent by the cloud and synchronize the application data to the target application in the second in-vehicle terminal, where the application data is determined by the cloud according to the serial number.

2. The method according to claim 1, wherein The synchronizing the application data to the target application in the second in-vehicle terminal includes: Based on the synchronous playback time interface corresponding to the target application, synchronize the multimedia data included in the application data to the target application in the second in-vehicle terminal for playback, and the synchronous playback time interface is used to ensure that the multimedia data included in the application data of the target application is synchronously played on the corresponding in-vehicle terminal.

3. The method according to claim 1, wherein After synchronizing the application data to the target application in the second in-vehicle terminal, it further includes: Display the corresponding application interface through the second in-vehicle terminal according to the application data.

4. The method according to claim 1, wherein The application data includes audio data. After synchronizing the application data to the target application in the second in-vehicle terminal, it further includes: If the first in-vehicle terminal or the second in-vehicle terminal is the in-vehicle terminal located in the rear row of the vehicle, play the audio data through the vehicle's vehicle-wide speaker.

5. The method according to any one of claims 1 to 4, characterized in that The application data includes at least one of multimedia data, text data, and document data.

6. A data synchronization method, characterized in that, The method includes: When the target application runs on the first in-vehicle terminal of the vehicle, receive the application data of the target application uploaded by the first in-vehicle terminal; Receive the serial number of the target application uploaded by the second in-vehicle terminal of the vehicle, where the serial number is sent after the second in-vehicle terminal starts the target application, and the serial numbers of the same application installed on different in-vehicle terminals are the same; Determine the application data of the target application according to the serial number; Send the application data to the second in-vehicle terminal so that the second in-vehicle terminal synchronizes the application data to the target application.

7. A data synchronization device, characterized in that, The device includes: An application data synchronizing to cloud module, configured to synchronize the application data of the target application to the cloud when the target application runs on the first in-vehicle terminal of the vehicle; A serial number sending module, configured to send the serial number of the target application installed in the second in-vehicle terminal to the cloud if the second in-vehicle terminal in the vehicle starts the target application, where the serial numbers of the same application installed on different in-vehicle terminals are the same; An application data synchronizing to application module, configured to receive the application data sent by the cloud and synchronize the application data to the target application in the second in-vehicle terminal, where the application data is determined by the cloud according to the serial number.

8. A data synchronization device, characterized in that, The device includes: An application data receiving module, configured to receive application data of the target application uploaded by the first vehicle-mounted terminal when the target application runs on the first vehicle-mounted terminal of the vehicle; A serial number receiving module, configured to receive a serial number of the target application uploaded by the second vehicle-mounted terminal of the vehicle, where the serial number is sent after the second vehicle-mounted terminal starts the target application, and the serial numbers of the same application installed on different vehicle-mounted terminals are consistent; An application data determining module, configured to determine the application data of the target application according to the serial number; An application data sending module, configured to send the application data to the second vehicle-mounted terminal, so that the second vehicle-mounted terminal synchronizes the application data to the target application.

9. An electronic device, characterized in that, Comprising: One or more processors; A memory; One or more application programs, where the one or more application programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method according to any one of claims 1-6.

10. A computer-readable storage medium, characterized in that, Program code is stored in the computer-readable storage medium, and the program code can be called by a processor to execute the method according to any one of claims 1-6.