CN107105005B - Method and device for synchronizing data - Google Patents

Method and device for synchronizing data Download PDF

Info

Publication number
CN107105005B
CN107105005B CN201710129417.1A CN201710129417A CN107105005B CN 107105005 B CN107105005 B CN 107105005B CN 201710129417 A CN201710129417 A CN 201710129417A CN 107105005 B CN107105005 B CN 107105005B
Authority
CN
China
Prior art keywords
equipment
scanning signal
wireless
signal
wireless scanning
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
CN201710129417.1A
Other languages
Chinese (zh)
Other versions
CN107105005A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710129417.1A priority Critical patent/CN107105005B/en
Publication of CN107105005A publication Critical patent/CN107105005A/en
Application granted granted Critical
Publication of CN107105005B publication Critical patent/CN107105005B/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The disclosure relates to a method and a device for synchronizing data, which are used for improving the efficiency of synchronizing data and reducing user operation. The method comprises the following steps: receiving a wireless scanning signal; detecting whether the signal intensity of the received wireless scanning signal is greater than a preset signal intensity threshold value; when the received signal intensity of the wireless scanning signal is greater than a preset signal intensity threshold value, establishing data connection with a second device which sends the wireless scanning signal; the second equipment and the first equipment belong to the same type of equipment and have the same equipment type; synchronizing data with the second device through the data connection.

Description

