File synchronization method and system

By providing file synchronization methods in the on-board system, the problem that multiple screens cannot synchronize application download tasks is solved, and the application download tasks of the whole vehicle screen are synchronized, avoiding the waste of network traffic.

CN115442383BActive Publication Date: 2025-03-18BEIJING CO WHEELS TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210645494.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-08
Publication Date
2025-03-18
Estimated Expiration
2042-06-08

AI Technical Summary

Technical Problem

In the prior art, in the vehicle-mounted system with multiple screens, the method of synchronizing application download tasks initiated by any screen to all screens in the vehicle, resulting in repeated wasting of user network traffic when the same application performs download operations one after another.

Method used

Provides a file synchronization method. By determining the device to be synchronized, it obtains whether the device already has the latest version of the target application's installation package file. If not, the download progress will be displayed synchronized on the target device, and after the download is completed, the latest version of the installation package file will be sent.

Benefits of technology

It is realized that in a multi-screen on-board system, application download tasks initiated by any screen can be synchronized to all screens in the vehicle, avoiding the waste of network traffic caused by repeated downloads.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115442383B_ABST
    Figure CN115442383B_ABST
Patent Text Reader

Abstract

The present disclosure provides a file synchronization method and system, which is applied to terminal devices to be downloaded in a distributed system, wherein the distributed system includes at least two terminal devices, and the method includes: determining at least one device to be synchronized; obtaining whether the device to be synchronized already has the latest version installation package file of the target application; if the target device to be synchronized among the at least one device to be synchronized does not have the latest version installation package file of the target application, then synchronously displaying the download progress of the target application on the target device to be synchronized, and after downloading the target application, sending the latest version installation package file of the target application to the target device to be synchronized. This method can be used to achieve that in a vehicle-mounted system with multiple screens, the application download task initiated by any screen can be synchronized to all screens in the vehicle, thereby solving the problem that multiple terminal screens cannot synchronize file tasks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of vehicle-mounted terminal software, and in particular to a file synchronization method, system, vehicle, vehicle-mounted terminal and computer-readable storage medium. Background Art

[0002] With the trend of automobile intelligence, the functions integrated into the vehicle central control screen are increasing. At present, the central control screens of many mass-produced vehicles mainly integrate functions such as entertainment, information, navigation, air-conditioning switches, and vehicle information display. In order to enhance the interactivity with other screens in the cockpit, the phenomenon of multi-screen in automobiles has emerged. For example, the car is equipped with a central control screen, a co-pilot screen, and a rear screen. The fusion of multiple screens is a relief for the integration of all center console functions in one central control screen in the past. There is an application store on each of the multiple screens to independently manage the applications on their respective screens.

[0003] In the related technology, multiple display screens are set up in the vehicle to provide different services to different users at the same time and improve the user experience. Since different screens have different functional focuses, the central control screen has a higher demand for auxiliary driving applications, such as navigation applications; but for the co-pilot screen and the rear screen, more practical are some entertainment applications, such as video applications, game applications, etc. Therefore, providing a unified full range of applications in the application stores of different screens is not user-friendly. In the case where there is an application store on each of the multiple screens to independently manage the applications on their respective screens, the problem of repeated waste of user network traffic will occur if the same application is downloaded one after another.

[0004] Therefore, the prior art lacks a method that can synchronize application download tasks initiated by any screen to all screens in the vehicle in a multi-screen vehicle system. Summary of the invention

[0005] In order to solve the above technical problem or at least partially solve the above technical problem, the present disclosure provides a file synchronization method, which solves the problem that multiple terminal screens cannot synchronize file tasks.

[0006] In order to achieve the above objectives, the embodiments of the present disclosure provide the following technical solutions:

[0007] In a first aspect, an embodiment of the present disclosure provides a file synchronization method, which is applied to a terminal device to be downloaded in a distributed system, wherein the distributed system includes at least two terminal devices, and the method includes:

[0008] Determine at least one device to be synchronized;

[0009] Obtaining whether the device to be synchronized already has the latest version installation package file of the target application;

[0010] If the target device to be synchronized among the at least one device to be synchronized does not have the latest version installation package file of the target application, the download progress of the target application is synchronously displayed on the target device to be synchronized, and after the target application is downloaded, the latest version installation package file of the target application is sent to the target device to be synchronized.

[0011] As an optional implementation of the embodiment of the present disclosure, the determining at least one device to be synchronized includes:

[0012] Receiving a download request from a user; the download request is used to request downloading of the target application;

