CN108881416A - Method of data synchronization, terminal device, server and data synchronous system - Google Patents

Method of data synchronization, terminal device, server and data synchronous system Download PDF

Info

Publication number
CN108881416A
CN108881416A CN201810556792.9A CN201810556792A CN108881416A CN 108881416 A CN108881416 A CN 108881416A CN 201810556792 A CN201810556792 A CN 201810556792A CN 108881416 A CN108881416 A CN 108881416A
Authority
CN
China
Prior art keywords
data
server
terminal device
update
album
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201810556792.9A
Other languages
Chinese (zh)
Inventor
严修平
徐江霖
李紫贵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Uyeh Robot Technology Co Ltd
Original Assignee
Shenzhen Uyeh Robot Technology Co Ltd
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 Shenzhen Uyeh Robot Technology Co Ltd filed Critical Shenzhen Uyeh Robot Technology Co Ltd
Priority to CN201810556792.9A priority Critical patent/CN108881416A/en
Publication of CN108881416A publication Critical patent/CN108881416A/en
Pending legal-status Critical Current

Links

Classifications

    • 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of method of data synchronization, terminal device, server and data synchronous systems.Method of data synchronization includes the data that terminal device active transmission data update request to server and terminal device receives the update that server is sent, and the data of update are by being sent to server with the electronic device that terminal device is bound.Method of data synchronization, terminal device, server and the data synchronous system of embodiment of the present invention, terminal device use hypertext transfer protocol and server communication, are conducive to shorten the time that the data of terminal device update.In addition, terminal device, which actively can send data to server, updates the update of request, terminal device and electronic device without that can also realize data online simultaneously, it is detached from the dependence to electronic device, improves the usage experience of user.

Description