Method and device for synchronizing data
Technical Field
The present disclosure relates to the field of communications and computer processing, and more particularly, to a method and apparatus for synchronizing data.
Background
With the development of electronic technology, devices such as mobile terminals, routers, computers, and the like have appeared, and the updating is fast. A user may change a new mobile terminal or computer every few years. Each time a user replaces a new device, it is necessary to import various information stored in the old device into the new device, and various manual settings are to be made on the new device. The above operation brings great inconvenience to the user
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a method and apparatus for synchronizing data.
According to a first aspect of the embodiments of the present disclosure, there is provided a method of synchronizing data, including:
receiving a wireless scanning signal;
detecting whether the signal intensity of the received wireless scanning signal is greater than a preset signal intensity threshold value;
when the received signal intensity of the wireless scanning signal is greater than a preset signal intensity threshold value, establishing data connection with a second device which sends the wireless scanning signal; the second equipment and the first equipment belong to the same type of equipment and have the same equipment type;
synchronizing data with the second device through the data connection.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: when a particularly strong signal around the device is detected, the data connection with the device is automatically established, and data synchronization is completed. The automatic synchronization of the data is realized, the synchronization efficiency is improved, and the user operation is reduced.
In one embodiment, the receiving the wireless scanning signal comprises:
and receiving a wireless scanning signal in a mode of scanning the terminal equipment through the first wireless interface.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: in the embodiment, the wireless scanning signals are received through the universal first wireless interface, so that the wireless scanning signals sent by more devices can be received, the data connection is convenient to establish, and more scenes are compatible.
In one embodiment, the establishing a data connection with a second device that transmits the wireless scanning signal when the received signal strength of the wireless scanning signal is greater than a preset signal strength threshold includes:
when the signal intensity of the received wireless scanning signal is greater than a preset signal intensity threshold value, starting a communication function of a preset second wireless interface;
and establishing data connection with a second device which sends the wireless scanning signal through the second wireless interface.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: according to the embodiment, the data connection is established with the second device by starting the communication function of the preset second wireless interface, so that the connection safety is improved, the second device is not required to provide a user name, a password and the like, and the user operation is reduced.
In one embodiment, device information of the second device is obtained according to the received wireless scanning signal;
judging whether the second equipment and the first equipment belong to the same kind of equipment or not according to the equipment information;
and when the received signal intensity of the wireless scanning signal is greater than a preset signal intensity threshold value and when the second equipment and the first equipment are determined to belong to the same kind of equipment, establishing data connection with the second equipment which sends the wireless scanning signal.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: according to the embodiment, when the second device and the first device are determined to belong to the same type of devices and have the same device type, the data connection is established with the second device, so that the connection safety is improved, the data synchronization with the second device is facilitated, and the processing process is simplified.
In one embodiment, before detecting whether the signal strength of the received wireless scanning signal is greater than a preset signal strength threshold, the method further includes:
a synchronization data instruction is received.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the present embodiment enables the user to control whether data is synchronized.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for synchronizing data, including:
the first receiving module is used for receiving the wireless scanning signal;
the detection module is used for detecting whether the signal intensity of the received wireless scanning signal is greater than a preset signal intensity threshold value;
the connection module is used for establishing data connection with a second device which sends the wireless scanning signal when the signal intensity of the received wireless scanning signal is greater than a preset signal intensity threshold value; the second equipment and the first equipment belong to the same type of equipment and have the same equipment type;
and the synchronization module is used for synchronizing data with the second equipment through the data connection.
In one embodiment, the first receiving module comprises:
and the first receiving submodule is used for receiving the wireless scanning signal in a mode of scanning the terminal equipment through the first wireless interface.
In one embodiment, the connection module comprises:
the starting submodule is used for starting a communication function of a preset second wireless interface when the signal intensity of the received wireless scanning signal is greater than a preset signal intensity threshold value;
and the establishing submodule is used for establishing data connection with second equipment for sending the wireless scanning signal through the second wireless interface.
In one embodiment, the connection module comprises:
the acquisition submodule is used for acquiring the equipment information of the second equipment according to the received wireless scanning signal;
the judging submodule is used for judging whether the second equipment and the first equipment belong to the same type of equipment or not according to the equipment information;
and the second establishing submodule is used for establishing data connection with second equipment which sends the wireless scanning signals when the signal intensity of the received wireless scanning signals is greater than a preset signal intensity threshold value and when the second equipment and the first equipment are determined to belong to the same kind of equipment.
In one embodiment, the apparatus further comprises:
and the second receiving module is used for receiving the synchronous data instruction.
According to a third aspect of the embodiments of the present disclosure, there is provided an apparatus for synchronizing data, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving a wireless scanning signal;
detecting whether the signal intensity of the received wireless scanning signal is greater than a preset signal intensity threshold value;
when the received signal intensity of the wireless scanning signal is greater than a preset signal intensity threshold value, establishing data connection with a second device which sends the wireless scanning signal; the second equipment and the first equipment belong to the same type of equipment and have the same equipment type;
synchronizing data with the second device through the data connection.
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.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow chart illustrating a method of synchronizing data in accordance with an exemplary embodiment.
FIG. 2 is a flow chart illustrating a method of synchronizing data in accordance with an exemplary embodiment.
FIG. 3 is a flow chart illustrating a method of synchronizing data in accordance with an exemplary embodiment.
FIG. 4 is a block diagram illustrating an apparatus for synchronizing data in accordance with an example embodiment.
Fig. 5 is a block diagram illustrating a first receiving module in accordance with an example embodiment.
FIG. 6 is a block diagram illustrating a connection module in accordance with an exemplary embodiment.
FIG. 7 is a block diagram illustrating a connection module in accordance with an exemplary embodiment.
FIG. 8 is a block diagram illustrating an apparatus for synchronizing data in accordance with an example embodiment.
FIG. 9 is a block diagram illustrating an apparatus in accordance with an example embodiment.
FIG. 10 is a block diagram illustrating an apparatus in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
In the related art, after a device such as a router or a mobile terminal is used for a certain period of time, a new device may need to be replaced. But the old device has some personal settings of the user and stores personal information of the user, etc. When using the new device, the user needs to repeat the personal setting of the old device on the new device, and export the personal data on the old device and then import the data into the new device through manual operation. The above process is cumbersome and inconvenient for the user.
In order to solve the above problem, in this embodiment, when detecting that there is a second device of the same type with a particularly strong signal, the first device automatically establishes a data connection with the second device and performs data synchronization. The synchronization process is automatically completed, the synchronization efficiency is high, and the user operation is reduced.
Fig. 1 is a flow chart illustrating a method of synchronizing data, which may be implemented by a first device, as shown in fig. 1, according to an example embodiment, including the steps of:
in step 101, a wireless scanning signal is received.
In step 102, it is detected whether the signal strength of the received wireless scanning signal is greater than a preset signal strength threshold.
In step 103, when the signal strength of the received wireless scanning signal is greater than a preset signal strength threshold, establishing a data connection with a second device that sends the wireless scanning signal; the second device and the first device belong to the same type of device and have the same device type. The devices of the same type are the same in type, such as the same operating system, have the same type of functions, and the like. For example, the second device and the first device are both routers, or both are mobile phones, or one is a mobile phone and one is a pad, and the like.
And when the received signal intensity of the wireless scanning signal is not greater than a preset signal intensity threshold value, ending the process.
In step 104, data is synchronized with the second device over the data connection.
In this embodiment, the first device may be an access point device (e.g., a router, etc.), or a terminal device (e.g., a mobile terminal, a computer, etc.) that starts a hot spot function.
In this embodiment, the data at least includes one of the following items: configuration data, user data, and system data.
Taking the first device as a router as an example, the second device is also a router. For example, the first device is a used router, and the used router stores personal settings of the user, such as a username and password of the router, a username and password of a broadband account, a blacklist of screening devices, and the like. If the used router includes a storage medium such as a hard disk with a large storage capacity, the used router may also store user data such as pictures, documents, audio-video files, movies, etc. The second device is a router to be used, which is not used by a user or has been restored to factory settings.
The used router and the router to be used are placed close together, and the closer the distance is, the easier it is to scan to find each other. Routers have been used to broadcast signals wirelessly (e.g., WiFi) to scan surrounding terminal devices. And after receiving the broadcast signal, the router to be used sends a response signal to the router which is used. The used router receives the response signal to be sent by the used router, which corresponds to performing step 101. The router has been used to determine the signal strength (RSSI) of the response signal and determine if the signal strength is greater than a preset signal strength threshold. In general use, the two routers are not very close to each other, so the signal strength detected by each other is limited. To avoid false operation, the signal strength threshold may be set relatively high to determine that data synchronization needs to be performed between the two routers. Such as close (e.g., within 20 centimeters) placement, to meet the signal strength threshold. For example, when the used router detects that there is a router to be used whose signal exceeds a preset signal strength threshold, and belongs to the same type of device, and has the same device type, it is determined that synchronization processing is required. The used router then initiates a data connection with the router to be used and synchronizes data with the router to be used through the data connection.
In the synchronization process, a router is used to package predetermined synchronization data and generate a data packet. And exporting the data packet, and sending the data packet to the router to be used through the connection. The router to be used can also complete various configurations by importing the data packet and loading the synchronous data.
The synchronization process may also be initiated by the router to be used. For example, the router is to be used to broadcast signals wirelessly (e.g., WiFi) to scan surrounding terminal devices. And after the used router can receive the broadcast signal, sending a response signal to the router to be used. The waiting router receives the response signal sent by the used router, which corresponds to performing step 101. The router to be used determines the signal strength (RSSI) of the response signal and judges whether the signal strength is greater than a preset signal strength threshold. When the router to be used detects that the used router with the signal greater than the preset signal strength threshold value belongs to the same type of equipment, and the router has the same equipment type (the equipment type can be known through the response signal), the need of synchronous processing is determined. The router to be used initiates a connection with the used router and sends a synchronization request to the used router over the connection to synchronize data with the used router.
Taking the first device as the mobile terminal as an example, the second device is the same type of mobile terminal. For example, the first device is an old mobile terminal and the second device is a new mobile terminal. The old mobile terminal starts a hot spot function and broadcasts a signal in a wireless mode (such as WiFi) so as to scan peripheral terminal equipment. The new mobile terminal may receive the broadcast signal and transmit a response signal to the old mobile terminal. The old mobile terminal receives the response signal sent by the new mobile terminal, which corresponds to step 101. The old mobile terminal determines the signal strength (RSSI) of the response signal and determines whether the RSSI is greater than a preset RSSI threshold. When the old mobile terminal detects a new mobile terminal with a signal which is so strong, belongs to the same type of equipment, and has the same equipment type, the old mobile terminal determines that the synchronization processing is required. The old mobile terminal establishes a data connection with the new mobile terminal and synchronizes data with the new mobile terminal through the connection. The synchronization process is similar to that of a router.
The synchronization procedure may also be initiated by the new mobile terminal. The new mobile terminal starts a hot spot function, and broadcasts signals in a wireless mode (such as WiFi) so as to scan peripheral terminal equipment. The old mobile terminal may receive the broadcast signal and send a response signal to the new mobile terminal. The new mobile terminal receives the response signal transmitted by the old mobile terminal, which corresponds to the execution of step 101. The new mobile terminal determines the signal strength (RSSI) of the response signal and determines whether the RSSI is greater than a predetermined RSSI threshold. When the new mobile terminal detects that the old mobile terminal with the strong signal belongs to the same type of equipment, the new mobile terminal determines that the synchronization processing is required. The new mobile terminal initiates a connection with the old mobile terminal and sends a synchronization request to the old mobile terminal over the connection, synchronizing data with the old mobile terminal.
In one embodiment, step 101 comprises: and A.
In step a, a wireless scanning signal is received via a first wireless interface in a manner of scanning the terminal device.
For example, the first device is a router. The router comprises a WiFi module, and the WiFi module comprises at least two ports. Port 1 (i.e., the first wireless interface) is normally open and port 2 is closed. Port 1 is for universal connection with an external device. The router may periodically broadcast a wireless scanning signal through port 1 so that surrounding devices may discover the router and establish a data connection with the router relatively quickly.
The embodiment receives the wireless scanning signal through the general first wireless interface, is compatible with most scenes, and is convenient for quickly establishing data connection with the second equipment.
In one embodiment, step 103 comprises: step B1-step B2.
In step B1, when the signal strength of the received wireless scanning signal is greater than a preset signal strength threshold, a preset communication function of the second wireless interface is turned on.
In step B2, a data connection is established with a second device that transmits the wireless scanning signal through the second wireless interface.
The second wireless interface (e.g. port 2 in the foregoing example) is in a closed state (or referred to as a hidden state) by default, and when the first device discovers the second device through the first wireless interface and confirms that the second device is the same type of device, it is determined that the second device needs to perform synchronous operation, and then the second wireless interface is set in an open state, and a data connection is established with the second device through the second wireless interface.
For security, the first wireless interface is generally provided with a user name and a password, and the second device can establish a data connection with the first device after sending the correct user name and password to the first device. In this embodiment, the second wireless interface may not adopt a user name and a password, and the user does not need to configure the user name and the password on the second device, thereby reducing user operations. The second wireless interface is in a closed state under normal conditions, and the safety is also ensured.
In one embodiment, step 103 comprises: step C1-step C3.
In step C1, device information of the second device is obtained according to the received wireless scanning signal.
In step C2, it is determined whether the second device and the first device belong to the same type of device according to the device information.
In step C3, when the signal strength of the received wireless scanning signal is greater than a preset signal strength threshold and when it is determined that the second device and the first device belong to the same type of device, a data connection is established with a second device that sends the wireless scanning signal.
The first device broadcasts a signal over a first wireless interface. After receiving the broadcast signal, the second device feeds back a wireless scanning signal to the first device, where the fed-back wireless scanning signal may include device information of the second device, such as a device type, a device identifier, and the like. The first device receives the wireless scanning signal fed back by the second device through the first wireless interface, and acquires the device information of the second device. And judging whether the second equipment belongs to the same type of equipment as the second equipment according to the equipment information of the second equipment, and if the second equipment belongs to the same type of equipment as the second equipment and the signal intensity is very high, determining that synchronous operation is required. At this time, the second wireless interface may be turned on, and a data connection may be established with the second device through the second wireless interface. The data is then synchronized over the second wireless interface.
In one embodiment, before detecting whether the signal strength of the received wireless scanning signal is greater than a preset signal strength threshold, the method further includes: and D, step D.
In step D, a synchronization data instruction is received.
For example, the first device and the second device are both routers. A user establishes a data connection with a first device via a wireless terminal, such as a mobile terminal. The wireless terminal is installed with an app (application) for controlling the router, on which the user inputs a synchronization data instruction. The wireless terminal sends the synchronization data command to the first device, and the first device determines that a synchronization process needs to be initiated and starts to execute step 102.
For another example, the first device and the second device are both mobile terminals. The first device is installed with an app for controlling the router, on which the user inputs synchronization data instructions. The first device determines that a synchronization process needs to be initiated and begins to perform step 102.
The present embodiment provides an interface for controlling whether to synchronize data by a user.
The implementation is described in detail below by way of several embodiments.
Fig. 2 is a flow chart illustrating a method of synchronizing data, which may be implemented by a first device, as shown in fig. 2, according to an example embodiment, including the steps of:
in step 201, a synchronization data instruction is received.
In step 202, a wireless scanning signal is received.
In step 203, it is detected whether the signal strength of the received wireless scanning signal is greater than a preset signal strength threshold. When the signal strength of the received wireless scanning signal is greater than a preset signal strength threshold, continuing to step 204; and when the received signal intensity of the wireless scanning signal is not greater than a preset signal intensity threshold value, ending the process.
In step 204, device information of the second device is obtained according to the received wireless scanning signal.
In step 205, it is determined whether the second device and the first device belong to the same type of device according to the device information. Upon determining that the second device and the first device belong to the same class of device, continuing with step 206; and when the second equipment and the first equipment are determined not to belong to the same kind of equipment, ending the process.
In step 206, a data connection is established with a second device that transmits the wireless scanning signal.
In step 207, data is synchronized with the second device over the data connection.
Fig. 3 is a flow chart illustrating a method of synchronizing data, which may be implemented by a first device, as shown in fig. 3, according to an example embodiment, including the steps of:
in step 301, a wireless scanning signal is received via a first wireless interface in a manner to scan a terminal device.
In step 302, device information of the second device is obtained according to the received wireless scanning signal.
In step 303, it is detected whether the signal strength of the received wireless scanning signal is greater than a preset signal strength threshold. When the signal strength of the received wireless scanning signal is greater than a preset signal strength threshold, continuing to step 304; and when the received signal intensity of the wireless scanning signal is not greater than a preset signal intensity threshold value, ending the process.
In step 304, a communication function of the second wireless interface is turned on.
In step 305, a data connection is established with a second device that transmits the wireless scanning signal through the second wireless interface.
In step 306, data is synchronized with the second device over the data connection.
The above embodiments can be combined in various ways according to actual needs.
The above description is directed to the implementation process of the synchronization data, which is implemented by the mobile terminal or the router, and the following description is directed to the internal structure and function of the device.
FIG. 4 is a schematic diagram illustrating an apparatus for synchronizing data in accordance with an example embodiment. Referring to fig. 4, the apparatus includes: a first receiving module 401, a detecting module 402, a connecting module 403 and a synchronizing module 404.
The first receiving module 401 is configured to receive a wireless scanning signal.
A detecting module 402, configured to detect whether the signal strength of the received wireless scanning signal is greater than a preset signal strength threshold.
A connection module 403, configured to establish a data connection with a second device that sends the wireless scanning signal when the signal strength of the received wireless scanning signal is greater than a preset signal strength threshold; the second device and the first device belong to the same type of device and have the same device type.
A synchronization module 404, configured to synchronize data with the second device through the data connection.
In one embodiment, as shown in fig. 5, the first receiving module 401 includes: a first receiving submodule 501.
The first receiving submodule 501 is configured to receive a wireless scanning signal through a first wireless interface in a manner of scanning a terminal device.
In one embodiment, as shown in fig. 6, the connection module 403 includes: an open sub-module 601 and a create sub-module 602.
The starting sub-module 601 is configured to start a communication function of a preset second wireless interface when the signal strength of the received wireless scanning signal is greater than a preset signal strength threshold.
The establishing submodule 602 is configured to establish a data connection with a second device that sends the wireless scanning signal through the second wireless interface.
In one embodiment, as shown in fig. 7, the connection module 403 includes:
the obtaining sub-module 701 is configured to obtain device information of the second device according to the received wireless scanning signal.
A determining submodule 702, configured to determine, according to the device information, whether the second device and the first device belong to the same type of device.
The second establishing sub-module 703 is configured to establish a data connection with a second device that sends the wireless scanning signal when the signal strength of the received wireless scanning signal is greater than a preset signal strength threshold and when it is determined that the second device and the first device belong to the same type of device.
In one embodiment, as shown in fig. 8, the apparatus further comprises: a second receiving module 801.
A second receiving module 801, configured to receive a synchronization data instruction.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 9 is a block diagram illustrating an apparatus 900 for synchronizing data in accordance with an example embodiment. For example, the apparatus 900 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 9, apparatus 900 may include one or more of the following components: processing component 902, memory 904, power component 906, multimedia component 908, audio component 910, input/output (I/O) interface 912, sensor component 914, and communication component 916.
The processing component 902 generally controls overall operation of the device 900, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing component 902 may include one or more processors 920 to execute instructions to perform all or a portion of the steps of the methods described above. Further, processing component 902 can include one or more modules that facilitate interaction between processing component 902 and other components. For example, the processing component 902 can include a multimedia module to facilitate interaction between the multimedia component 908 and the processing component 902.
The memory 904 is configured to store various types of data to support operation at the apparatus 900. Examples of such data include instructions for any application or method operating on device 900, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 904 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 906 provides power to the various components of the device 900. The power components 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power supplies for the device 900.
The multimedia component 908 comprises a screen providing an output interface between the device 900 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 900 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 910 is configured to output and/or input audio signals. For example, audio component 910 includes a Microphone (MIC) configured to receive external audio signals when apparatus 900 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 904 or transmitted via the communication component 916. In some embodiments, audio component 910 also includes a speaker for outputting audio signals.
I/O interface 912 provides an interface between processing component 902 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 914 includes one or more sensors for providing status assessment of various aspects of the apparatus 900. For example, sensor assembly 914 may detect an open/closed state of device 900, the relative positioning of components, such as a display and keypad of device 900, the change in position of device 900 or a component of device 900, the presence or absence of user contact with device 900, the orientation or acceleration/deceleration of device 900, and the change in temperature of device 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 914 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 916 is configured to facilitate communications between the apparatus 900 and other devices in a wired or wireless manner. The apparatus 900 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 900 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 904 comprising instructions, executable by the processor 920 of the apparatus 900 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
An apparatus for synchronizing data, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving a wireless scanning signal;
detecting whether the signal intensity of the received wireless scanning signal is greater than a preset signal intensity threshold value;
when the received signal intensity of the wireless scanning signal is greater than a preset signal intensity threshold value, establishing data connection with a second device which sends the wireless scanning signal; the second equipment and the first equipment belong to the same type of equipment and have the same equipment type;
synchronizing data with the second device through the data connection.
The processor may be further configured to:
the receiving the wireless scanning signal comprises:
and receiving a wireless scanning signal in a mode of scanning the terminal equipment through the first wireless interface.
The processor may be further configured to:
when the received signal strength of the wireless scanning signal is greater than a preset signal strength threshold, establishing data connection with a second device sending the wireless scanning signal, including:
when the signal intensity of the received wireless scanning signal is greater than a preset signal intensity threshold value, starting a communication function of a preset second wireless interface;
and establishing data connection with a second device which sends the wireless scanning signal through the second wireless interface.
The processor may be further configured to:
when the received signal strength of the wireless scanning signal is greater than a preset signal strength threshold, establishing data connection with a second device sending the wireless scanning signal, including:
acquiring device information of the second device according to the received wireless scanning signal;
judging whether the second equipment and the first equipment belong to the same kind of equipment or not according to the equipment information;
and when the received signal intensity of the wireless scanning signal is greater than a preset signal intensity threshold value and when the second equipment and the first equipment are determined to belong to the same kind of equipment, establishing data connection with the second equipment which sends the wireless scanning signal.
The processor may be further configured to:
before detecting whether the signal strength of the received wireless scanning signal is greater than a preset signal strength threshold, the method further includes:
a synchronization data instruction is received.
A non-transitory computer readable storage medium having instructions therein which, when executed by a processor of a mobile terminal, enable the mobile terminal to perform a method of synchronizing data, the method comprising:
receiving a wireless scanning signal;
detecting whether the signal intensity of the received wireless scanning signal is greater than a preset signal intensity threshold value;
when the received signal intensity of the wireless scanning signal is greater than a preset signal intensity threshold value, establishing data connection with a second device which sends the wireless scanning signal; the second equipment and the first equipment belong to the same type of equipment and have the same equipment type;
synchronizing data with the second device through the data connection.
The instructions in the storage medium may further include:
the receiving the wireless scanning signal comprises:
and receiving a wireless scanning signal in a mode of scanning the terminal equipment through the first wireless interface.
The instructions in the storage medium may further include:
when the received signal strength of the wireless scanning signal is greater than a preset signal strength threshold, establishing data connection with a second device sending the wireless scanning signal, including:
when the signal intensity of the received wireless scanning signal is greater than a preset signal intensity threshold value, starting a communication function of a preset second wireless interface;
and establishing data connection with a second device which sends the wireless scanning signal through the second wireless interface.
The instructions in the storage medium may further include:
when the received signal strength of the wireless scanning signal is greater than a preset signal strength threshold, establishing data connection with a second device sending the wireless scanning signal, including:
acquiring device information of the second device according to the received wireless scanning signal;
judging whether the second equipment and the first equipment belong to the same kind of equipment or not according to the equipment information;
and when the received signal intensity of the wireless scanning signal is greater than a preset signal intensity threshold value and when the second equipment and the first equipment are determined to belong to the same kind of equipment, establishing data connection with the second equipment which sends the wireless scanning signal.
The instructions in the storage medium may further include:
before detecting whether the signal strength of the received wireless scanning signal is greater than a preset signal strength threshold, the method further includes:
a synchronization data instruction is received.
Fig. 10 is a block diagram illustrating an apparatus 1000 for synchronizing data in accordance with an example embodiment. For example, the apparatus 1000 may be provided as a computer. Referring to fig. 10, the apparatus 1000 includes a processing component 1022 that further includes one or more processors and memory resources, represented by memory 1032, for storing instructions, such as application programs, that are executable by the processing component 1022. The application programs stored in memory 1032 may include one or more modules that each correspond to a set of instructions. Further, the processing component 1022 is configured to execute instructions to synchronize data in a manner as described above.
The device 1000 may also include a power supply component 1026 configured to perform power management for the device 1000, a wired or wireless network interface 1050 configured to connect the device 1000 to a network, and an input/output (I/O) interface 1058. The apparatus 1000 may operate based on an operating system stored in memory 1032, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A method for synchronizing data, applied to a first device, comprising:
receiving a wireless scanning signal;
detecting whether the signal intensity of the received wireless scanning signal is greater than a preset signal intensity threshold value;
when the received signal intensity of the wireless scanning signal is greater than a preset signal intensity threshold value, establishing data connection with a second device which sends the wireless scanning signal; the second equipment and the first equipment belong to the same type of equipment and have the same equipment type;
synchronizing data with the second device over the data connection;
when the received signal strength of the wireless scanning signal is greater than a preset signal strength threshold, establishing data connection with a second device sending the wireless scanning signal, including:
when the signal intensity of the received wireless scanning signal is greater than a preset signal intensity threshold value, starting a communication function of a preset second wireless interface; wherein the first device comprises: the first wireless interface is provided with a user name and a password, and the second wireless interface is not provided with the user name and the password;
and establishing data connection with a second device which sends the wireless scanning signal through the second wireless interface.
2. The method of synchronizing data according to claim 1, wherein said receiving a wireless scanning signal comprises:
and receiving a wireless scanning signal in a mode of scanning the terminal equipment through the first wireless interface.
3. The method of claim 1, wherein the establishing a data connection with a second device that transmits the wireless scanning signal when the received signal strength of the wireless scanning signal is greater than a preset signal strength threshold value comprises:
acquiring device information of the second device according to the received wireless scanning signal;
judging whether the second equipment and the first equipment belong to the same kind of equipment or not according to the equipment information;
and when the received signal intensity of the wireless scanning signal is greater than a preset signal intensity threshold value and when the second equipment and the first equipment are determined to belong to the same kind of equipment, establishing data connection with the second equipment which sends the wireless scanning signal.
4. The method of synchronizing data according to claim 1, wherein before detecting whether the signal strength of the received wireless scanning signal is greater than a preset signal strength threshold, the method further comprises:
a synchronization data instruction is received.
5. An apparatus for synchronizing data, comprising:
the first receiving module is used for receiving the wireless scanning signal;
the detection module is used for detecting whether the signal intensity of the received wireless scanning signal is greater than a preset signal intensity threshold value;
the connection module is used for establishing data connection with a second device which sends the wireless scanning signal when the signal intensity of the received wireless scanning signal is greater than a preset signal intensity threshold value; the second equipment and the first equipment belong to the same equipment and have the same equipment type; the first device is the device for synchronizing data;
a synchronization module for synchronizing data with the second device via the data connection;
the connection module includes:
the starting submodule is used for starting a communication function of a preset second wireless interface when the signal intensity of the received wireless scanning signal is greater than a preset signal intensity threshold value; wherein the first device comprises: the first wireless interface is provided with a user name and a password, and the second wireless interface is not provided with the user name and the password;
and the first establishing submodule is used for establishing data connection with second equipment for sending the wireless scanning signal through the second wireless interface.
6. The apparatus for synchronizing data according to claim 5, wherein the first receiving module comprises:
and the first receiving submodule is used for receiving the wireless scanning signal in a mode of scanning the terminal equipment through the first wireless interface.
7. The apparatus for synchronizing data according to claim 5, wherein the connection module comprises:
the acquisition submodule is used for acquiring the equipment information of the second equipment according to the received wireless scanning signal;
the judging submodule is used for judging whether the second equipment and the first equipment belong to the same type of equipment or not according to the equipment information;
and the second establishing submodule is used for establishing data connection with second equipment which sends the wireless scanning signals when the signal intensity of the received wireless scanning signals is greater than a preset signal intensity threshold value and when the second equipment and the first equipment are determined to belong to the same kind of equipment.
8. The apparatus for synchronizing data according to claim 5, further comprising:
and the second receiving module is used for receiving the synchronous data instruction.
9. An apparatus for synchronizing data, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving a wireless scanning signal;
detecting whether the signal intensity of the received wireless scanning signal is greater than a preset signal intensity threshold value;
when the received signal intensity of the wireless scanning signal is greater than a preset signal intensity threshold value, establishing data connection with a second device which sends the wireless scanning signal; the second equipment and the first equipment belong to the same equipment and have the same equipment type; the first device is the device for synchronizing data;
synchronizing data with the second device over the data connection;
when the received signal strength of the wireless scanning signal is greater than a preset signal strength threshold, establishing data connection with a second device sending the wireless scanning signal, including:
when the signal intensity of the received wireless scanning signal is greater than a preset signal intensity threshold value, starting a communication function of a preset second wireless interface; wherein the first device comprises: the first wireless interface is provided with a user name and a password, and the second wireless interface is not provided with the user name and the password;
and establishing data connection with a second device which sends the wireless scanning signal through the second wireless interface.
10. A computer-readable storage medium having stored thereon computer instructions, which when executed by a processor, carry out the steps of the method according to any one of claims 1 to 4.
CN201710129417.1A 2017-03-06 2017-03-06 Method and device for synchronizing data Active CN107105005B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710129417.1A CN107105005B (en) 2017-03-06 2017-03-06 Method and device for synchronizing data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710129417.1A CN107105005B (en) 2017-03-06 2017-03-06 Method and device for synchronizing data

