CN106357511B - Information synchronization method and device - Google Patents

Information synchronization method and device Download PDF

Info

Publication number
CN106357511B
CN106357511B CN201610825073.3A CN201610825073A CN106357511B CN 106357511 B CN106357511 B CN 106357511B CN 201610825073 A CN201610825073 A CN 201610825073A CN 106357511 B CN106357511 B CN 106357511B
Authority
CN
China
Prior art keywords
identifier
terminal
wireless network
identification
target account
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.)
Active
Application number
CN201610825073.3A
Other languages
Chinese (zh)
Other versions
CN106357511A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610825073.3A priority Critical patent/CN106357511B/en
Publication of CN106357511A publication Critical patent/CN106357511A/en
Application granted granted Critical
Publication of CN106357511B publication Critical patent/CN106357511B/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
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/214Monitoring or handling of messages using selective forwarding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes

Abstract

The embodiment of the invention discloses an information synchronization method and a device, comprising the following steps: obtaining chat information of a target account at a first terminal; acquiring a first identifier of an Access Point (AP) of a wireless network used by the first terminal; acquiring a second identifier of an AP of a wireless network used by a second terminal for logging in the target account; and if the first identifier is the same as the second identifier, synchronizing the chat information of the target account at the first terminal to the second terminal. By adopting the invention, the chat information of the target account is only synchronized on the terminal using the same wireless network, thereby improving the privacy of the chat information.

Description