Method of data synchronization, terminal device, server and data synchronous system
Technical field
The present invention relates to field of communication technology, in particular to a kind of method of data synchronization, terminal device, server and data Synchronization system.
Background technique
It is existing the subscription data of user are pushed to the mode in equipment to require mobile terminal and equipment that connect simultaneously It connects to the Net, in this way, causing equipment that can not be detached from the update that mobile terminal subscribe to data, influences the usage experience of user.
Summary of the invention
The embodiment provides a kind of method of data synchronization, terminal device, server and data synchronous systems.
The method of data synchronization of embodiment of the present invention includes:
Terminal device active transmission data update request to server;With
Terminal device receives the data for the update that the server is sent, the data of the update by with the terminal device The electronic device of binding is sent to the server.
In some embodiments, the terminal device is using http protocol and the server communication.
In some embodiments, the data are stored in the server in the form of album, the electronic device Including display screen, the data are shown on the display screen in the form of album, and user manipulates the electronic device based on special The step of form collected is updated the data, and the terminal device receives the data for the update that the server is sent packet It includes:
The terminal device receives the one or more albums for the update that the server is sent.
In some embodiments, the data are stored in the server in the form of album, and the album includes Payment album, the terminal device includes display screen, and the method for data synchronization further includes:
When the terminal device plays the payment album, show on the display screen corresponding with the payment album Payment code.
In some embodiments, the step of terminal device active transmission data update request to server include:
After receiving the subscription operation of user, the terminal device active transmission data update request to server.
The method of data synchronization of embodiment of the present invention includes:
Server receives the data for the update that electronic device is sent;
Server stores the data of the update;
The data of server receiving terminal equipment active transmission update request;With
Server updates request according to the data and is sent to the data of the update and electronic device binding Terminal device.
The method of data synchronization of embodiment of the present invention is used for data synchronous system, and the data synchronous system includes terminal Equipment, server and electronic device, the terminal device can be bound with the electronic device, the method for data synchronization packet It includes:
The electronic device receives the input of user to determine the data updated;
The data of the update are sent to the server by the electronic device;
Server stores the data of the update;
The terminal device active transmission data update request to the server;With
The terminal device receives the data for the update that the server is sent.
The terminal device of embodiment of the present invention includes communications module.The communications module is updated for active transmission data It requests to server, and receives the data for the update that the server is sent, the data of the update with the terminal by setting The electronic device of standby binding is sent to the server.
In some embodiments, the terminal device is using http protocol and the server communication.
In some embodiments, the data are stored in the server in the form of album, the electronic device Including display screen, the data are shown on the display screen in the form of album, and user manipulates the electronic device based on special Volume form the data are updated, the communications module be also used to receive one of the update that the server is sent or Multiple albums.
In some embodiments, the data are stored in the server in the form of album, and the album includes Payment album, the terminal device includes display screen, and the display screen is used to play the payment album in the terminal device When, show payment code corresponding with the payment album.
In some embodiments, the communications module is also used to the active transmission number after the subscription operation for receiving user According to updating request to server.
The server of embodiment of the present invention includes communication module and memory.The communication module is for receiving electronics dress Set the data of the update of transmission.The memory is used to store the data of the update.The communication module is also used to receive end The data of end equipment active transmission update request, and according to the data update request by the data of the update be sent to The terminal device of the electronic device binding.
The data synchronous system of embodiment of the present invention includes terminal device, server and electronic device, and the terminal is set Standby to bind with the electronic device, the electronic device includes input unit and communication unit.The input unit is used for The input of user is received to determine the data updated, the communication unit is used to the data of the update being sent to the service Device.The server includes memory, and the memory is used to store the data of the update.The terminal device includes communication Mould group, the communications module update request to the server for active transmission data, receive the institute that the server is sent State the data of update.
Method of data synchronization, terminal device, server and the data synchronous system of embodiment of the present invention, terminal device are adopted With hypertext transfer protocol and server communication.Http protocol has biggish volume of transmitted data, can transmit a plurality of number every time According to, be conducive to shorten terminal device data update time.In addition, terminal device actively can send data more to server The data of update after server receives data update request, are sent to terminal according to data update request and set by new request It is standby.In this way, passively data to be updated to the data update for becoming active, data synchronization is not limited by time and region, user Data can be subscribed on the electronic device at any time, available data, terminal device and electronic device are not necessarily to terminal device at any time The update that can also realize data online simultaneously, is detached from the dependence to electronic device, improves the usage experience of user.
Additional aspect and advantage of the invention will be set forth in part in the description, and will partially become from the following description Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments Obviously and it is readily appreciated that, wherein:
Fig. 1 is the flow diagram of the method for data synchronization for terminal device of certain embodiments of the present invention.
Fig. 2 is the schematic diagram of the data synchronous system of certain embodiments of the present invention.
Fig. 3 is the module diagram of the terminal device of certain embodiments of the present invention.
Fig. 4 and Fig. 5 is the flow diagram of the method for data synchronization for terminal device of certain embodiments of the present invention.
Fig. 6 is the schematic diagram of a scenario of the method for data synchronization for terminal device of certain embodiments of the present invention.
Fig. 7 and Fig. 8 is the flow diagram of the method for data synchronization for terminal device of certain embodiments of the present invention.
Fig. 9 is the flow diagram of the method for data synchronization for electronic device of certain embodiments of the present invention.
Figure 10 is the module diagram of the electronic device of certain embodiments of the present invention.
Figure 11 and Figure 12 is the process signal of the method for data synchronization for electronic device of certain embodiments of the present invention Figure.
Figure 13 is the flow diagram of the method for data synchronization for server of certain embodiments of the present invention.
Figure 14 is the module diagram of the server of certain embodiments of the present invention.
Figure 15 is the flow diagram of the method for data synchronization for server of certain embodiments of the present invention.
Figure 16 is the flow diagram of the method for data synchronization for data synchronous system of certain embodiments of the present invention.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, it is intended to is used to explain the present invention, and is not considered as limiting the invention.
Also referring to Fig. 1 and Fig. 2, the present invention provides a kind of method of data synchronization for terminal device 10.Terminal is set Standby 10 communicate with server 30, and server 30 is communicated with electronic device 20, and terminal device 10 can be filled with one or more electronics Set 20 bindings.Method of data synchronization includes:
S11:10 active transmission data of terminal device update request to server 30;With
S12:Terminal device 10 receives the data for the update that server 30 is sent, wherein the data of update with terminal by setting The electronic device 20 of standby 10 binding is sent to server 30.
Referring to Fig. 3, the present invention also provides a kind of terminal devices 10.Terminal device 10 includes communications module 11.Step S11 It can be realized by communications module 11 with step S12.In other words, communications module 11 can be used for the update request of active transmission data To server 30, and receive the data for the update that server 30 is sent.Wherein, the data of update with terminal device 10 by binding Electronic device 20 be sent to server 30.
Terminal device 10 can be early education equipment, smart phone, tablet computer, laptop and wearable device, such as Smartwatch, Intelligent bracelet, intelligent glasses etc..In a specific embodiment of the present invention, terminal device 10 is early education equipment.
Electronic device 20 can be smart phone, tablet computer, laptop and wearable device, as smartwatch, Intelligent bracelet, intelligent glasses etc..In a specific embodiment of the present invention, electronic device 20 is smart phone.
Electronic device 20 and the binding mode of terminal device 10 are:A two dimension is shown on the display screen 12 of terminal device 10 Code, the two dimensional code indicate the unique identification of the terminal device 10.Electronic device 20 logs in wechat interface, opens at wechat interface " sweep and sweep " functionality scan two dimensional code can be bound after obtaining the unique identification with the terminal device 10.Certainly, it indicates The two dimensional code of 10 unique identification of terminal device is also possible on the shell for being pasted onto terminal device 10 in a manner of label, and instruction is eventually The unique identification of end equipment 10 is also possible to one-dimension code etc. in addition to two dimensional code, herein with no restrictions.
It is appreciated that the corresponding early education course of existing every money terminal device 10 (i.e. the data of user's subscription) is stored in It produces in the server 30 of manufacturer's exploitation of this terminal device 10.Each terminal device 10 can pass through wired mode or nothing The data subscribed to are downloaded in line mode server 30.Under wired mode, terminal device 10 passes through the connecting lines such as USB connection electricity Brain, computer, which from 30 download data of server further passes through USB connecting line and is transmitted in terminal device 10, to be stored.Wireless parties Under formula, terminal device 10 and the electronic device 20 bound with it are needed to connect simultaneously and be connected to the Net, and user is in electronic device 20, such as hand Carry out subscription operation on the touching display screen of machine, the data transmission of update to server 30, server 30 receives user's update Data after, actively to terminal device 10 send data update instruction, terminal device 10 receive data update instruction it is laggard Receive to one step the data of the update of the transmission of server 30.But such data method of synchronization the problem is that update each time When the data that user subscribes to, terminal device 10 and electronic device 20 must connect simultaneously connects to the Net, such 10 ability of terminal device The instruction that the data of the transmission of server 30 update is received in time, if receiving the update of the transmission of electronic device 20 in server 30 When data, terminal device 10 is without online, then terminal device 10 can not receive the instruction that the data of the transmission of server 30 update, Also the data that can not just update storage cause data to update failure.In addition, passing through message between terminal device 10 and server 30 Queue telemetering transmission (Message Queuing Telemetry Transport, MQTT) agreement carries out data transmission, MQTT association The volume of transmitted data of view is smaller, can only transmit single data every time, causes the data of terminal device 10 to update process and needs to expend More time, user experience are poor.
The terminal device 10 of embodiment of the present invention uses hypertext transfer protocol (Hyper Text Transfer Protocol, HTTP) it is communicated with server 30.Http protocol has biggish volume of transmitted data, can transmit a plurality of number every time According to, be conducive to shorten terminal device 10 data update time.In addition, the terminal device 10 of embodiment of the present invention can be led The transmission data of trend server 30 update request, after server 30 receives data update request, store data update request, And request is updated according to the data, the data of update are sent to terminal device 10.In this way, passively data update will become main Dynamic data update, and data synchronization is not limited by time and region, and user can subscribe to data on electronic device 20 at any time, Available data, terminal device 10 and electronic device 20 are not necessarily to realize data more online simultaneously terminal device 10 at any time Newly, it is detached from the dependence to electronic device 20, improves the usage experience of user.
In some embodiments, it includes the album updated that server 30, which is transmitted to the data of the update of terminal device 10, Title and its corresponding broadcasting link, terminal device 10 carry out after receiving the title and its corresponding broadcasting link of the album of update Storage.When playing, terminal device 10, which need to network just, can be carried out the broadcasting of album.
In some embodiments, it includes the album updated that server 30, which is transmitted to the data of the update of terminal device 10, Title and its corresponding specific audio or video file.Terminal device 10 receives the title of the album of update and its corresponding specific It is stored when audio or video file.When playing, terminal device 10 can play album without networking offline.
Referring to Fig. 4, in some embodiments, 10 active transmission data of step S11 terminal device update request to clothes Business device 30 include:
S111:After receiving the subscription operation of user, 10 active transmission data of terminal device update request to server 30。
Referring to Fig. 3, in some embodiments, step S111 can be realized by communications module 11.In other words, it communicates Mould group 11 can also be used in after receiving the subscription operation of user, and 10 active transmission data of terminal device update request to server 30。
Specifically, terminal device 10 includes selection key and determining key.User selects subscription identity using selection key, The i.e. executable subscription operation of determining key is pressed, terminal device 10 receives the input of the subscription operation of user at this time, actively sends out Data are sent to update request to server 30.Data to the terminal that server 30 transmits update corresponding with the terminal device 10 again is set Standby 10.
Certainly, in some embodiments, terminal device 10 can also be every one section of predetermined time active transmission data more It is new to request to server 30.After the data that server 30 receives the transmission of terminal device 10 update request, then transmit and the terminal The data of the corresponding update of equipment 10 are to terminal device 10.
In other words, it includes user's that triggering terminal equipment 10, which sends data and updates request to the trigger action of server 30, Manual operation also includes being automatically brought into operation for terminal device 10.In this way, terminal device 10 is manually operated by user carries out data more New mode gives the higher freedom degree used of user, and the mode that terminal device 10 independently carries out data update can be in user More new data, user experience are more preferable in time when forgetting more new data.
Referring to Fig. 5, in some embodiments, step S12 terminal device 10 receives the update that server 30 is sent Data include:
S121:Terminal device 10 receives the one or more album I for the update that server 30 is sent.
Referring to Fig. 3, in some embodiments, step S121 can be realized by communications module 11.In other words, it communicates Mould group 11 can also be used in the one or more album I for receiving the update that server 30 is sent.
Specifically, data are stored in server 30 in the form of album I, i.e., data form multiple special after being classified I is collected to be stored in server 30.Similarly, at 20 end of electronic device, data are shown in electronic device 20 in the form of album I On display screen 23, user is manipulated electronic device 20 and is updated in the form of based on album I to data.By taking Fig. 6 as an example, in Fig. 6 Shown in " Yale classroom (1 years old) ", " Yale classroom (2 years old) ", " Yale classroom (3 years old) " etc. be to be showed in the form of album I Data click " Yale classroom (3 years old) " and enter meeting after next page, and display screen 23 can be shown including " the first phase《3 years old children's Physical and mental development speciality --- from friendly to rebel》", " second phase《Interpersonal relationships --- the initiation of cooperation awareness of 3 years old children Phase》" etc. more phase classrooms audio.User is subscribed to as unit of album I when subscribing to data, i.e. subscription " Yale classroom (3 Year) " a whole album I, rather than specific a certain phase classroom, such as " first phase《The physical and mental development speciality of 3 years old children --- from friend It is apt to rebel》".
Wherein, the update of data includes the addition of one or more album I and deletes.Assuming that terminal device 10 is not counted " Yale classroom (1 years old) ", " Yale classroom (2 years old) ", " Yale classroom (3 years old) " three album I have been stored according to update is preceding.With Family increases the album I for having subscribed " Yale classroom (4 years old) " newly on the electronic device 20 bound with terminal device 10, and unsubscribes The album I of " Yale classroom (1 years old) ", the then data updated include " newly-increased ' Yale classroom (4 years old) ' and deleting ' Yale classroom (1 years old) ' ".The content of " newly-increased ' Yale classroom (4 years old) ' and deleting ' Yale classroom (1 years old) ' " is sent to clothes by electronic device 20 Business device 30, server 30 are stored after receiving.Terminal device 10, which receives, to be sent data update after the subscription operation of user and asks It asks to server 30, after server 30 receives data update request, the data transmission of " Yale classroom (4 years old) " is set to terminal In standby 10, while transmitting the instruction that instruction terminal equipment 10 deletes " Yale classroom (1 years old) ".It is deposited in this way, terminal device 10 is newly-increased The album I of " Yale classroom (4 years old) " is stored up, and deletes the album I of " Yale classroom (1 years old) " of storage originally, after data update, is deposited Storing up the data on terminal device 10 includes " " Yale classroom (2 years old) ", " Yale classroom (3 years old) ", " Yale classroom (4 years old) " three A album I.
In this way, user can carry out the subscription of data as unit of 20 end of electronic device is by album I, user's logarithm is facilitated According to uniformly being checked, the subscription operation of user, better user experience are decreased.In addition, since terminal device 10 uses Http protocol is communicated with server 30, when data update, can transmit the data of entire album I, is transmitted without data It measures the small each audio caused in each album I to need successively to transmit, data update the slow problem of process.
Referring to Fig. 7, in some embodiments, album I includes free album I and payment album I.Embodiment party of the present invention The method of data synchronization of formula further includes:
S13:When terminal device 10 plays payment album I, display payment corresponding with payment album I on the display 12 Code.
Referring to Fig. 3, in some embodiments, step S13 can be realized by display screen 12.In other words, display screen 12 can be used for the display payment corresponding with payment album I on the display 12 when terminal device 10 plays payment album I Code.
Specifically, user can use the selection key selection content to be played, if selection in using terminal equipment 10 To payment album I, and the user does not buy album I, then can show on the display screen 12 of terminal device 10 and the payment The corresponding payment code of album I, in a specific embodiment of the present invention, the payment code are two dimensional code.User can use electronics dress It sets the 20 scannings payment codes to pay the bill, wherein the electronic device 20 for scanning payment can be and terminal device 10 is bound Electronic device 20, be also possible to not with terminal device 10 bind electronic device 20.After successful payment, the information of successful payment It can be transmitted to server 30, the information of payment album I and the information of terminal device 10, server are carried in the payment information 30 update the subscription data of corresponding terminal device 10 according to the payment information, at this time due to being paid at 10 end of terminal device Take, show terminal device 10 be it is online, server 30 can directly transmit the payment album I of purchase to terminal device 10 with Terminal device 10 is allowed to be stored.Meanwhile server 30 can send more new command to update the subscription data on electronic device 20.
In this way, can also carry out operation for paying the fee on terminal device 10, user experience is preferable.
Referring to Fig. 8, in some embodiments, the number for the electronic device 20 bound with terminal device 10 be it is multiple, Step S12 terminal device 10 receives the data of update that server 30 is sent:
S122:Terminal device 10 receives the data for the update from multiple electronic devices 20 that server 30 is sent.
Referring to Fig. 3, in some embodiments, step S122 can be realized by communications module 11.In other words, it communicates Mould group 11 can also be used in the data for receiving the update from multiple electronic devices 20 that server 30 is sent.
Specifically, it is assumed that there are three the electronic devices 20 bound with terminal device 10, respectively No.1 device, No. two devices With No. three devices, terminal device 10 data update before stored " Yale classroom (1 years old) ", " Yale classroom (2 years old) ", " Three, Shandong classroom (3 years old) " album I.User increases on No.1 device has subscribed " Yale classroom (4 years old) " album I, user The album I of " Yale classroom (1 years old) " is deleted on No. two devices, user increases on No. three devices has subscribed " Yale classroom (5 years old) " and " Yale classroom (6 years old) " two album I.Then No.1 device sends the content " increased newly ' Yale classroom (4 years old) ' " To server 30, the content of " deleting ' Yale classroom (1 years old) ' " is sent to server 30 by No. two devices, and No. three devices will be " new The content of increasing ' Yale classroom (5 years old) ' and ' Yale classroom (6 years old) ' " is sent to server 30.Server 30 receives three electricity It is stored after the data of the update of sub-device 20, and after the data for receiving terminal device 10 update request, by " Yale's class Hall (4 years old) ", " Yale classroom (5 years old) " and " Yale classroom (6 years old) " three album I are sent to terminal device 10 and store, and The instruction of transmission " deleting ' Yale classroom (1 years old) ' " is so that terminal device 10 deletes " Yale classroom (1 years old) " this album I.Separately Outside, server 30 can also send the data of update in three electronic devices 20, so that the subscription of three electronic devices 20 According in synchronous regime.
It is understood that the user of terminal device 10 is usually child, by terminal device 10 respectively with the father of child The handset binding of father and mother facilitate the parent of child to carry out subscribing to deleting for data, and the usage experience of user is more preferable.
Referring to Figure 2 together and Fig. 9, the present invention also provides a kind of method of data synchronization for electronic device 20.Data Synchronous method includes:
S21:Electronic device 20 receives the input of user to determine the data updated;With
S22:The data of update are sent to server 30 so that server 30 sends the data of update by electronic device 20 To the terminal device 10 bound with electronic device 20.
Referring to Fig. 10, the present invention also provides a kind of electronic devices 20.Electronic device 20 includes input unit 21 and communication Unit 22.Step S21 can be realized by input unit 21.Step S22 can be realized by communication unit 22.In other words, it inputs Unit 21 can be used for receiving the input of user to determine the data updated.Communication unit 22 can be used for for the data of update being sent to Server 30 is so that the data of update are sent to the terminal device 10 bound with electronic device 20 by server 30.
Wherein, electronic device 20 can be smart phone, tablet computer, laptop and wearable device, such as intelligence Wrist-watch, Intelligent bracelet, intelligent glasses etc..In a specific embodiment of the present invention, electronic device 20 is smart phone.
Specifically, electronic device 20 includes the display screen 23 with touch function.Data are shown in aobvious in the form of album I In display screen 12, user's touching display screen 23 can carry out the subscription of data.After data subscription success, electronic device 20 is by update Data are sent to server 30, the mark of the determining terminal device 10 bound with electronic device 20 of server 30, and by update Data and the mark of the terminal device 10 are associated storage.It is updated in the data that server 30 receives the transmission of terminal device 10 After request, the corresponding specific file of the data of update is transmitted to terminal device 10 so that terminal device 10 is deposited by server 30 Storage.In this way, user can subscribe to data on electronic device 20, operate more convenient.
Figure 11 is please referred to, in some embodiments, step S21 electronic device 20 receives the input of user and updates to determine Data include:
S211:Electronic device 20 receives the input of user to add and/or delete album I.
Referring to Fig. 10, in some embodiments, step S211 can be realized by input unit 21.In other words, defeated Entering unit 21 can be used for receiving the input of user to add and/or delete album I.
Specifically, data are shown on display screen 23 in the form of album I.It is single that user, which is with album I when subscribing to data, It is subscribed to position.Subscription operation is including addition album I and deletes album I.The data updated after subscription are by communication unit 22 are transmitted on server 30 and are stored.
Subscription data can be convenient user and uniformly be checked to data as unit of album I, and subscribe in user Data it is more when, user directly subscribes to entire album I, without subscribing to one by one to the specific file in album I, reduces The operation of user improves the usage experience of user.
Figure 12 is please referred to, in some embodiments, album I includes free album I and payment album I.Step S21 electronics Device 20 receives the input of user with the data for determining update:
S212:Electronic device 20 receives the input of user to subscribe to payment album I.
Referring to Fig. 10, in some embodiments, step S212 can be realized by input unit 21.In other words, defeated Entering unit 21 can also be used to receive the input of user to subscribe to payment album I.
Specifically, it when user subscribes to payment album I, needs to carry out operation payment on electronic device 20.It pays successfully Afterwards, payment album I also successful subscription.
In this way, user can also subscribe on electronic device 20 and pay in addition to that can subscribe to payment album I on terminal device 10 Take album I, enriches the subscription channel of user, improve the usage experience of user.
Referring to Figure 2 together and Figure 13, the present invention also provides a kind of method of data synchronization for server 30.Data are same One step process includes:
S31:Server 30 receives the data for the update that electronic device 20 is sent;
S32:Server 30 stores the data updated;
S33:The data of 30 receiving terminal apparatus of server, 10 active transmission update request;With
S35:Server 30 updates request according to data and the data of update is sent to the terminal bound with electronic device 20 Equipment 10.
Figure 14 is please referred to, the present invention also provides a kind of servers 30.Server 30 includes communication module 31 and memory 32. Step S31, step S33 and step S35 can be realized by communication module 31.Step S32 can be realized by memory 32.Namely It is to say, communication module 31 can be used for receiving the data of the update of the transmission of electronic device 20.Memory 32 can be used for storing update Data.The data that communication module 31 can also be used in 10 active transmission of receiving terminal apparatus update request, and are updated according to data The data of update are sent to the terminal device 10 bound with electronic device 20 by request.
Specifically, data are stored in server 30 in the form of album I.Accordingly, data are shown in the form of album I Show on electronic device 20.User subscribes to data as unit of on electronic device 20 by album I.By electronic device after data update 20 are transmitted to server 30, and server 30 receives the data updated and stored.If server 30 has received and the electronics The data that the terminal device 10 that device 20 is bound is sent update request, then the response of server 30 data update request for update Data transmission is into terminal device 10 so that terminal device 10 carries out storage update.
In this way, realizing that terminal device 10 is synchronous with the data of electronic device 20 based on server 30.Further, due to clothes Business device 30 is communicated with terminal device 10 by http protocol, and volume of transmitted data is larger, server 30 can by the data of update with Faster speed is transmitted in terminal device 10, is shortened data and is updated process.
Figure 15 is please referred to, in some embodiments, the method for data synchronization of embodiment of the present invention is gone back after step S33 Including:
S34:Server 30 judges whether the data of terminal device 10 have update;
Step S35 server 30 updates request according to data and the data of update is sent to the end bound with electronic device 20 End equipment 10 includes:
S351:When the data of terminal device 10 have update, the data of update are sent to terminal device 10 by server 30.
Figure 14 is please referred to, in some embodiments, server 30 further includes processor 33.Step S34 can be by handling Device 33 is realized.Step S351 can be realized by communication module 31.In other words, processor 33 can be used for breaking the number of terminal device 10 According to whether having update.Communication module 31 can also be used to that the data of update are sent to end when the data of terminal device 10 have update End equipment 10.
Specifically, the subscription data of corresponding multiple terminal devices 10, every part of subscription data and end are stored in server 30 The mark associated storage of end equipment 10.The data updated are uploaded in the one or more electronic devices 20 bound with terminal device 10 When to server 30, server 30 receives the data of all updates, and by the data of update and corresponding terminal device 10 Identify associated storage.When terminal device 10 transmits data and updates request to server 30, server 30 first determines whether the terminal The subscription data of equipment 10 are with the presence or absence of update.If having in the presence of updating, by the part data transmission of update to terminal device 10 increase the part data that storage updates so as to terminal device 10.
Incorporated by reference to Fig. 6, it is assumed that terminal device 10 has been stored with " Yale classroom (1 years old) ", " Yale classroom (2 years old) ", " Yale Three, classroom (3 years old) " album I.User increases on electronic device 20 has subscribed " Yale classroom (4 years old) " album I, then electric " newly-increased ' Yale classroom (4 years old) ' " is sent to server 30 by sub-device 20.Server 30 is updated according to this data to be deposited originally Whole part corresponding to terminal device 10 of storage subscribes to data, i.e., the subscription updated in the terminal device 10 of 30 end of server storage Data include " Yale classroom (1 years old) ", " Yale classroom (2 years old) ", " Yale classroom (3 years old) " and " Yale classroom (4 years old) " four Album I.After terminal device 10 sends data update request to server 30, server 30 receives the data and updates request, and The data of terminal device 10 are judged with the presence or absence of updating, since the subscription data of the terminal device 10 have increased " Yale classroom (4 newly Year) " this album I, therefore, " Yale classroom (4 years old) " this album I is sent to terminal device 10 so that terminal by server 30 Equipment 10 increases storage " Yale classroom (4 years old) " this album I.
In some embodiments, server 30 judges that the data of terminal device 10 can be with the presence or absence of the mode updated It is:The subscription operation that one first label flag1 carrys out association user is stored in server 30, the every execution of user is primary to subscribe to behaviour Make, i.e., server 30 often receives the data once updated, and flag1 can accordingly add 1.Terminal device 10 sends data and updates request When, the information of the second label flag2 can be carried.When terminal device 10 sends data update request for the first time, flag2 is defaulted as 0, clothes When the data of update are sent to terminal device 10 by business device 30, the value for updating flag2 can be corresponded to according to the value of flag1, so that Flag2=flag1, and the value of flag2 is sent to terminal device 10 so that the store-updated flag2 of terminal device 10 Value.Flag2 can be sent to server 30 together when the subsequent data of transmission each time update request by terminal device 10.Service Device 30 compares the size of flag1 and flag2, thinks that data exist when finding that flag2 is less than flag1 and updates, at this time server 30 store the data transmission of update into terminal device 10.
Referring to Figure 2 together and Figure 16, the present invention also provides a kind of data sides of synchronization for data synchronous system 100 Method.Data synchronous system 100 includes terminal device 10, above-mentioned any one embodiment party described in above-mentioned any one embodiment Electronic device 20 described in server 30 described in formula and above-mentioned any one embodiment.Method of data synchronization includes:
S21:Electronic device 20 receives the input of user to determine the data updated;
S22:The data of update are sent to server 30 by electronic device 20;
S32:Server 30 stores the data updated;
S11:10 active transmission data of terminal device update request to server 30;
S12:Terminal device 10 receives the data for the update that server 30 is sent.
Also referring to Fig. 3, Figure 10 and Figure 14, the present invention also provides a kind of data synchronous systems 100.Data synchronous system 100 include terminal device 10 described in above-mentioned any one embodiment, server described in above-mentioned any one embodiment 30 and above-mentioned any one embodiment described in electronic device 20.Electronic device 20 includes input unit 21 and communication unit 22.Server 30 includes memory 32.Terminal device 10 includes communications module 11.Step S21 can be realized by input unit 21. Step S22 can be realized by communication unit 22.Step S32 can be realized by memory 32.Step S11 and step S12 can be with It is realized by communications module 11.
The method of data synchronization and data synchronous system 100 of embodiment of the present invention, terminal device 10 are passed using hypertext Defeated agreement (Hyper Text Transfer Protocol, HTTP) communicates with server 30.Http protocol has biggish number According to transmission quantity, a plurality of data can be transmitted every time, be conducive to shorten the time that the data of terminal device 10 update.In addition, terminal Equipment 10 actively can send data to server 30 and update request, after server 30 receives data update request, according to this Data update request and the data of update are sent to terminal device 10.In this way, passively data to be updated to the data for becoming active It updates, data synchronization is not limited by time and region, and user can subscribe to data, terminal device on electronic device 20 at any time 10 available data, the updates of terminal device 10 and electronic device 20 without that can also realize data online simultaneously at any time are detached from Dependence to electronic device 20 improves the usage experience of user.
The present invention also provides a kind of computer readable storage medium, computer journey is stored on computer readable storage medium Sequence.Computer program can be executed by processor to complete to be used for the number of terminal device 10 described in above-mentioned any one embodiment According to synchronous method.
For example, computer program can be executed by processor to complete following steps:
10 active transmission data of controlling terminal equipment update request to server 30;With
Controlling terminal equipment 10 receives the data for the update that server 30 is sent, wherein the data of update with terminal by setting The electronic device 20 of standby 10 binding is sent to server 30.
For another example computer program can be also executed by processor to complete following steps:
After receiving the subscription operation of user, 10 active transmission data of controlling terminal equipment update request to server 30。
The present invention also provides a kind of computer readable storage medium, computer journey is stored on computer readable storage medium Sequence.Computer program can be executed by processor to complete to be used for the number of electronic device 20 described in above-mentioned any one embodiment According to synchronous method.
For example, computer program can be executed by processor to complete following steps:
It controls electronic device 20 and receives the input of user to determine the data updated;With
It controls electronic device 20 and the data of update is sent to server 30 so that server 30 sends the data of update To the terminal device 10 bound with electronic device 20.
The present invention also provides a kind of computer readable storage medium, computer journey is stored on computer readable storage medium Sequence.Computer program can be executed by processor 33 to complete to be used for the number of server 30 described in above-mentioned any one embodiment According to synchronous method.
For example, computer program can be executed by processor 33 to complete following steps:
Control server 30 receives the data for the update that electronic device 20 is sent;
Control server 30 stores the data updated;
The data of 30 receiving terminal apparatus of control server, 10 active transmission update request;With
Control server 30 updates request according to data and the data of update is sent to the terminal bound with electronic device 20 Equipment 10.
For another example computer program can also be executed by processor 33 to complete following steps:
Control server 30 judges whether the data of terminal device 10 have update;
When the data of terminal device 10 have update, the data of update are sent to terminal device 10 by control server 30.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples It closes and combines.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the present invention, the meaning of " plurality " is at least two, such as two, three It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, to execute function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment It sets.The more specific example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wiring Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware Any one of column technology or their combination are realized:With for realizing the logic gates of logic function to data-signal Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in a processing module It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as to limit of the invention System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of the invention Type.

Claims (14)

1. a kind of method of data synchronization, which is characterized in that the method for data synchronization includes:
Terminal device active transmission data update request to server;With
Terminal device receives the data for the update that the server is sent, and the data of the update with the terminal device by binding Electronic device be sent to the server.
2. method of data synchronization according to claim 1, which is characterized in that the terminal device uses http protocol and institute State server communication.
3. method of data synchronization according to claim 1, which is characterized in that the data are stored in institute in the form of album It states in server, the electronic device includes display screen, and the data are shown on the display screen in the form of album, Yong Hucao It controls the electronic device to be updated the data in the form of based on album, the terminal device receives the server hair The step of data for the update sent includes:
The terminal device receives the one or more albums for the update that the server is sent.
4. method of data synchronization according to claim 1, which is characterized in that the data are stored in institute in the form of album It states in server, the album includes payment album, and the terminal device includes display screen, and the method for data synchronization also wraps It includes:
When the terminal device plays the payment album, payment corresponding with the payment album is shown on the display screen Code.
5. method of data synchronization according to claim 1, which is characterized in that the terminal device active transmission data update Request includes to the step of server:
After receiving the subscription operation of user, the terminal device active transmission data update request to server.
6. a kind of method of data synchronization, which is characterized in that the method for data synchronization includes:
Server receives the data for the update that electronic device is sent;
Server stores the data of the update;
The data of server receiving terminal equipment active transmission update request;With
Server updates request according to the data and the data of the update is sent to the terminal bound with the electronic device Equipment.
7. a kind of method of data synchronization is used for data synchronous system, which is characterized in that the data synchronous system includes that terminal is set Standby, server and electronic device, the terminal device can be bound with the electronic device, and the method for data synchronization includes:
The electronic device receives the input of user to determine the data updated;
The data of the update are sent to the server by the electronic device;
Server stores the data of the update;
The terminal device active transmission data update request to the server;With
The terminal device receives the data for the update that the server is sent.
8. a kind of terminal device, which is characterized in that the terminal device includes communications module, and the communications module is used for:
Active transmission data update request to server;With
The data for the update that the server is sent are received, the data of the update are filled by the electronics bound with the terminal device It sets and is sent to the server.
9. terminal device according to claim 8, which is characterized in that the terminal device is using http protocol and the clothes Business device communication.
10. terminal device according to claim 8, which is characterized in that the data are stored in described in the form of album In server, the electronic device includes display screen, and the data are shown on the display screen in the form of album, user's manipulation The electronic device is updated the data in the form of based on album, and the communications module is also used to receive the service The one or more albums for the update that device is sent.
11. terminal device according to claim 8, which is characterized in that the data are stored in described in the form of album In server, the album includes payment album, and the terminal device includes display screen, and the display screen is used in the terminal Described in device plays when payment album, payment code corresponding with the payment album is shown.
12. terminal device according to claim 8, which is characterized in that the communications module is also used to receiving user Subscription operation after active transmission data update request to server.
13. a kind of server, which is characterized in that the server includes:
Communication module, the communication module are used to receive the data of the update of electronic device transmission;
Memory;The memory is used to store the data of the update;
The communication module is also used to:
The data of receiving terminal apparatus active transmission update request;With
Request is updated according to the data, and the data of the update are sent to the terminal device bound with the electronic device.
14. a kind of data synchronous system, which is characterized in that the data synchronous system includes terminal device, server and electronics Device, the terminal device can be bound with the electronic device, and the electronic device includes:
Input unit, the input unit are used to receive the input of user to determine the data updated;With
Communication unit, the communication unit are used to the data of the update being sent to the server;
The server includes memory, and the memory is used to store the data of the update;
The terminal device includes communications module, and the communications module is used for:
Active transmission data update request to the server;With
Receive the data for the update that the server is sent.
CN201810556792.9A 2018-06-01 2018-06-01 Method of data synchronization, terminal device, server and data synchronous system Pending CN108881416A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810556792.9A CN108881416A (en) 2018-06-01 2018-06-01 Method of data synchronization, terminal device, server and data synchronous system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810556792.9A CN108881416A (en) 2018-06-01 2018-06-01 Method of data synchronization, terminal device, server and data synchronous system

Publications (1)

Publication Number Publication Date
CN108881416A true CN108881416A (en) 2018-11-23

Family

ID=64336384

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810556792.9A Pending CN108881416A (en) 2018-06-01 2018-06-01 Method of data synchronization, terminal device, server and data synchronous system

Country Status (1)

Country Link
CN (1) CN108881416A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109947380A (en) * 2019-02-28 2019-06-28 深圳市灵畅网络技术有限公司 Display methods, display equipment, server, mobile terminal and display system
CN113810264A (en) * 2021-01-15 2021-12-17 北京京东拓先科技有限公司 Information transmission method and device, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101582924A (en) * 2009-06-19 2009-11-18 深圳市五巨科技有限公司 Data transmission method of mobile terminal and device thereof
CN101924993A (en) * 2007-11-13 2010-12-22 华为技术有限公司 Multi-terminal service message processing method, system and device
CN103209188A (en) * 2013-04-16 2013-07-17 百度在线网络技术(北京)有限公司 Method, system and server for pushing data
WO2011106769A3 (en) * 2010-02-26 2014-09-04 General Instrument Corporation Dynamic cryptographic subscriber-device identity binding for subscriber mobility
CN104093064A (en) * 2013-07-12 2014-10-08 腾讯科技(北京)有限公司 Method, system and device used for video interaction between terminal devices
CN105141654A (en) * 2015-07-11 2015-12-09 深圳市美贝壳科技有限公司 Method for remotely accessing household storage device
CN105635260A (en) * 2015-12-24 2016-06-01 小米科技有限责任公司 Configuration method and device
CN106559700A (en) * 2015-09-29 2017-04-05 北京优朋普乐科技有限公司 A kind of method of lan device interaction, apparatus and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101924993A (en) * 2007-11-13 2010-12-22 华为技术有限公司 Multi-terminal service message processing method, system and device
CN101582924A (en) * 2009-06-19 2009-11-18 深圳市五巨科技有限公司 Data transmission method of mobile terminal and device thereof
WO2011106769A3 (en) * 2010-02-26 2014-09-04 General Instrument Corporation Dynamic cryptographic subscriber-device identity binding for subscriber mobility
CN103209188A (en) * 2013-04-16 2013-07-17 百度在线网络技术(北京)有限公司 Method, system and server for pushing data
CN104093064A (en) * 2013-07-12 2014-10-08 腾讯科技(北京)有限公司 Method, system and device used for video interaction between terminal devices
CN105141654A (en) * 2015-07-11 2015-12-09 深圳市美贝壳科技有限公司 Method for remotely accessing household storage device
CN106559700A (en) * 2015-09-29 2017-04-05 北京优朋普乐科技有限公司 A kind of method of lan device interaction, apparatus and system
CN105635260A (en) * 2015-12-24 2016-06-01 小米科技有限责任公司 Configuration method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109947380A (en) * 2019-02-28 2019-06-28 深圳市灵畅网络技术有限公司 Display methods, display equipment, server, mobile terminal and display system
CN109947380B (en) * 2019-02-28 2022-07-01 深圳市灵畅网络技术有限公司 Display method, display device, server, mobile terminal and display system
CN113810264A (en) * 2021-01-15 2021-12-17 北京京东拓先科技有限公司 Information transmission method and device, electronic equipment and storage medium
CN113810264B (en) * 2021-01-15 2023-09-05 北京京东拓先科技有限公司 Information transmission method, device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US9539515B2 (en) Communication device and method between an audiovisual information playback system and an electronic game machine
CN100461675C (en) Mobile device, content distribution system, and content distribution method
CN109074616B (en) Apparatus, application and method for transmitting game application and resource file
CN103475674B (en) Unified communications and method
CN108990110A (en) Network flux management method, device, storage medium and terminal
US20130232189A1 (en) Content management apparatus
CN105915634A (en) Data processing method, server and user terminal
AU2011301166A1 (en) Control of computing devices and user interfaces
CN103634389A (en) File transfer method, device and system between calculation device and mobile device
CN107977856A (en) User data processing method, device and server
CN103618710A (en) Individual processing method and device of file between mobile device and computing device
JP2022099259A (en) Game live program method, game live program device and computer storage medium
CN108881416A (en) Method of data synchronization, terminal device, server and data synchronous system
WO2021038945A1 (en) Digital currency exchange device, digital currency exchange method, and digital currency exchange system
CN101553805A (en) System and method for modifying a media library
CN110139170A (en) Video greeting card generation method, device, system, equipment and storage medium
CN110474991A (en) Data push method, data-pushing device, electronic equipment and storage medium
CN105791086B (en) A kind of information processing method, first terminal and second terminal
CN112817493B (en) Content sharing method and device, computer equipment and storage medium
KR20220077231A (en) Method for managing fandom community service
CN109963038B (en) Doorbell system and working method thereof
JP5981816B2 (en) Content distribution system, content distribution server, and content display device
CN109831480A (en) A kind of links and accesses monitoring method and device
CN105988676B (en) A kind of method and device updating list of application
KR102660807B1 (en) Method and system for providing additional content in process of updating application

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20181123

RJ01 Rejection of invention patent application after publication