CN114221969A - Data synchronization method, terminal, server and system based on near field communication - Google Patents

Data synchronization method, terminal, server and system based on near field communication Download PDF

Info

Publication number
CN114221969A
CN114221969A CN202111408044.4A CN202111408044A CN114221969A CN 114221969 A CN114221969 A CN 114221969A CN 202111408044 A CN202111408044 A CN 202111408044A CN 114221969 A CN114221969 A CN 114221969A
Authority
CN
China
Prior art keywords
data
terminal
target data
identifier
server
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.)
Granted
Application number
CN202111408044.4A
Other languages
Chinese (zh)
Other versions
CN114221969B (en
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.)
Anhui Tingjian Technology Co ltd
Original Assignee
Anhui Tingjian 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 Anhui Tingjian Technology Co ltd filed Critical Anhui Tingjian Technology Co ltd
Priority to CN202111408044.4A priority Critical patent/CN114221969B/en
Publication of CN114221969A publication Critical patent/CN114221969A/en
Application granted granted Critical
Publication of CN114221969B publication Critical patent/CN114221969B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The embodiment of the application provides a data synchronization method, a terminal, a server, a system and a storage medium based on near field communication, when a first terminal approaches a second terminal, a data identifier on the second terminal is obtained through a near field communication assembly, a data obtaining request is sent to the server according to the data identifier, and the server is used for storing target data which is sent by the second terminal and corresponds to the data identifier; and after acquiring the target data sent by the server according to the data identifier in the data acquisition request, distributing the target data to the application program corresponding to the data identifier so that the application program performs preset processing on the target data. The data identification corresponding to the target data is transmitted through the near field communication assembly, so that the terminal equipment receiving the data identification can obtain the target data from the server according to the data identification, the data instant transmission based on the near field communication is realized, the interaction scene among the equipment is more convenient, the data synchronization operation can be simplified, and the efficiency is improved.

Description