[0013] In response to the download request, outputting prompt information; the prompt information is used to prompt the user to select to install the target application on at least one device to be synchronized;

[0014] At least one device to be synchronized is determined according to the prompt information.

[0015] As an optional implementation of the embodiment of the present disclosure, after sending the latest version installation package file of the target application to the target device to be synchronized, the method further includes:

[0016] Determining whether the target device to be synchronized supports installation of the target application according to the configuration information;

[0017] If the target device to be synchronized supports the installation of the target application, the target application is installed on the target device to be synchronized by a remote calling method.

[0018] As an optional implementation of the embodiment of the present disclosure, after installing the target application on the target device to be synchronized by remote calling, the method further includes:

[0019] The latest version installation package file of the target application of the target device to be synchronized is deleted by a remote calling method.

[0020] As an optional implementation of the embodiment of the present disclosure, if a first terminal device that does not belong to the at least one device to be synchronized receives a download request from a user during the download process of the target application, the download progress of the target application is synchronized to the first terminal device;

[0021] If a second terminal device belonging to the at least one device to be synchronized receives a download cancellation request from a user during the downloading process of the target application, the download progress of the target application is stopped from being updated on the second terminal device.

[0022] As an optional implementation of the embodiment of the present disclosure, if a second terminal device belonging to the at least one device to be synchronized receives a user's request to cancel downloading during the downloading process of the target application, then after stopping updating the download progress of the target application on the second terminal device, the method further includes:

[0023] When the second terminal device receives the download request from the user again, searching the second terminal device for the installation package file of the target application;

[0024] Parsing the installation package file of the target application to obtain the version number of the installation package file;

[0025] Compare the version number of the installation package file with the version number of the installation package file on the cloud server to see if they are consistent;

[0026] If they are consistent, query whether the target device to be synchronized has installed the target application to obtain a query result; the query result is used to indicate whether the target device to be synchronized has installed the target application and whether the version number of the installation package file is the latest version;

[0027] If they are inconsistent, delete the installation package file.

[0028] As an optional implementation of the embodiment of the present disclosure, if the device to be downloaded receives a download cancellation request from the user, the download task of the target device to be synchronized is canceled and the download record is deleted.

[0029] As an optional implementation of the embodiment of the present disclosure, the method further includes:

[0030] The timeliness of the installed application is determined according to the reserved storage space of the device to be synchronized and a least recently used algorithm; the reserved storage space is used to store the installation package set of the target application sent by the device to be downloaded.

[0031] As an optional implementation of the embodiment of the present disclosure, the method further includes:

[0032] When the device to be downloaded is a central control terminal device, the device to be downloaded has the authority to uninstall the application on the target device to be synchronized.

[0033] In a second aspect, an embodiment of the present disclosure provides a distributed file synchronization system, including:

[0034] A determination module, used to determine at least one device to be synchronized;

[0035] An acquisition module is used to acquire whether the device to be synchronized has the latest version installation package file of the target application;

[0036] A synchronization module is used to synchronously display the download progress of the target application on the target device to be synchronized if the target device to be synchronized among the at least one device to be synchronized does not have the latest version installation package file of the target application, and to send the latest version installation package file of the target application to the target device to be synchronized after downloading the target application.

[0037] As an optional implementation of the embodiment of the present disclosure, the determination module is specifically used to: receive a download request from a user; the download request is used to request downloading of the target application; in response to the download request, output prompt information; the prompt information is used to prompt the user to choose to install the target application on at least one device to be synchronized; and determine at least one device to be synchronized based on the prompt information.

[0038] As an optional implementation of the embodiment of the present disclosure, the distributed file synchronization system also includes a remote installation module, which is specifically used to: determine whether the target device to be synchronized supports the installation of the target application based on configuration information; if the target device to be synchronized supports the installation of the target application, install the target application on the target device to be synchronized through a remote call method.

[0039] As an optional implementation of the embodiment of the present disclosure, the distributed file synchronization system further includes a remote deletion module, which is specifically used to delete the latest version installation package file of the target application of the target device to be synchronized through a remote call method.

[0040] As an optional implementation of the embodiment of the present disclosure, the distributed file synchronization system further includes: if a first terminal device that does not belong to the at least one device to be synchronized receives a download request from a user during the download process of the target application, synchronizing the download progress of the target application to the first terminal device;

[0041] If a second terminal device belonging to the at least one device to be synchronized receives a download cancellation request from a user during the downloading process of the target application, the download progress of the target application is stopped from being updated on the second terminal device.