Information synchronization method and device
Technical Field
The present invention relates to the field of communications network technologies, and in particular, to an information synchronization method and apparatus.
Background
With the use of various instant messaging applications, great convenience is brought to users, users can chat with any one or more friends at any time and any place, the content of chat information is different based on different relations between the users and the friends, the various chat information is various, private and public, for example, the chat information on work can be work exchanged between coworkers, and on work or home, the chat information can be talking between lovers or whisper between girlfrieds, and the like.
In the prior art, all chat information of an account can be synchronized on any terminal equipment for logging in the account, and the privacy is poor in this way, for example, chat information of a person about work in an office can be synchronized to a computer at home, and if the work is troublesome, the person at home can know the chat information, and rather worry about the chat information.
Disclosure of Invention
The embodiment of the invention provides an information synchronization method and device, which are used for synchronizing chat information of a target account only on a terminal using the same wireless network, so that the privacy of the chat information is improved.
A first aspect of an embodiment of the present invention provides an information synchronization method, which may include:
obtaining chat information of a target account at a first terminal;
acquiring a first identifier of an Access Point (AP) of a wireless network used by the first terminal;
acquiring a second identifier of an AP of a wireless network used by a second terminal for logging in the target account;
and if the first identifier is the same as the second identifier, synchronizing the chat information of the target account at the first terminal to the second terminal.
A second aspect of the embodiments of the present invention provides an information synchronization apparatus, which may include:
the first acquisition unit is used for acquiring the chat information of the target account at the first terminal;
a second obtaining unit, configured to obtain a first identifier of an access point AP of a wireless network used by the first terminal;
a third obtaining unit, configured to obtain a second identifier of an AP of a wireless network used by a second terminal that logs in the target account;
and the synchronization unit is used for synchronizing the chat information of the target account at the first terminal to the second terminal if the first identifier is the same as the second identifier.
A third aspect of the present invention provides an information synchronization apparatus, including:
a processor and a memory; wherein the processor performs some or all of the steps of the information method described in the first aspect by calling code or instructions in the memory.
In the embodiment of the invention, the chat information of the target account at the first terminal is acquired, the first identifier of the AP of the wireless network used by the first terminal is acquired, the second identifier of the AP of the wireless network used by the second terminal for logging in the target account is acquired, and if the first identifier is the same as the second identifier, the chat information of the target account at the first terminal is synchronized to the second terminal.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, 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 invention, 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 flow chart of a first embodiment of an information synchronization method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating an information synchronization method according to a second embodiment of the present invention;
FIG. 3 is a schematic structural diagram of an information synchronization apparatus according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of another information synchronization apparatus according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of another information synchronization apparatus according to an embodiment of the present invention;
fig. 6 is a system architecture diagram according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. 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 terms "first," "second," and the like in the description and in the claims, and in the drawings, are used for distinguishing between different objects and not necessarily for describing a particular sequential order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The terminal described in the embodiment of the present invention may include a smart Phone (such as an Android Phone, an iOS Phone, a Windows Phone, etc.), a tablet computer, a palm computer, a notebook computer, a mobile internet device (MID, mobile internet Devices), or a wearable device, and the terminal is merely an example, and is not exhaustive and includes but is not limited to the terminal.
The following describes an information synchronization method and apparatus provided in an embodiment of the present invention with reference to fig. 1 to 5.
Fig. 1 is a flowchart illustrating an information synchronization method according to a first embodiment of the present invention. The information synchronization method described in this embodiment includes the steps of:
s101, obtaining chat information of a target account at a first terminal;
in the embodiment of the invention, the information interaction platform refers to a network architecture for connecting people through social relations and/or common interests (or common benefits), and a user can perform daily communication and process some daily matters through a client provided by the information interaction platform. Each user may have a network identity, which may be an account number automatically assigned to the user by the system when the user registers, for recognition by other users on the information interaction platform.
On the information interaction platform, different users can establish a social relationship in a mutually confirmed manner, for example, friends are added to each other or concern each other. When two users establish a social relationship, they become social network contacts of each other. A group of users can form a social group by forming a social relationship with each other in a self-selection mode. Each member in the group is a social network contact of all other members in the group, and chat communication can be performed on a client (such as an instant messaging application) after the users become the social network contacts.
Each user on the information interaction platform has a social network contact list, namely a friend list, so that the user can communicate with friends in the social network contact list in forms of instant messaging messages and the like. For example, users in a social group can communicate with each other through an interface provided by the information interaction platform, and users can also communicate with each other through the interface provided by the information interaction platform.
The account registered by each user on the information interaction platform becomes the network identity of the user, and the user can log in the own account at any terminal and select any friend in the friend list of the account for communication. The first terminal of the embodiment of the present invention may be any terminal, such as a smart phone, a personal computer, a tablet computer, and the like. The target account number can be any account number registered in the information interaction platform.
In the subsequent embodiments of the present invention, the information interaction platform is collectively referred to as a server, and the server can implement all social network functions of the information interaction platform.
The target user logs in at the first terminal by adopting a target account of the target user, then chats with any friend in a friend list of the target account, and the server acquires the chatting information of the target account at the first terminal, wherein the chatting information can comprise work matters talking between the target user and office colleagues, also can be talking between the target user and lovers, also can be whisper talking between the target user and girlfrieds, and the like. It should be noted that the target user is a user bound to the target account.
S102, acquiring a first identifier of an Access Point (AP) of a wireless network used by the first terminal;
in the embodiment of the present invention, a first terminal accesses an ethernet using an Access Point (AP) of a Wireless Local Area Network (WLAN), where the WLAN may include a plurality of Basic Service Sets (BSSs), and the basic service sets include an Access-type Station AP and a Non-Access-type Station (Non-AP STA), that is, in the first terminal and the second terminal in the embodiment of the present invention, each basic service Set may include an AP and a plurality of Non-AP STAs associated with the AP.
An AP, also referred to as a wireless access point or hotspot, etc. The AP is an access point for a mobile subscriber to enter a wired network, and is mainly deployed in a home, a building, and a campus, and typically has a coverage radius of several tens of meters to hundreds of meters, and may be deployed outdoors. The AP acts as a bridge connecting the network and the wireless network, and mainly functions to connect the wireless network clients together and then to access the wireless network to the ethernet. Specifically, the AP may be a terminal device or a network device with a WiFi (wireless fidelity, chinese) chip.
The Non-Access type Station (Non-AP STA) may be a wireless communication chip, a wireless sensor, or a wireless communication terminal. For example: the mobile phone supporting the WiFi communication function, the tablet computer supporting the WiFi communication function, the set top box supporting the WiFi communication function, the smart television supporting the WiFi communication function, the smart wearable device supporting the WiFi communication function, the vehicle-mounted communication device supporting the WiFi communication function and the computer supporting the WiFi communication function.
The wireless network used by the first terminal may be a WiFi network in an office, and the first identifier is an identifier of an AP in the office, where the first identifier may include a Media Access Control (MAC) address of the AP of the wireless network used by the first terminal, or the first identifier may include a basic service set BSS identifier of the AP of the wireless network used by the first terminal.
Further optionally, an Internet Protocol (IP) Address of the AP may also be obtained, and the wireless network under the AP may be uniquely determined by the AP identifier and the IP Address.
S103, acquiring a second identifier of the AP of the wireless network used by a second terminal for logging in the target account;
in the embodiment of the present invention, the second terminal may be any terminal except the first terminal among all terminals that log in the target account, for example, the first terminal is a notebook computer in an office, and the second terminal may be a mobile phone in the office, or the second terminal may also be a notebook computer in a home, where the mobile phone and the notebook computer log in the target account at the same time, and the target user uses the notebook computer to chat with the target friend.
The server further obtains a second identifier of the AP of the wireless network used by the second terminal, where the second identifier may include a MAC address of the AP of the wireless network used by the second terminal; alternatively, the second identifier may include a BSS identifier of an AP of a wireless network used by the second terminal. It should be noted that the first identifier and the second identifier should be expressed in a consistent manner, for example, both identifiers may be expressed by MAC addresses, or both identifiers may be expressed by BSS identifiers.
And S104, if the first identifier is the same as the second identifier, synchronizing the chat information of the target account at the first terminal to the second terminal.
In the embodiment of the present invention, if the first identifier is the same as the second identifier, it indicates that the wireless networks used by the first terminal and the second terminal are the same network, for example, both login in an office wireless network, and synchronize the chat information of the target account at the first terminal to the second terminal.
In the embodiment of the invention, the chat information of the target account at the first terminal is acquired, the first identifier of the AP of the wireless network used by the first terminal is acquired, the second identifier of the AP of the wireless network used by the second terminal for logging in the target account is acquired, and if the first identifier is the same as the second identifier, the chat information of the target account at the first terminal is synchronized to the second terminal.
Referring to fig. 2, a schematic flow chart of another information synchronization method according to an embodiment of the present invention is shown, where the information synchronization method according to the embodiment of the present invention includes the following steps:
s201, obtaining chat information of a target account at a first terminal;
s202, acquiring a first identifier of an Access Point (AP) of a wireless network used by the first terminal;
s203, acquiring a second identifier of the AP of the wireless network used by a second terminal for logging in the target account;
and S204, if the first identifier is the same as the second identifier, synchronizing the chat information of the target account at the first terminal to the second terminal.
Referring to steps S101 to S04 in the embodiment of fig. 1, steps S201 to S204 in the embodiment of the present invention are not described herein again.
S205, if the first identifier is different from the second identifier, matching the second identifier with at least one identifier in a preset identifier library;
optionally, the at least one identifier in the preset identifier library is an identifier added by the user through the target account; alternatively, the first and second electrodes may be,
and the at least one identifier in the preset identifier library is an identifier of an AP of a common wireless network obtained by the system according to the identifier statistics of the AP of the historical login wireless network of the target account.
S206, if the second identifier is matched with any one identifier in the at least one identifier in the preset identifier library, synchronizing the chat information to the second terminal.
In the embodiment of the present invention, the identifier in the preset identifier library is an identifier of a completely trusted AP added by the target account, for example, an identifier of an AP of a wireless network in a home, or the identifier in the preset identifier library may also be an identifier of an AP of a commonly used wireless network obtained by statistics according to an identifier of an AP of at least one wireless network that is logged in by the target account in history, for example, the target account is logged in by using the wireless network in the home, and may be logged in by using a wireless network of a friend's home, or may be logged in by using a wireless network in an office.
When the server detects that the first terminal and the second terminal which log in the target account do not use the same wireless network, namely the first identifier and the second identifier are different, the second identifier of the AP of the wireless network used by the second terminal is matched with at least one identifier in the preset identifier library.
If the second identifier is matched with any identifier in the preset identifier library, the security of the wireless network used by the second terminal is higher, and the server synchronizes the chat information of the target account at the first terminal to the second terminal.
S207, receiving a viewing request sent by the first terminal for viewing the at least one identifier;
in the embodiment of the present invention, the target user may also view the identifier in the preset identifier library, for example, the target user triggers, at the first terminal, the first terminal to send, to the server, a viewing request for viewing the at least one identifier through a triggering operation, where the triggering operation may include a touch screen operation, a key operation, and the like.
S208, generating an identification list from the at least one identification in the preset identification library, and sending the identification list to the first terminal.
In the embodiment of the present invention, when the server receives a viewing request sent by the first terminal, the server generates an identifier list from at least one identifier in the preset identifier library, and sends the identifier list to the first terminal, it should be noted that at least one identifier in the identifier list may be sorted according to the usage frequency of the target account, the identifier of the AP of the wireless network with high usage frequency is in front of the identifier list, and the identifier of the AP of the wireless network with low usage frequency is in back of the identifier list.
S209, when receiving a modification instruction for the identifier list fed back by the first terminal, modifying the at least one identifier in the preset identifier library according to the modification instruction.
In this embodiment of the present invention, the target user may modify the identifier list at the first terminal, for example, add a new identifier to the identifier list, delete an identifier from the identifier list, or change a certain identifier from the identifier list.
When the server receives a modification instruction for the identifier list fed back by the first terminal, at least one identifier in the preset identifier library can be modified and updated according to the modification instruction, so that the user requirements are met.
In the embodiment of the invention, the chat information of the target account at the first terminal is acquired, the first identifier of the AP of the wireless network used by the first terminal is acquired, the second identifier of the AP of the wireless network used by the second terminal for logging in the target account is acquired, and if the first identifier is the same as the second identifier, the chat information of the target account at the first terminal is synchronized to the second terminal.
Referring to fig. 3, a schematic structural diagram of an information synchronization apparatus according to an embodiment of the present invention is shown, where the information synchronization apparatus according to the embodiment of the present invention includes:
a first obtaining unit 10, configured to obtain chat information of a target account at a first terminal;
a second obtaining unit 11, configured to obtain a first identifier of an access point AP of a wireless network used by the first terminal;
a third obtaining unit 12, configured to obtain a second identifier of an AP of a wireless network used by a second terminal that logs in the target account;
optionally, the first identifier includes a medium access control MAC address of an AP of a wireless network used by the first terminal, and the second identifier includes a medium access control MAC address of an AP of a wireless network used by the second terminal; alternatively, the first and second electrodes may be,
the first identity comprises a Basic Service Set (BSS) identity of an AP of a wireless network used by the first terminal, and the second identity comprises a BSS identity of an AP of a wireless network used by the second terminal.
A synchronizing unit 13, configured to synchronize, to the second terminal, the chat information of the target account at the first terminal if the first identifier is the same as the second identifier.
In the embodiment of the invention, the chat information of the target account at the first terminal is acquired, the first identifier of the AP of the wireless network used by the first terminal is acquired, the second identifier of the AP of the wireless network used by the second terminal for logging in the target account is acquired, and if the first identifier is the same as the second identifier, the chat information of the target account at the first terminal is synchronized to the second terminal.
Referring to fig. 4, a schematic structural diagram of another information synchronization apparatus according to an embodiment of the present invention is shown, where the information synchronization apparatus according to the embodiment of the present invention includes:
a first obtaining unit 20, configured to obtain chat information of a target account at a first terminal;
a second obtaining unit 21, configured to obtain a first identifier of an access point AP of a wireless network used by the first terminal;
a third obtaining unit 22, configured to obtain a second identifier of an AP of a wireless network used by a second terminal that logs in the target account;
a synchronizing unit 23, configured to synchronize, to the second terminal, the chat information of the target account at the first terminal if the first identifier is the same as the second identifier.
Optionally, the information synchronization apparatus according to the embodiment of the present invention further includes a matching unit 24;
a matching unit 24, configured to match the second identifier with at least one identifier in a preset identifier library if the first identifier is different from the second identifier;
optionally, the at least one identifier in the preset identifier library is an identifier added by the user through the target account; alternatively, the first and second electrodes may be,
and the at least one identifier in the preset identifier library is an identifier of an AP of a common wireless network obtained by the system according to the identifier statistics of the AP of the historical login wireless network of the target account.
The synchronizing unit 23 is further configured to synchronize the chat information to the second terminal if the second identifier matches any one of the at least one identifier in the preset identifier library.
Further optionally, the information synchronization apparatus according to the embodiment of the present invention further includes a receiving unit 25 and a sending unit 26;
a receiving unit 25, configured to receive a viewing request sent by the first terminal for viewing the at least one identifier;
the issuing unit 26 is configured to generate an identifier list from the at least one identifier in the preset identifier library, and issue the identifier list to the first terminal.
Further optionally, the information synchronization apparatus according to the embodiment of the present invention further includes a modification unit 27;
a modifying unit 27, configured to modify, when receiving a modification instruction for the identifier list fed back by the first terminal, the at least one identifier in the preset identifier library according to the modification instruction.
Optionally, the modification instruction includes at least one of a delete identification instruction, an add new identification instruction, and a change identification instruction.
In the embodiment of the invention, the chat information of the target account at the first terminal is acquired, the first identifier of the AP of the wireless network used by the first terminal is acquired, the second identifier of the AP of the wireless network used by the second terminal for logging in the target account is acquired, and if the first identifier is the same as the second identifier, the chat information of the target account at the first terminal is synchronized to the second terminal.
Referring to fig. 5, a schematic structural diagram of another information synchronization apparatus according to an embodiment of the present invention is shown, where the information synchronization apparatus described in this embodiment includes: at least one input device 1000; at least one output device 2000; at least one processor 3000, e.g., a CPU; and a memory 4000, the input device 1000, the output device 2000, the processor 3000, and the memory 4000 being connected by a bus 5000.
The input device 1000 may be a receiver of a server, configured to receive chat information of a target account at a first terminal;
the output device 2000 may be a transmitter of the server, and is configured to synchronize the chat information of the target account at the first terminal to the second terminal.
The memory 4000 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 4000 is used for storing a set of program codes, and the input device 1000, the output device 2000 and the processor 3000 are used for calling the program codes stored in the memory 4000 to execute the following operations:
the input device 1000 is configured to obtain chat information of a target account at a first terminal;
the processor 3000 is configured to obtain a first identifier of an access point AP of a wireless network used by the first terminal;
the processor 3000 is further configured to obtain a second identifier of an AP of a wireless network used by a second terminal that logs in the target account;
the output device 2000 is configured to synchronize the chat information of the target account at the first terminal to the second terminal if the first identifier is the same as the second identifier.
Optionally, the first identifier includes a medium access control MAC address of an AP of a wireless network used by the first terminal, and the second identifier includes a medium access control MAC address of an AP of a wireless network used by the second terminal; alternatively, the first and second electrodes may be,
the first identity comprises a Basic Service Set (BSS) identity of an AP of a wireless network used by the first terminal, and the second identity comprises a BSS identity of an AP of a wireless network used by the second terminal.
The processor 3000 is further configured to match the second identifier with at least one identifier in a preset identifier library if the first identifier is different from the second identifier;
and if the second identifier is matched with any identifier in the at least one identifier in the preset identifier library, synchronizing the chat information to the second terminal.
Optionally, the at least one identifier in the preset identifier library is an identifier added by the user through the target account; alternatively, the first and second electrodes may be,
and the at least one identifier in the preset identifier library is an identifier of an AP of a common wireless network obtained by the system according to the identifier statistics of the AP of the historical login wireless network of the target account.
The input device 1000 is configured to receive a viewing request sent by the first terminal for viewing the at least one identifier;
the processor 3000 is further configured to generate an identifier list from the at least one identifier in the preset identifier library, and send the identifier list to the first terminal.
The processor 3000 is further configured to modify the at least one identifier in the preset identifier library according to a modification instruction when receiving the modification instruction for the identifier list fed back by the first terminal.
The modification instruction comprises at least one of an identification deletion instruction, a new identification addition instruction and an identification change instruction.
In the embodiment of the invention, the chat information of the target account at the first terminal is acquired, the first identifier of the AP of the wireless network used by the first terminal is acquired, the second identifier of the AP of the wireless network used by the second terminal for logging in the target account is acquired, and if the first identifier is the same as the second identifier, the chat information of the target account at the first terminal is synchronized to the second terminal.
Referring to fig. 6, a network system architecture diagram provided in an embodiment of the present invention is shown, where the system architecture diagram in the embodiment of the present invention includes a server, a first terminal and a second terminal, where the server establishes network connections with the first terminal and the second terminal, respectively, where the first terminal and the second terminal use an AP of a same wireless network, and certainly the first terminal and the second terminal may not use an AP of a same wireless network.
The server acquires the chat information of the target account at the first terminal, and simultaneously acquires the first identifier of the AP of the wireless network used by the first terminal, if the target account logs in at the second terminal, the server acquires the second identifier of the AP of the wireless network used by the second terminal, compares the first identifier with the second identifier, and if the first identifier is the same as the second identifier, which is the situation shown in fig. 6, it is described that the first terminal and the second terminal use the same wireless network, and synchronizes the chat information of the target account at the first terminal to the second terminal.
It should be noted that, if the first terminal and the second terminal do not use the same wireless network, the first identifier is different from the second identifier, and the chat information of the target account at the first terminal cannot be synchronized to the second terminal.
An embodiment of the present invention further provides a computer storage medium, where the computer storage medium may store a program, and when the program is executed, the program includes some or all of the steps of any one of the information synchronization methods described in the above method embodiments.
While the invention has been described in connection with various embodiments, other variations to the disclosed embodiments can be understood and effected by those skilled in the art in practicing the claimed invention, from a review of the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other elements or steps, and the word "a" or "an" does not exclude a plurality. A single processor or other unit may fulfill the functions of several items recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus (device), or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein. A computer program stored/distributed on a suitable medium supplied together with or as part of other hardware, may also take other distributed forms, such as via the Internet or other wired or wireless telecommunication systems.
The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (devices) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the invention has been described in conjunction with specific features and embodiments thereof, it will be evident that various modifications and combinations can be made thereto without departing from the spirit and scope of the invention. Accordingly, the specification and figures are merely exemplary of the invention as defined in the appended claims and are intended to cover any and all modifications, variations, combinations, or equivalents within the scope of the invention. It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (11)

