WO2016101441A1 - 一种进行文件同步的方法及系统 - Google Patents

一种进行文件同步的方法及系统 Download PDF

Info

Publication number
WO2016101441A1
WO2016101441A1 PCT/CN2015/076460 CN2015076460W WO2016101441A1 WO 2016101441 A1 WO2016101441 A1 WO 2016101441A1 CN 2015076460 W CN2015076460 W CN 2015076460W WO 2016101441 A1 WO2016101441 A1 WO 2016101441A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
synchronized
information
server
state information
Prior art date
Application number
PCT/CN2015/076460
Other languages
English (en)
French (fr)
Inventor
杨志兵
Original Assignee
捷开通讯(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 捷开通讯(深圳)有限公司 filed Critical 捷开通讯(深圳)有限公司
Priority to US14/911,949 priority Critical patent/US9621704B2/en
Publication of WO2016101441A1 publication Critical patent/WO2016101441A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72415User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories for remote control of appliances
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/178Techniques for file synchronisation in file systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/75Media network packet handling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Definitions

  • the present invention relates to the field of electronic devices, and in particular, to a method and system for performing file synchronization.
  • TVs are becoming more and more intelligent and networked. People can perform various operations by installing related applications on smart TVs: watching movies, watching TV, listening to music, browsing pictures, and so on.
  • wireless communication devices are playing an increasingly important role in people's lives. People also perform various operations through wireless communication devices: watching e-books, movies, watching live TV, listening. Music, browsing pictures, browsing the web, brushing Weibo, and more.
  • the device continues to watch the movie. At this point, it is necessary to find the movie application on the smart device, then search for the movie, start playing the movie, and finally manually adjust to the time point viewed on the smart TV. Similarly, if the user is listening to music, browsing the web, brushing Weibo, etc., it is necessary to perform repeated operations, which is very troublesome, and it may be difficult to find the status point of the previous operation, which affects the user's experience.
  • the technical problem to be solved by the present invention is to provide a method and system for performing file synchronization, which can enable files to be used synchronously between different devices to improve user experience.
  • a technical solution adopted by the present invention is to provide a system for performing file synchronization, the system comprising: a first device, a server, and at least one second device;
  • the first device includes:
  • a first sending module configured to send a file synchronization request to the server, where the file synchronization request includes a file identifier of the file to be synchronized, and an identifier of the first device;
  • the server includes:
  • a first receiving module configured to receive a file synchronization request of the first device
  • a first module configured to search, according to the file synchronization request, the locally saved first file synchronization information sent by the first device and the at least one second file synchronization information sent by the at least one second device, where the first
  • the file synchronization information includes a file identifier of the file to be synchronized, first state information of the file to be synchronized, and an identifier of the first device, where the second file synchronization information includes a file of the file to be synchronized. Identifying, second state information of the file that needs to be synchronized, and identifier of the second device;
  • a determining module configured to determine, according to the first file synchronization information and the at least one second file synchronization information, the latest of the files that need to be synchronized in the first state information and the at least one second state information status information;
  • a first sending module configured to send latest state information of the file that needs to be synchronized to the first device
  • the first device further includes:
  • a receiving module configured to receive latest state information of the file that needs to be synchronized sent by the server
  • a synchronization module configured to perform a synchronization operation of the file according to the latest state information of the file that needs to be synchronized
  • the first device further includes:
  • a second sending module configured to send the first file synchronization information to the server
  • the server further includes:
  • a second receiving module configured to receive the first file synchronization information sent by the first device, and save the information locally;
  • the at least one second device includes:
  • a sending module configured to send the at least one second file synchronization information to the server
  • the server further includes:
  • the third receiving module is configured to receive and receive the at least one second file synchronization information sent by the at least one second device, and save the information locally.
  • the first device is a mobile device
  • the at least one second device is a smart TV.
  • the file to be synchronized includes one or more of a video play file, a music play file, a browser file, a microblog client file, and an e-book reader file.
  • another technical solution adopted by the present invention is to provide a method for performing file synchronization, including:
  • the first device sends a file synchronization request to the server, where the file synchronization request includes a file identifier of the file to be synchronized, and an identifier of the first device;
  • the server Receiving, by the server, a file synchronization request of the first device, and searching, according to the file synchronization request, the locally saved first file synchronization information sent by the first device and the at least one second file sent by the at least one second device Synchronization information, wherein the first file synchronization information includes a file identifier of the file to be synchronized, first state information of the file to be synchronized, and an identifier of the first device, the second file synchronization information a file identifier including the file to be synchronized, second state information of the file to be synchronized, and an identifier of the second device; and according to the first file synchronization information and the at least one second file synchronization information, Determining, in the first state information and the at least one second state information, latest state information of the file that needs to be synchronized; sending latest state information of the file that needs to be synchronized to the first device;
  • the first device receives the latest state information of the file that needs to be synchronized sent by the server, and performs a synchronization operation of the file according to the latest state information of the file that needs to be synchronized.
  • the method Before the step of the first device sending a file synchronization request to the server, the method includes:
  • the first device sends the first file synchronization information to the server
  • the server receives the first file synchronization information sent by the first device, and saves the information locally.
  • the method further includes:
  • the server receives the at least one second file synchronization information sent by the at least one second device, and saves the information locally.
  • the first device is a mobile device
  • the at least one second device is a smart TV.
  • the file to be synchronized includes one or more of a video play file, a music play file, a browser file, a microblog client file, and an e-book reader file.
  • another technical solution adopted by the present invention is to provide a system for performing file synchronization, the system comprising: a first device, a server, and at least one second device;
  • the first device includes:
  • a first sending module configured to send a file synchronization request to the server, where the file synchronization request includes a file identifier of the file to be synchronized, and an identifier of the first device;
  • the server includes:
  • a first receiving module configured to receive a file synchronization request of the first device
  • a first module configured to search, according to the file synchronization request, the locally saved first file synchronization information sent by the first device and the at least one second file synchronization information sent by the at least one second device, where the first
  • the file synchronization information includes a file identifier of the file to be synchronized, first state information of the file to be synchronized, and an identifier of the first device, where the second file synchronization information includes a file of the file to be synchronized. Identifying, second state information of the file that needs to be synchronized, and identifier of the second device;
  • a determining module configured to determine, according to the first file synchronization information and the at least one second file synchronization information, the latest of the files that need to be synchronized in the first state information and the at least one second state information status information;
  • a first sending module configured to send latest state information of the file that needs to be synchronized to the first device
  • the first device further includes:
  • a receiving module configured to receive latest state information of the file that needs to be synchronized sent by the server
  • the synchronization module is configured to perform a synchronization operation of the file according to the latest state information of the file that needs to be synchronized.
  • the first device further includes:
  • a second sending module configured to send the first file synchronization information to the server
  • the server further includes:
  • the second receiving module is configured to receive the first file synchronization information sent by the first device, and save the information locally.
  • the at least one second device includes:
  • a sending module configured to send the at least one second file synchronization information to the server
  • the server further includes:
  • the third receiving module is configured to receive and receive the at least one second file synchronization information sent by the at least one second device, and save the information locally.
  • the first device is a mobile device
  • the at least one second device is a smart TV.
  • the file to be synchronized includes one or more of a video play file, a music play file, a browser file, a microblog client file, and an e-book reader file.
  • the present invention has the following advantages: the present invention saves the first file synchronization information sent by the first device and the at least one second file synchronization information sent by the at least one second device by the server, and according to the foregoing Determining, by the first file synchronization information and the at least one second file synchronization information, the latest state information of the file that needs to be synchronized in the first state information and the at least one second state information, the server will need to synchronize The latest status information of the file is sent to the first device that needs to perform file synchronization, and the first device performs the file synchronization operation according to the latest state information of the file that needs to be synchronized, and adjusts the file to the latest state information saved in the server. Corresponding to the latest state, the file is synchronized between different devices, avoiding the need to manually adjust the file status and manually adjust the inaccuracy, so that the smooth operation of the device is improved, thereby improving the user experience.
  • FIG. 1 is a flow chart of an embodiment of a method for performing file synchronization according to the present invention
  • FIG. 2 is a flow chart of another embodiment of a method for performing file synchronization according to the present invention.
  • FIG. 3 is a flow chart of still another embodiment of a method for performing file synchronization according to the present invention.
  • FIG. 5 is a flow chart of a mobile device sending a file synchronization request to a server and implementing file synchronization
  • FIG. 6 is a schematic structural diagram of an embodiment of a system for performing file synchronization according to the present invention.
  • FIG. 7 is a schematic structural diagram of another embodiment of a system for performing file synchronization according to the present invention.
  • FIG. 8 is a schematic structural diagram of still another embodiment of a system for performing file synchronization according to the present invention.
  • FIG. 1 is a flowchart of an embodiment of a method for performing file synchronization according to the present invention.
  • the method for performing file synchronization in this embodiment includes the following steps:
  • Step 101 The first device sends a file synchronization request to the server, where the file synchronization request includes a file identifier of the file to be synchronized, and an identifier of the first device.
  • the file identifier of the file to be synchronized is an identifier for identifying a file that needs to be synchronized
  • the identifier of the first device is an identifier for identifying the first device corresponding to the first device.
  • Step S102 The server receives the file synchronization request of the first device, and searches for the first file synchronization information sent by the locally saved first device and the at least one second file synchronization information sent by the at least one second device according to the file synchronization request, where
  • the first file synchronization information includes a file identifier of the file to be synchronized, first state information of the file to be synchronized, and an identifier of the first device
  • the second file synchronization information includes a file identifier of the file to be synchronized, and a file to be synchronized.
  • the second state information, the identifier of the second device determining the latest state information of the file to be synchronized in the first state information and the at least one second state information according to the first file synchronization information and the at least one second file synchronization information;
  • the latest status information of the synchronized file is sent to the first device;
  • the first state information of the file to be synchronized is the state of the file that needs to be synchronized when the first device last uses the file that needs to be synchronized, and the identifier of the second device is used to identify the second device.
  • the identifier of the second device, the second state information of the file to be synchronized is the state of the file that needs to be synchronized when the second device last uses the file that needs to be synchronized last time; wherein, in specific implementation, the server may establish the first
  • the correspondence between the identifier of the device and the identifier of the second device may be convenient for the server to search according to the correspondence.
  • the identifier of the first device and the identifier of the second device may be the same, for example, the server according to the file of the first device Synchronizing the request, searching for the first file synchronization information sent by the first device and the second file synchronization information sent by the second device having the same identifier as the first device, and then the server further determines, according to the file identifier of the file to be synchronized, at the first Searching, in the file synchronization information, first state information of the file to be synchronized and searching for second state information in the second file synchronization information, and comparing the first state information and the second state information to determine a file that needs to be synchronized stored in the server
  • the latest status information finally sends the latest status information to the first device; the latest status information refers to the status of the file to be synchronized when the last use of the first device or the second device ends.
  • the identifier of the first device and the identifier of the second device may also be different identifiers having corresponding relationships
  • the server searches for the file that needs to be synchronized of the first device saved by the server according to the file synchronization request of the first device.
  • First state information and second state information of a file of the second device having a corresponding device identifier corresponding to the first device, and comparing the first state information and the second state information to determine that the saved in the server needs to be synchronized The latest status information of the file, and finally the latest status information is sent to the first device.
  • the server after receiving the first file synchronization information and the second file synchronization information respectively sent by the first device and the second device having the same identifier, finds the file that needs to be synchronized according to the file identifier that needs to be synchronized.
  • First state information and second state information and comparing the first state information or the second state information with state information of a file that needs to be synchronized stored on the server to determine the first state information or the second state information and the server
  • the latest state information in the saved state information of the file to be synchronized if the first state information or the second state information is the latest state information, and the latest state information is saved, and the old state information saved on the server is cleared, if the server If the state information of the saved file to be synchronized is the latest state information, the server does not save the first state information or the second state information, and continues to retain the latest state information on the server, so that only one state information is saved for one file on the server. Can save storage space; this way, when the server receives When a device file synchronization request, send the latest status information directly to the first device, without the need for a comparison operation, increase the response speed.
  • Step S103 The first device receives the latest state information of the file that needs to be synchronized sent by the server, and performs a synchronization operation of the file according to the latest state information of the file that needs to be synchronized.
  • the first device adjusts the file that needs to be synchronized to a state corresponding to the latest state information according to the latest state information of the file that needs to be synchronized sent by the server, so as to implement synchronization of the file between different devices.
  • the embodiment saves the first file synchronization information sent by the first device and the at least one second file synchronization information sent by the at least one second device by using the server, and according to the first file synchronization information and the at least one
  • the second file synchronization information determines the latest state information of the file to be synchronized in the first state information and the at least one second state information
  • the server sends the latest state information of the file to be synchronized to the first device that needs to perform file synchronization
  • a device performs a file synchronization operation according to the latest state information of the file to be synchronized, and adjusts the file to the latest state corresponding to the latest state information held in the server, thereby realizing the synchronous use of the file between different devices, thereby avoiding
  • FIG. 2 is a flowchart of another embodiment of a method for performing file synchronization according to the present invention.
  • the embodiment is basically the same as the embodiment of FIG. 1.
  • the method for performing file synchronization in this embodiment includes the following steps:
  • Step S201 The first device sends the first file synchronization information to the server.
  • the first device when the first device sends the first file synchronization information to the server, when the first device ends using the file that needs to be synchronized, the user may actively end the use of the file that needs to be synchronized, or may be because of the abnormal situation, the first device Passively end the use of files that need to be synchronized.
  • the abnormal conditions include sudden shutdown of the first device, flashback of files that need to be synchronized, and so on.
  • the first device may also send the first file synchronization information to the server at regular intervals during the process of using the file that needs to be synchronized.
  • Step S202 The server receives the first file synchronization information sent by the first device, and saves the information locally;
  • the server allocates a storage space for the first device according to the identifier of the first device, and is configured to save the first file synchronization information sent by the first device.
  • Step 203 The first device sends a file synchronization request to the server, where the file synchronization request includes a file identifier of the file to be synchronized, and an identifier of the first device.
  • Step S204 The server receives the file synchronization request of the first device, and searches for the first file synchronization information sent by the locally saved first device and the at least one second file synchronization information sent by the at least one second device according to the file synchronization request, where
  • the first file synchronization information includes a file identifier of the file to be synchronized, first state information of the file to be synchronized, and an identifier of the first device
  • the second file synchronization information includes a file identifier of the file to be synchronized, and a file to be synchronized.
  • the second state information, the identifier of the second device determining the latest state information of the file to be synchronized in the first state information and the at least one second state information according to the first file synchronization information and the at least one second file synchronization information;
  • the latest status information of the synchronized file is sent to the first device.
  • Step S205 The first device receives the latest state information of the file that needs to be synchronized sent by the server, and performs a synchronization operation of the file according to the latest state information of the file that needs to be synchronized.
  • FIG. 3 is a flowchart of another embodiment of a method for performing file synchronization according to the present invention.
  • the embodiment is basically the same as the embodiment of FIG. 1.
  • the method for performing file synchronization of an embodiment includes the following steps:
  • Step S301 The at least one second device sends the at least one second file synchronization information to the server.
  • the at least one second device when the at least one second device sends the second file synchronization information to the server, when at least one second device ends using the file that needs to be synchronized, the user may actively end the use of the file that needs to be synchronized, or may be abnormal. At least one second device passively ends using files that need to be synchronized, and the abnormal situation includes at least one second device suddenly shutting down, a file flashing that needs to be synchronized, and the like. Of course, in other embodiments, during the process of using the file that needs to be synchronized, the at least one second device may also send the second file synchronization information to the server once every certain time.
  • the at least one second device may be a second device, two second devices, or three or more second devices, etc., that is, an embodiment of the present invention may implement synchronization of the same file between two or more devices.
  • Step S302 The server receives at least one second file synchronization information sent by the at least one second device, and saves the information locally;
  • the server allocates a storage space for the at least one second device according to the identifier of the at least one second device, and is configured to save the second file synchronization information sent by the at least one second device.
  • Step 303 The first device sends a file synchronization request to the server, where the file synchronization request includes a file identifier of the file to be synchronized, and an identifier of the first device.
  • Step S304 The server receives the file synchronization request of the first device, and searches for the first file synchronization information sent by the locally saved first device and the at least one second file synchronization information sent by the at least one second device according to the file synchronization request, where
  • the first file synchronization information includes a file identifier of the file to be synchronized, first state information of the file to be synchronized, and an identifier of the first device
  • the second file synchronization information includes a file identifier of the file to be synchronized, and a file to be synchronized.
  • the second state information, the identifier of the second device determining the latest state information of the file to be synchronized in the first state information and the at least one second state information according to the first file synchronization information and the at least one second file synchronization information;
  • the latest status information of the synchronized file is sent to the first device.
  • Step S305 The first device receives the latest state information of the file that needs to be synchronized sent by the server, and performs a synchronization operation of the file according to the latest state information of the file that needs to be synchronized.
  • the first device and the second device have the same identifier by registering an account on the server, and the first device and the second device use the account together, when the first device logs in to the account.
  • the account is the device identifier of the first device.
  • the account is the device identifier of the second device; the server manages file synchronization information of different devices using the account through the account; You can register an account with the first device or register for an account with the second device.
  • the first device or the second device may be a mobile device, such as a smart phone, a tablet computer, etc., and the first device or the second device may also be a smart TV, for example, when the first device is a mobile device.
  • the second device is a smart TV, or the first device is a smart TV, and the second device is a mobile device
  • the embodiment of the present invention can realize synchronous use of the same file between the mobile device and the smart TV, and the mobile device is generally used.
  • the smart TV is generally used by the user at home, and the embodiment of the present invention can enable the user to synchronize the use of the file through the mobile device and the smart TV when the user is at home or on the go, and the user passes the smart at home.
  • the smart TV sends the file status information at this time to the server, and the server determines the latest status information of the file according to the file status information sent by the smart TV and the status information of the file saved in the server, and saves Move when the user continues to use the file on the mobile device after going out
  • the device sends a file synchronization request to the server, and the server sends the latest status information of the file to the mobile device according to the file synchronization request, and the mobile device adjusts the file to the latest state according to the latest state information, so that the user is on the mobile device. It is used from the latest state of the file, without the need to manually adjust the state of the file to be the same as when it is finished on the smart TV.
  • the mobile device sends the file status information at this time to the server, and the server determines the file according to the file status information sent by the mobile device and the status information of the file saved in the server.
  • the latest status information of the file is saved and saved.
  • the smart TV sends a file synchronization request to the server, and the server sends the latest status information of the file to the smart according to the file synchronization request.
  • TV, Smart TV adjusts the file to the latest state based on the latest status information, so that the user can use the latest status of the file on the smart TV without manually adjusting the status of the file to be on the mobile device. The same state is used when the upper end is used.
  • not all files used on a mobile device or a smart TV need to be synchronized, and some files are files unique to a mobile device or a smart TV, and are not used in other devices, such as mobile.
  • the status information of the file will not be sent to the server; when the mobile device or smart TV starts to use these files that do not need to be synchronized, the mobile device or smart TV will not send a file synchronization request to the server.
  • the files to be synchronized include one of a video play file, a music play file, a browser file, a microblog client file, and an e-book reader file, corresponding to the files that need to be synchronized.
  • the status information is the time point of the video played by the video playing file, the time point of the music played by the music playing file, the web address of the webpage browsed by the browser file, the location of the browsed webpage, and the microblogging client file browser.
  • the following takes the mobile device as the first device and the smart TV as the second device as an example, and illustrates a process of implementing file synchronization between the mobile device and the second device.
  • FIG. 4 is a flow chart of the smart TV sending file synchronization information to the server and being saved by the server, including the following steps:
  • Step S401 The smart TV logs in to the server through the account
  • Step S402 The server finds the storage information corresponding to the account according to the account.
  • steps S401 and S402 are steps performed when the smart TV is powered on, and are used to establish a connection between the smart TV and the server; the stored information includes synchronization information of the file corresponding to the login account stored by the server.
  • Step S403 The smart TV ends using the current file
  • Step S404 determining whether the current file is a file that needs to be synchronized, if otherwise, executing step S405, if yes, executing step S406;
  • Step S405 normal operation; that is, the current file is used normally without other operations;
  • Step S406 The smart TV acquires state information of the current file.
  • Step S407 The smart TV sends the status information of the current file to the server;
  • Step S408 The server determines, according to the logged-in account, the latest state information of the file corresponding to the account and saves; the server compares the state information of the current file sent by the smart TV with the state information of the current file saved in the server, Determine the latest status information of the current file and save the latest status information.
  • the server receives the video.
  • the latest state information of the current video play file is determined and saved, for example, if the video play file is saved in the server.
  • the status information is the time point of playing to 40 minutes, then the 52-minute 23-second time point sent by the smart TV is the latest status information of the video playing file, and the server covers the 52-minute 23-second time point to the original storage time of 40 minutes.
  • the position of the point as the latest status information of the video playing file if the status information of the video playing file saved in the server is the time point of playing to 55 minutes, the time point is 52 minutes and 23 seconds than the smart TV sends.
  • the server continues to reserve the 55-minute time point as the video play file. Date information without saving 52 minutes 23 seconds time point information sent by intelligent television.
  • FIG. 5 is a flowchart of a mobile device sending a file synchronization request to a server and implementing file synchronization, including the following steps:
  • Step S501 The mobile device logs in to the server by using an account.
  • Step S502 The server finds corresponding storage information according to the account
  • steps S501 and S502 are steps performed when the mobile device is powered on, and are used to establish a connection between the mobile device and the server;
  • the stored information includes synchronization information of the file corresponding to the login account stored by the server;
  • Step S503 The mobile device starts to use a certain file
  • Step S504 determining whether the current file is a file that needs to be synchronized, if otherwise, executing step S505, if yes, executing step S506;
  • Step S505 normal operation; that is, the normal startup uses the current file without performing other operations;
  • Step S506 The mobile device sends a file synchronization request to the server.
  • Step S507 The server searches for the latest status information of the file corresponding to the account according to the account that the mobile device logs in, and sends the latest status information to the mobile device.
  • Step S508 The mobile device adjusts the file to the latest state according to the latest state information.
  • the mobile device when the user opens the video play file on the mobile device, the mobile device sends a file synchronization request to the server, and the server searches for the latest status information of the file corresponding to the account according to the account that the mobile device logs in, such as 52 minutes and 23 seconds. Point and send the latest status information to the mobile device, and the mobile device adjusts the video play file to 52 minutes and 23 seconds according to the latest status information, and starts playing from the time point, thus realizing video playback on the mobile device. Synchronous use of files.
  • Another embodiment of the present invention further provides a system for performing file synchronization.
  • the system can implement the method for performing file synchronization in the foregoing embodiment.
  • the system includes a first device 1, a server 2, and at least one Two devices 3;
  • the first device 1 includes:
  • the first sending module 11 is configured to send a file synchronization request to the server, where the file synchronization request includes a file identifier of the file to be synchronized, and an identifier of the first device;
  • Server 2 includes:
  • the first receiving module 21 is configured to receive a file synchronization request of the first device 1;
  • the searching module 22 is configured to search, according to the file synchronization request, the first file synchronization information sent by the locally saved first device 1 and the at least one second file synchronization information sent by the at least one second device 3, where the first file synchronization information
  • the second file synchronization information includes the file identifier of the file to be synchronized, the second state information of the file to be synchronized, and the second The identification of the two devices;
  • the determining module 23 is configured to determine, according to the first file synchronization information and the at least one second file synchronization information, the latest state information of the file that needs to be synchronized in the first state information and the at least one second state information;
  • the first sending module 24 is configured to send the latest status information of the file that needs to be synchronized to the first device 1;
  • the first device 1 further includes:
  • the receiving module 12 is configured to receive latest state information of the file that needs to be synchronized sent by the server 2;
  • the synchronization module 13 is configured to perform a synchronization operation of the file according to the latest state information of the file that needs to be synchronized.
  • the embodiment of the present invention saves the first file synchronization information sent by the first device 1 and the at least one second file synchronization information sent by the at least one second device 3 by the server 2, and according to the first file synchronization information and At least one second file synchronization information, determining, in the first state information and the at least one second state information, latest state information of the file that needs to be synchronized, and the server sending the latest state information of the file that needs to be synchronized to the first file that needs to be synchronized Device 1, the first device 1 performs a file synchronization operation according to the latest state information of the file to be synchronized, and adjusts the file to the latest state corresponding to the latest state information held in the server 2, thereby realizing the file between different devices. Synchronous use avoids the need to manually adjust the file status and manually adjust the inaccuracy, so that the smooth operation of the device is improved, thereby improving the user experience.
  • the first device 1 further includes:
  • the second sending module 14 is configured to send the first file synchronization information to the server 2;
  • Server 2 also includes:
  • the second receiving module 25 is configured to receive the first file synchronization information sent by the first device 1, and save the information locally.
  • the at least one second device 3 includes:
  • the sending module 31 is configured to send at least one second file synchronization information to the server 2;
  • Server 2 also includes:
  • the third receiving module 26 is configured to receive and receive at least one second file synchronization information sent by the at least one second device 3, and save the information locally.
  • the first device 1 or the second device 3 may be a mobile device, such as a smart phone, a tablet computer, etc., and the first device 1 or the second device 3 may also be a smart TV, for example, when the first device 1 is a mobile device, When the second device 3 is a smart TV, or the first device 1 is a smart TV, and the second device 3 is a mobile device, the embodiment of the present invention can realize synchronous use of the same file between the mobile device and the smart TV.
  • the files that need to be synchronized include one or more of a video play file, a music play file, a browser file, a microblog client file, and an e-book reader file.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephonic Communication Services (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明公开了一种进行文件同步的方法及系统,所述方法包括第一设备向服务器发送文件同步请求;所述服务器接收所述第一设备的文件同步请求;根据所述第一文件同步信息和至少一个所述第二文件同步信息,在所述第一状态信息与至少一个所述第二状态信息中确定所述需要同步的文件的最新状态信息;将所述需要同步的文件的最新状态信息发送给所述第一设备;所述第一设备接收所述服务器发送的所述需要同步的文件的最新状态信息;按照所述需要同步的文件的最新状态信息进行文件的同步操作。通过上述方式,本发明能够使文件在不同的设备间同步使用,提升用户体验。

Description

一种进行文件同步的方法及系统
【技术领域】
本发明涉及电子设备领域,特别是涉及一种进行文件同步的方法及系统。
【背景技术】
现如今电视越来越智能化、网络化,人们通过在智能电视上安装相关的应用程序可以进行各种操作:看电影、电视直播、听音乐、浏览图片等等。同时,作为人们日常生活中重要的手持设备,无线通讯设备也在人们生活中扮演越来越重要的角色,人们通过无线通讯设备同样进行各种操作:看电子书、电影、看电视直播、听音乐、浏览图片、浏览网页、刷微博等等。
在家中,人们通常使用的是智能电视,而在外面使用的是无线通讯设备。很多情况下,在智能电视上与在无线通讯设备上所进行的是相同或相近的操作,如在家里看了一部电影,出门后,在智能无线通讯设备上继续观看该电影;或者是在家里的智能电视上收听某首音乐,出门后,在智能无线通讯设备上继续收听该音乐;或者是在家里浏览一个网页,出门后,在智能无线通讯设备上继续浏览该网页。然而,如今智能电视与智能无线通讯设备之间无法进行很好的同步,即当用户在家里通过智能电视观看一部电影,观看到一半的时候,需要出门,那么出门后,又需要通过无线通讯设备继续观看该电影,此时,就需要在智能设备上,找到电影的应用程序,接着,再搜索到该电影,开始播放该电影,最后再手动调整到在智能电视上所观看的时间点。同样,如果用户在收听音乐,浏览网页,刷微博等等,都需要再进行重复的操作,非常麻烦,并且可能很难找到之前操作的状态点,影响了用户的体验。
【发明内容】
本发明主要解决的技术问题是提供一种进行文件同步的方法及系统,能够使文件在不同的设备间同步使用,提升用户体验。
为解决上述技术问题,本发明采用的一个技术方案是:提供一种进行文件同步的系统,所述系统包括:第一设备、服务器以及至少一个第二设备;
所述第一设备包括:
第一发送模块,用于向服务器发送文件同步请求,所述文件同步请求包括需要同步的文件的文件标识、所述第一设备的标识;
所述服务器包括:
第一接收模块,用于接收所述第一设备的文件同步请求;
查找模块,用于根据所述文件同步请求,查找本地保存的所述第一设备发送的第一文件同步信息和至少一个第二设备发送的至少一个第二文件同步信息,其中,所述第一文件同步信息包括所述需要同步的文件的文件标识、所述需要同步的文件的第一状态信息以及所述第一设备的标识,所述第二文件同步信息包括所述需要同步的文件的文件标识、所述需要同步的文件的第二状态信息、所述第二设备的标识;
确定模块,用于根据所述第一文件同步信息和至少一个所述第二文件同步信息,在所述第一状态信息与至少一个所述第二状态信息中确定所述需要同步的文件的最新状态信息;
第一发送模块,用于将所述需要同步的文件的最新状态信息发送给所述第一设备;
所述第一设备还包括:
接收模块,用于接收所述服务器发送的所述需要同步的文件的最新状态信息;
同步模块,用于按照所述需要同步的文件的最新状态信息进行文件的同步操作;
其中,所述第一设备还包括:
第二发送模块,用于将所述第一文件同步信息发送给所述服务器;
所述服务器还包括:
第二接收模块,用于接收所述第一设备发送的所述第一文件同步信息,并保存在本地;
其中,所述至少一个第二设备包括:
发送模块,用于将所述至少一个第二文件同步信息发送给所述服务器;
所述服务器还包括:
第三接收模块,用于接收接收所述至少一个第二设备发送的所述至少一个第二文件同步信息,并保存在本地。
其中,所述第一设备是移动设备,所述至少一个第二设备是智能电视。
其中,所述需要同步的文件包括视频播放文件、音乐播放文件、浏览器文件、微博客户端文件、电子书阅读器文件中的一种以上。
为解决上述技术问题,本发明采用的另一个技术方案是:提供一种进行文件同步的方法,包括:
第一设备向服务器发送文件同步请求,所述文件同步请求包括需要同步的文件的文件标识、所述第一设备的标识;
所述服务器接收所述第一设备的文件同步请求;根据所述文件同步请求,查找本地保存的所述第一设备发送的第一文件同步信息和至少一个第二设备发送的至少一个第二文件同步信息,其中,所述第一文件同步信息包括所述需要同步的文件的文件标识、所述需要同步的文件的第一状态信息以及所述第一设备的标识,所述第二文件同步信息包括所述需要同步的文件的文件标识、所述需要同步的文件的第二状态信息、所述第二设备的标识;根据所述第一文件同步信息和至少一个所述第二文件同步信息,在所述第一状态信息与至少一个所述第二状态信息中确定所述需要同步的文件的最新状态信息;将所述需要同步的文件的最新状态信息发送给所述第一设备;
所述第一设备接收所述服务器发送的所述需要同步的文件的最新状态信息;按照所述需要同步的文件的最新状态信息进行文件的同步操作。
其中,所述第一设备向服务器发送文件同步请求的步骤之前,包括:
所述第一设备将所述第一文件同步信息发送给所述服务器;
所述服务器接收所述第一设备发送的所述第一文件同步信息,并保存在本地。
其中,所述第一设备向服务器发送文件同步请求的步骤之前,还包括:
所述至少一个第二设备将所述至少一个第二文件同步信息发送给所述服务器;
所述服务器接收所述至少一个第二设备发送的所述至少一个第二文件同步信息,并保存在本地。
其中,所述第一设备是移动设备,所述至少一个第二设备是智能电视。
其中,所述需要同步的文件包括视频播放文件、音乐播放文件、浏览器文件、微博客户端文件、电子书阅读器文件中的一种以上。
为解决上述技术问题,本发明采用的另一个技术方案是:提供一种进行文件同步的系统,所述系统包括:第一设备、服务器以及至少一个第二设备;
所述第一设备包括:
第一发送模块,用于向服务器发送文件同步请求,所述文件同步请求包括需要同步的文件的文件标识、所述第一设备的标识;
所述服务器包括:
第一接收模块,用于接收所述第一设备的文件同步请求;
查找模块,用于根据所述文件同步请求,查找本地保存的所述第一设备发送的第一文件同步信息和至少一个第二设备发送的至少一个第二文件同步信息,其中,所述第一文件同步信息包括所述需要同步的文件的文件标识、所述需要同步的文件的第一状态信息以及所述第一设备的标识,所述第二文件同步信息包括所述需要同步的文件的文件标识、所述需要同步的文件的第二状态信息、所述第二设备的标识;
确定模块,用于根据所述第一文件同步信息和至少一个所述第二文件同步信息,在所述第一状态信息与至少一个所述第二状态信息中确定所述需要同步的文件的最新状态信息;
第一发送模块,用于将所述需要同步的文件的最新状态信息发送给所述第一设备;
所述第一设备还包括:
接收模块,用于接收所述服务器发送的所述需要同步的文件的最新状态信息;
同步模块,用于按照所述需要同步的文件的最新状态信息进行文件的同步操作。
其中,所述第一设备还包括:
第二发送模块,用于将所述第一文件同步信息发送给所述服务器;
所述服务器还包括:
第二接收模块,用于接收所述第一设备发送的所述第一文件同步信息,并保存在本地。
其中,所述至少一个第二设备包括:
发送模块,用于将所述至少一个第二文件同步信息发送给所述服务器;
所述服务器还包括:
第三接收模块,用于接收接收所述至少一个第二设备发送的所述至少一个第二文件同步信息,并保存在本地。
其中,所述第一设备是移动设备,所述至少一个第二设备是智能电视。
其中,所述需要同步的文件包括视频播放文件、音乐播放文件、浏览器文件、微博客户端文件、电子书阅读器文件中的一种以上。
本发明的有益效果是:区别于现有技术的情况,本发明通过服务器保存第一设备发送的第一文件同步信息和至少一个第二设备发送的至少一个第二文件同步信息,并根据所述第一文件同步信息和至少一个所述第二文件同步信息,在所述第一状态信息与至少一个所述第二状态信息中确定所述需要同步的文件的最新状态信息,服务器将需要同步的文件的最新状态信息发送给需要进行文件同步的第一设备,第一设备按照所述需要同步的文件的最新状态信息进行文件的同步操作,将文件调整到服务器中所保存的最新的状态信息所对应的最新的状态,实现文件在不同设备之间的同步使用,避免需要手动调整文件状态以及手动调整不精确的情况的出现,使设备操作的流畅性得到提高,从而提高用户体验。
【附图说明】
图1是是本发明一种进行文件同步的方法一实施方式的流程图;
图2是是本发明一种进行文件同步的方法另一实施方式的流程图;
图3是本发明一种进行文件同步的方法又一实施方式的流程图;
图4是智能电视发送文件同步信息给服务器并被服务器保存的流程图;
图5是移动设备向服务器发送文件同步请求并实现文件同步的流程图;
图6是本发明一种进行文件同步的系统一实施方式的结构示意图;
图7是本发明一种进行文件同步的系统另一实施方式的结构示意图;
图8是本发明一种进行文件同步的系统又一实施方式的结构示意图。
【具体实施方式】
参阅图1,图1是本发明一种进行文件同步的方法一实施方式的流程图,本实施方式的进行文件同步的方法包括以下步骤:
步骤101:第一设备向服务器发送文件同步请求,文件同步请求包括需要同步的文件的文件标识、第一设备的标识;
当第一设备需要同步文件时,第一设备向服务器发送文件同步请求。需要同步的文件的文件标识为与需要同步的文件唯一对应的用于识别需要同步的文件的标识,第一设备的标识为与第一设备对应的用于识别第一设备的标识。
步骤S102:服务器接收第一设备的文件同步请求;根据文件同步请求,查找本地保存的第一设备发送的第一文件同步信息和至少一个第二设备发送的至少一个第二文件同步信息,其中,第一文件同步信息包括需要同步的文件的文件标识、需要同步的文件的第一状态信息以及第一设备的标识,第二文件同步信息包括需要同步的文件的文件标识、需要同步的文件的第二状态信息、第二设备的标识;根据第一文件同步信息和至少一个第二文件同步信息,在第一状态信息与至少一个第二状态信息中确定需要同步的文件的最新状态信息;将需要同步的文件的最新状态信息发送给第一设备;
需要同步的文件的第一状态信息为第一设备发送的第一设备最近一次结束使用需要同步的文件时需要同步的文件的状态,第二设备的标识为与第二设备对应的用于识别第二设备的标识,需要同步的文件的第二状态信息为第二设备发送的第二设备最近一次结束使用需要同步的文件时需要同步的文件的状态;其中,在具体实施时,服务器可以建立第一设备的标识与第二设备的标识之间的对应关系,根据该对应关系,可以方便服务器进行查找。进一步地,为了更快地实现第一设备与第二设备之间的文件同步,提高服务器查找的速度,第一设备的标识与第二设备的标识可以相同,例如:服务器根据第一设备的文件同步请求,查找第一设备发送的第一文件同步信息及与第一设备具有相同标识的第二设备发送的第二文件同步信息,然后,服务器进一步根据需要同步的文件的文件标识,在第一文件同步信息中查找需要同步的文件的第一状态信息以及在第二文件同步信息中查找第二状态信息,并比较第一状态信息和第二状态信息,以确定服务器中保存的需要同步的文件的最新状态信息,最后将最新状态信息发送至第一设备;最新状态信息是指需要同步的文件在第一设备或第二设备中最近一次使用结束时的状态。在其它实施方式中,第一设备的标识与第二设备的标识也可以是具有对应关系的不同的标识,服务器根据第一设备的文件同步请求,查找服务器保存的第一设备的需要同步的文件的第一状态信息以及与第一设备具有对应的设备标识的第二设备的需要同步的文件的第二状态信息,并比较第一状态信息和第二状态信息,以确定服务器中保存的需要同步的文件的最新状态信息,最后将最新状态信息发送至第一设备。
其中,在本发明实施方式中,服务器接收具有相同标识的第一设备和第二设备分别发送的第一文件同步信息和第二文件同步信息后,根据需要同步的文件标识找到需要同步的文件的第一状态信息和第二状态信息,并将第一状态信息或第二状态信息与服务器上保存的需要同步的文件的状态信息进行比较,以确定第一状态信息或第二状态信息与服务器上保存的需要同步的文件的状态信息中的最新状态信息,若第一状态信息或第二状态信息为最新状态信息,并保存该最新状态信息,而清除服务器上保存的旧的状态信息,若服务器上保存的需要同步的文件的状态信息为最新状态信息,则服务器不保存第一状态信息或第二状态信息,而继续保留服务器上的最新状态信息,这样服务器上针对一个文件只保存一个状态信息,能节省储存空间;这样,当服务器接收第一设备的文件同步请求时,直接将最新状态信息发送给第一设备,而不需要进行比较操作,提高响应速度。
步骤S103:第一设备接收服务器发送的需要同步的文件的最新状态信息;按照需要同步的文件的最新状态信息进行文件的同步操作。
第一设备根据服务器发送的需要同步的文件的最新状态信息,将需要同步的文件调整为与最新状态信息对应的状态,以实现文件在不同设备之间的同步。
区别于现有技术,本发明实施方式通过服务器保存第一设备发送的第一文件同步信息和至少一个第二设备发送的至少一个第二文件同步信息,并根据第一文件同步信息和至少一个第二文件同步信息,在第一状态信息与至少一个第二状态信息中确定需要同步的文件的最新状态信息,服务器将需要同步的文件的最新状态信息发送给需要进行文件同步的第一设备,第一设备按照需要同步的文件的最新状态信息进行文件的同步操作,将文件调整到服务器中所保存的最新的状态信息所对应的最新的状态,实现文件在不同设备之间的同步使用,避免在不同设备之间使用相同文件时需要手动调整文件状态以及手动调整不精确的情况的出现,使设备操作的流畅性得到提高,从而提高用户体验。
参阅图2,图2是本发明一种进行文件同步的方法另一实施方式的流程图,本实施方式和图1的实施方式基本相同,相同之处请参见图1以及相关的文字说明。本实施方式的进行文件同步的方法包括以下步骤:
步骤S201:第一设备将第一文件同步信息发送给服务器;
一般地,第一设备将第一文件同步信息发送给服务器的时机为第一设备结束使用需要同步的文件时,可以是用户主动结束使用需要同步的文件,也可以是因为异常情况,第一设备被动结束使用需要同步的文件,异常情况包括第一设备突然关机、需要同步的文件闪退等。当然,在其它实施方式中,在使用需要同步的文件的过程中,第一设备也可以每隔一定时间向服务器发送一次第一文件同步信息。
步骤S202:服务器接收第一设备发送的第一文件同步信息,并保存在本地;
服务器根据第一设备的标识,为第一设备分配储存空间,用于保存第一设备发送的第一文件同步信息。
步骤203:第一设备向服务器发送文件同步请求,文件同步请求包括需要同步的文件的文件标识、第一设备的标识;
步骤S204:服务器接收第一设备的文件同步请求;根据文件同步请求,查找本地保存的第一设备发送的第一文件同步信息和至少一个第二设备发送的至少一个第二文件同步信息,其中,第一文件同步信息包括需要同步的文件的文件标识、需要同步的文件的第一状态信息以及第一设备的标识,第二文件同步信息包括需要同步的文件的文件标识、需要同步的文件的第二状态信息、第二设备的标识;根据第一文件同步信息和至少一个第二文件同步信息,在第一状态信息与至少一个第二状态信息中确定需要同步的文件的最新状态信息;将需要同步的文件的最新状态信息发送给第一设备。
步骤S205:第一设备接收服务器发送的需要同步的文件的最新状态信息;按照需要同步的文件的最新状态信息进行文件的同步操作。
参阅图3,图3是本发明一种进行文件同步的方法另一实施方式的流程图,本实施方式和图1的实施方式基本相同,相同之处请参见图1以及相关的文字说明,本实施方式的进行文件同步的方法包括以下步骤:
步骤S301:至少一个第二设备将至少一个第二文件同步信息发送给服务器;
一般地,至少一个第二设备将第二文件同步信息发送给服务器的时机为至少一个第二设备结束使用需要同步的文件时,可以是用户主动结束使用需要同步的文件,也可以是因为异常情况,至少一个第二设备被动结束使用需要同步的文件,异常情况包括至少一个第二设备突然关机、需要同步的文件闪退等。当然,在其它实施方式中,在使用需要同步的文件的过程中,至少一个第二设备也可以每隔一定时间向服务器发送一次第二文件同步信息。至少一个第二设备可以为一个第二设备、两个第二设备或三个以上的第二设备等,即本发明实施方式可实现两个或三个以上的设备之间相同文件的同步。
步骤S302:服务器接收至少一个第二设备发送的至少一个第二文件同步信息,并保存在本地;
服务器根据至少一个第二设备的标识,为至少一个第二设备分配储存空间,用于保存至少一个第二设备发送的第二文件同步信息。
步骤303:第一设备向服务器发送文件同步请求,文件同步请求包括需要同步的文件的文件标识、第一设备的标识。
步骤S304:服务器接收第一设备的文件同步请求;根据文件同步请求,查找本地保存的第一设备发送的第一文件同步信息和至少一个第二设备发送的至少一个第二文件同步信息,其中,第一文件同步信息包括需要同步的文件的文件标识、需要同步的文件的第一状态信息以及第一设备的标识,第二文件同步信息包括需要同步的文件的文件标识、需要同步的文件的第二状态信息、第二设备的标识;根据第一文件同步信息和至少一个第二文件同步信息,在第一状态信息与至少一个第二状态信息中确定需要同步的文件的最新状态信息;将需要同步的文件的最新状态信息发送给第一设备。
步骤S305:第一设备接收服务器发送的需要同步的文件的最新状态信息;按照需要同步的文件的最新状态信息进行文件的同步操作。
其中,在本发明实施方式中,使第一设备与第二设备具有相同标识是通过在服务器上注册一个账号,第一设备与第二设备共同使用该账号实现的,当第一设备登陆该帐号时,该账号即为第一设备的设备标识,当第二设备登陆该账号时,该帐号即为第二设备的设备标识;服务器通过该账号管理使用该账号的不同设备的文件同步信息;使用者可以通过第一设备注册账号,也可以通过第二设备上注册账号。
其中,在本发明实施方式中,第一设备或第二设备可为移动设备,例如智能手机、平板电脑等,第一设备或第二设备也可为智能电视,例如当第一设备为移动设备,第二设备为智能电视时,或第一设备为智能电视,第二设备为移动设备时,本发明实施方式可实现移动设备与智能电视之间相同文件的同步使用,而移动设备一般是使用者外出离开家时使用,智能电视一般是使用者在家中使用,及本发明实施方式可以使得使用者在家中或外出时,通过移动设备和智能电视实现文件的同步使用,使用者在家中通过智能电视使用文件结束时,智能电视将此时的文件状态信息发送至服务器,服务器根据智能电视发送的文件状态信息以及服务器中保存的该文件的状态信息,确定该文件最新的状态信息并保存,当使用者出门后通过移动设备继续使用该文件时,移动设备会向服务器发送文件同步请求,服务器根据文件同步请求将该文件的最新的状态信息发送至移动设备,移动设备根据最新的状态信息将文件调整到最新的状态,以使使用者在移动设备上从该文件的最新的状态开始使用,而不需要手动调整文件的状态,使之与在智能电视上结束使用时的状态相同。同样地,使用者在外面通过移动设备使用文件结束时,移动设备将此时的文件状态信息发送至服务器,服务器根据移动设备发送的文件状态信息以及服务器中保存的该文件的状态信息,确定该文件最新的状态信息并保存,当使用者回到家中后通过智能电视继续使用该文件时,智能电视会向服务器发送文件同步请求,服务器根据文件同步请求将该文件的最新的状态信息发送至智能电视,智能电视根据最新的状态信息将文件调整到最新的状态,以使使用者在智能电视上从该文件的最新的状态开始使用,而不需要手动调整文件的状态,使之与在移动设备上结束使用时的状态相同。
其中,在本发明实施方式中,并不是在移动设备或是智能电视上使用的所有文件都需要同步,有些文件是移动设备或智能电视上特有的文件,并不会在其它设备使用,如移动设备上的照相机应用,或者虽然也能在其它设备上使用,但是没有同步的必要,如计算器应用等,所以当移动设备或智能电视结束使用这些不需要同步的文件时,移动设备或智能电视不会将该文件的状态信息发送给服务器;当移动设备或智能电视开始使用这些不需要同步的文件时,移动设备或智能电视也不会向服务器发送文件同步请求。
其中,在本发明实施方式中,需要同步的文件包括视频播放文件、音乐播放文件、浏览器文件、微博客户端文件、电子书阅读器文件中的一种以上,对应这些需要同步的文件的状态信息为视频播放文件播放的视频的时间点、音乐播放文件播放的音乐的时间点、浏览器文件浏览的网页的网址以及浏览到的该网页的位置、微博客户端文件浏览器到的某条微博、电子书阅读器文件浏览的电子书文件及该电子书文件中的位置;需要注意的是,最新的状态信息根据不同的文件具有不同的含义,例如,如果需要同步的文件是视频播放文件或音乐播放文件,则以视频或音乐播放的时间点越后,表示文件的状态越新;如果需要同步的文件为浏览器文件、微博客户端文件、电子书阅读器文件等,则以文件使用的时间点为准,即文件使用的时间点离当前时间点越近的,表示文件状态越新。
下面以移动设备为第一设备,智能电视为第二设备为例,说明移动设备与第二设备之间实现文件同步的过程。
参阅图4,图4为智能电视发送文件同步信息给服务器并被服务器保存的流程图,包括以下步骤:
步骤S401:智能电视通过账号登录服务器;
步骤S402:服务器根据账号查找到该帐号对应的存储信息;
上述步骤S401和S402为智能电视开机即进行的步骤,用于使智能电视和服务器建立连接;储存信息包括服务器存储的与该登陆的帐号所对应的文件的同步信息。
步骤S403:智能电视结束使用当前的文件;
步骤S404:判断当前的文件是否是需要同步的文件,若否则执行步骤S405,若是则执行步骤S406;
步骤S405:正常运行;即正常结束使用当前的文件,而不进行其它操作;
步骤S406:智能电视获取当前文件的状态信息;
步骤S407:智能电视将当前文件的状态信息发送给服务器;
步骤S408:服务器根据登陆的账号,确定与该账号对应的该文件的最新的状态信息并保存;服务器将智能电视发送的当前文件的状态信息与服务器中保存的当前文件的状态信息进行比较,以确定当前文件最新的状态信息,并保存该最新的状态信息。
具体地,如使用者通过用智能电视通过视频播放文件观看一部电影时,播放到52分钟23秒的时候,退出了视频播放文件,智能电视会将该时间点信息发送至服务器,服务器接收到该时间点信息后,将其与服务器中保存的对应该视频播放文件的时间点信息比较,确定当前视频播放文件的最新的状态信息,并保存,例如,如果服务器中保存的该视频播放文件的状态信息为播放到40分钟的时间点,则智能电视发送的该52分钟23秒时间点为视频播放文件的最新的状态信息,服务器将该52分钟23秒时间点覆盖到原存储40分钟的时间点的位置,作为该视频播放文件的最新状态信息;如果服务器中保存的该视频播放文件的状态信息为播放到55分钟的时间点,则该时间点较智能电视发送的52分钟23秒时间点为更新的状态,服务器继续保留55分钟的时间点作为该视频播放文件的最新状态信息,而不保存智能电视发送的52分钟23秒时间点信息。
参阅图5,图5为移动设备向服务器发送文件同步请求并实现文件同步的流程图,包括以下步骤:
步骤S501:移动设备通过账号登录服务器;
步骤S502:服务器根据账号查找到对应的存储信息;
上述步骤S501和S502为移动设备开机即进行的步骤,用于使移动设备和服务器建立连接;储存信息包括服务器存储的与该登陆的帐号所对应的文件的同步信息;
步骤S503:移动设备开始使用某个文件;
步骤S504:判断当前的文件是否是需要同步的文件,若否则执行步骤S505,若是则执行步骤S506;
步骤S505:正常运行;即正常启动使用当前的文件,而不进行其它操作;
步骤S506:移动设备向服务器发送文件同步请求;
步骤S507:服务器根据移动设备登陆的账号,查找对应该帐号的该文件的最新状态信息,并发送至移动设备;
步骤S508:移动设备根据最新状态信息,将该文件调整到最新的状态。
具体地,如使用者打开移动设备上的视频播放文件时,移动设备向服务器发送文件同步请求,服务器根据移动设备登陆的账号查找与该账号对应该文件的最新状态信息,如52分钟23秒时间点,并将该最新的状态信息发送至移动设备,移动设备根据该最新的状态信息将视频播放文件调整播放至52分钟23秒,从该时间点开始播放,这样便实现了移动设备上视频播放文件的同步使用。
本发明另一实施方式还提供一种进行文件同步的系统,该系统可以实现上述实施方式中的进行文件同步的方法,如图6所示,系统包括第一设备1、服务器2以及至少一个第二设备3;
第一设备1包括:
第一发送模块11,用于向服务器发送文件同步请求,文件同步请求包括需要同步的文件的文件标识、第一设备的标识;
服务器2包括:
第一接收模块21,用于接收第一设备1的文件同步请求;
查找模块22,用于根据文件同步请求,查找本地保存的第一设备1发送的第一文件同步信息和至少一个第二设备3发送的至少一个第二文件同步信息,其中,第一文件同步信息包括需要同步的文件的文件标识、需要同步的文件的第一状态信息以及第一设备的标识,第二文件同步信息包括需要同步的文件的文件标识、需要同步的文件的第二状态信息、第二设备的标识;
确定模块23,用于根据第一文件同步信息和至少一个第二文件同步信息,在第一状态信息与至少一个第二状态信息中确定需要同步的文件的最新状态信息;
第一发送模块24,用于将需要同步的文件的最新状态信息发送给第一设备1;
第一设备1还包括:
接收模块12,用于接收服务器2发送的需要同步的文件的最新状态信息;
同步模块13,用于按照需要同步的文件的最新状态信息进行文件的同步操作。
区别于现有技术,本发明实施方式通过服务器2保存第一设备1发送的第一文件同步信息和至少一个第二设备3发送的至少一个第二文件同步信息,并根据第一文件同步信息和至少一个第二文件同步信息,在第一状态信息与至少一个第二状态信息中确定需要同步的文件的最新状态信息,服务器将需要同步的文件的最新状态信息发送给需要进行文件同步的第一设备1,第一设备1按照需要同步的文件的最新状态信息进行文件的同步操作,将文件调整到服务器2中所保存的最新的状态信息所对应的最新的状态,实现文件在不同设备之间的同步使用,避免需要手动调整文件状态以及手动调整不精确的情况的出现,使设备操作的流畅性得到提高,从而提高用户体验。
其中,如图7所示,在本发明一种进行文件同步的系统的另一个实施方式中,在如图6所示的实施方式的基础上,第一设备1还包括:
第二发送模块14,用于将第一文件同步信息发送给服务器2;
服务器2还包括:
第二接收模块25,用于接收第一设备1发送的第一文件同步信息,并保存在本地。
其中,如图8所示,在本发明一种进行文件同步的系统的又一个实施方式中,在如图6所示的实施方式的基础上,至少一个第二设备3包括:
发送模块31,用于将至少一个第二文件同步信息发送给服务器2;
服务器2还包括:
第三接收模块26,用于接收接收至少一个第二设备3发送的至少一个第二文件同步信息,并保存在本地。
其中,第一设1备或第二设备3可为移动设备,例如智能手机、平板电脑等,第一设备1或第二设备3也可为智能电视,例如当第一设备1为移动设备,第二设备3为智能电视时,或第一设备1为智能电视,第二设备3为移动设备时,本发明实施方式可实现移动设备与智能电视之间相同文件的同步使用。
其中,需要同步的文件包括视频播放文件、音乐播放文件、浏览器文件、微博客户端文件、电子书阅读器文件中的一种以上。
以上仅为本发明的实施方式,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其它相关的技术领域,均同理包括在本发明的专利保护范围内。

Claims (13)

  1. 一种进行文件同步的系统,其特征在于,所述系统包括:第一设备、服务器以及至少一个第二设备;
    所述第一设备包括:
    第一发送模块,用于向服务器发送文件同步请求,所述文件同步请求包括需要同步的文件的文件标识、所述第一设备的标识;
    所述服务器包括:
    第一接收模块,用于接收所述第一设备的文件同步请求;
    查找模块,用于根据所述文件同步请求,查找本地保存的所述第一设备发送的第一文件同步信息和至少一个第二设备发送的至少一个第二文件同步信息,其中,所述第一文件同步信息包括所述需要同步的文件的文件标识、所述需要同步的文件的第一状态信息以及所述第一设备的标识,所述第二文件同步信息包括所述需要同步的文件的文件标识、所述需要同步的文件的第二状态信息、所述第二设备的标识;
    确定模块,用于根据所述第一文件同步信息和至少一个所述第二文件同步信息,在所述第一状态信息与至少一个所述第二状态信息中确定所述需要同步的文件的最新状态信息;
    第一发送模块,用于将所述需要同步的文件的最新状态信息发送给所述第一设备;
    所述第一设备还包括:
    接收模块,用于接收所述服务器发送的所述需要同步的文件的最新状态信息;
    同步模块,用于按照所述需要同步的文件的最新状态信息进行文件的同步操作;
    其中,所述第一设备还包括:
    第二发送模块,用于将所述第一文件同步信息发送给所述服务器;
    所述服务器还包括:
    第二接收模块,用于接收所述第一设备发送的所述第一文件同步信息,并保存在本地;
    其中,所述至少一个第二设备包括:
    发送模块,用于将所述至少一个第二文件同步信息发送给所述服务器;
    所述服务器还包括:
    第三接收模块,用于接收接收所述至少一个第二设备发送的所述至少一个第二文件同步信息,并保存在本地。
  2. 根据权利要求1所述的系统,其特征在于,所述第一设备是移动设备,所述至少一个第二设备是智能电视。
  3. 根据权利要求1所述的系统,其特征在于,所述需要同步的文件包括视频播放文件、音乐播放文件、浏览器文件、微博客户端文件、电子书阅读器文件中的一种以上。
  4. 一种进行文件同步的方法,其特征在于,包括:
    第一设备向服务器发送文件同步请求,所述文件同步请求包括需要同步的文件的文件标识、所述第一设备的标识;
    所述服务器接收所述第一设备的文件同步请求;根据所述文件同步请求,查找本地保存的所述第一设备发送的第一文件同步信息和至少一个第二设备发送的至少一个第二文件同步信息,其中,所述第一文件同步信息包括所述需要同步的文件的文件标识、所述需要同步的文件的第一状态信息以及所述第一设备的标识,所述第二文件同步信息包括所述需要同步的文件的文件标识、所述需要同步的文件的第二状态信息、所述第二设备的标识;根据所述第一文件同步信息和至少一个所述第二文件同步信息,在所述第一状态信息与至少一个所述第二状态信息中确定所述需要同步的文件的最新状态信息;将所述需要同步的文件的最新状态信息发送给所述第一设备;
    所述第一设备接收所述服务器发送的所述需要同步的文件的最新状态信息;按照所述需要同步的文件的最新状态信息进行文件的同步操作。
  5. 根据权利要求4所述的方法,其特征在于,所述第一设备向服务器发送文件同步请求的步骤之前,包括:
    所述第一设备将所述第一文件同步信息发送给所述服务器;
    所述服务器接收所述第一设备发送的所述第一文件同步信息,并保存在本地。
  6. 根据权利要求4所述的方法,其特征在于,所述第一设备向服务器发送文件同步请求的步骤之前,还包括:
    所述至少一个第二设备将所述至少一个第二文件同步信息发送给所述服务器;
    所述服务器接收所述至少一个第二设备发送的所述至少一个第二文件同步信息,并保存在本地。
  7. 根据权利要求4-6任一项所述的方法,其特征在于,所述第一设备是移动设备,所述至少一个第二设备是智能电视。
  8. 根据权利要求4-6任一项所述的方法,其特征在于,所述需要同步的文件包括视频播放文件、音乐播放文件、浏览器文件、微博客户端文件、电子书阅读器文件中的一种以上。
  9. 一种进行文件同步的系统,其特征在于,所述系统包括:第一设备、服务器以及至少一个第二设备;
    所述第一设备包括:
    第一发送模块,用于向服务器发送文件同步请求,所述文件同步请求包括需要同步的文件的文件标识、所述第一设备的标识;
    所述服务器包括:
    第一接收模块,用于接收所述第一设备的文件同步请求;
    查找模块,用于根据所述文件同步请求,查找本地保存的所述第一设备发送的第一文件同步信息和至少一个第二设备发送的至少一个第二文件同步信息,其中,所述第一文件同步信息包括所述需要同步的文件的文件标识、所述需要同步的文件的第一状态信息以及所述第一设备的标识,所述第二文件同步信息包括所述需要同步的文件的文件标识、所述需要同步的文件的第二状态信息、所述第二设备的标识;
    确定模块,用于根据所述第一文件同步信息和至少一个所述第二文件同步信息,在所述第一状态信息与至少一个所述第二状态信息中确定所述需要同步的文件的最新状态信息;
    第一发送模块,用于将所述需要同步的文件的最新状态信息发送给所述第一设备;
    所述第一设备还包括:
    接收模块,用于接收所述服务器发送的所述需要同步的文件的最新状态信息;
    同步模块,用于按照所述需要同步的文件的最新状态信息进行文件的同步操作。
  10. 根据权利要求9所述的系统,其特征在于,
    所述第一设备还包括:
    第二发送模块,用于将所述第一文件同步信息发送给所述服务器;
    所述服务器还包括:
    第二接收模块,用于接收所述第一设备发送的所述第一文件同步信息,并保存在本地。
  11. 根据权利要求9所述的系统,其特征在于,
    所述至少一个第二设备包括:
    发送模块,用于将所述至少一个第二文件同步信息发送给所述服务器;
    所述服务器还包括:
    第三接收模块,用于接收接收所述至少一个第二设备发送的所述至少一个第二文件同步信息,并保存在本地。
  12. 根据权利要求9-11任一项所述的系统,其特征在于,所述第一设备是移动设备,所述至少一个第二设备是智能电视。
  13. 根据权利要求9-11任一项所述的系统,其特征在于,所述需要同步的文件包括视频播放文件、音乐播放文件、浏览器文件、微博客户端文件、电子书阅读器文件中的一种以上。
PCT/CN2015/076460 2014-12-23 2015-04-13 一种进行文件同步的方法及系统 WO2016101441A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US14/911,949 US9621704B2 (en) 2014-12-23 2015-04-13 Method and system for file synchronization

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410811344.0A CN104580169A (zh) 2014-12-23 2014-12-23 一种进行文件同步的方法及系统
CN201410811344.0 2014-12-23

Publications (1)

Publication Number Publication Date
WO2016101441A1 true WO2016101441A1 (zh) 2016-06-30

Family

ID=53095350

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/076460 WO2016101441A1 (zh) 2014-12-23 2015-04-13 一种进行文件同步的方法及系统

Country Status (3)

Country Link
US (1) US9621704B2 (zh)
CN (1) CN104580169A (zh)
WO (1) WO2016101441A1 (zh)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018027375A1 (zh) * 2016-08-06 2018-02-15 柳柏宏 根据市场反馈调整推送记录的方法以及读书系统
WO2018027373A1 (zh) * 2016-08-06 2018-02-15 柳柏宏 停止向电脑端自动推送阅读记录的方法以及读书系统
WO2018027376A1 (zh) * 2016-08-06 2018-02-15 柳柏宏 停止向手机端自动推送阅读记录的方法以及读书系统
WO2018027377A1 (zh) * 2016-08-06 2018-02-15 柳柏宏 手机端读取阅读记录的方法以及读书系统
WO2018027372A1 (zh) * 2016-08-06 2018-02-15 柳柏宏 根据用户使用习惯调整推送技术的方法以及读书系统
CN106790378A (zh) * 2016-11-11 2017-05-31 北京奇虎科技有限公司 设备间的数据全同步方法、装置及系统
CN106487932B (zh) * 2016-12-13 2019-08-06 南京威耐尔通信技术股份有限公司 移动端及服务器端消息同步装置及方法
US10110963B1 (en) * 2017-08-24 2018-10-23 Amdocs Development Limited System, method, and computer program for media content playback management
CN107566881B (zh) * 2017-08-31 2021-03-09 深圳创维-Rgb电子有限公司 一种vr设备控制方法、装置和系统
CN108959504B (zh) * 2018-06-27 2021-11-26 郑州云海信息技术有限公司 一种文件系统远程数据同步实现方法和系统
CN110430122A (zh) * 2019-07-08 2019-11-08 王凯平 一种基于开放平台的内容同步系统以及数据同步的方法
CN116506450A (zh) * 2023-06-27 2023-07-28 武汉吧哒科技股份有限公司 文件同步方法、装置、电子设备及存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102523529A (zh) * 2011-12-08 2012-06-27 中国联合网络通信集团有限公司 多终端设备接续播放视频的方法和视频服务器
CN103295609A (zh) * 2012-02-22 2013-09-11 腾讯科技(深圳)有限公司 视频播放方法、设备及系统
WO2013139239A1 (en) * 2012-03-21 2013-09-26 Tencent Technology (Shenzhen) Company Limited Method for recommending users in social network and the system thereof
CN103475939A (zh) * 2013-09-02 2013-12-25 小米科技有限责任公司 一种处理播放记录的方法、装置及服务器
CN103607461A (zh) * 2013-11-22 2014-02-26 乐视网信息技术(北京)股份有限公司 一种信息共享方法及云端服务器
CN103634647A (zh) * 2013-12-05 2014-03-12 乐视网信息技术(北京)股份有限公司 移动终端与智能电视间播放记录同步的方法和装置
CN104185039A (zh) * 2013-05-27 2014-12-03 腾讯科技(深圳)有限公司 音视频同步播放的方法和装置

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101257375B (zh) * 2006-12-31 2012-08-08 华为技术有限公司 实现多终端的消息同步的方法及装置
JP4650552B2 (ja) * 2008-10-14 2011-03-16 ソニー株式会社 電子機器、コンテンツ推薦方法及びプログラム
WO2010076497A1 (fr) * 2008-12-30 2010-07-08 France Telecom Procede de notification et passerelle d'acces a un reseau de voix sur ip
US9363097B2 (en) * 2011-08-09 2016-06-07 Gary W. Grube Acquiring safety status information
US9614878B2 (en) * 2011-08-19 2017-04-04 Redbox Automated Retail, Llc System and method for providing supplemental information related to media content
EP2608061B1 (en) * 2011-12-22 2021-07-28 Amadeus Method and system for update message tracking and checking
US9319952B2 (en) * 2012-03-30 2016-04-19 Apple Inc. Apparatus and methods for synchronization recovery in a hybrid network
US9443230B2 (en) * 2012-04-30 2016-09-13 At&T Intellectual Property I, L.P. Point-to point data synchronization
CN103428556B (zh) * 2012-05-17 2016-11-23 华为技术有限公司 多屏互动的方法及系统
US9003299B2 (en) * 2012-06-08 2015-04-07 Apple Inc. Extensible application state preservation architecture
US9776078B2 (en) * 2012-10-02 2017-10-03 Razer (Asia-Pacific) Pte. Ltd. Application state backup and restoration across multiple devices
CN103873565B (zh) * 2014-02-28 2017-09-05 北京智谷睿拓技术服务有限公司 数据同步方法及设备
US9594636B2 (en) * 2014-05-30 2017-03-14 Datto, Inc. Management of data replication and storage apparatuses, methods and systems

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102523529A (zh) * 2011-12-08 2012-06-27 中国联合网络通信集团有限公司 多终端设备接续播放视频的方法和视频服务器
CN103295609A (zh) * 2012-02-22 2013-09-11 腾讯科技(深圳)有限公司 视频播放方法、设备及系统
WO2013139239A1 (en) * 2012-03-21 2013-09-26 Tencent Technology (Shenzhen) Company Limited Method for recommending users in social network and the system thereof
CN104185039A (zh) * 2013-05-27 2014-12-03 腾讯科技(深圳)有限公司 音视频同步播放的方法和装置
CN103475939A (zh) * 2013-09-02 2013-12-25 小米科技有限责任公司 一种处理播放记录的方法、装置及服务器
CN103607461A (zh) * 2013-11-22 2014-02-26 乐视网信息技术(北京)股份有限公司 一种信息共享方法及云端服务器
CN103634647A (zh) * 2013-12-05 2014-03-12 乐视网信息技术(北京)股份有限公司 移动终端与智能电视间播放记录同步的方法和装置

Also Published As

Publication number Publication date
CN104580169A (zh) 2015-04-29
US20160352888A1 (en) 2016-12-01
US9621704B2 (en) 2017-04-11

Similar Documents

Publication Publication Date Title
WO2016101441A1 (zh) 一种进行文件同步的方法及系统
WO2015030364A1 (en) Method for sharing media data and electronic device thereof
WO2018233352A1 (zh) 数据传输方法、装置、终端以及计算机可读存储介质
WO2018076865A1 (zh) 数据分享方法、装置、存储介质及电子设备
WO2014008858A1 (zh) 实现跨域跳转的方法以及浏览器、域名服务器
WO2018076841A1 (zh) 数据分享方法、装置、存储介质及服务器
WO2018120681A1 (zh) 数据同步方法、装置、系统、数据处理服务器和存储介质
WO2020224246A1 (zh) 基于区块链的数据管理方法、装置、设备和存储介质
WO2019174090A1 (zh) 截屏文件分享的控制方法、装置、设备和计算机存储介质
WO2017133274A1 (zh) 一种终端屏幕亮度调节方法、系统及终端
WO2012055298A1 (zh) 客户端的离线工作方法和离线工作客户端
WO2015103954A1 (en) Information sharing method, information sharing apparatus, and electronic device
WO2017211054A1 (zh) 蓝牙智能手表、智能终端、及其spp远程控制拍照的方法和系统
WO2011129635A2 (ko) 이동통신 시스템에서 응용 서비스를 제공하는 방법 및 장치
WO2015018243A1 (zh) 一种基于iOS设备的网页拦截方法和设备
WO2017148142A1 (zh) 桌面图标文件夹的名称切换方法、装置及电子设备
WO2017135776A1 (en) Display apparatus, user terminal apparatus, system, and controlling method thereof
WO2015126180A1 (en) Method for creating a content and electronic device thereof
WO2016090775A1 (zh) 同步操作短信数据的方法及系统
WO2018161601A1 (zh) 屏幕背光调节方法、装置、存储介质及电子设备
WO2014042357A1 (ko) 화면 동기 제어 시스템, 이를 이용한 화면 동기 방법 및 장치
WO2015180434A1 (zh) 一种数据库集群管理数据的方法、节点及系统
WO2016123898A1 (zh) 一种短信管理方法及其移动终端
WO2020133766A1 (zh) 视频同步播放方法、设备及计算机可读存储介质
WO2019184436A1 (zh) 视频推送方法、装置及计算机可读存储介质

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 14911949

Country of ref document: US

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

Ref document number: 15871519

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 05/12/2017)

122 Ep: pct application non-entry in european phase

Ref document number: 15871519

Country of ref document: EP

Kind code of ref document: A1