Publications (2)

Publication Number Publication Date
CN107105005A CN107105005A (en) 2017-08-29
CN107105005B true CN107105005B (en) 2021-03-02

Family

ID=59675823

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710129417.1A Active CN107105005B (en) 2017-03-06 2017-03-06 Method and device for synchronizing data

Country Status (1)

Country Link
CN (1) CN107105005B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111800836B (en) 2020-06-30 2024-01-16 北京小米移动软件有限公司 Communication method, device, electronic equipment and storage medium
CN112383642B (en) * 2021-01-16 2021-04-09 广州技象科技有限公司 Internet of things equipment data interaction method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102149167A (en) * 2010-02-10 2011-08-10 正崴精密工业股份有限公司 Method for automatic pairing to a wireless network
CN102958048A (en) * 2011-08-26 2013-03-06 中国移动通信集团山东有限公司 Method for optimal selection between WiFi (wireless fidelity) network and TD-SCDMA (time division-synchronous code division multiple access) network
CN103259921A (en) * 2013-03-01 2013-08-21 衡阳加一电子科技有限公司 Device paring method and device
CN104159188A (en) * 2014-08-28 2014-11-19 吴宇 Paring method for wireless devices
WO2014144058A3 (en) * 2013-03-15 2015-01-22 Whistle Labs, Inc. Detecting interaction among entities via proximity
CN104469735A (en) * 2014-10-30 2015-03-25 北京神州泰岳软件股份有限公司 SIM card application method and SIM card allocation method and device
CN105101467A (en) * 2015-07-14 2015-11-25 清华大学 Automatic equipment pairing method based on wireless signal intensity
CN106027807A (en) * 2016-07-26 2016-10-12 广东小天才科技有限公司 Data transmission method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102149167A (en) * 2010-02-10 2011-08-10 正崴精密工业股份有限公司 Method for automatic pairing to a wireless network
CN102958048A (en) * 2011-08-26 2013-03-06 中国移动通信集团山东有限公司 Method for optimal selection between WiFi (wireless fidelity) network and TD-SCDMA (time division-synchronous code division multiple access) network
CN103259921A (en) * 2013-03-01 2013-08-21 衡阳加一电子科技有限公司 Device paring method and device
WO2014144058A3 (en) * 2013-03-15 2015-01-22 Whistle Labs, Inc. Detecting interaction among entities via proximity
CN104159188A (en) * 2014-08-28 2014-11-19 吴宇 Paring method for wireless devices
CN104469735A (en) * 2014-10-30 2015-03-25 北京神州泰岳软件股份有限公司 SIM card application method and SIM card allocation method and device
CN105101467A (en) * 2015-07-14 2015-11-25 清华大学 Automatic equipment pairing method based on wireless signal intensity
CN106027807A (en) * 2016-07-26 2016-10-12 广东小天才科技有限公司 Data transmission method and device