Data synchronization method, terminal, server and system based on near field communication
Technical Field
The present application relates to the field of data transmission technologies, and in particular, to a data synchronization method, terminal, server, system, and storage medium based on near field communication.
Background
With the popularization of intelligent devices and the development of technologies, people have higher and higher requirements on a multi-device cooperation scene. For example, the operation interaction of the existing large-screen device is not as convenient as that of a terminal such as a mobile phone, and generally, the functions such as basic data generation and functional operation can be realized only by standing a person in front of a large screen or performing real-time human-computer interaction through a remote controller. Although the technology can synchronize the data of the terminal to the large-screen device, the operation is usually cumbersome and the efficiency is low.
Disclosure of Invention
The application provides a data synchronization method, a terminal, a server, a system and a storage medium based on near field communication, and aims to solve the technical problems of complex operation, low efficiency and the like of data synchronization between equipment at present.
In a first aspect, an embodiment of the present application provides a data synchronization method based on near field communication, which is applied to a first terminal, where a first near field communication module is mounted on the first terminal, and the method includes:
when the terminal approaches to a second terminal, acquiring a data identifier sent by the second terminal through a second near field communication assembly through the first near field communication assembly;
sending a data acquisition request to a server according to the data identifier, wherein the server is used for storing target data which is sent by the second terminal and corresponds to the data identifier;
acquiring target data sent by the server according to the data identifier in the data acquisition request;
and distributing the target data to an application program corresponding to the data identifier so that the application program performs first preset processing on the target data.
In a second aspect, an embodiment of the present application provides a data synchronization method based on near field communication, which is applied to a second terminal, where a second near field communication module is mounted on the second terminal, and the method includes:
acquiring a data identifier, wherein the data identifier is used for identifying target data sent by the second terminal to a server;
sending the acquired target data to a server so that the server stores the target data according to the data identifier;
when the terminal approaches to the first terminal, the data identifier is transmitted to the first terminal through the second near field communication assembly, so that the first terminal sends a data acquisition request to the server according to the data identifier, and target data sent by the server according to the data identifier in the data acquisition request is acquired.
In a third aspect, an embodiment of the present application provides a data synchronization method based on near field communication, where the method is used for a server, and the method includes:
acquiring a data identifier, wherein the data identifier is used for identifying target data sent by a second terminal;
sending the data identifier to the second terminal so as to obtain the data identifier sent by the second terminal through the second near field communication component through the first near field communication component when the first terminal approaches the second terminal, and sending a data obtaining request to the server according to the data identifier;
acquiring and storing target data sent by a second terminal;
and sending target data corresponding to the data identification to the first terminal according to the data identification in the data acquisition request sent by the first terminal.
In a fourth aspect, embodiments of the present application provide a first terminal, comprising a first near field communication component, and a memory and a processor;
wherein the memory is connected with the processor and used for storing programs;
the processor is configured to implement the aforementioned steps of the data synchronization method based on near field communication applied to the first terminal by executing the program stored in the memory.
In a fifth aspect, embodiments of the present application provide a second terminal, including a second near field communication component, and a memory and a processor;
wherein the memory is connected with the processor and used for storing programs;
the processor is configured to implement the aforementioned steps of the data synchronization method based on near field communication applied to the second terminal by executing the program stored in the memory.
In a sixth aspect, an embodiment of the present application provides a server, including:
a memory and a processor;
wherein the memory is connected with the processor and used for storing programs;
the processor is used for implementing the steps of the data synchronization method of the application server side by running the program stored in the memory.
In a seventh aspect, an embodiment of the present application provides a data synchronization system based on near field communication, including:
the first terminal and the server;
the server can be in communication connection with the first terminal and can also be in communication connection with the second terminal.
In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program causes the processor to implement:
the steps of the data synchronization method based on near field communication applied to the first terminal; or
The steps of the aforementioned data synchronization method based on near field communication applied to the second terminal; or
The steps of the data synchronization method based on near field communication applied to the server side are described.
The embodiment of the application provides a data synchronization method, a terminal, a server, a system and a storage medium based on near field communication, when a first terminal approaches a second terminal, a data identifier on the second terminal is obtained through a near field communication assembly, a data obtaining request is sent to the server according to the data identifier, and the server is used for storing target data which is sent by the second terminal and corresponds to the data identifier; and after acquiring the target data sent by the server according to the data identifier in the data acquisition request, distributing the target data to the application program corresponding to the data identifier so that the application program performs preset processing on the target data. The data identification corresponding to the target data is transmitted through the near field communication assembly, so that the terminal equipment receiving the data identification can obtain the target data from the server according to the data identification, the data instant transmission based on the near field communication is realized, the interaction scene among the equipment is more convenient, the data synchronization operation can be simplified, and the efficiency is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure of the embodiments of the application.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a near field communication-based data synchronization method applied to a first terminal according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a data synchronization method according to an embodiment;
FIG. 3 is a diagram illustrating a first terminal distributing target data to an application in one embodiment;
FIG. 4 is a diagram illustrating interaction among devices of a data synchronization system according to an embodiment;
fig. 5 is a flowchart illustrating a data synchronization method based on near field communication applied to a second terminal according to an embodiment of the present application;
fig. 6 is a schematic flowchart of a data synchronization method based on near field communication applied to a server according to an embodiment of the present application;
fig. 7 is a schematic block diagram of a first terminal according to an embodiment of the present application;
fig. 8 is a schematic block diagram of a second terminal according to an embodiment of the present application;
fig. 9 is a schematic block diagram of a server according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The flow diagrams depicted in the figures are merely illustrative and do not necessarily include all of the elements and operations/steps, nor do they necessarily have to be performed in the order depicted. For example, some operations/steps may be decomposed, combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a data synchronization method based on near field communication according to an embodiment of the present disclosure. The data synchronization method based on near field communication can be applied to terminal equipment and is used for processes of data transmission and the like with other equipment, such as other terminal equipment or a server; the terminal device may be a mobile phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant, a wearable device, or a display device such as a smart screen, a smart television, and a projector, but is not limited thereto. The server may be a server, for example, a single server or a server cluster, and certainly not limited thereto, for example, the server may also be a device in the same local area network as the terminal device, such as a Set Top Box (STB), a Customer Premises Equipment (CPE), and the like, and in some embodiments, the server may be integrated with the terminal device, such as an integrated with a smart screen or a smart television.
In some embodiments, fig. 2 is a schematic view of an application scenario of a data synchronization method based on near field communication, in other words, fig. 2 illustrates a data synchronization system, where the data synchronization system includes a first terminal 10, a second terminal 20 and a server 30, where the first terminal 10 and the second terminal 20 are not the same terminal device, and both the first terminal 10 and the second terminal 20 can communicate with the server 30.
As shown in fig. 2, the first terminal 10 mounts a first near field communication module 101, and the second terminal 20 mounts a second near field communication module 201. For example, the near Field communication device 101 is a first NFC (near Field communication) device, the near Field communication device 201 is a second NFC device, and the first NFC device and the second NFC device each include, for example, an NFC antenna and an NFC chip. Illustratively, the second terminal 20 is capable of writing data on the NFC chip of the second NFC component, and the first terminal 10 is capable of reading data on the second NFC component through the first NFC component when the first terminal 10 is brought close to the second terminal 20 so that the first NFC component is brought close to the second NFC component. Note that NFC is an implementation of near field communication, and the embodiments of the present application are not limited thereto.
In some embodiments, data generated by the second terminal 20 in response to the user's operation may be synchronized to the first terminal 10 through the server 30 to perform a preset task by the first terminal 10 according to the data synchronized from the second terminal 20.
Optionally, the size of the display screen of the first terminal 10 is larger than that of the second terminal 20, for example, the first terminal 10 is a smart screen, and the second terminal 20 is a mobile phone, a tablet computer or a smart watch; illustratively, the first terminal 10 is a terminal device for a conference room, a class room, or the like, for a participant or a trainee to view, and the second terminal 20 is a terminal device for a speaker to operate. For example, the second terminal 20 displays a drawing interface, and obtains data such as handwriting generated according to user operations through the drawing interface, and the first terminal 10 can render and display the data on a display screen of the first terminal 10 for the participants or the trainees to watch.
As shown in fig. 1, the data synchronization method based on near field communication may be applied to the first terminal, and the data synchronization method applied to the first terminal includes steps S110 to S140.
And S110, when the terminal approaches to a second terminal, acquiring a data identifier sent by the second terminal through a second near field communication assembly through the first near field communication assembly.
Specifically, the data identifier is used to identify target data sent by the second terminal to the server. In some embodiments, the data identification is an encrypted, unique ID.
Illustratively, the second terminal acquires target data and sends the acquired target data to the server, so that the server stores the target data according to the data identifier. For example, the server allocates a storage unit for the target data of the second terminal, stores the target data of the second terminal in the storage unit, and may further associate the location of the storage unit with the data identifier, so that the target data stored in the storage unit may be read according to the data identifier.
In some embodiments, the second terminal obtains the data identifier from the server, where the data identifier is determined by the server when the second terminal is verified to have the right, or the data identifier is determined by the server when the server receives target data sent by the second terminal. The server side determines the data identifier, so that the server side can conveniently verify the second terminal and distribute and manage the storage unit, and the efficiency and the safety of data storage and query are improved.
For example, when a user logs in an application program at a second terminal, the server verifies an account password of the user login, determines whether the user has a right to perform data synchronization through the server, may send the data identifier to the second terminal when determining that the user has the right, and stores the target data according to the data identifier when acquiring the target data sent by the application program.
Illustratively, the server generates the data identifier according to the current time and an application identifier corresponding to the target data, where the application identifier is used to indicate an application program that generates the target data on the second terminal, and the application identifier is, for example, a Package name (Package name) of the application program. For example, the generation rule of the data identifier is: the current timestamp with 13 bits + the random number with 6 bits + the packet name are obtained by AES (Advanced Encryption Standard), which is not limited to this, and may not be encrypted, or may not include the random number, or the length of each field may be adjusted accordingly.
Because the current timestamp is increased all the time, the random number is not fixed, the name of the application packet is unique, and the uniqueness of the data identifier can be basically ensured by combining the three. By encrypting the data identification, the data identification can be prevented from being obtained through a near field communication component of the scanning terminal equipment, and the unreliable behavior can be carried out according to the generation rule of the data identification, the reverse guarantee attack server side or the false virtual data; it can be appreciated that the security of data synchronization is enhanced by encryption.
In other embodiments, the second terminal generates the data identifier when generating the target data or when sending the target data to the server; and sending the generated data identification to the server. Optionally, the second terminal generates the data identifier according to the current time and the application identifier corresponding to the target data; optionally, the second terminal encrypts the data identifier and sends the encrypted data identifier to the server.
Illustratively, when a second terminal approaches a first terminal, the data identifier is transmitted to the first terminal through the second near field communication component, so that the first terminal sends a data acquisition request to the server according to the data identifier, and acquires target data sent by the server according to the data identifier in the data acquisition request. It can be understood that, when the second terminal approaches the first terminal, the data identifier is transmitted to the first terminal through near field communication protocol, so that the first terminal can obtain the corresponding target data from the server according to the data identifier.
In general, the speed and the amount of data that can be transmitted by the nfc component are limited, and the basic functions are generally to transmit read/write cards, doors, and small-capacity data. The terminal equipment transmits the data identification corresponding to the target data through the near field communication assembly, so that the terminal equipment receiving the data identification can obtain the target data from the server according to the data identification, the data instant transmission based on the near field communication is realized, and meanwhile, the convenience of the near field communication can be utilized, so that the operation of data synchronization between equipment is simplified, and the efficiency is improved.
And S120, sending a data acquisition request to a server according to the data identifier, wherein the server is used for storing the target data which is sent by the second terminal and corresponds to the data identifier.
Illustratively, the first terminal holds a key for decrypting the data identifier, decrypts the data identifier based on the key after acquiring the data identifier through the first near field communication component, and sends a data acquisition request to the server according to the decrypted data identifier. Certainly, the method is not limited to this, for example, the first terminal may also directly send the data acquisition request to the server according to the encrypted data identifier; for example, the server holds a key for decrypting the data identifier, decrypts the data identifier in the data acquisition request when receiving the data acquisition request sent by the first terminal, and locates the corresponding target data according to the decrypted data identifier.
In some embodiments, it may be determined whether the data identifier is valid based on a preset validation rule; and when the data identification is determined to be valid, sending a data acquisition request to a server according to the data identification. When the data identification obtained from the second terminal is verified to be valid, the target data is requested from the server, so that the safety and reliability of data synchronization can be improved, and the processing efficiency when the data identification of the second terminal is invalid can be improved. For example, when it is determined that the data identifier is invalid, a prompt indicating that data cannot be currently synchronized from the second terminal may be output.
Illustratively, the first terminal decrypts the data identifier to obtain a decrypted character string, such as 13-bit current timestamp + 6-bit random number + packet name, and verifies whether the data identifier is valid according to the character string.
Illustratively, the verifying whether the data identifier is valid based on a preset verification rule includes: determining whether an application identifier corresponding to the target data, such as a packet name, is in an application white list of the first terminal, and/or determining whether a timestamp in the data identifier is a valid timestamp; and when the application identifier corresponding to the target data is determined to be in the application white list and/or the timestamp in the data identifier is a valid timestamp, determining that the data identifier is valid.
For example, intercepting a character string obtained by decrypting a data identifier, intercepting the character string from the 20 th bit to the last bit to obtain an application packet name corresponding to the target data, matching the packet name with an application white list of a first terminal, and judging whether the data identifier is valid; for example, when the application identifier corresponding to the target data is not in the application white list, a prompt indicating that the first terminal does not install the corresponding application program may be output. Or the time stamp in the character string obtained by decrypting the data identification is checked, and when the time corresponding to the time stamp in the character string is after the current time, the data identification is determined to be invalid or illegal.
S130, acquiring target data sent by the server according to the data identification in the data acquisition request.
Illustratively, the server sends the target data corresponding to the data identifier to the first terminal according to the data identifier in the data acquisition request sent by the first terminal.
For example, the server may also determine whether the data identifier is valid based on a preset verification rule; and when the data identification is determined to be valid, sending the target data corresponding to the data identification to the first terminal. For example, when it is determined that the data identifier is invalid, a prompt indicating that data cannot be currently synchronized from the second terminal may be sent to the first terminal.
In some embodiments, the server queries target data corresponding to the data identifier in a database, encapsulates the target data with a preset encapsulation protocol, and then sends the encapsulated target data to the first terminal.
For example, the server may send the data identifier together when sending the target data to the first terminal.
For example, when the server sends the target data to the first terminal, the target data is sent in the following data structure:
PublicclassjsonBean{
PrivateStringopenId;
PrivateStringtype;
PrivateBaseModelmodel;
}
the public classjson bean indicates that the data structure is a data structure including the target data, the PrivateStringopenId indicates the data identifier, the data identifier may be a unique ID, the PrivateStringtype indicates an application identifier of an application program corresponding to the target data, and the privatebasemodel model indicates the target data.
S140, distributing the target data to an application program corresponding to the data identifier so that the application program performs first preset processing on the target data.
In some embodiments, referring to fig. 3, the first terminal is configured with a plurality of applications, such as an application a, an application B, and an application C, where the application a may perform a first preset process on target data generated by the second terminal, and a distribution process of the first terminal may distribute the target data to the application a when receiving the target data sent by the server. The first terminal may start a service, and its work task is to perform judgment and distribution of corresponding data, and the service may be referred to as a distribution process.
In some embodiments, the data identifier may include an application identifier indicating an application program on the first terminal that processes the target data. For example, the data identifier may be determined according to an application identifier of an application program on the second terminal that generates the target data. For example, the application identifier may be a package name of the application program.
Illustratively, the step S140 distributes the target data to the application program corresponding to the data identifier, including: and distributing the target data to an application program corresponding to the application identifier according to the application identifier corresponding to the target data.
For example, when sending target data to the first terminal, the server may send an application identifier corresponding to the target data together. For example, when the server sends the target data to the first terminal, the target data is sent in a preset data structure, and the PrivateStringtype in the data structure represents the application identifier of the application program corresponding to the target data, so that the application identifier corresponding to the target data can be determined.
By distributing the target data to the application program corresponding to the data identifier, so that the application program performs the first preset processing on the target data, the data synchronization method based on near field communication can be applied to more scenes, instead of only aiming at a single application scene, centralized management on data synchronization of different application programs is realized, and the corresponding logic needs to be repeatedly applied every time a function is developed. For example, the data synchronization method may perform data distribution inside the terminal device, for example, the data synchronization method may be used for synchronizing data of the application program a between the first terminal and the second terminal, and may also be used for synchronizing data of the application program B, so that development cost may be reduced, development efficiency may be improved, and centralized management of data may be achieved.
For example, the data synchronization method of the embodiment of the present application can be applied to at least one of the following scenarios: function login of the application, file transfer, handwriting synchronization, cross-screen character input and the like, but is not limited thereto. Correspondingly, the application program performs first preset processing on the target data, and the first preset processing includes at least one of the following: and performing login operation, storage, rendering and display on the target data according to the target data.
In some embodiments, the distributing the target data to the application program corresponding to the application identifier includes: determining whether a callback request of an application program corresponding to the application identifier is cached; and when the callback request corresponding to the application program is determined to be cached, distributing the target data to the application program in a callback mode. And distributing the target data to the application program corresponding to the application identification in a mode of registering callback.
For example, a Client Server (C/S) architecture is adopted for data distribution of the first terminal, inter-process communication is performed in an Android Interface Definition Language (AIDL) mode based on an Android, a distribution process of the first terminal serves as a local Server side, and an upper application program serves as a Client side. The client side registers a call-back to the local server side with the own packet name, the local server side caches corresponding information in a form of caching key value pairs (namely map), after the local server side receives target data sent by the server side, judgment is carried out according to the packet name corresponding to the target data, when the corresponding information is searched from the cached key value pairs, the target data PrivateBaseModel is synchronized to an upper application program in the form of the call-back, the application program only needs to be rendered according to the target data, and the method is high in efficiency.
Illustratively, after receiving a data identifier transmitted by a second terminal, a distribution process of a first terminal initiates a request to a server, analyzes obtained target data returned by the server, and distributes the target data to a corresponding application program according to an application identifier corresponding to the target data. This distribution mode may be referred to as a broadcast mode.
In some embodiments, the broadcast mode may be supplemented with the registration callback mode. Illustratively, the distributing the target data to the application program corresponding to the application identifier further includes: and when determining that the callback request corresponding to the application program is not cached, broadcasting at least the application identifier so that the application program corresponding to the application identifier acquires the target data. For example, when the corresponding application is not found in the key value pair cached at the local server side, the application identifier corresponding to the target data may also be broadcast, so that the application receiving the broadcast acquires the target data and performs rendering of the target data.
In some embodiments, the distributing the target data to the application program corresponding to the application identifier includes: adjusting a key value of a preset field in a content provider component corresponding to the application identifier according to the acquired target data, wherein the key value of the preset field is used for indicating whether the target data is changed; and the application program corresponding to the application identifier monitors the key value of the preset field, and when the target data is determined to be changed according to the key value, the target data is acquired at a preset storage position.
For example, the distribution process may store the obtained target data in a local database, and adjust a key value of a preset field in a content provider (ContentProvider) component corresponding to the application identifier when the target data stored in the local database changes. For example, the upper layer application monitors key values of the ContentProvider to determine whether the target data changes, and if so, queries specific contents from a corresponding position in the local database according to a predetermined protocol or path, so that the upper layer application can accurately acquire detailed data returned by the server and render the detailed data.
It should be noted that the above centralized distribution method is only an example, and only one of the distribution methods may be adopted, or multiple distribution methods may be combined and used to improve the accessibility of data distribution.
In some embodiments, when the first terminal renders and displays the target data, the resolution may be adapted and the rendering efficiency may be adjusted according to the specification of the display screen of the first terminal, which is not limited to this, so as to improve the display effect.
In some embodiments, the sending, by the second terminal, the acquired target data to the server includes at least one of: the second terminal sends the target data acquired at each sending interval to the server side based on a preset sending interval, namely the second terminal uploads the data at regular time; when detecting that the user does not perform the preset operation again after a preset operation at a preset time interval, sending target data corresponding to the preset operation to the server so as to synchronize the currently generated target data to the first terminal in time and improve the real-time performance of data synchronization; when the data identification is detected to be transmitted to the first terminal through the second near field communication assembly, sending target data which is not sent to the server side so as to synchronize the target data accumulated before the data table is transmitted to the first terminal in time.
Illustratively, the data generated by the second terminal is uploaded in a manner of combining real-time and timing, and if the data is not directly uploaded to the server for a period of time and is close to the first terminal, the data is uploaded to the server in real time if it is determined that the data is not uploaded locally.
In some embodiments, the server obtains the target data sent by the second terminal, may further perform second preset processing on the target data so that the target data after the second preset processing corresponds to one preset operation of a user, and store the target data after the second preset processing.
For example, the one preset operation includes drawing a piece of handwriting, that is, the handwriting generated between the pen-down and the pen-up, or includes drawing a closed figure, or a sentence of text, but is not limited thereto. The server can integrate a complete data source according to the data uploaded by the second terminal, for example, the data uploaded by the second terminal for multiple times can be guaranteed to be the complete operation of the same closed loop all the time.
In some embodiments, the second terminal sends the data identifier and the acquired target data to the server at the same time, and the server stores the target data acquired at different times in the same storage unit according to the data identifier. For example, before using a specific data synchronization function, the second terminal applies a data identifier, such as a unique ID, to the server in advance, and then uploads the target data with the unique ID, so as to ensure that the target data to be synchronized is stored in the same data unit each time, so that the data uploaded by the second terminal multiple times is always ensured to be a complete operation of the same closed loop.
In some embodiments, the application program performs a first preset process on the target data, including: and the application program renders and displays the target data acquired at different moments according to the time sequence of generating the target data by the second terminal. The content and the sequence displayed by the first terminal can be synchronized with the operation executed by the user on the second terminal, and the display effect is better.
In some embodiments, the first terminal always has a background alive service (service) that is kept alive in a Read Only Memory (ROM). And when the first terminal and the second terminal are close to communicate through the near field communication assembly, the first terminal obtains the data identification. The first terminal can make a data request to the server according to the data identifier, and distribute the data according to a preset data distribution mode after acquiring the target data; illustratively, the local whiteboard application of the first terminal receives data returned by the server, and renders graphics according to the data, so that when the second terminal draws a whiteboard, the second terminal is close to the first terminal, and the first terminal can render a large amount of data scenes such as contents of the second terminal.
According to the data synchronization method based on the near field communication, when a first terminal approaches a second terminal, a data identifier on the second terminal is obtained through a near field communication assembly, a data obtaining request is sent to a server according to the data identifier, and the server is used for storing target data which are sent by the second terminal and correspond to the data identifier; and after acquiring the target data sent by the server according to the data identifier in the data acquisition request, distributing the target data to the application program corresponding to the data identifier so that the application program performs preset processing on the target data. The data identification corresponding to the target data is transmitted through the near field communication assembly, so that the terminal equipment receiving the data identification can acquire the target data from the server according to the data identification, the data instant transmission based on the near field communication is realized, and meanwhile, the convenience of the near field communication can be utilized, so that the interaction scene among the equipment is more convenient, for example, the operation of data synchronization can be simplified, the efficiency is improved, and for example, the real-time rendering of large-capacity data can be realized by combining the convenience of the near field communication function.
In some embodiments, referring to fig. 4, the data synchronization method based on near field communication includes, but is not limited to, the following steps:
s11, an application program of the first terminal logs in the server;
s21, the server side sends a data identifier to the first terminal;
s12, the first terminal acquires target data;
s13, the first terminal sends target data and data identification to the server;
s22, the server stores the target data according to the data identification;
s31, the second terminal obtains the data identification from the first terminal through the near field communication assembly when approaching the first terminal;
s32, the second terminal sends a data acquisition request to the server according to the data identification
S33, the second terminal acquires target data sent by the server end responding to the data acquisition request;
s34, the second terminal distributes the acquired target data to corresponding application programs;
and S35, the application program of the second terminal performs preset processing on the distributed target data.
Referring to fig. 5, fig. 5 is a schematic flowchart of a data synchronization method based on nfc according to another embodiment of the present application, where the data synchronization method is applied to the second terminal, and the second terminal is mounted with a second nfc component.
As shown in fig. 5, the data synchronization method based on near field communication according to the embodiment of the present application includes steps S210 to S230.
S210, acquiring a data identifier, wherein the data identifier is used for identifying target data sent by the second terminal to a server;
s220, sending the acquired target data to a server so that the server stores the target data according to the data identification;
and S230, when the terminal approaches to the first terminal, the data identifier is transmitted to the first terminal through the second near field communication assembly, so that the first terminal sends a data acquisition request to the server according to the data identifier, and acquires target data sent by the server according to the data identifier in the data acquisition request.
Optionally, the acquiring the data identifier includes:
acquiring the data identification from the server;
the data identification is determined by the server when the server verifies that the second terminal has the right, or the data identification is determined by the server when the server receives target data sent by the second terminal.
Optionally, the sending the obtained target data to the server, so that the server stores the target data according to the data identifier, includes:
and simultaneously sending the data identification and the acquired target data to the server so that the server stores the target data acquired at different moments in the same storage unit according to the data identification.
Optionally, the sending the obtained target data to the server includes at least one of the following:
based on a preset sending interval, sending the target data acquired at each sending interval to the server;
when detecting that the user does not perform the preset operation again after a preset operation at a preset time interval, sending target data corresponding to the preset operation to the server;
and when the data identification is detected to be transmitted to the first terminal through the second near field communication assembly, sending target data which is not sent to the server.
The specific principle and implementation manner of the data synchronization method applied to the second terminal provided in the embodiment of the present application are similar to those of the data synchronization method applied to the first terminal in the foregoing embodiment, and are not described herein again.
Referring to fig. 6, fig. 6 is a flowchart illustrating a data synchronization method based on nfc according to another embodiment of the present application, where the data synchronization method is applied to the server.
As shown in fig. 6, the data synchronization method based on near field communication of the present embodiment includes steps S310 to S340.
S310, acquiring a data identifier, wherein the data identifier is used for identifying target data sent by a second terminal;
s320, sending the data identifier to the second terminal so as to obtain the data identifier sent by the second terminal through the second near field communication component through the first near field communication component when the first terminal approaches the second terminal, and sending a data obtaining request to the server according to the data identifier;
s330, acquiring and storing target data sent by the second terminal;
s340, according to the data identification in the data acquisition request sent by the first terminal, sending the target data corresponding to the data identification to the first terminal.
Optionally, the acquiring the data identifier includes:
determining the data identification when the second terminal is verified to have the authority; or
And determining the data identification when target data sent by the second terminal is received.
Optionally, the acquiring the data identifier includes:
and determining the data identifier according to the application identifier of the application program of the target data generated by the second terminal, wherein the application identifier is used for indicating the application program of the first terminal for processing the target data.
Optionally, the acquiring and storing the target data sent by the second terminal includes:
acquiring target data and a data identifier which are simultaneously transmitted by the second terminal;
and storing the target data acquired at different moments in the same storage unit according to the data identification.
Optionally, the acquiring and storing the target data sent by the second terminal includes:
and acquiring target data sent by the second terminal, performing second preset processing on the target data to enable the target data after the second preset processing to correspond to one preset operation of a user, and storing the target data after the second preset processing.
The specific principle and implementation manner of the data synchronization method applied to the server in the embodiment of the present application are similar to those of the data synchronization method applied to the first terminal in the foregoing embodiment, and are not described herein again.
Referring to fig. 7 in conjunction with the above embodiments, fig. 7 is a schematic block diagram of the first terminal 10 according to the embodiment of the present application. Alternatively, the first terminal 10 may be adapted to the aforementioned data synchronization method based on near field communication.
The first terminal 10 may be a mobile phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant, a wearable device, or a terminal device such as a smart screen, a smart television, and a projector, but is not limited thereto.
As shown in fig. 7, the first terminal 10 includes one or more processors 11, and the one or more processors 11 individually or collectively operate to perform the aforementioned steps of the near field communication based data synchronization method for the first terminal.
Illustratively, the first terminal 10 further comprises a memory 12, the memory 12 being connected to the processor 11 for storing the program.
Illustratively, the processor 11 and the memory 12 are connected by a bus 13, such as an I2C (Inter-integrated Circuit) bus 13.
Specifically, the Processor 11 may be a Micro-controller Unit (MCU), a Central Processing Unit (CPU), a Digital Signal Processor (DSP), or the like.
Specifically, the Memory 12 may be a Flash chip, a Read-Only Memory (ROM) magnetic disk, an optical disk, a usb disk, or a removable hard disk.
Wherein the processor 11 is configured to run a computer program stored in the memory 12 and to implement the aforementioned steps of the near field communication based data synchronization method for the first terminal when executing the computer program.
In particular, the first terminal 10 further comprises a first near field communication component 101.
Illustratively, the processor 11 is configured to run a computer program stored in the memory 12, and to implement the following steps when executing the computer program:
when the terminal approaches to a second terminal, acquiring a data identifier sent by the second terminal through a second near field communication assembly through the first near field communication assembly;
sending a data acquisition request to a server according to the data identifier, wherein the server is used for storing target data which is sent by the second terminal and corresponds to the data identifier;
acquiring target data sent by the server according to the data identifier in the data acquisition request;
and distributing the target data to an application program corresponding to the data identifier so that the application program performs first preset processing on the target data.
The specific principle and implementation manner of the first terminal provided in the embodiment of the present application are similar to those of the data synchronization method applied to the first terminal in the foregoing embodiment, and are not described herein again.
An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the processor is enabled to implement the steps of the near field communication-based data synchronization method applied to the first terminal, provided by the above embodiment.
The computer-readable storage medium may be an internal storage unit of the first terminal in any of the foregoing embodiments, for example, a hard disk or a memory of the first terminal. The computer readable storage medium may also be an external storage device of the first terminal, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the first terminal.
Referring to fig. 8 in conjunction with the above embodiment, fig. 8 is a schematic block diagram of the second terminal 20 according to the embodiment of the present application. Alternatively, the second terminal 20 may be adapted to the aforementioned data synchronization method based on near field communication.
The second terminal 20 may be a mobile phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant, a wearable device, or a terminal device such as a smart screen, a smart television, and a projector, but is not limited thereto.
The second terminal 20 comprises one or more processors 21, the one or more processors 21 acting individually or collectively for performing the aforementioned steps of the near field communication based data synchronization method for the second terminal.
The second terminal 20 further illustratively includes a memory 22, the memory 22 being coupled to the processor 21 for storing programs.
Illustratively, the processor 21 and the memory 22 are connected by a bus 23, such as an I2C (Inter-integrated Circuit) bus 23.
Specifically, the Processor 21 may be a Micro-controller Unit (MCU), a Central Processing Unit (CPU), a Digital Signal Processor (DSP), or the like.
Specifically, the Memory 22 may be a Flash chip, a Read-Only Memory (ROM) magnetic disk, an optical disk, a usb disk, or a removable hard disk.
Wherein the processor 21 is adapted to run a computer program stored in the memory 22 and to carry out the aforementioned steps of the near field communication based data synchronization method for a second terminal when executing the computer program.
In particular, the second terminal 20 further comprises a second near field communication component 201.
Illustratively, the processor 21 is configured to run a computer program stored in the memory 22, and to implement the following steps when executing the computer program:
acquiring a data identifier, wherein the data identifier is used for identifying target data sent by the second terminal to a server;
sending the acquired target data to a server so that the server stores the target data according to the data identifier;
when the terminal approaches to the first terminal, the data identifier is transmitted to the first terminal through the second near field communication assembly, so that the first terminal sends a data acquisition request to the server according to the data identifier, and target data sent by the server according to the data identifier in the data acquisition request is acquired.
The specific principle and implementation manner of the second terminal provided in the embodiment of the present application are similar to those of the data synchronization method applied to the second terminal in the foregoing embodiment, and are not described herein again.
An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the processor is enabled to implement the steps of the near field communication-based data synchronization method applied to the second terminal, provided by the above embodiment.
The computer-readable storage medium may be an internal storage unit of the second terminal in any of the foregoing embodiments, for example, a hard disk or a memory of the second terminal. The computer readable storage medium may also be an external storage device of the second terminal, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the second terminal.
Referring to fig. 9 in conjunction with the above embodiments, fig. 9 is a schematic block diagram of a server 30 according to an embodiment of the present application. Alternatively, the server 30 may be adapted to the aforementioned data synchronization method based on near field communication.
The server 30 may be a server, for example, a single server or a server cluster, and certainly not limited thereto, for example, the server may also be a device in the same local area network as the terminal device, such as a Set Top Box (STB), a Customer Premises Equipment (CPE), and the like, and in some embodiments, the server may be integrated with the terminal device, such as an intelligent screen or an intelligent television.
The server 30 comprises one or more processors 31, the one or more processors 31 working individually or collectively to perform the aforementioned steps of the near field communication based data synchronization method for the server.
Illustratively, the server 30 further includes a memory 32, and the memory 32 is connected to the processor 31 for storing programs.
Illustratively, the processor 31 and the memory 32 are connected by a bus 33, such as an I2C (Inter-integrated Circuit) bus 33.
Specifically, the Processor 31 may be a Micro-controller Unit (MCU), a Central Processing Unit (CPU), a Digital Signal Processor (DSP), or the like.
Specifically, the Memory 32 may be a Flash chip, a Read-Only Memory (ROM) magnetic disk, an optical disk, a usb disk, or a removable hard disk.
Wherein the processor 31 is configured to run a computer program stored in the memory 32, and when executing the computer program, implement the aforementioned steps of the data synchronization method based on near field communication for the server.
Illustratively, the processor 31 is configured to run a computer program stored in the memory 32 and to implement the following steps when executing the computer program:
acquiring a data identifier, wherein the data identifier is used for identifying target data sent by a second terminal;
sending the data identifier to the second terminal so as to obtain the data identifier sent by the second terminal through the second near field communication component through the first near field communication component when the first terminal approaches the second terminal, and sending a data obtaining request to the server according to the data identifier;
acquiring and storing target data sent by a second terminal;
and sending target data corresponding to the data identification to the first terminal according to the data identification in the data acquisition request sent by the first terminal.
The specific principle and implementation manner of the server provided in the embodiment of the present application are similar to those of the data synchronization method applied to the server in the foregoing embodiment, and are not described here again.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the processor is enabled to implement the steps of the near field communication-based data synchronization method applied to the server, provided by the above embodiment.
The computer-readable storage medium may be an internal storage unit of the server in any of the foregoing embodiments, for example, a hard disk or a memory of the server. The computer readable storage medium may also be an external storage device of the server, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the server.
In some embodiments, referring to fig. 2, an embodiment of the present application further provides a data synchronization system, which includes at least a first terminal 10 and a server 30, where the server 30 can be communicatively connected to the first terminal 10 and can also be communicatively connected to a second terminal 20. The first terminal 10 and the second terminal 20 are not the same terminal device, and both the first terminal 10 and the second terminal 20 can communicate with the server 30.
As shown in fig. 2, the first terminal 10 is mounted with a first near field communication module 101, and the second terminal 20 is mounted with a second near field communication module 201, which includes, for example, a near field communication antenna and a near field communication chip. Illustratively, the second terminal 20 is capable of writing data on the near field communication chip of the second near field communication component 201, and the first terminal 10 is capable of reading data on the second near field communication component 201 through the first near field communication component 101 when the first terminal 10 is brought close to the second terminal 20 to bring the first near field communication component 101 close to the second near field communication component 201.
In some embodiments, data generated by the second terminal 20 in response to the user's operation may be synchronized to the first terminal 10 through the server 30 to perform a preset task by the first terminal 10 according to the data synchronized from the second terminal 20.
Optionally, the size of the display screen of the first terminal 10 is larger than that of the second terminal 20, for example, the first terminal 10 is a smart screen, and the second terminal 20 is a mobile phone, a tablet computer or a smart watch; illustratively, the first terminal 10 is a terminal device for a conference room, a class room, or the like, for a participant or a trainee to view, and the second terminal 20 is a terminal device for a speaker to operate. For example, the second terminal 20 displays a drawing interface, and obtains data such as handwriting generated according to user operations through the drawing interface, and the first terminal 10 can render and display the data on a display screen of the first terminal 10 for the participants or the trainees to watch.
It is to be understood that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
It should also be understood that the term "and/or" as used in this application and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
It should be noted that the descriptions relating to "first", "second", etc. in the embodiments of the present application are only for descriptive purposes and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature.
While the invention has been described with reference to specific embodiments, the scope of the invention is not limited thereto, and those skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (22)

