Disclosure of Invention
In view of this, the present invention provides an information synchronization method, a terminal, and a computer readable storage medium, and aims to provide an information synchronization method, which simplifies the operation of information synchronization and can conveniently and quickly implement information synchronization.
The invention is realized in the following way:
the invention provides an information synchronization method, which comprises the following steps: and automatically establishing wireless connection with the synchronous terminal through a near field communication technology. And when the identification of the data stored in the synchronous terminal is inconsistent with the identification of the data stored in the synchronous terminal, receiving and storing the data which is not synchronized per se, and/or sending the data which is not synchronized of the synchronous terminal to the synchronous terminal.
Further, after the step of automatically establishing a wireless connection with the sync terminal through the near field communication technology, the method includes: and automatically starting the information synchronization management application program, and displaying the information of the data stored in the synchronization folder.
Further, the step of receiving and storing the data which is not synchronized by itself comprises: and detecting whether the data which is not synchronized per se has an encryption identifier, and storing the data which is not synchronized per se in an encryption folder when the encryption identifier exists.
Further, after the step of storing the data not synchronized by itself in the encrypted folder, the method includes: and receiving an encrypted file viewing instruction to unlock the encrypted folder, wherein the encrypted file viewing instruction comprises an unlocking password. And scanning the NFC label of the synchronous terminal, and sending an encrypted file viewing instruction to the synchronous terminal in an NFC communication mode so that the synchronous terminal unlocks a corresponding encrypted folder.
Further, after the step of receiving and storing the data not synchronized by itself, the method comprises: and displaying the data being displayed by the synchronous terminal.
Further, before displaying the data being displayed by the synchronous terminal, the method includes: and acquiring the identification information of the data being displayed by the synchronous terminal, and judging whether the identification information comprises an encryption identification. And if the identification information does not comprise the encrypted identification, the step of displaying the data being displayed by the synchronous terminal is carried out. And if the identification information comprises the encrypted identification, only storing the data which is displayed by the synchronous terminal.
Further, after the step of receiving and storing the data not synchronized by itself, the method comprises: and receiving a synchronous deleting instruction to delete the synchronized data corresponding to the synchronous deleting instruction and sending a synchronous deleting command to the synchronous terminal. And after receiving the synchronous deletion command, the synchronous terminal outputs synchronous deletion prompt information and deletes corresponding synchronized data after receiving a deletion confirmation command.
Further, the synchronous terminal is a vehicle-mounted terminal. After the step of sending the unsynchronized data of the synchronized terminal to the synchronized terminal, the method comprises the following steps: the sync terminal stores unsynchronized data of the sync terminal. And the synchronous terminal acquires and displays the data which is displayed by the sending terminal of the unsynchronized data of the synchronous terminal. And when the synchronous terminal acquires a signal for displaying driving image information, performing split-screen display on the displayed data and the driving image information, wherein the driving image information comprises at least one of navigation image information and backing image information.
The present invention also provides a terminal, comprising: a memory and a processor. The processor is adapted to execute the computer program stored in the memory to implement the steps of the method of information synchronization described above.
The present invention further provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the above-mentioned method for information synchronization.
The invention provides an information sharing method, a terminal and a computer readable storage medium, wherein the information sharing method comprises the following steps: and automatically establishing wireless connection with the synchronous terminal through the near field communication technology. When the identification of the data stored in the synchronous terminal is inconsistent with the identification of the data stored in the synchronous terminal, the non-synchronous data of the synchronous terminal is received and stored, and/or the non-synchronous data of the synchronous terminal is sent to the synchronous terminal, so that after the wireless connection is established with the synchronous terminal, whether the non-synchronous data exists in the synchronous terminal and the synchronous terminal can be automatically judged according to the identification of the data stored in the synchronous terminal and the identification of the data stored in the synchronous terminal, and when the non-synchronous data exists, the non-synchronous data of the synchronous terminal is received and stored, and/or the non-synchronous data of the synchronous terminal is sent to the synchronous terminal, so that the synchronization of the data contents at the two ends is realized.
In order to make the aforementioned and other objects, features and advantages of the invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It is to be understood that the described embodiments are merely a few embodiments of the invention, and not all embodiments. 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 invention.
The following describes embodiments of the present invention in detail with reference to the accompanying drawings.
The first embodiment is as follows:
fig. 1 is a flowchart illustrating an information sharing method according to an embodiment of the present invention. For clearly describing the information sharing method provided in the first embodiment of the present invention, please refer to fig. 1.
The information sharing method provided by the first embodiment of the invention comprises the following steps:
and S11, automatically establishing wireless connection with the synchronous terminal through the near field communication technology.
In an embodiment, the synchronization terminal may be, but is not limited to, a mobile terminal, a vehicle-mounted terminal, a home terminal, and the like. Among them, mobile terminals such as mobile phones, tablet computers, smart watches, etc. Among them, home terminals such as home audio, television, computer, and the like.
In one embodiment, the short-range wireless communication technology may be a bluetooth communication technology or a WiFi communication technology, but the short-range communication technology includes, but is not limited to, a bluetooth communication technology and a WiFi communication technology.
In an embodiment, the wireless connection is automatically established with the sync terminal, which may be by acquiring an NFC tag of the sync terminal to acquire communication authentication parameter information of the sync terminal in the NFC tag, where the communication authentication parameter information includes communication identification information (e.g., bluetooth identification information, wiFi identification information, etc.) and a communication connection password (e.g., bluetooth connection password, wiFi connection password, etc.) of the sync terminal; sending a communication connection request to a synchronous terminal, wherein the communication connection request comprises a communication connection password; and after receiving the communication connection request, the communication module of the synchronous terminal establishes wireless communication connection with a sending terminal of the communication connection request.
In an embodiment, the communication identification information of the synchronous terminal may include at least one of a terminal identifier (e.g., a device name, a device code, etc.), and a communication address (e.g., a bluetooth address, a WiFi address, etc.), but the bluetooth identification information described in the present invention includes, but is not limited to, the terminal identifier and the bluetooth address.
In an embodiment, before the step of acquiring the communication authentication parameter information of the synchronous terminal in the NFC tag by acquiring the NFC tag of the synchronous terminal, the method may include: and the synchronous terminal writes the communication authentication parameter information into the NFC label.
In an embodiment, after the step of acquiring the communication authentication parameter information of the synchronous terminal in the NFC tag by acquiring the NFC tag of the synchronous terminal, the method may include: whether the communication module of the communication module is started or not is detected, and when the communication module of the communication module is not started, the communication module of the communication module is automatically started.
In other embodiments, when it is detected that the communication module itself is not turned on, the communication module turn-on prompt message may be output, and when an instruction to confirm that the communication module is turned on is received, the communication module itself is turned on.
In an embodiment, after the step of acquiring the communication authentication parameter information of the synchronous terminal in the NFC tag by acquiring the NFC tag of the synchronous terminal, the method may include: when the synchronous terminal acquires a signal acquired by the communication authentication parameter information in the NFC label, whether the communication module of the synchronous terminal is started or not is detected, and when the module function of the synchronous terminal is not started, the communication module of the synchronous terminal is started.
Further, after the step of acquiring the communication authentication parameter information of the sync terminal in the NFC tag by acquiring the NFC tag of the sync terminal, the method may include: and establishing NFC communication connection with the synchronous terminal, and sending the communication demand information to the synchronous terminal. After receiving the communication demand information, the synchronous terminal detects whether the communication module is started, and starts the communication module when the communication module is not started.
In other embodiments, after the step of acquiring the communication authentication parameter information of the synchronous terminal in the NFC tag by acquiring the NFC tag of the synchronous terminal, the method may include: and acquiring a temporary communication identifier of the synchronous terminal in the NFC label, and sending communication demand information to the synchronous terminal according to the temporary communication identifier of the synchronous terminal. After receiving the communication demand information, the synchronous terminal detects whether the communication module is started, and starts the communication module when the communication module is not started. The temporary communication identifier of the synchronization terminal includes, for example, a telephone number of the synchronization terminal, an address of a cloud server corresponding to the synchronization terminal, and the like.
In other embodiments, the step of acquiring the temporary communication identifier of the sync terminal in the NFC tag and sending the communication requirement information to the sync terminal according to the temporary communication identifier of the sync terminal may include: after searching the communication identification in the preset range, detecting whether a communication identification (such as a Bluetooth name, a WiFi name and the like) corresponding to the communication identification information in the communication authentication parameter information exists, and sending the communication demand information to the synchronous terminal according to the temporary communication identification when the communication identification corresponding to the communication identification information does not exist.
In one embodiment, in step S11: after the wireless connection is automatically established with the synchronous terminal through the near field communication technology, the method may include: and automatically starting the information synchronization management application program, and displaying the information of the data stored in the synchronization folder.
In one embodiment, a user may view and manage synchronized data or information (e.g., audio, video, photos, mail, address book, etc.) via an information synchronization management application, open a synchronization folder.
In another embodiment, after establishing the wireless connection with the synchronization terminal, the identification information of the synchronization terminal can be acquired, and after automatically starting the information synchronization management application program, the information of the data stored in the synchronization folder corresponding to the identification information of the synchronization terminal is displayed. Therefore, the information sharing method provided in this embodiment can implement information synchronization with multiple synchronization terminals, determine the synchronization folder according to the identification information of the synchronization terminals, and further implement synchronization management on the synchronization information sent by different synchronization terminals being put into different synchronization files, respectively.
And S12, receiving and storing the data which is not synchronized per se and/or sending the data which is not synchronized of the synchronous terminal to the synchronous terminal when the identification of the data stored in the synchronous terminal is inconsistent with the identification of the data stored per se.
Specifically, the identifier of the data stored in the synchronization terminal may be matched with the identifier of the data stored in the synchronization terminal, so that whether the identifier of the data stored in the synchronization terminal is consistent with the identifier of the data stored in the synchronization terminal can be determined, and when the identifier of the data stored in the synchronization terminal is inconsistent with the identifier of the data stored in the synchronization terminal, it can be determined that unsynchronized data exists.
In other embodiments, the information synchronization management application may be started after the information synchronization is performed at both ends.
In an embodiment, the step of receiving and storing the data that is not synchronized by itself may include: and detecting whether the data which is not synchronized per se has an encryption identifier, and storing the data which is not synchronized per se in an encryption folder when the encryption identifier exists. Therefore, the information sharing method provided by the embodiment can realize the safe and concealed transmission of the encrypted information, and ensure the privacy and the safety of the encryption information synchronization.
In one embodiment, after the step of receiving and storing the data that is not synchronized by itself, the method may include: and receiving an encrypted file viewing instruction to unlock the encrypted folder, wherein the encrypted file viewing instruction comprises an unlocking password. And scanning the NFC label of the synchronous terminal, and sending an encrypted file viewing instruction to the synchronous terminal in an NFC communication mode so that the synchronous terminal unlocks a corresponding encrypted folder. For example, after the mobile phone receives the encrypted file viewing instruction and unlocks the encrypted folder in the mobile phone, the mobile phone can be used to scan the NFC tag of the in-vehicle device to unlock the encrypted folder in the in-vehicle device corresponding to the encrypted folder in the mobile phone, so that the encrypted folder can be further unlocked by the mobile phone and the in-vehicle device synchronously, and the encrypted information can be viewed and managed. Therefore, according to the information sharing method provided by this embodiment, after one of the two terminals unlocks the encrypted folder or the encrypted file, the encrypted folder or the encrypted file of the other terminal can be automatically unlocked through the NFC technology, and an unlocking password or an encrypted file viewing instruction does not need to be input again, so that the information sharing method provided by this embodiment is more intelligent and convenient.
In one embodiment, after the step of receiving and storing the data that is not synchronized by itself, the method may include: and displaying the data being displayed by the synchronous terminal. For example, the synchronization terminal is a vehicle-mounted terminal, for example, a picture being displayed by the vehicle-mounted terminal is displayed. Therefore, the information sharing method provided by the embodiment can enable two terminals performing information sharing to synchronously display the same data or information (such as pictures, movies, music, files, address books, and the like).
In one embodiment, before the step of presenting the data being presented by the synchronous terminal, the method may include: and acquiring identification information of data being displayed by the synchronous terminal, and judging whether the identification information comprises an encryption identification. And if the identification information does not comprise the encrypted identification, the step of displaying the data being displayed by the synchronous terminal is carried out. And if the identification information comprises the encrypted identification, only storing the data which is displayed by the synchronous terminal. In particular, the data being presented by the sync terminal may be the most recently received unsynchronized data. Therefore, the information sharing method provided by this embodiment can realize that when one of the two terminals performing information sharing is showing the encrypted data, the other terminal may not show the encrypted data, so as to prevent the encrypted data from leaking.
In other embodiments, if the identification information includes an encrypted identification, outputting corresponding viewing prompt information, and after receiving a viewing instruction including an unlocking password, entering a step of displaying data being displayed by the synchronous terminal.
In an embodiment, after the step of receiving and storing the data not synchronized by itself, the method may include: and receiving a synchronous deleting instruction to delete the synchronized data corresponding to the synchronous deleting instruction and sending a synchronous deleting command to the synchronous terminal. And after receiving the synchronous deletion command, the synchronous terminal outputs synchronous deletion prompt information and deletes corresponding synchronized data after receiving the deletion confirmation command. Therefore, the method for sharing information provided by the embodiment can display synchronous deletion of data or information.
In other embodiments, after the step of receiving and storing the data that is not synchronized by itself, the method may include: and receiving a deleting instruction to delete the self-stored synchronized data corresponding to the deleting instruction and generate deleting identification information, wherein the deleting identification information comprises the identification of the synchronized data, so that the deleted synchronized data is not subjected to secondary automatic synchronization when the information is synchronized with a synchronization terminal next time, and single-ended deletion is realized.
In one embodiment, the synchronization terminal may be a vehicle-mounted terminal. After the step of sending the unsynchronized data of the synchronized terminal to the synchronized terminal, the method may further include: the sync terminal stores unsynchronized data of the sync terminal. And the synchronous terminal acquires and displays the data which is displayed by the unsynchronized data sending terminal of the synchronous terminal. And when the synchronous terminal acquires a signal for displaying the driving image information, performing split-screen display on the data and the driving image information which are being displayed by the sending terminal, wherein the driving image information comprises at least one of navigation image information and backing image information.
In another embodiment, after the step of the synchronization terminal acquiring and presenting the data being presented by the sending terminal of the unsynchronized data of the synchronization terminal, the method may include: when the synchronous terminal acquires the signal for displaying the reversing image information, the display content of the synchronous terminal is switched to the reversing image information, so that the safe reversing of a driver can be guaranteed.
The information sharing method provided by the first embodiment of the invention comprises the following steps: and automatically establishing wireless connection with the synchronous terminal through a near field communication technology. When the identification of the data stored in the synchronous terminal is inconsistent with the identification of the data stored in the synchronous terminal, the asynchronous data of the synchronous terminal is received and stored, and/or the asynchronous data of the synchronous terminal is sent to the synchronous terminal, so that after the wireless connection is established with the synchronous terminal, whether the asynchronous data exist in the synchronous terminal and the synchronous terminal can be automatically judged according to the identification of the data stored in the synchronous terminal and the identification of the data stored in the synchronous terminal, and when the asynchronous data exist, the asynchronous data of the synchronous terminal are received and stored, and/or the asynchronous data of the synchronous terminal are sent to the synchronous terminal, and the synchronization of the data contents at two ends is realized.
Example two:
fig. 2 is a flowchart illustrating an information sharing method according to a second embodiment of the present invention. For a clear description of the information sharing method provided by the second embodiment of the present invention, please refer to fig. 2.
The information sharing method provided by the second embodiment of the invention is applied between the mobile terminal and the vehicle-mounted terminal, and comprises the following steps:
and S21, the mobile terminal reads the NFC label of the vehicle-mounted terminal to acquire the communication authentication parameter information of the vehicle-mounted terminal in the NFC label, wherein the communication authentication parameter information comprises the communication identification information and the communication connection password of the vehicle-mounted terminal.
And S22, the mobile terminal sends a communication connection request to a communication module of the vehicle-mounted terminal so as to automatically establish wireless connection with the vehicle-mounted terminal through a near field communication technology, wherein the communication connection request comprises a communication connection password.
Specifically, the communication module includes, but is not limited to, a bluetooth communication module, a WiFi communication module. The short-range communication technology includes but is not limited to bluetooth communication technology and WiFi communication technology.
In an embodiment, the NFC tag may be in the vehicle-mounted terminal or may be externally connected to the vehicle-mounted terminal. Specifically, when the vehicle-mounted terminal is externally connected with the NFC tag, the NFC tag may be installed at any place on the vehicle (for example, the back of a seat in the vehicle, the console of the vehicle, and the door handle in the vehicle), and therefore, according to the information sharing method provided by this embodiment, the mobile terminal may read the NFC tag at a certain position in the vehicle, and thus, the mobile terminal can establish a wireless connection with the vehicle-mounted terminal.
And S23, when the identification of the data stored in the vehicle-mounted terminal is inconsistent with the identification of the data stored in the mobile terminal, the mobile terminal receives and stores the data which is not synchronized per se and/or sends the data which is not synchronized of the vehicle-mounted terminal to the vehicle-mounted terminal.
In one embodiment, when the mobile terminal reads the NFC tag of the vehicle-mounted terminal again, the wireless connection between the mobile terminal and the vehicle-mounted terminal may be disconnected.
In an embodiment, the information sharing method provided in this embodiment is applied between a mobile terminal and a vehicle-mounted terminal, and for specific implementation and beneficial effects, reference may be made to the first embodiment, which will not be described herein again.
The information sharing method provided by the second embodiment of the invention comprises the following steps: the mobile terminal reads the NFC label of the vehicle-mounted terminal to acquire communication authentication parameter information of the vehicle-mounted terminal in the NFC label, wherein the communication authentication parameter information comprises communication identification information and a communication connection password of the vehicle-mounted terminal. The mobile terminal sends a communication connection request to a communication module of the vehicle-mounted terminal so as to automatically establish wireless connection with the vehicle-mounted terminal through a near field communication technology, wherein the communication connection request comprises a communication connection password. And when the identification of the data stored in the vehicle-mounted terminal is inconsistent with the identification of the data stored in the mobile terminal, the mobile terminal receives and stores the data which is not synchronized per se and/or sends the data which is not synchronized of the vehicle-mounted terminal to the vehicle-mounted terminal. Therefore, after the NFC tag of the vehicle-mounted terminal is read by the mobile terminal, the information sharing method provided in this embodiment can establish a wireless connection with the vehicle-mounted terminal through a near field communication technology, and then the mobile terminal can automatically determine whether unsynchronized data exists between itself and the vehicle-mounted terminal according to the identifier of the data stored in itself and the identifier of the data stored in the vehicle-mounted terminal, and when the unsynchronized data exists, receive and store the unsynchronized data sent by the vehicle-mounted terminal, and/or send the unsynchronized data of the vehicle-mounted terminal to the vehicle-mounted terminal, so as to implement synchronization of the data content stored in the mobile terminal and the vehicle-mounted terminal.
Example three:
fig. 3 is a schematic structural diagram of a terminal according to a third embodiment of the present invention. For a clear description of the terminal 1 according to the third embodiment of the present invention, please refer to fig. 3.
The terminal 1 provided by the third embodiment of the present invention includes: a processor a101 and a memory a201, wherein the processor a101 is configured to execute the computer program A6 stored in the memory a201 to implement the steps of the information sharing method as described in the first embodiment or the second embodiment.
In an embodiment, the terminal 1 provided in this embodiment may include at least one processor a101 and at least one memory a201. Among them, at least one processor a101 may be referred to as a processing unit A1, and at least one memory a201 may be referred to as a storage unit A2. Specifically, the storage unit A2 stores a computer program A6, which when executed by the processing unit A1, causes the terminal 1 provided by the present embodiment to implement the steps of the method for information sharing as described above, such as the step S12 shown in fig. 1: when the identification of the data stored in the synchronous terminal is inconsistent with the identification of the data stored in the synchronous terminal, receiving and storing the data which is not synchronized per se, and/or sending the data which is not synchronized of the synchronous terminal to the synchronous terminal.
In an embodiment, the terminal 1 provided in the present embodiment includes a plurality of memories a201 (referred to as a storage unit A2 for short), and the storage unit A2 may include, for example, a Random Access Memory (RAM) and/or a cache memory and/or a Read Only Memory (ROM), and the like.
In an embodiment, the terminal 1 further comprises a bus connecting the different components (e.g. the processor a101 and the memory a201, the touch sensitive display A3, the NFC tag A7, etc.).
In an embodiment, the terminal 1 in this embodiment may further include a communication interface (e.g., an I/O interface A4), and the communication interface may be used for communicating with an external device, for example, the NFC tag A7 may be externally connected through the communication interface.
In an embodiment, the terminal 1 provided in this embodiment may further include a communication device A5.
The terminal 1 provided in the third embodiment of the present invention includes a memory a101 and a processor a201, and the processor a101 is configured to execute the computer program A6 stored in the memory a201 to implement the steps of the information sharing method described in the first embodiment or the second embodiment, so that the terminal 1 provided in this embodiment can simplify the operation of information synchronization, and conveniently and quickly implement information synchronization.
A third embodiment of the present invention further provides a computer-readable storage medium, where a computer program A6 is stored, and when the computer program A6 is executed by a processor a101, the steps of the method for information sharing in the first embodiment or the second embodiment are implemented, for example, the steps shown in fig. 1 are 11 to S12.
In an embodiment, the computer readable storage medium provided by the present embodiment may include any entity or device capable of carrying computer program code, a recording medium, such as ROM, RAM, magnetic disk, optical disk, flash memory, etc.
The computer-readable storage medium provided by the embodiment is combined with the terminal, so that the information synchronization operation can be simplified, and the information synchronization can be conveniently and quickly realized.
The present invention is not limited to the above preferred embodiments, and any modification, equivalent replacement or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.