Also Published As

Publication number Publication date
CN107105005A (en) 2017-08-29

Similar Documents

Publication Publication Date Title
US10237901B2 (en) Method and apparatus for connecting with controlled smart device, and storage medium
EP3076716A1 (en) Method and apparatus for network access
EP3163803B1 (en) Method and device for establishing connection
US20170188397A1 (en) Method and device for wireless connection establishment
CN108810866B (en) Method and device for connecting intelligent equipment and storage medium
CN106507437B (en) Intelligent equipment networking method and device
US11647425B2 (en) Methods and devices for reducing temperature for user equipment
US20170034776A1 (en) Method, apparatus, and system for smart device to access router
CN108811179B (en) Wireless network connection method, device and storage medium
EP2981116A1 (en) Method and apparatus for accessing wi-fi network and computer program product
CN109451838B (en) Method, device and storage medium for obtaining access control parameters
CN104219038A (en) Method and device for synchronizing data
CN111277984A (en) Wireless local area network access method and device
CN107454660B (en) Network residing method and device after authentication failure
CN113078921A (en) Data processing method, device and storage medium
WO2019119421A1 (en) Cell access method and device, and storage medium
CN109041145B (en) Communication method, communication device, terminal and storage medium
CN107105005B (en) Method and device for synchronizing data
CN104618987B (en) Access the method and device of network
CN106792570B (en) Positioning method and device
CN107371222B (en) Virtual card disabling method and device
CN107070707B (en) Method and device for determining initialization mode of router
CN105376318A (en) File transmission method, device and system
CN105991626A (en) Network access method and network access device
CN105472006A (en) File transfer method, device and system

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