1. A data synchronization method based on near field communication is applied to a first terminal, and a first near field communication assembly is mounted on the first terminal, and the method comprises the following steps:
when the terminal approaches to a second terminal, acquiring a data identifier sent by the second terminal through a second near field communication assembly through the first near field communication assembly;
sending a data acquisition request to a server according to the data identifier, wherein the server is used for storing target data which is sent by the second terminal and corresponds to the data identifier;
acquiring target data sent by the server according to the data identifier in the data acquisition request;
and distributing the target data to an application program corresponding to the data identifier so that the application program performs first preset processing on the target data.
2. The data synchronization method of claim 1, wherein the distributing the target data to the application program corresponding to the data identifier comprises:
and distributing the target data to an application program corresponding to the application identifier according to the application identifier corresponding to the target data.
3. The data synchronization method of claim 2, wherein the distributing the target data to the application program corresponding to the application identifier comprises:
determining whether a callback request of an application program corresponding to the application identifier is cached;
and when the callback request corresponding to the application program is determined to be cached, distributing the target data to the application program in a callback mode.
4. The data synchronization method of claim 3, wherein the distributing the target data to the application program corresponding to the application identifier further comprises:
and when determining that the callback request corresponding to the application program is not cached, broadcasting at least the application identifier so that the application program corresponding to the application identifier acquires the target data.
5. The data synchronization method of claim 2, wherein the distributing the target data to the application program corresponding to the application identifier comprises:
adjusting a key value of a preset field in a content provider component corresponding to the application identifier according to the acquired target data, wherein the key value of the preset field is used for indicating whether the target data is changed;
and the application program corresponding to the application identifier monitors the key value of the preset field, and when the target data is determined to be changed according to the key value, the target data is acquired at a preset storage position.
6. The data synchronization method according to any one of claims 1 to 5, wherein the sending a data acquisition request to a server according to the data identifier comprises:
determining whether the data identification is valid or not based on a preset verification rule;
and when the data identification is determined to be valid, sending a data acquisition request to a server according to the data identification.
7. The data synchronization method according to claim 6, wherein the verifying whether the data identifier is valid based on a preset verification rule comprises:
determining whether an application identifier corresponding to the target data is in an application white list of the first terminal and/or determining whether a timestamp in the data identifier is a valid timestamp;
and when the application identifier corresponding to the target data is determined to be in the application white list and/or the timestamp in the data identifier is a valid timestamp, determining that the data identifier is valid.
8. The data synchronization method according to any one of claims 1 to 5, wherein the application program performs a first preset process on the target data, including:
and the application program renders and displays the target data acquired at different moments according to the time sequence of generating the target data by the second terminal.
9. A data synchronization method based on near field communication is applied to a second terminal, and a second near field communication assembly is mounted on the second terminal, and the method comprises the following steps:
acquiring a data identifier, wherein the data identifier is used for identifying target data sent by the second terminal to a server;
sending the acquired target data to a server so that the server stores the target data according to the data identifier;
when the terminal approaches to the first terminal, the data identifier is transmitted to the first terminal through the second near field communication assembly, so that the first terminal sends a data acquisition request to the server according to the data identifier, and target data sent by the server according to the data identifier in the data acquisition request is acquired.
10. The data synchronization method of claim 9, wherein the obtaining the data identification comprises:
acquiring the data identification from the server;
the data identification is determined by the server when the server verifies that the second terminal has the right, or the data identification is determined by the server when the server receives target data sent by the second terminal.
11. The data synchronization method according to claim 9, wherein the sending the obtained target data to the server, so that the server stores the target data according to the data identifier, comprises:
and simultaneously sending the data identification and the acquired target data to the server so that the server stores the target data acquired at different moments in the same storage unit according to the data identification.
12. The data synchronization method according to any one of claims 9 to 11, wherein the sending the acquired target data to the server includes at least one of:
based on a preset sending interval, sending the target data acquired at each sending interval to the server;
when detecting that the user does not perform the preset operation again after a preset operation at a preset time interval, sending target data corresponding to the preset operation to the server;
and when the data identification is detected to be transmitted to the first terminal through the second near field communication assembly, sending target data which is not sent to the server.
13. A data synchronization method based on near field communication is characterized in that the method is used for a server side and comprises the following steps:
acquiring a data identifier, wherein the data identifier is used for identifying target data sent by a second terminal;
sending the data identifier to the second terminal so as to obtain the data identifier sent by the second terminal through the second near field communication component through the first near field communication component when the first terminal approaches the second terminal, and sending a data obtaining request to the server according to the data identifier;
acquiring and storing target data sent by a second terminal;
and sending target data corresponding to the data identification to the first terminal according to the data identification in the data acquisition request sent by the first terminal.
14. The data synchronization method of claim 13, wherein the obtaining the data identification comprises:
determining the data identification when the second terminal is verified to have the authority; or
And determining the data identification when target data sent by the second terminal is received.
15. The data synchronization method of claim 13, wherein the obtaining the data identification comprises:
and determining the data identifier according to the application identifier of the application program of the target data generated by the second terminal, wherein the application identifier is used for indicating the application program of the first terminal for processing the target data.
16. The data synchronization method according to any one of claims 13 to 15, wherein the acquiring and storing the target data sent by the second terminal comprises:
acquiring target data and a data identifier which are simultaneously transmitted by the second terminal;
and storing the target data acquired at different moments in the same storage unit according to the data identification.
17. The data synchronization method according to any one of claims 13 to 15, wherein the acquiring and storing the target data sent by the second terminal comprises:
and acquiring target data sent by the second terminal, performing second preset processing on the target data to enable the target data after the second preset processing to correspond to one preset operation of a user, and storing the target data after the second preset processing.
18. A first terminal comprising a first near field communication component, and a memory and a processor;
wherein the memory is connected with the processor and used for storing programs;
the processor is configured to implement the steps of the near field communication based data synchronization method according to any one of claims 1 to 8 by executing a program stored in the memory.
19. A second terminal comprising a second near field communication component, and a memory and a processor;
wherein the memory is connected with the processor and used for storing programs;
the processor is configured to implement the steps of the near field communication based data synchronization method according to any one of claims 9 to 12 by executing a program stored in the memory.
20. A server, comprising:
a memory and a processor;
wherein the memory is connected with the processor and used for storing programs;
the processor is adapted to implement the steps of the data synchronization method according to any of claims 13-17 by running a program stored in the memory.
21. A near field communication based data synchronization system, comprising:
the first terminal according to claim 18, and the server according to claim 20;
wherein the server is capable of being communicatively coupled to the first terminal and is further capable of being communicatively coupled to the second terminal as recited in claim 19.
22. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, causes the processor to implement:
the steps of the data synchronization method according to any one of claims 1 to 8; or
The steps of the data synchronization method according to any one of claims 9-12; or
The steps of a data synchronization method according to any of claims 13-17.
CN202111408044.4A 2021-11-24 2021-11-24 Data synchronization method, terminal, server and system based on near field communication Active CN114221969B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111408044.4A CN114221969B (en) 2021-11-24 2021-11-24 Data synchronization method, terminal, server and system based on near field communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111408044.4A CN114221969B (en) 2021-11-24 2021-11-24 Data synchronization method, terminal, server and system based on near field communication

