CN112788140A - Data synchronization method and system - Google Patents

Data synchronization method and system Download PDF

Info

Publication number
CN112788140A
CN112788140A CN202110048349.2A CN202110048349A CN112788140A CN 112788140 A CN112788140 A CN 112788140A CN 202110048349 A CN202110048349 A CN 202110048349A CN 112788140 A CN112788140 A CN 112788140A
Authority
CN
China
Prior art keywords
equipment
target
network
distribution network
networking
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110048349.2A
Other languages
Chinese (zh)
Inventor
巫锦辉
肖百钦
白青昀
刘洪钊
李喜林
刘旭阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202110048349.2A priority Critical patent/CN112788140A/en
Publication of CN112788140A publication Critical patent/CN112788140A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network

Landscapes

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

Abstract

The application relates to a data synchronization method and a system, wherein the method comprises the following steps: determining the ID of the equipment which is not distributed in the network in which the main equipment is positioned; determining the ID of a target device in all IDs of devices which are not connected with the network; and sending the ID of the target equipment and the distribution network data to the master equipment, so that the ID of the target equipment and the distribution network data are transmitted in the distribution network through the master equipment, and the ID of the target equipment and the distribution network data are received by the target equipment. According to the method and the device, the network can be distributed only for the specified target device in the networking network, the problem that the device needing to be distributed cannot be selected by oneself is solved, and the user experience is optimized. Meanwhile, the target equipment is distributed through the networking network, so that the distribution network data can be transmitted in the networking network until the target equipment receives the distribution network data, the problem that the distribution network cannot be carried out due to too far distance between the intelligent terminal and the target equipment can be solved, and the distribution network operation of a user can be more convenient.

Description