[0042] As an optional implementation of the embodiment of the present disclosure, the distributed file synchronization system further includes: when the second terminal device receives the user's download request again, searching for the installation package file of the target application on the second terminal device; parsing the installation package file of the target application to obtain the version number of the installation package file; comparing the version number of the installation package file with the version number of the installation package file on the cloud server to see if they are consistent; if they are consistent, querying whether the target device to be synchronized has installed the target application to obtain a query result; the query result is used to indicate whether the target device to be synchronized has installed the target application and whether the version number of the installation package file is the latest version; if they are inconsistent, deleting the installation package file.

[0043] As an optional implementation of the embodiment of the present disclosure, the distributed file synchronization system further includes a download cancellation module, which is specifically used to:

[0044] If the device to be downloaded receives a download cancellation request from the user, the download task of the target device to be synchronized is canceled and the download record is deleted.

[0045] As an optional implementation of the embodiment of the present disclosure, the distributed file synchronization system further includes a timeliness judgment module, which is specifically used to:

[0046] The timeliness of the installed application is determined according to the reserved storage space of the device to be synchronized and a least recently used algorithm; the reserved storage space is used to store the installation package set of the target application sent by the device to be downloaded.

[0047] As an optional implementation of the embodiment of the present disclosure, the distributed file synchronization system further includes a permission module, which is specifically used to:

[0048] When the device to be downloaded is a central control terminal device, the device to be downloaded has the authority to uninstall the application on the target device to be synchronized.

[0049] In a third aspect, an embodiment of the present disclosure provides a vehicle-mounted terminal, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the file synchronization method described in the first aspect or any implementation of the first aspect is implemented.

[0050] In a fourth aspect, an embodiment of the present disclosure provides a vehicle, comprising the distributed file synchronization system as described in the second aspect.

[0051] In a fifth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the file synchronization method described in the first aspect or any implementation of the first aspect is implemented.

[0052] The file synchronization method and system provided by the present disclosure are applied to the terminal devices to be downloaded in the distributed system. First, at least one device to be synchronized is determined, and then whether the device to be synchronized has the latest version installation package file of the target application. If the target device to be synchronized in at least one device to be synchronized does not have the latest version installation package file of the target application, the download progress of the target application is synchronously displayed on the target device to be synchronized, and after the target application is downloaded, the latest version installation package file of the target application is sent to the target device to be synchronized. Since the terminal to be downloaded sends the latest version installation package file of the target application to the target device to be synchronized after downloading the target application, in a vehicle-mounted system with multiple screens, the application download task initiated by any screen can be synchronized to all screens in the vehicle, thereby solving the problem that the file tasks cannot be synchronized on multiple terminal screens. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0054] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0055] Figure 1 A schematic diagram of an application scenario of the file synchronization method in an embodiment of the present disclosure;

[0056] Figure 2 This is one of the flowcharts of the file synchronization method in the embodiment of the present disclosure;

[0057] Figure 3 This is a second flowchart of the file synchronization method in the embodiment of the present disclosure;

[0058] Figure 4 This is one of the interface display diagrams of the file synchronization method in the embodiment of the present disclosure;

[0059] Figure 5 This is the second interface display diagram of the file synchronization method in the embodiment of the present disclosure;

[0060] Figure 6 This is the third interface display diagram of the file synchronization method in the embodiment of the present disclosure;

[0061] Figure 7 It is a structural diagram of a file synchronization system in an embodiment of the present disclosure;

[0062] Figure 8 It is a schematic diagram of the structure of the vehicle-mounted terminal described in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0063] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.

[0064] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.

[0065] Relational terms such as “first” and “second” in the description and claims of the present disclosure are merely used to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any such actual relationship or order between these entities or operations.

[0066] In the embodiments of the present disclosure, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present disclosure should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way. In addition, in the description of the embodiments of the present disclosure, unless otherwise specified, the meaning of "multiple" refers to two or more.

[0067] The file synchronization method provided by this application can be applied to Figure 1 The file synchronization method is applied to the terminal device to be downloaded in the distributed system. Figure 1For example, the distributed system may include a cloud server 11, a terminal device 12, a terminal device 13, and a terminal device 14. Among them, the terminal device 12, the terminal device 13, and the terminal device 14 may be a central control screen terminal device, a co-driver screen terminal device, and a rear screen terminal device respectively; each terminal device has at least one application store, and in conjunction with the background system of the application store, the application can be classified into a central control exclusive application, a co-driver exclusive application, a rear exclusive application, a universal application for the whole vehicle, etc., so that the application stores on three different screens can present different choices to users in different seating positions. The terminal device 12, the terminal device 13, and the terminal device 14 can all be used as terminal devices to be downloaded. The cloud server communicates with the terminal device 12, the terminal device 13, and the terminal device 14 through the network respectively. The terminal device 12, the terminal device 13, and the terminal device 14 communicate with each other through RPC (Remote Procedure Call). The cloud server 11 can be implemented with an independent server or a server cluster consisting of multiple servers.