Publications (2)

Publication Number Publication Date
CN114221969A true CN114221969A (en) 2022-03-22
CN114221969B CN114221969B (en) 2023-08-22

Family

ID=80698604

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111408044.4A Active CN114221969B (en) 2021-11-24 2021-11-24 Data synchronization method, terminal, server and system based on near field communication

Country Status (1)

Country Link
CN (1) CN114221969B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114866566A (en) * 2022-04-26 2022-08-05 北京城市网邻信息技术有限公司 Data synchronization method and device based on NFC, electronic equipment and storage medium
WO2024093704A1 (en) * 2022-10-31 2024-05-10 Oppo广东移动通信有限公司 Service transfer methods and apparatus, electronic device, system, and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102394866A (en) * 2011-10-09 2012-03-28 中兴通讯股份有限公司 Methods for sharing data and applications in near-field communication network and near-field communication network
CN103533543A (en) * 2013-10-08 2014-01-22 深圳Tcl新技术有限公司 Terminal pairing method and device on basis of near field communication
US20170201510A1 (en) * 2014-07-28 2017-07-13 Encryptier Co., Ltd. User information management system; user information management method; program, and recording medium on which it is recorded, for management server; program, and recording medium on which it is recorded, for user terminal; and program, and recording medium on which it is recorded, for service server
WO2021052029A1 (en) * 2019-09-17 2021-03-25 苏宁云计算有限公司 Data object identifier generation method and apparatus, computer device, and storage medium
WO2021120825A1 (en) * 2019-12-17 2021-06-24 支付宝(杭州)信息技术有限公司 Travel information prompt method, apparatus and system based on near-field communication (nfc), and terminal
WO2021196638A1 (en) * 2020-03-31 2021-10-07 广东美的制冷设备有限公司 Household appliance control method and apparatus, and computer storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102394866A (en) * 2011-10-09 2012-03-28 中兴通讯股份有限公司 Methods for sharing data and applications in near-field communication network and near-field communication network
CN103533543A (en) * 2013-10-08 2014-01-22 深圳Tcl新技术有限公司 Terminal pairing method and device on basis of near field communication
US20170201510A1 (en) * 2014-07-28 2017-07-13 Encryptier Co., Ltd. User information management system; user information management method; program, and recording medium on which it is recorded, for management server; program, and recording medium on which it is recorded, for user terminal; and program, and recording medium on which it is recorded, for service server
WO2021052029A1 (en) * 2019-09-17 2021-03-25 苏宁云计算有限公司 Data object identifier generation method and apparatus, computer device, and storage medium
WO2021120825A1 (en) * 2019-12-17 2021-06-24 支付宝(杭州)信息技术有限公司 Travel information prompt method, apparatus and system based on near-field communication (nfc), and terminal
WO2021196638A1 (en) * 2020-03-31 2021-10-07 广东美的制冷设备有限公司 Household appliance control method and apparatus, and computer storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114866566A (en) * 2022-04-26 2022-08-05 北京城市网邻信息技术有限公司 Data synchronization method and device based on NFC, electronic equipment and storage medium
WO2024093704A1 (en) * 2022-10-31 2024-05-10 Oppo广东移动通信有限公司 Service transfer methods and apparatus, electronic device, system, and storage medium