Data synchronization method and system
Technical Field
The application relates to the technical field of smart home, in particular to a data synchronization method and system.
Background
With the improvement of living standard, various intelligent devices are added in the family, which becomes a necessary choice for the family. However, various intelligent devices in the existing household can involve the step of distribution network, and the distribution network has various modes, such as automatic distribution network, manual distribution network, Bluetooth distribution network and mesh (wireless mesh network) distribution network. With the improvement of the technological level, people increasingly pursue high-tech experiences, and for modern people, with the popularization of smart homes, the influence of the interconnection of everything, the household equipment needing to be distributed with a network is spread all over every corner of life. Therefore, the method for safely synchronizing the account number and the password of the home router to the whole home equipment is provided, so that the user experience can be better improved, the home intelligent equipment can be safer and more rapid to distribute, and the method is one of the user requirements which are most urgently needed to be solved by all the current intelligent manufacturers.
In the prior art, a mobile terminal and surrounding bluetooth devices form a network, and data packets are transmitted, relayed and received in the network through scanning, broadcasting and receiving modes of the bluetooth devices.
In view of the technical problems in the related art, no effective solution is provided at present.
Disclosure of Invention
In order to solve the technical problem that equipment needing to be distributed cannot be managed, the application provides a data synchronization method and a data synchronization system.
In a first aspect, an embodiment of the present application provides a data synchronization method, including:
determining the ID of the equipment which is not distributed in the network in which the main equipment is positioned;
determining the ID of a target device in all the IDs of the devices which are not distributed with the network; the target equipment ID is the equipment ID of the target equipment, and the target equipment is the equipment which is not distributed with the network and needs to be distributed in the networking network;
and sending the ID of the target equipment and the distribution network data to the main equipment, so that the ID of the target equipment and the distribution network data are transmitted in the networking network through the main equipment, and the ID of the target equipment and the distribution network data are received by the target equipment.
Optionally, as in the foregoing method, before determining that the ID of the non-network-distribution device is in the network configuration network where the master device is located, the method further includes:
acquiring signals broadcast by at least two candidate devices in a target area;
and determining the candidate equipment corresponding to the signal with the strongest signal strength as the main equipment in all the candidate equipment.
On the other hand, an embodiment of the present application provides a data synchronization method, including:
receiving and obtaining a target device ID and distribution network data sent by an intelligent terminal;
transmitting the ID of the target equipment and the distribution network data in a preset networking network; and enabling target equipment in the networking network to acquire the ID of the target equipment and the distribution network data, wherein the target equipment is non-distribution network equipment corresponding to the ID of the target equipment.
Optionally, as in the foregoing method, before the receiving obtains the target device ID and the distribution network data sent by the intelligent terminal, the method further includes:
in the networking network, broadcasting an equipment ID acquisition request sent by an intelligent terminal so as to enable equipment which is not configured with the network to scan to obtain the equipment ID acquisition request;
receiving the ID of the equipment which is not distributed with the network and is broadcasted by the equipment which is not distributed with the network according to the equipment ID acquisition request;
and sending the ID of the equipment without the distribution network to the intelligent terminal.
Optionally, as in the foregoing method, the method further includes:
receiving and obtaining a device ID acquisition request sent by an intelligent terminal;
generating a networking signal according to the equipment ID acquisition request;
and broadcasting the networking signals to establish communication among all the equipment which is not connected with the network according to the networking signals and obtain the networking network.
On the other hand, an embodiment of the present application provides a data synchronization method, including:
scanning to obtain a target device ID and distribution network data broadcasted by the main device;
when the ID of the target equipment is consistent with the ID of the local equipment, the distribution network data is stored;
and when the ID of the target equipment is inconsistent with the ID of the local equipment, broadcasting the ID of the target equipment and distribution network data in a preset networking network so that the target equipment corresponding to the ID of the target equipment receives the distribution network data and the ID of the target equipment.
Optionally, as in the foregoing method, before the scanning obtains the target device ID and the distribution network data broadcast by the master device, the method further includes:
scanning to obtain a device ID acquisition request broadcasted by the main device;
when the equipment ID acquisition request does not exist locally, broadcasting the local equipment ID;
and when the equipment ID acquisition request exists locally, broadcasting the equipment ID acquisition request in the networking network.
Optionally, as in the foregoing method, before the scanning obtains the device ID obtaining request broadcast by the master device, the method further includes:
acquiring a networking signal broadcasted by the main equipment; the networking signal is generated by the master device according to the device ID acquisition request;
and establishing communication with the master equipment according to the networking signals, and obtaining the networking network.
Optionally, as in the foregoing method, after the storing the distribution network data, the method further includes:
analyzing the distribution network data to obtain a network account and a password;
inquiring according to the network account to obtain a target network;
and connecting to the target network after passing the verification of the target network according to the password.
On the other hand, this application embodiment provides an intelligent terminal, includes:
the determining module is used for determining the ID of the non-distribution network equipment in the network configuration network where the main equipment is located;
the target determining module is used for determining the ID of the target equipment in all the IDs of the equipment which are not distributed with the network; the ID of the target device is the device ID of a target device, and the target device is a device which is not distributed with a network and needs to be distributed in the networking network;
and the sending module is used for sending the ID of the target equipment and the distribution network data to the main equipment, so that the ID of the target equipment and the distribution network data are transmitted in the networking network through the main equipment, and the target equipment receives the ID of the target equipment and the distribution network data.
On the other hand, the embodiment of the present application provides an intelligent device, including:
the receiving module is used for receiving and obtaining the ID of the target equipment and the distribution network data sent by the intelligent terminal;
the transmission module is used for transmitting the ID of the target equipment and the distribution network data in a preset networking network; and enabling target equipment in the networking network to acquire the ID of the target equipment and the distribution network data, wherein the target equipment is non-distribution network equipment corresponding to the ID of the target equipment.
On the other hand, the embodiment of the present application provides an intelligent device, including:
the scanning module is used for scanning to obtain the ID of the target equipment and the distribution network data broadcasted by the main equipment;
the first processing module is used for storing the distribution network data when the ID of the target equipment is consistent with the ID of the local equipment;
and the second processing module is used for broadcasting the target equipment ID and the distribution network data in a preset networking network when the target equipment ID is inconsistent with the local equipment ID, so that the target equipment corresponding to the target equipment ID receives the distribution network data and the target equipment ID.
On the other hand, an embodiment of the present application provides a data synchronization system, including: the intelligent terminal as described above, the intelligent device as described in any one of the preceding.
In another aspect, an embodiment of the present application provides an electronic device, including: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
the memory is used for storing a computer program;
the processor, when executing the computer program, is configured to implement the method according to any of the preceding claims.
In another aspect, an embodiment of the present application provides a storage medium, which includes a stored program, where the program executes the method according to any one of the preceding claims.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages:
the method provided by the embodiment of the application can realize that only the specified target equipment in the networking network is distributed, solves the problem that equipment needing to be distributed cannot be selected by oneself, and optimizes user experience. Meanwhile, the target equipment is distributed through the networking network, so that the distribution network data can be transmitted in the networking network until the target equipment receives the distribution network data, the problem that the distribution network cannot be carried out due to too far distance between the intelligent terminal and the target equipment can be solved, and the distribution network operation of a user can be more convenient.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a flowchart of a data synchronization method according to an embodiment of the present application;
fig. 2 is a flowchart of a data synchronization method according to another embodiment of the present application;
fig. 3 is a flowchart of a data synchronization method according to another embodiment of the present application;
fig. 4 is a block diagram of an intelligent terminal according to an embodiment of the present disclosure;
fig. 5 is a block diagram of an intelligent device provided in an embodiment of the present application;
fig. 6 is a block diagram of an intelligent device according to another embodiment of the present application;
FIG. 7 is a block diagram of a system provided by an embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is a data synchronization method provided in an embodiment of the present application, applied to an intelligent terminal, and includes the following steps a1 to A3:
step A1, determining the ID of the device without distribution network in the network distribution network where the master device is located.
Specifically, the master device and the device not connected to the network may be smart devices that can be networked with each other and can be connected to the internet, for example: intelligent stereo set, intelligent air conditioner, intelligent refrigerator etc..
The networking network can be a local area network obtained after networking is performed on the non-networking equipment and the main equipment; for example: a bluetooth network.
Each device in the networking network: the network distribution equipment and the non-network distribution equipment can be included, and the network distribution equipment and the non-network distribution equipment can be included; therefore, the master device may be a device already connected to the network or a device not connected to the network
That is to say, the intelligent terminal can show the IDs of devices which are not connected to the network in the networking network, so that the user can determine which devices are not connected to the network.
Step A2, determining the ID of the target device in all the IDs of devices which are not in the network distribution; the target device ID is the device ID of the target device, and the target device is a device which is not in the network distribution and needs to be in the network distribution network.
Specifically, the target device ID may be selected from all IDs of devices not in the network according to configuration operations of configuration personnel on the intelligent terminal.
Step a3, sending the target device ID and the distribution network data to the master device, so that the target device ID and the distribution network data are transmitted in the networking network through the master device, and the target device receives the target device ID and the distribution network data.
Specifically, the distribution network data may be data that is stored in advance on the intelligent terminal and used for a distribution network, and generally includes: a network account number and a password.
After the target equipment ID is determined, the distribution network data and the target equipment ID can be packaged to obtain packaged data, the packaged data are sent to the master equipment, the purpose of sending the packaged data to the networking network is achieved, and then the packaged data can be subjected to diffusion transmission in the networking network until the target equipment corresponding to the target equipment ID obtains the packaged data through scanning and receiving.
By the method in the embodiment, the network distribution can be realized only for the specified target equipment in the network configuration network, the problem that equipment needing to be distributed cannot be selected by oneself is solved, and the user experience is optimized. Meanwhile, the target equipment is distributed through the networking network, so that the distribution network data can be transmitted in the networking network until the target equipment receives the distribution network data, the problem that the distribution network cannot be carried out due to too far distance between the intelligent terminal and the target equipment can be solved, and the distribution network operation of a user can be more convenient.
In some embodiments, as the foregoing method, before the step a1 determines that the master device is in the networking network in which the non-network-distribution device ID of the non-network-distribution device is located, the method further includes the following steps a4 and a 5:
step a4, signals broadcast by at least two candidate devices in the target area are obtained.
Specifically, the target area may be an environment where devices requiring a distribution network are located.
The candidate device may be a device in the target area that is not connected to the network or a device in the network that is connected to the network.
One of the optional implementations may be: before the equipment needs to be distributed with a network, the intelligent terminal can call a Bluetooth interface, carry out Bluetooth pairing on nearby candidate equipment through a private protocol, and acquire Bluetooth signals broadcast by each candidate equipment.
Step a5, determining the candidate device corresponding to the signal with the strongest signal strength as the master device among all the candidate devices.
Specifically, after receiving the signals broadcast by each candidate device, the signal strength of each signal may be obtained by performing signal strength analysis; and then selecting the signal with the strongest signal strength from the signals, and taking the candidate device corresponding to the signal as the main device.
Since the signal is strongest in general, the distance is also the closest; therefore, when the main device needs to be selected from all the devices which are not connected with the network, the mobile terminal device can be subjected to data processing according to the Bluetooth intensity of different devices which are not connected with the network, and one device which is not connected with the network and is closest to the intelligent terminal is selected and set as the main device.
By the method in the embodiment, the communication quality between the main device and the intelligent terminal can be effectively guaranteed, and the target device ID and the distribution network data can be transmitted to the networking network more quickly, so that the distribution network efficiency is improved.
As shown in fig. 2, according to an embodiment of another aspect of the present application, there is further provided a data synchronization method, applied to the master device side, including the following steps B1 and B2:
and step B1, receiving and obtaining the target equipment ID and the distribution network data sent by the intelligent terminal.
Specifically, when the intelligent terminal needs to distribute a network to a certain target device, the target device ID and the network distribution data of the target device are sent to the master device.
Step B2, transmitting the ID of the target equipment and the distribution network data in a preset networking network; and enabling target equipment in the networking network to acquire the ID of the target equipment and the distribution network data, wherein the target equipment is non-distribution network equipment corresponding to the ID of the target equipment.
Specifically, after receiving and obtaining the target device ID and the distribution network data, the master device performs diffusion transmission on the target device ID and the distribution network data in the networking network, so that the target device can receive and obtain the target device ID and the distribution network data; when the master device judges that the target device ID is the device ID corresponding to the master device, the master device does not perform diffusion transmission on the target device ID and the distribution network data, and directly analyzes the distribution network data to obtain a network account and a password so as to connect to a target network corresponding to the network account.
In some embodiments, as the foregoing method, before the step B1 receives the target device ID and the distribution network data sent by the intelligent terminal, the method further includes the following steps B3 to B5:
step B3, in the networking network, broadcasting the equipment ID acquisition request sent by the intelligent terminal so as to enable the equipment which is not connected with the network to scan to obtain the equipment ID acquisition request;
specifically, the device ID obtaining request may be information used by the intelligent terminal to obtain an ID of a device not in a network in the target area, which is not in the network distribution; in an alternative implementation manner, the device ID acquisition request may be placed in a Beacon packet broadcasted by bluetooth.
And after receiving the device ID acquisition request, the master device may broadcast the device ID acquisition request in the networking network to be diffusively transmitted to each non-networking device.
Step B4, receiving the ID of the non-distribution network equipment broadcast by the non-distribution network equipment according to the equipment ID acquisition request;
specifically, after the non-distribution network device receives the device ID acquisition request, the ID of the non-distribution network device is read and obtained and is used as the ID of the non-distribution network device, and then the ID of the non-distribution network device is sent to the outside in a broadcasting (for example, bluetooth communication broadcasting) manner. Furthermore, the communication address (such as Bluetooth address) of the device without the network can also be broadcast.
The master device can scan and receive the ID of the device without the network distribution sent by the device without the network distribution through a scanning mode, and further, when the device without the network distribution broadcasts the communication address, the communication address can be obtained through scanning.
And step B5, sending the ID of the non-distribution network equipment to the intelligent terminal.
Specifically, after the ID of the device which is not connected with the network is obtained, the ID of the device which is not connected with the network can be sent to the intelligent terminal through communication with the intelligent terminal, so that the ID of the device which is not connected with the network can be displayed on an interactive interface by the intelligent terminal, and a user can determine the device which is not connected with the network and needs to be connected with the network through selection of the ID of the device which is not connected with the network according to preferences.
By the method in the embodiment, the ID of the equipment which is not distributed with the network and is not distributed with the network can be quickly obtained, so that a user can select the target equipment which needs to be distributed with the network through the ID of the equipment which is not distributed with the network.
In some embodiments, the method as described above, further comprising steps B6-B8 as described below:
and step B6, receiving and obtaining the equipment ID obtaining request sent by the intelligent terminal.
Step B7, according to the equipment ID obtaining request, generating networking signals;
and step B8, broadcasting the networking signals to establish communication among all the devices which are not connected with the network according to the networking signals and obtain a networking network.
Specifically, when the master device receives the device ID acquisition request, the networking operation is performed according to the device ID acquisition request:
the networking signals can be generated in a mode of broadcasting the Bluetooth hotspots, and after the networking signals are received by other non-networking equipment except the main equipment, the networking signals can be paired with the main equipment to form a networking network; furthermore, after the pairing is completed, the other devices which are not connected with the network except the master device can also broadcast the networking signals, so that the devices which are not connected with the network and cannot directly receive the networking signals of the master device can be added into the networking network according to the networking signals of the other devices which are not connected with the network.
As shown in fig. 3, according to an embodiment of another aspect of the present application, there is also provided a data synchronization method, including the following steps C1 to C3:
and step C1, scanning to obtain the ID of the target device broadcast by the main device and the distribution network data.
Specifically, after the main device broadcast receives the target device ID and the distribution network data from the intelligent terminal, the other devices not in the distribution network except the main device in the distribution network can acquire the target device ID and the distribution network data broadcasted by the main device in a scanning manner.
And step C2, when the ID of the target device is consistent with the ID of the local device, saving the distribution network data.
Specifically, the local device ID is a device ID stored locally in the device that has scanned the target device ID.
When the target device ID and the distribution network data are obtained by scanning of the non-distribution network device and the target device ID is judged to be consistent with the local device ID, the distribution network data can be determined to be used for networking, and therefore the distribution network data are stored.
And step C3, broadcasting the target device ID and the distribution network data in a preset networking network when the target device ID is inconsistent with the local device ID, so that the target device corresponding to the target device ID receives the distribution network data and the target device ID.
Specifically, after the non-network-distribution device scans to obtain the target device ID and the network-distribution data, and when it is determined that the target device ID is inconsistent with the local device ID, it may be determined that the network-distribution data is used for networking other non-network-distribution devices, so that the target device ID and the network-distribution data are broadcasted in the preset networking network, so that the target device corresponding to the target device ID receives the network-distribution data and the target device ID.
By the method in the embodiment, the target equipment is distributed through the networking network, so that the distribution network data can be transmitted in the networking network until the target equipment receives the distribution network data, the problem that the distribution network cannot be carried out due to too far distance between the intelligent terminal and the target equipment can be solved, and the distribution network operation of a user can be more convenient. In some embodiments, as the foregoing method, before the step C1 scans the target device ID broadcasted by the master device and the distribution network data, the method further includes the following steps C4 to C6:
step C4, the device ID acquisition request broadcast by the master device is scanned. Step C5, when the device ID acquisition request does not exist locally, broadcasts the local device ID.
Step C6, when the device ID acquisition request exists locally, the device ID acquisition request is broadcasted in the networking network.
Specifically, the device ID obtaining request may be information used by the intelligent terminal to obtain an ID of a device not in a network in the target area, which is not in the network distribution; in an alternative implementation manner, the device ID acquisition request may be placed in a Beacon packet broadcasted by bluetooth.
And after receiving the device ID acquisition request, the master device may broadcast the device ID acquisition request in the networking network to be diffusively transmitted to each non-networking device.
Specifically, after the device ID acquisition request is obtained without scanning of the distribution network device, whether the device ID acquisition request is received for the first time is determined by inquiring whether the device ID acquisition request exists locally; when the network distribution equipment ID is the first time, the ID of the network distribution equipment is read and obtained and is used as the ID of the equipment which is not distributed with the network, and then the ID of the equipment which is not distributed with the network is sent to the outside in a broadcasting mode (for example, Bluetooth communication broadcasting). Furthermore, the communication address (such as Bluetooth address) of the device without the network can also be broadcast.
When the local equipment ID acquisition request exists, judging that the operation of the non-distribution network equipment ID broadcasting is performed before by the non-distribution network equipment, so that the equipment ID acquisition request does not need to be broadcasted again, and performing diffusion transmission on the equipment ID acquisition request, so that other non-distribution network equipment which does not receive the equipment ID acquisition request can receive the equipment ID acquisition request through the broadcasting of the equipment ID acquisition request and broadcast the own equipment ID outwards.
The master device can scan and receive the ID of the device without the network distribution sent by the device without the network distribution through a scanning mode, and further, when the device without the network distribution broadcasts the communication address, the communication address can be obtained through scanning.
By the method in the embodiment, the ID of the equipment which is not distributed with the network and is not distributed with the network can be quickly obtained, so that a user can select the target equipment which needs to be distributed with the network through the ID of the equipment which is not distributed with the network.
In some embodiments, as the method described above, before the step C4 scans for the device ID obtaining request broadcast by the master device, the method further includes the following steps C7 and C8:
step C7, acquiring a networking signal broadcasted by the main device; the networking signal is generated for the master device according to the device ID acquisition request;
and step C8, establishing communication with the master device according to the networking signals, and obtaining a networking network.
Specifically, the specific implementation manner of this embodiment may refer to the related contents of steps B6 to B8 in the foregoing embodiment, and will not be described herein again.
In some embodiments, as the foregoing method, after the step C2 saves the distribution network data, the method further includes the following steps P1 to P3:
step P1, analyzing the distribution network data to obtain a network account and a password;
step P2, obtaining a target network according to the network account query;
step P3, after passing the target network's authentication based on the password, connects to the target network.
That is to say, when the non-distribution network equipment determines that the target equipment ID is consistent with the local equipment ID, the distribution network data is analyzed to obtain a network account and a password; then, searching signals according to the network account, and inquiring to obtain a target network corresponding to the network account, wherein the account of the target network is consistent with the network account; when the target network needs password verification to be connected, the password can be used as verification information to pass the verification of the router corresponding to the target network; and after the verification is passed, connecting to the target network.
By the method in the embodiment, the target device can be actively connected to the target network according to the distribution network data without manually operating and networking the target device, configuration work can be greatly simplified, and the efficiency of the distribution network is improved.
As shown in fig. 4, according to an embodiment of another aspect of the present application, there is also provided a smart terminal 1, including:
the determining module 11 is configured to determine an ID of a non-network-distribution device of the non-network-distribution device in a network configuration network where the master device is located;
the target determining module 12 is configured to determine a target device ID among all IDs of devices not in a network; the ID of the target device is the device ID of the target device, and the target device is a device which is not distributed with the network and needs to be distributed in the networking network;
the sending module 13 is configured to send the target device ID and the distribution network data to the master device, so that the target device ID and the distribution network data are transmitted in the networking network through the master device, and the target device receives the target device ID and the distribution network data.
Specifically, the specific process of implementing the functions of each module in the apparatus according to the embodiment of the present invention may refer to the related description in the method embodiment, and is not described herein again.
As shown in fig. 5, according to an embodiment of another aspect of the present application, there is also provided a smart device 2, including:
the receiving module 21 is configured to receive the target device ID and the distribution network data sent by the intelligent terminal;
the transmission module 22 is configured to transmit the target device ID and the distribution network data in a preset network; and enabling target equipment in the networking network to acquire the ID of the target equipment and the distribution network data, wherein the target equipment is non-distribution network equipment corresponding to the ID of the target equipment.
Specifically, the specific process of implementing the functions of each module in the apparatus according to the embodiment of the present invention may refer to the related description in the method embodiment, and is not described herein again.
As shown in fig. 6, according to an embodiment of another aspect of the present application, there is also provided a smart device 3, including:
a scanning module 31, configured to scan to obtain a target device ID and distribution network data broadcast by a master device;
the first processing module 32 is configured to store the distribution network data when the target device ID is consistent with the local device ID;
the second processing module 33 is configured to broadcast the target device ID and the distribution network data in a preset networking network when the target device ID is inconsistent with the local device ID, so that the target device corresponding to the target device ID receives the distribution network data and the target device ID.
As shown in fig. 7, according to an embodiment of another aspect of the present application, there is also provided a data synchronization system including: the intelligent terminal 1 according to the foregoing embodiment, the intelligent device 2 according to the foregoing embodiment, and the intelligent device 3 according to the foregoing embodiment.
Specifically, the specific process of implementing the functions of each module in the apparatus according to the embodiment of the present invention may refer to the related description in the method embodiment, and is not described herein again.
According to another embodiment of the present application, there is also provided an electronic apparatus including: as shown in fig. 8, the electronic device may include: the system comprises a processor 1501, a communication interface 1502, a memory 1503 and a communication bus 1504, wherein the processor 1501, the communication interface 1502 and the memory 1503 complete communication with each other through the communication bus 1504.
A memory 1503 for storing a computer program;
the processor 1501 is configured to implement the steps of the above-described method embodiments when executing the program stored in the memory 1503.
The bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
The embodiment of the present application further provides a storage medium, where the storage medium includes a stored program, and the program executes the method steps of the foregoing method embodiment when running.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (15)