[0068] In one embodiment, Figure 2 As shown, a file synchronization method is provided, which is applied to a terminal device to be downloaded in a distributed system, wherein the distributed system includes at least two terminal devices, and includes the following steps S21-S23:

[0069] Exemplarily, the distributed system includes at least two terminal devices, and the following situations may occur: In one case, the central control screen and the co-driver screen may belong to the same terminal device, and the rear screen belongs to another terminal device (it is understandable that a terminal device may have two display screens and two application stores, such as a computer may have two monitors, and the computer may have other application stores besides the application store that comes with the computer). Another situation is that the central control screen, the co-driver screen, and the rear screen each belong to a terminal device. The above two situations are just two application scenarios, and each manufacturer will have different settings, so there is no specific restriction here. In actual applications, the central control screen may belong to one terminal device, and the co-driver screen and the rear screen may belong to the same terminal device, etc.

[0070] S21. Determine at least one device to be synchronized.

[0071] In one embodiment, referring to Figure 3 As shown, step S21 (determining at least one device to be synchronized) can be implemented in the following manner:

[0072] S211. Receive a download request from a user.

[0073] The download request is used to request downloading of a target application.

[0074] S212: In response to the download request, output prompt information.

[0075] The prompt information is used to prompt the user to select to install the target application on at least one device to be synchronized.

[0076] Specifically, the prompt information may be output in the form of a pop-up selection box on the screen to provide a user with a choice, or in other reasonable and convenient ways for the user to choose, which is not specifically limited here.

[0077] S213: Determine at least one device to be synchronized according to the prompt information.

[0078] Specifically, a user clicks on an application in the application store on the screen of any terminal device, and the device to be downloaded receives the user's download request, and in response to the download request, outputs prompt information for prompting the user to select to install the target application on at least one device to be synchronized, and determines at least one device to be synchronized based on the prompt information.

[0079] For example, refer to Figure 4 As shown in the figure, suppose the user clicks to download application A on a terminal device to be downloaded. The terminal device to be downloaded can be the terminal device to which the central control screen belongs, the terminal device to which the co-pilot screen belongs, or the terminal device to which the rear screen belongs. At this time, a window "Please select which screens to install on" pops up. Figure 5 As shown, the user can check the corresponding screen. After receiving the information selected by the user, the terminal device to be downloaded determines at least one device to be synchronized.

[0080] S22: Obtain whether the device to be synchronized has the latest version installation package file of the target application.

[0081] Specifically, the terminal device to be downloaded obtains whether the device to be synchronized has the latest version of the target application installation package file through the remote procedure call method RPC. Among them, RPC is an encapsulated remote call method that integrates functions such as remote installation, remote uninstallation, and querying application installation information on other devices. For example, it can query information such as the version number of the installed application.

[0082] S23. If the target device to be synchronized among the at least one device to be synchronized does not have the latest version installation package file of the target application, the download progress of the target application is synchronously displayed on the target device to be synchronized, and after the target application is downloaded, the latest version installation package file of the target application is sent to the target device to be synchronized.

[0083] For example, suppose the user clicks to download application A on the central control screen, and when a pop-up window pops up, selects to install on the central control screen, the co-driver screen, and the rear screen. If the co-driver screen terminal device and the rear screen terminal device do not have the latest version of the installation package file of application A, the download progress of application A will be displayed synchronously on the co-driver screen terminal device and the rear screen terminal device. Figure 6 After the central control screen terminal device downloads application A locally, it sends the latest version installation package file of application A to the co-driver screen terminal device and the rear screen terminal device.

[0084] The file synchronization method provided by the present disclosure is applied to the terminal device to be downloaded in the distributed system. First, at least one device to be synchronized is determined, and then whether the device to be synchronized already has the latest version installation package file of the target application. If the target device to be synchronized in at least one device to be synchronized does not have the latest version installation package file of the target application, the download progress of the target application is synchronously displayed on the target device to be synchronized, and after the target application is downloaded, the latest version installation package file of the target application is sent to the target device to be synchronized. Since the terminal to be downloaded sends the latest version installation package file of the target application to the target device to be synchronized after downloading the target application, in a vehicle-mounted system with multiple screens, the application download task initiated by any screen can be synchronized to all screens in the vehicle, thereby solving the problem that the file tasks cannot be synchronized on multiple terminal screens.