Also Published As

Publication number Publication date
CN114221969B (en) 2023-08-22

Similar Documents

Publication Publication Date Title
CN110176987B (en) Method, device, equipment and computer storage medium for equipment authentication
US20180365395A1 (en) Multimedia data processing method, apparatus, system, and storage medium
CN114221969B (en) Data synchronization method, terminal, server and system based on near field communication
CN106792267B (en) A kind of picture and video information authenticity mark and the system and method that identify
CN112312187B (en) Method, device and equipment for screen projection playing of video and storage medium
CN110011793A (en) Anti-fake data processing method of tracing to the source, device, equipment and medium
WO2017092277A1 (en) Method, device, and computer apparatus for sharing video watching permission
CN103391196A (en) Asset digital authentication method and device
US20110085474A1 (en) Terminal device, signature generation server, simple id management system, simple id management method, and program
US11138296B2 (en) Digital content validation
CN113038192B (en) Video processing method and device, electronic equipment and storage medium
CN114328538A (en) Method and device for processing transactions on block chain, storage medium and server
CN109639706A (en) A kind of request processing method, server, user terminal and system
CN109246376A (en) Anti-counterfeiting electronic signature method and electronic signature device thereof
KR20150061470A (en) VDI service providing system and method
ES2956117T3 (en) User terminal identification procedure and system for receiving protected and continuously supplied multimedia content
CN111327680A (en) Authentication data synchronization method, device, system, computer equipment and storage medium
CN112135166B (en) Method, device and system for sending and playing live broadcast data
TWI607320B (en) Smart terminal, server and information undate system
CN111935122B (en) Data security processing method and device
CN113904830A (en) SPA authentication method and device, electronic equipment and readable storage medium
CN205158392U (en) Article identification system of developments image
KR101933033B1 (en) Cloud settopbox apparatus
CN110677693A (en) Android system-based encrypted video offline playing method and device and electronic equipment
CN104202326A (en) System and method for interaction between mobile phone and touch screen

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
GR01 Patent grant
GR01 Patent grant