1. A method of data synchronization, comprising:
determining the ID of the equipment which is not distributed in the network in which the main equipment is positioned;
determining the ID of a target device in all the IDs of the devices which are not distributed with the network; the target equipment ID is the equipment ID of the target equipment, and the target equipment is the equipment which is not distributed with the network and needs to be distributed in the networking network;
and sending the ID of the target equipment and the distribution network data to the main equipment, so that the ID of the target equipment and the distribution network data are transmitted in the networking network through the main equipment, and the ID of the target equipment and the distribution network data are received by the target equipment.
2. The method according to claim 1, wherein before determining that the master device is in the networking network, the method further includes:
acquiring signals broadcast by at least two candidate devices in a target area;
and determining the candidate equipment corresponding to the signal with the strongest signal strength as the main equipment in all the candidate equipment.
3. A method of data synchronization, comprising:
receiving and obtaining a target device ID and distribution network data sent by an intelligent terminal;
transmitting the ID of the target equipment and the distribution network data in a preset networking network; and enabling target equipment in the networking network to acquire the ID of the target equipment and the distribution network data, wherein the target equipment is non-distribution network equipment corresponding to the ID of the target equipment.
4. The method of claim 3, wherein before the receiving obtains the target device ID and the distribution network data sent by the intelligent terminal, the method further comprises:
in the networking network, broadcasting an equipment ID acquisition request sent by an intelligent terminal so as to enable equipment which is not configured with the network to scan to obtain the equipment ID acquisition request;
receiving the ID of the equipment which is not distributed with the network and is broadcasted by the equipment which is not distributed with the network according to the equipment ID acquisition request;
and sending the ID of the equipment without the distribution network to the intelligent terminal.
5. The method of claim 3, further comprising:
is received by
An equipment ID acquisition request sent by the intelligent terminal;
generating a networking signal according to the equipment ID acquisition request;
and broadcasting the networking signals to establish communication among all the equipment which is not connected with the network according to the networking signals and obtain the networking network.
6. A method of data synchronization, comprising:
scanning to obtain a target device ID and distribution network data broadcasted by the main device;
when the ID of the target equipment is consistent with the ID of the local equipment, the distribution network data is stored;
and when the ID of the target equipment is inconsistent with the ID of the local equipment, broadcasting the ID of the target equipment and distribution network data in a preset networking network so that the target equipment corresponding to the ID of the target equipment receives the distribution network data and the ID of the target equipment.
7. The method of claim 6, further comprising, prior to the scanning obtaining the target device ID and the distribution network data broadcast by the master device:
scanning to obtain a device ID acquisition request broadcasted by the main device;
when the equipment ID acquisition request does not exist locally, broadcasting the local equipment ID;
and when the equipment ID acquisition request exists locally, broadcasting the equipment ID acquisition request in the networking network.
8. The method of claim 7, further comprising, before the scanning for a device ID acquisition request broadcast by the master device:
acquiring a networking signal broadcasted by the main equipment; the networking signal is generated by the master device according to the device ID acquisition request;
and establishing communication with the master equipment according to the networking signals, and obtaining the networking network.
9. The method of claim 6, wherein after saving the distribution network data, further comprising:
analyzing the distribution network data to obtain a network account and a password;
inquiring according to the network account to obtain a target network;
and connecting to the target network after passing the verification of the target network according to the password.
10. An intelligent terminal, comprising:
the determining module is used for determining the ID of the non-distribution network equipment in the network configuration network where the main equipment is located;
the target determining module is used for determining the ID of the target equipment in all the IDs of the equipment which are not distributed with the network; the ID of the target device is the device ID of a target device, and the target device is a device which is not distributed with a network and needs to be distributed in the networking network;
and the sending module is used for sending the ID of the target equipment and the distribution network data to the main equipment, so that the ID of the target equipment and the distribution network data are transmitted in the networking network through the main equipment, and the target equipment receives the ID of the target equipment and the distribution network data.
11. A smart device, comprising:
the receiving module is used for receiving and obtaining the ID of the target equipment and the distribution network data sent by the intelligent terminal;
the transmission module is used for transmitting the ID of the target equipment and the distribution network data in a preset networking network; and enabling target equipment in the networking network to acquire the ID of the target equipment and the distribution network data, wherein the target equipment is non-distribution network equipment corresponding to the ID of the target equipment.
12. A smart device, comprising:
the scanning module is used for scanning to obtain the ID of the target equipment and the distribution network data broadcasted by the main equipment;
the first processing module is used for storing the distribution network data when the ID of the target equipment is consistent with the ID of the local equipment;
and the second processing module is used for broadcasting the target equipment ID and the distribution network data in a preset networking network when the target equipment ID is inconsistent with the local equipment ID, so that the target equipment corresponding to the target equipment ID receives the distribution network data and the target equipment ID.
13. A data synchronization system, comprising: the intelligent terminal according to claim 10, the intelligent device according to claim 11 and the intelligent device according to claim 12.
14. An electronic device, comprising: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
the memory is used for storing a computer program;
the processor, when executing the computer program, implementing the method of any of claims 1-9.
15. A storage medium, characterized in that the storage medium comprises a stored program, wherein the program when executed performs the method of any of the preceding claims 1-9.
CN202110048349.2A 2021-01-14 2021-01-14 Data synchronization method and system Pending CN112788140A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110048349.2A CN112788140A (en) 2021-01-14 2021-01-14 Data synchronization method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110048349.2A CN112788140A (en) 2021-01-14 2021-01-14 Data synchronization method and system