1. An information synchronization method, comprising:
obtaining chat information of a target account at a first terminal;
acquiring a first identifier of an Access Point (AP) of a wireless network used by the first terminal;
acquiring a second identifier of an AP of a wireless network used by a second terminal for logging in the target account; the first identification and the second identification are consistent in representation mode;
if the first identifier is the same as the second identifier, synchronizing the chat information of the target account at the first terminal to the second terminal;
if the first identification is different from the second identification, matching the second identification with at least one identification in a preset identification library; the at least one identifier in the preset identifier library is an identifier added by the user through the target account; or, the at least one identifier in the preset identifier library is an identifier of an AP of a common wireless network, which is obtained by counting according to the identifier of the AP of the wireless network which is logged in by the system according to the history of the target account;
and if the second identifier is matched with any identifier in the at least one identifier in the preset identifier library, synchronizing the chat information to the second terminal.
2. The method of claim 1, wherein the first identity comprises a medium access control, MAC, address of an AP of a wireless network used by the first terminal, and the second identity comprises a medium access control, MAC, address of an AP of a wireless network used by the second terminal; alternatively, the first and second electrodes may be,
the first identity comprises a Basic Service Set (BSS) identity of an AP of a wireless network used by the first terminal, and the second identity comprises a BSS identity of an AP of a wireless network used by the second terminal.
3. The method of claim 1, wherein the method further comprises:
receiving a viewing request sent by the first terminal and used for viewing the at least one identifier;
and generating an identification list from the at least one identification in the preset identification library, and sending the identification list to the first terminal.
4. The method of claim 3, wherein the method further comprises:
and when a modification instruction for the identifier list fed back by the first terminal is received, modifying the at least one identifier in the preset identifier library according to the modification instruction.
5. The method of claim 4, wherein the modification instructions comprise at least one of a delete identification instruction, an add new identification instruction, a change identification instruction.
6. An information synchronization apparatus, comprising:
the first acquisition unit is used for acquiring the chat information of the target account at the first terminal;
a second obtaining unit, configured to obtain a first identifier of an access point AP of a wireless network used by the first terminal;
a third obtaining unit, configured to obtain a second identifier of an AP of a wireless network used by a second terminal that logs in the target account; the first identification and the second identification are consistent in representation mode;
a synchronization unit, configured to synchronize, to the second terminal, the chat information of the target account at the first terminal if the first identifier is the same as the second identifier;
the matching unit is used for matching the second identifier with at least one identifier in a preset identifier library if the first identifier is different from the second identifier; the at least one identifier in the preset identifier library is an identifier added by the user through the target account; or, the at least one identifier in the preset identifier library is an identifier of an AP of a common wireless network obtained by statistics of the identifiers of the APs of the wireless network logged in by the system according to the history of the target account
The synchronization unit is further configured to synchronize the chat information to the second terminal if the second identifier matches any one of the at least one identifier in the preset identifier library.
7. The apparatus of claim 6, wherein the first identity comprises a medium access control, MAC, address of an AP of a wireless network used by the first terminal, and the second identity comprises a medium access control, MAC, address of an AP of a wireless network used by the second terminal; alternatively, the first and second electrodes may be,
the first identity comprises a Basic Service Set (BSS) identity of an AP of a wireless network used by the first terminal, and the second identity comprises a BSS identity of an AP of a wireless network used by the second terminal.
8. The apparatus of claim 6, wherein the apparatus further comprises:
a receiving unit, configured to receive a viewing request sent by the first terminal for viewing the at least one identifier;
and the issuing unit is used for generating an identification list from the at least one identification in the preset identification library and issuing the identification list to the first terminal.
9. The apparatus of claim 8, wherein the apparatus further comprises:
and the modifying unit is used for modifying the at least one identifier in the preset identifier library according to the modifying instruction when the modifying instruction for the identifier list fed back by the first terminal is received.
10. The apparatus of claim 9, wherein the modification instructions comprise at least one of a delete identification instruction, an add new identification instruction, a change identification instruction.
11. An information synchronization apparatus, comprising:
a processor and a memory; wherein the processor performs the method of any one of claims 1 to 5 by calling code or instructions in the memory.
CN201610825073.3A 2016-09-14 2016-09-14 Information synchronization method and device Active CN106357511B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610825073.3A CN106357511B (en) 2016-09-14 2016-09-14 Information synchronization method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610825073.3A CN106357511B (en) 2016-09-14 2016-09-14 Information synchronization method and device