[0085] In one embodiment, after executing step S13 (sending the latest version installation package file of the target application to the target device to be synchronized), the following steps are further executed:

[0086] a. Determine whether the target device to be synchronized supports the installation of the target application according to the configuration information.

[0087] Specifically, before the target application is downloaded and installed, the configuration information is used to configure the target type application to support installation on a specific terminal device.

[0088] For example, when performing business maintenance on the cloud server, the cloud server configures various types of applications to support specific terminal devices. For example, navigation applications can be installed on the central control screen terminal device and the co-pilot screen terminal device, game and video applications can only be installed on the rear screen terminal and the co-pilot screen terminal device, and music applications can be installed on all terminal devices in the vehicle.

[0089] b. If the target device to be synchronized supports the installation of the target application, the target application is installed on the target device to be synchronized by remote calling.

[0090] For example, application A is a music application. After application A is downloaded locally on the device to be downloaded, the installation package file of application A is sent to all screens that support the application through a remote procedure call. After receiving the installation package file of application A, each screen feeds back a message that the installation package file has been received to the device to be downloaded, and then initiates remote installation through a remote procedure call.

[0091] Furthermore, in one embodiment, after executing the above step b (installing the target application on the target device to be synchronized by a remote call method), the following step may also be executed: deleting the latest version installation package file of the target application on the target device to be synchronized by a remote call method.

[0092] Exemplarily, based on the above embodiment, after the terminals corresponding to each screen are successfully installed, the installation package file of the application A on the distributed system is deleted by remote procedure call.

[0093] In one embodiment, there are two situations:

[0094] A. If a first terminal device that does not belong to the at least one device to be synchronized receives a download request from a user during the downloading process of the target application, the download progress of the target application is synchronized to the first terminal device.

[0095] Specifically, after entering the download state, the task initiator broadcasts the download progress to all devices to be synchronized through DRC (Distribution Remote Call, a technology for inter-board communication that supports subscription publishing mode). At this time, if the first terminal device does not belong to any of the at least one device to be synchronized, but the first terminal device receives the user's download request, the download progress of the target application is directly synchronized to the first terminal device. Among them, DRC is used to communicate between two nodes within a local area network.

[0096] For example, assuming that the central control screen terminal device receives a task to download application A, and determines the co-driver screen terminal device as the device to be synchronized according to the prompt information, and does not select the rear screen terminal device as the device to be synchronized, it can be understood that the first terminal device is the rear screen terminal device. During the process of the central control screen terminal device downloading application A, if the rear screen terminal device also receives the task to download application A, the download progress of application A on the central control screen terminal device will be synchronized to the rear screen terminal device.

[0097] B. If a second terminal device belonging to the at least one device to be synchronized receives a download cancellation request from a user during the downloading process of the target application, then the download progress of the target application is stopped from being updated on the second terminal device.

[0098] Specifically, assuming that the second terminal device is one of at least one device to be synchronized, during the downloading process of the target application, the second terminal device receives a download cancellation request from the user, and then stops updating the download progress of the target application on the second terminal device. It should be noted that, since only the second terminal device abandons this task at this time, the download progress of the target application is stopped only on this terminal device.

[0099] For example, assuming that the central control screen terminal device receives a task to download application A, and determines the co-driver screen terminal device and the rear screen terminal device as devices to be synchronized according to the prompt information, during the process of the central control screen terminal device downloading application A, if the co-driver screen terminal device receives a request to cancel the download of application A, it can be understood that the second terminal device is the co-driver screen terminal device, then the download progress of application A will be stopped from being updated on the co-driver screen terminal device.

[0100] Further, based on the above embodiment, when the second terminal device receives the download request from the user again, the following steps may be performed:

[0101] B-1. Searching for the installation package file of the target application on the second terminal device.

[0102] B-2. Parse the installation package file of the target application and obtain the version number of the installation package file.

[0103] B-3. ​​Compare the version number of the installation package file with the version number of the installation package file on the cloud server to see if they are consistent.

[0104] If the version number of the installation package file is consistent with the version number of the installation package file of the cloud server, execute step B-4; otherwise, execute B-5.

[0105] B-4. Query whether the target device to be synchronized has installed the target application and obtain the query result.