Publications (1)

Publication Number Publication Date
CN112788140A true CN112788140A (en) 2021-05-11

Family

ID=75756005

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110048349.2A Pending CN112788140A (en) 2021-01-14 2021-01-14 Data synchronization method and system

Country Status (1)

Country Link
CN (1) CN112788140A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113923109A (en) * 2021-11-11 2022-01-11 珠海格力电器股份有限公司 Network distribution method, electronic equipment and storage medium
CN118382122A (en) * 2024-06-05 2024-07-23 深圳爱图仕创新科技股份有限公司 Networking method, networking system, terminal equipment and storage medium

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105307143A (en) * 2015-11-04 2016-02-03 广东欧珀移动通信有限公司 Network connection method and wireless soundbox
US20160132029A1 (en) * 2014-11-11 2016-05-12 Lincogn Technology Co Limited Method for configuring and controlling smart home products
CN108111375A (en) * 2017-11-27 2018-06-01 海尔优家智能科技(北京)有限公司 Equipment method of network entry, device, are waited to network and log equipment intelligent terminal
CN108924135A (en) * 2018-06-29 2018-11-30 百度在线网络技术(北京)有限公司 Method for network access and device
CN110139271A (en) * 2019-04-30 2019-08-16 普联技术有限公司 A kind of method, system and device that smart home device batch configuration networks
CN111083765A (en) * 2019-12-30 2020-04-28 四川虹美智能科技有限公司 Method for managing intelligent equipment, intelligent router and intelligent home system
CN111479283A (en) * 2020-04-16 2020-07-31 网经科技(苏州)有限公司 Method for adding nodes in wireless MESH network
CN111556477A (en) * 2020-04-26 2020-08-18 天津九安医疗电子股份有限公司 Method for establishing decentralized Bluetooth SIG mesh network and intelligent lighting system applying same
CN111586590A (en) * 2020-05-21 2020-08-25 四川虹美智能科技有限公司 Method, device and system for distributing network to equipment
CN111741513A (en) * 2020-06-18 2020-10-02 深圳市晨北科技有限公司 Network distribution method of Internet of things equipment and related equipment
CN111757356A (en) * 2020-06-23 2020-10-09 四川虹美智能科技有限公司 Equipment distribution network system and distribution network method thereof
CN111757355A (en) * 2020-06-23 2020-10-09 四川虹美智能科技有限公司 Equipment networking system and networking method thereof
CN111817866A (en) * 2019-04-11 2020-10-23 宁波方太厨具有限公司 Equipment network distribution method
CN111867001A (en) * 2020-07-24 2020-10-30 深圳创维数字技术有限公司 Intelligent equipment batch network distribution method, system and storage medium
CN112165713A (en) * 2020-09-30 2021-01-01 青岛海尔科技有限公司 Method, device, system and storage medium for intelligent equipment to access wireless network

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160132029A1 (en) * 2014-11-11 2016-05-12 Lincogn Technology Co Limited Method for configuring and controlling smart home products
CN105307143A (en) * 2015-11-04 2016-02-03 广东欧珀移动通信有限公司 Network connection method and wireless soundbox
CN108111375A (en) * 2017-11-27 2018-06-01 海尔优家智能科技(北京)有限公司 Equipment method of network entry, device, are waited to network and log equipment intelligent terminal
CN108924135A (en) * 2018-06-29 2018-11-30 百度在线网络技术(北京)有限公司 Method for network access and device
CN111817866A (en) * 2019-04-11 2020-10-23 宁波方太厨具有限公司 Equipment network distribution method
CN110139271A (en) * 2019-04-30 2019-08-16 普联技术有限公司 A kind of method, system and device that smart home device batch configuration networks
CN111083765A (en) * 2019-12-30 2020-04-28 四川虹美智能科技有限公司 Method for managing intelligent equipment, intelligent router and intelligent home system
CN111479283A (en) * 2020-04-16 2020-07-31 网经科技(苏州)有限公司 Method for adding nodes in wireless MESH network
CN111556477A (en) * 2020-04-26 2020-08-18 天津九安医疗电子股份有限公司 Method for establishing decentralized Bluetooth SIG mesh network and intelligent lighting system applying same
CN111586590A (en) * 2020-05-21 2020-08-25 四川虹美智能科技有限公司 Method, device and system for distributing network to equipment
CN111741513A (en) * 2020-06-18 2020-10-02 深圳市晨北科技有限公司 Network distribution method of Internet of things equipment and related equipment
CN111757356A (en) * 2020-06-23 2020-10-09 四川虹美智能科技有限公司 Equipment distribution network system and distribution network method thereof
CN111757355A (en) * 2020-06-23 2020-10-09 四川虹美智能科技有限公司 Equipment networking system and networking method thereof
CN111867001A (en) * 2020-07-24 2020-10-30 深圳创维数字技术有限公司 Intelligent equipment batch network distribution method, system and storage medium
CN112165713A (en) * 2020-09-30 2021-01-01 青岛海尔科技有限公司 Method, device, system and storage medium for intelligent equipment to access wireless network

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113923109A (en) * 2021-11-11 2022-01-11 珠海格力电器股份有限公司 Network distribution method, electronic equipment and storage medium
CN118382122A (en) * 2024-06-05 2024-07-23 深圳爱图仕创新科技股份有限公司 Networking method, networking system, terminal equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110545569B (en) Network distribution method and system of intelligent device and readable medium
CN111194067A (en) Network access method, device, related equipment and storage medium
US9173161B2 (en) Peer-to-peer pre-association discovery operations
CN110798493A (en) Network configuration method, device, terminal equipment and storage medium
CN107613530B (en) Router-based configuration method of Internet of things equipment and dual-frequency wireless router
CN105991380A (en) Household appliance network access method, router, and household appliance
CN111885680A (en) Method, system and core equipment for establishing network connection
CN112788140A (en) Data synchronization method and system
CN111934961B (en) Intelligent household network configuration method, equipment and computer readable storage medium
KR20120025114A (en) Apparatus and method for determining validity of wifi connection in wireless communication system
CN113543277B (en) Distribution network processing method and device and electronic equipment
CN111741509A (en) Network distribution method and device, storage medium and processor
CN114339789A (en) AP distribution network processing method and device
CN113965855A (en) Wireless microphone dynamic networking frequency alignment method and system
CN111107605A (en) Network distribution method of household electrical appliance and household electrical appliance
CN113824617A (en) Network distribution method, storage medium, household appliance and cloud server
CN110855535A (en) Gateway equipment, home equipment and connection method between gateway equipment and home equipment
CN114567919A (en) Network access method, device, equipment and storage medium
CN114205378A (en) Network distribution method and device of Internet of things equipment, storage medium and electronic device
EP4250685A1 (en) Network configuration method and apparatus for internet of things device
CN111182265B (en) Video monitoring equipment cascading method and device
CN111132266B (en) Terminal access method and system and cloud server
WO2010015971A1 (en) Method of operating a radio transceiver and radio transceiver
KR100449573B1 (en) Method and apparatus for recognizing superhigh speed data communication system
CN113395744B (en) Networking method and device of equipment, storage medium and electronic device

Legal Events

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

Application publication date: 20210511