Publications (2)

Publication Number Publication Date
CN106357511A CN106357511A (en) 2017-01-25
CN106357511B true CN106357511B (en) 2020-01-14

Family

ID=57857967

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610825073.3A Active CN106357511B (en) 2016-09-14 2016-09-14 Information synchronization method and device

Country Status (1)

Country Link
CN (1) CN106357511B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110661697B (en) * 2019-09-10 2022-10-18 北京百分点科技集团股份有限公司 Message synchronization method, device, readable storage medium, electronic device and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102638774A (en) * 2012-03-31 2012-08-15 王方淇 Method and system for synchronously sharing mobile terminal data
CN103069755A (en) * 2010-09-02 2013-04-24 斯凯普公司 Instant messaging using multiple instances of a client
CN104967732A (en) * 2015-05-26 2015-10-07 联想(北京)有限公司 Information processing method and electronic device
CN105844489A (en) * 2016-03-21 2016-08-10 联想(北京)有限公司 Information processing method and electronic device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103069755A (en) * 2010-09-02 2013-04-24 斯凯普公司 Instant messaging using multiple instances of a client
CN102638774A (en) * 2012-03-31 2012-08-15 王方淇 Method and system for synchronously sharing mobile terminal data
CN104967732A (en) * 2015-05-26 2015-10-07 联想(北京)有限公司 Information processing method and electronic device
CN105844489A (en) * 2016-03-21 2016-08-10 联想(北京)有限公司 Information processing method and electronic device