[0106] The query result is used to indicate whether the target device to be synchronized has installed the target application and whether the version number of the installation package file is the latest version number.

[0107] If the version number of the installation package file is inconsistent with the version number of the installation package file of the cloud server, execute step B-5.

[0108] B-5. Delete the installation package file.

[0109] Exemplarily, the second terminal device may be a rear screen terminal device. When the second terminal device receives the download request for the first time, during the download process, the second terminal device receives a command to cancel the download task. After a preset time interval, when the second terminal device receives the user's download request again, the second terminal device first searches for the installation package file of the target application, then parses the installation package file, obtains the version number of the installation package file, and compares the version number of the installation package file with the version number of the installation package file of the cloud server. It should be noted that the version number of the installation package file of the cloud server is the latest version number. If the version number of the installation package file is consistent with the version number of the installation package file of the cloud server, query whether the target application has been installed on all screen terminals through RPC to prevent the target application from being installed and then uninstalled. If the version number of the installation package file is inconsistent with the version number of the installation package file of the cloud server, delete the installation package file of the target program and re-enter step S21.

[0110] In one embodiment, if the device to be downloaded receives a download cancellation request from the user, the download task of the target device to be synchronized is canceled and the download record is deleted.

[0111] For example, since the device to be downloaded is the initiator of the application download, assuming that the device to be downloaded is a central control screen terminal device, when the central control screen terminal device receives the user's request to cancel the download, it is considered to abandon the download task on all screen terminals. At this time, the user interface of each screen is updated and the download record is deleted from the task record of each screen. It should be noted that since the task initiator abandons this task at this time, the download progress of the target application is stopped from being updated on all terminal devices of the distributed system.

[0112] In one embodiment, the timeliness of the installed application is determined based on the reserved storage space of the device to be synchronized and a least recently used algorithm.

[0113] The reserved storage space is used to store a set of installation packages of target applications sent by the device to be downloaded.

[0114] Exemplarily, the reserved storage space of each terminal device is set to 1G in order to store the installation package files of such received applications. The files in the reserved directory are sorted by usage frequency using the least recently used algorithm, with the most frequently used files at the top of the directory and the least frequently used files at the bottom of the directory. When a new installation package file is received, it is first determined whether the reserved space will exceed 1G when the new installation package is stored. If so, the files at the bottom of the directory are deleted in order according to the size of the new installation package file to store the new installation package file in the reserved storage space.

[0115] Since the files on the terminal devices corresponding to each screen are managed independently by each terminal device, in order to effectively use the storage space of each terminal device, a time limit can be set for each downloaded file to facilitate timely deletion of files that have exceeded the time limit.

[0116] In one embodiment, when the device to be downloaded is a central control terminal device, the device to be downloaded has the authority to uninstall the application on the target device to be synchronized.

[0117] For example, when uninstalling an application, the co-pilot screen and the rear screen can only uninstall their own applications. The central control screen has the authority to uninstall all applications in the vehicle and can provide an option to uninstall the entire vehicle. After the user initiates the uninstallation of the entire vehicle, the uninstallation of multiple screens will be synchronized through RPC.

[0118] The file synchronization method provided by the present disclosure is applied to the terminal device to be downloaded in the distributed system. First, at least one device to be synchronized is determined, and then whether the device to be synchronized already has the latest version installation package file of the target application. If the target device to be synchronized in at least one device to be synchronized does not have the latest version installation package file of the target application, the download progress of the target application is synchronously displayed on the target device to be synchronized, and after the target application is downloaded, the latest version installation package file of the target application is sent to the target device to be synchronized. Since the terminal to be downloaded sends the latest version installation package file of the target application to the target device to be synchronized after downloading the target application, in a vehicle-mounted system with multiple screens, the application download task initiated by any screen can be synchronized to all screens in the vehicle, thereby solving the problem that the file tasks cannot be synchronized on multiple terminal screens.

[0119] In one embodiment, Figure 7 As shown, a distributed file synchronization system 700 is provided, including:

[0120] A determination module 710, configured to determine at least one device to be synchronized;

[0121] The acquisition module 720 is used to obtain whether the device to be synchronized has the latest version installation package file of the target application;

[0122] The synchronization module 730 is used to synchronously display the download progress of the target application on the target device to be synchronized if the target device to be synchronized among the at least one device to be synchronized does not have the latest version installation package file of the target application, and to send the latest version installation package file of the target application to the target device to be synchronized after downloading the target application.

[0123] As an optional implementation of the embodiment of the present disclosure, the determination module 710 is specifically used to: receive a download request from a user; the download request is used to request downloading of the target application; in response to the download request, output prompt information; the prompt information is used to prompt the user to choose to install the target application on at least one device to be synchronized; and determine at least one device to be synchronized based on the prompt information.

[0124] As an optional implementation of the embodiment of the present disclosure, the distributed file synchronization system also includes a remote installation module, which is specifically used to: determine whether the target device to be synchronized supports the installation of the target application based on configuration information; if the target device to be synchronized supports the installation of the target application, install the target application on the target device to be synchronized through a remote call method.

[0125] As an optional implementation of the embodiment of the present disclosure, the distributed file synchronization system further includes a remote deletion module, which is specifically used to delete the latest version installation package file of the target application of the target device to be synchronized through a remote call method.

[0126] As an optional implementation of the embodiment of the present disclosure, the distributed file synchronization system further includes: if a first terminal device that does not belong to the at least one device to be synchronized receives a download request from a user during the download process of the target application, synchronizing the download progress of the target application to the first terminal device;

[0127] If a second terminal device belonging to the at least one device to be synchronized receives a download cancellation request from a user during the downloading process of the target application, the download progress of the target application is stopped from being updated on the second terminal device.

[0128] As an optional implementation of the embodiment of the present disclosure, the distributed file synchronization system further includes: when the second terminal device receives the user's download request again, searching for the installation package file of the target application on the second terminal device; parsing the installation package file of the target application to obtain the version number of the installation package file; comparing the version number of the installation package file with the version number of the installation package file on the cloud server to see if they are consistent; if they are consistent, querying whether the target device to be synchronized has installed the target application to obtain a query result; the query result is used to indicate whether the target device to be synchronized has installed the target application and whether the version number of the installation package file is the latest version; if they are inconsistent, deleting the installation package file.

[0129] As an optional implementation of the embodiment of the present disclosure, the distributed file synchronization system further includes a download cancellation module, which is specifically used to:

[0130] If the device to be downloaded receives a download cancellation request from the user, the download task of the target device to be synchronized is canceled and the download record is deleted.

[0131] As an optional implementation of the embodiment of the present disclosure, the distributed file synchronization system further includes a timeliness judgment module, which is specifically used to:

[0132] The timeliness of the installed application is determined according to the reserved storage space of the device to be synchronized and a least recently used algorithm; the reserved storage space is used to store the installation package set of the target application sent by the device to be downloaded.

[0133] As an optional implementation of the embodiment of the present disclosure, the distributed file synchronization system further includes a permission module, which is specifically used to:

[0134] When the device to be downloaded is a central control terminal device, the device to be downloaded has the authority to uninstall the application on the target device to be synchronized.

[0135] The file synchronization system provided by the present disclosure first determines at least one device to be synchronized, and then obtains whether the device to be synchronized already has the latest version installation package file of the target application. If the target device to be synchronized among at least one device to be synchronized does not have the latest version installation package file of the target application, the download progress of the target application is synchronously displayed on the target device to be synchronized, and after the target application is downloaded, the latest version installation package file of the target application is sent to the target device to be synchronized. Since the terminal to be downloaded sends the latest version installation package file of the target application to the target device to be synchronized after downloading the target application, in a vehicle-mounted system with multiple screens, the application download task initiated by any screen can be synchronized to all screens in the vehicle, thereby solving the problem that the file tasks cannot be synchronized on multiple terminal screens.

[0136] For the specific definition of the distributed file synchronization system, please refer to the definition of the file synchronization method above, which will not be repeated here. Each module in the above-mentioned distributed file synchronization system can be implemented in whole or in part by software, hardware and their combination. The above-mentioned modules can be embedded in or independent of the processor of the vehicle terminal in the form of hardware, or can be stored in the processor of the vehicle terminal in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0137] The disclosed embodiment also provides a vehicle-mounted terminal, Figure 8 This is a schematic diagram of the structure of the vehicle terminal provided by the embodiment of the present disclosure. Figure 8As shown, the vehicle terminal provided in this embodiment includes: a memory 81 and a processor 82, the memory 81 is used to store computer programs; the processor 82 is used to execute the steps executed in any embodiment of the file synchronization method provided in the above method embodiment when calling the computer program. The vehicle terminal includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the vehicle terminal is used to provide computing and control capabilities. The memory of the vehicle terminal includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. When the computer program is executed by the processor, a file synchronization method is implemented. The display screen of the vehicle terminal can be a liquid crystal display screen or an electronic ink display screen, and the input device of the vehicle terminal can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.

[0138] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the scheme of the present disclosure, and does not constitute a limitation on the computer device to which the scheme of the present disclosure is applied. The specific vehicle-mounted terminal may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0139] In one embodiment, the distributed file synchronization system provided by the present disclosure can be implemented in the form of a computer, and the computer program can be used in Figure 8 The memory of the vehicle terminal can store various program modules constituting the distributed file synchronization system of the vehicle terminal, such as: Figure 7 The determination module 710, acquisition module 720, and synchronization module 730 shown in the figure. The computer program composed of various program modules enables the processor to execute the steps of the file synchronization method of the vehicle terminal of each embodiment of the present disclosure described in this specification.

[0140] The embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the file synchronization method provided by the above method embodiment is implemented.

[0141] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program code.

[0142] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0143] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0144] Computer readable media include permanent and non-permanent, removable and non-removable storage media. Storage media can be implemented by any method or technology to store information, and the information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0145] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0146] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A file synchronization method, characterized in that: The method is applied to a terminal device to be downloaded in a distributed system, wherein the distributed system includes the terminal device to be downloaded and at least one device to be synchronized, and comprises: Determine at least one device to be synchronized; Obtaining whether the device to be synchronized already has the latest version installation package file of the target application; If the target device to be synchronized among the at least one device to be synchronized does not have the latest version installation package file of the target application, synchronously displaying the download progress of the target application on the target device to be synchronized, and after downloading the target application, sending the latest version installation package file of the target application to the target device to be synchronized; If a second terminal device belonging to the at least one device to be synchronized receives a download cancellation request from a user during the downloading process of the target application, the download progress of the target application is stopped from being updated on the second terminal device.

2. The method according to claim 1, characterized in that The determining of at least one device to be synchronized includes: Receiving a download request from a user; the download request is used to request downloading of the target application; In response to the download request, outputting prompt information; the prompt information is used to prompt the user to select to install the target application on at least one device to be synchronized; At least one device to be synchronized is determined according to the prompt information.

3. The method according to claim 1, characterized in that After sending the latest version installation package file of the target application to the target device to be synchronized, the method further includes: Determining whether the target device to be synchronized supports installation of the target application according to the configuration information; If the target device to be synchronized supports the installation of the target application, the target application is installed on the target device to be synchronized by a remote calling method.

4. The method according to claim 1, characterized in that: The method further comprises: If a first terminal device that does not belong to the at least one device to be synchronized receives a download request from a user during the downloading process of the target application, the download progress of the target application is synchronized to the first terminal device.

5. The method according to claim 4, characterized in that If a second terminal device belonging to the at least one device to be synchronized receives a download cancellation request from a user during the downloading process of the target application, then after stopping updating the download progress of the target application on the second terminal device, the method further includes: When the second terminal device receives the download request from the user again, searching the second terminal device for the installation package file of the target application; Parsing the installation package file of the target application to obtain the version number of the installation package file; Compare the version number of the installation package file with the version number of the installation package file on the cloud server to see if they are consistent; If they are consistent, query whether the target device to be synchronized has installed the target application to obtain a query result; the query result is used to indicate whether the target device to be synchronized has installed the target application and whether the version number of the installation package file is the latest version; If they are inconsistent, delete the installation package file.

6. The method according to claim 1, characterized in that The method further comprises: The timeliness of the installed application is determined according to the reserved storage space of the device to be synchronized and the least recently used algorithm; the reserved storage space is used to store the installation package set of the target application sent by the terminal device to be downloaded.

7. A distributed file synchronization system, characterized in that: include: A determination module, used to determine at least one device to be synchronized; An acquisition module is used to acquire whether the device to be synchronized has the latest version installation package file of the target application; A synchronization module, configured to synchronously display the download progress of the target application on the target device to be synchronized if the target device to be synchronized among the at least one device to be synchronized does not have the latest version installation package file of the target application, and to send the latest version installation package file of the target application to the target device to be synchronized after the target application is downloaded; If a second terminal device belonging to the at least one device to be synchronized receives a download cancellation request from a user during the downloading process of the target application, the download progress of the target application is stopped from being updated on the second terminal device.

8. A vehicle-mounted terminal, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the file synchronization method according to any one of claims 1 to 6 is implemented.

9. A vehicle, characterized in that: Comprising the distributed file synchronization system as described in claim 7.

10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the file synchronization method described in any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Method and device for sharing application program

    CN101860591A

  • Application sharing method between terminals and terminal

    CN109977086A