Also Published As

Publication number Publication date
CN106357511A (en) 2017-01-25

Similar Documents

Publication Publication Date Title
CN107211029B (en) Service controller device and corresponding methods and systems of discovery and connection
WO2016078301A1 (en) Wireless network access method and access apparatus, client and storage medium
EP2710776B1 (en) Anonymous signalling
US20220295269A1 (en) Network access authentication method and device
CN107567017B (en) Wireless connection system, device and method
EP3477561A1 (en) System for goods delivery
EP3254433A1 (en) Audio based discovery and connection to a service controller
WO2019149006A1 (en) Method and device for obtaining and providing access information of wireless access point, and medium
US10425812B2 (en) Method and apparatus for establishment of private communication between devices
CN106304264B (en) Wireless network access method and device
WO2019086048A1 (en) Method, device, and medium for obtaining and providing wireless access point access information
CN106411703B (en) Information synchronization method and device
CN112261604A (en) Network distribution method of intelligent terminal, configuration terminal, intelligent terminal and medium
CN102882851A (en) Generating method of address book and server
CN104113556A (en) Network logon authentication method and system, mobile terminal and application server
WO2018000844A1 (en) Network accessing method and device
CN109040050B (en) Data interaction method and related product
CN107257558B (en) Message forwarding method and device
CN106357511B (en) Information synchronization method and device
CN106789843B (en) Method, PORTAL server and system for sharing internet access
CN105490913A (en) Instant message processing method and device
CN104092826A (en) Method and device for sharing personal information on terminal
CN111372204B (en) Discovery method and device
JP2014127975A (en) Radio terminal and radio communication device
CN113094719A (en) Access control method, device and equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: Guangdong Opel Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant