CN113904891B - Method, device and equipment for sharing distribution network information in ad hoc network - Google Patents

Method, device and equipment for sharing distribution network information in ad hoc network Download PDF

Info

Publication number
CN113904891B
CN113904891B CN202111165719.7A CN202111165719A CN113904891B CN 113904891 B CN113904891 B CN 113904891B CN 202111165719 A CN202111165719 A CN 202111165719A CN 113904891 B CN113904891 B CN 113904891B
Authority
CN
China
Prior art keywords
equipment
distribution network
distance
hoc network
circle
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
CN202111165719.7A
Other languages
Chinese (zh)
Other versions
CN113904891A (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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202111165719.7A priority Critical patent/CN113904891B/en
Publication of CN113904891A publication Critical patent/CN113904891A/en
Application granted granted Critical
Publication of CN113904891B publication Critical patent/CN113904891B/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
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The invention discloses a method, a device and equipment for sharing distribution network information in an ad hoc network, wherein the method comprises the following steps: the second equipment establishes an ad hoc network with the first equipment by determining the distance between the second equipment and the first equipment, and sends an equipment list in a second friend circle of the second equipment to the first equipment, so that the equipment in the second friend circle of the second equipment, which is not added into the ad hoc network of the first equipment, is added into the first friend circle of the first equipment to establish the ad hoc network, and the distribution network information is obtained; and sending the distribution network information to other equipment in the ad hoc network except the distributed equipment. When the intelligent kitchen electricity distribution system is used, only one device in the ad hoc network is connected with the internet, other devices in the ad hoc network can directly use the shared hot spot and the shared password to carry out the distribution network, other complex operations are not needed to carry out the distribution network, the system is simpler and more portable, and the experience of a user on the intelligent kitchen electricity is enhanced.

Description

Method, device and equipment for sharing distribution network information in ad hoc network
Technical Field
The invention relates to the technical field of equipment networking, in particular to a method, a device and equipment for sharing distribution network information in an ad hoc network.
Background
Along with the popularization of intelligent house, the kitchen electricity industry also develops towards intellectuality gradually, various intelligence kitchen electricity is successively made out, in current intelligent equipment networking technical field, behind most kitchen electricity equipment need join in marriage net connection to the network, just can realize intellectuality, but current connection technology does not solve the swift demand when a plurality of equipment all need the networking, generally all needs the net of joining in marriage of one, for example join in marriage the net through inputing same hot information and password on different equipment, the step is repeated loaded down with trivial details.
Disclosure of Invention
Therefore, the invention aims to solve the technical problem that the distribution network process in the same series of kitchen and kitchen is complex, time-consuming and labor-consuming, and provides a distribution network information sharing method, device and equipment in an ad hoc network.
In order to achieve the purpose, the invention adopts the following technical scheme:
according to the first aspect, an embodiment of the present invention further discloses a method for sharing distribution network information in an ad hoc network, which is applied to a distributed network device in the ad hoc network, and includes: acquiring distribution network information; and sending the distribution network information to other equipment except the distributed equipment in the ad hoc network.
Optionally, the distribution network information includes: a name of a hotspot and a password corresponding to the hotspot.
According to a second aspect, an embodiment of the present invention further discloses a method for sharing distribution network information in an ad hoc network, which is applied to a device without a distribution network in the ad hoc network, and includes: and when the distribution network information sent by the distributed network equipment in the ad hoc network is received, the distribution network is carried out according to the received distribution network information sent by the distributed network equipment in the ad hoc network.
Optionally, before the distribution network is performed according to the received distribution network information sent by the distributed network device in the ad hoc network, the method further includes: and when a distribution network instruction is received, sending distribution network information to other equipment in the ad hoc network except the distributed equipment.
According to a third aspect, an embodiment of the present invention provides a device networking method, which is applied to a first device, and the device networking method includes: after adding a second device into a first friend circle white list of the first device, receiving a second friend circle white list of the second device, wherein the second friend circle white list comprises a second networking device establishing a second friend circle with the second device; and searching the second networked device contained in the second friend circle white list, and adding the second networked device into the first friend circle white list.
Optionally, the networking method of the device further includes: respectively obtaining the distance between any two devices in the first friend circle; determining an effective path according to the distance between any two devices in the first friend circle; and cutting off the maximum distance in the effective path when the first friend circle needs to be cut off.
Optionally, the respectively obtaining the distance between any two devices in the first circle of friends includes: receiving the distance between the second equipment and the first equipment, which is sent by the second equipment, and taking the distance between the second equipment and the first equipment as the distance information in the first circle of friends; receiving the distance between the second device and the second networked device sent by the second device, and taking the distance between the second device and the second networked device as the distance information in the first friend circle; after obtaining the first circle of friends white list of the first circle of friends, the method further comprises: sending a ranging command to the second networked device; and receiving the distance between the second networked device and the first device, which is sent by the second networked device, and taking the distance between the second networked device and the first device as the distance information in the first friend circle.
Optionally, the networking method of the device further includes: when two devices in the first friend circle meet a preset cut-off condition, determining an effective path between the two devices; screening out the maximum distance from the distances between all adjacent devices according to the distances between all adjacent devices in the effective path; and cutting off networking connection between the adjacent equipment corresponding to the maximum distance.
Optionally, the determining the valid path between the two devices includes: determining all paths between the two devices; respectively determining the distance between adjacent devices in each path according to the distance information in the first friend circle; obtaining the maximum distance of the path according to the distance between the adjacent devices in any path, traversing all paths between the two devices, and obtaining a plurality of maximum distances corresponding to all paths between the two devices; and screening out the minimum maximum distance from the maximum distances, and taking the path corresponding to the minimum maximum distance as an effective path between the two devices.
According to a fourth aspect, an embodiment of the present invention further discloses a device networking method, which is applied to a second device, and the device networking method includes: after the second device and the first device form a first circle of friends, sending a second circle of friends white list of the second device to the first device, so that the first device obtains the first circle of friends white list.
According to a fifth aspect, the present invention further discloses a distribution network information sharing apparatus in an ad hoc network, which is applied to a distribution network device in the ad hoc network, and includes: the distribution network information acquisition module is used for acquiring distribution network information; and the distribution network information sending module is used for sending distribution network information to other equipment except the distributed equipment in the ad hoc network.
According to a sixth aspect, the present invention further discloses a distribution network information sharing apparatus in an ad hoc network, which is applied to a device not in a distribution network in the ad hoc network, and includes: and the distribution network module is used for carrying out distribution network according to the received distribution network information sent by the distribution network equipment in the ad hoc network when a distribution network instruction is received.
According to a seventh aspect, an embodiment of the present invention further discloses an apparatus, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the steps of the method for sharing network information in an ad hoc network as described in the first aspect or any one of the optional embodiments of the second aspect, or to perform the steps of the method for sharing network information in an ad hoc network as described in the third aspect or any one of the optional embodiments of the fourth aspect.
According to an eighth aspect, the embodiments of the present invention also disclose a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the method for sharing network information in an ad-hoc network according to the first aspect, or any optional implementation of the second aspect, or implements the steps of the method for ad-hoc network of the device according to the third aspect, or any optional implementation of the fourth aspect.
The technical scheme of the invention has the following advantages:
1. according to the kitchen distribution network system, the distribution network information is sent to the equipment which is not distributed in the ad hoc network through the equipment which is distributed with the network in the ad hoc network, so that as long as one kitchen in the kitchen ad hoc network is electrically connected with the internet, when the equipment in other ad hoc networks is subjected to distribution network operation, the shared distribution network information can be directly used, other complex operations are not needed, the kitchen distribution network system is simpler and more portable, and the experience of a user on intelligent kitchen electricity is enhanced.
2. According to the invention, the second equipment establishes an ad hoc network with the first equipment by determining the distance between the second equipment and the first equipment, and sends the list of the equipment in the second friend circle of the second equipment to the first equipment, so that the equipment in the second friend circle of the second equipment, which is not added into the ad hoc network of the first equipment, is added into the first friend circle of the first equipment to establish the ad hoc network, thereby realizing that the friend circles are automatically established with each other to form the ad hoc network for the same series of products in the same kitchen, and further realizing the intelligent interconnection of kitchen electrical equipment in a partial degree.
Drawings
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 that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic flowchart of a distribution network information sharing method applied to an ad hoc network of a distributed network device in the ad hoc network according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a distribution network information sharing method applied to an ad hoc network without distribution network devices in the ad hoc network according to an embodiment of the present invention;
fig. 3 is a schematic flowchart illustrating a specific example of a distribution network information sharing method in an ad hoc network according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a networking method applied to a device of a first device in an embodiment of the present invention;
fig. 5 is a flowchart illustrating a networking method applied to a device of a second device in an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a distribution network information sharing apparatus applied in a distributed network device ad hoc network in an ad hoc network according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a distribution network information sharing apparatus applied in an ad hoc network without a distribution network device in the ad hoc network according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a computer device in an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In describing the present invention, it is noted that the term "and/or" as used in this specification and the appended claims refers to and includes any and all combinations of one or more of the associated listed items.
In addition, the technical features involved in the different embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
The embodiment of the invention discloses a distribution network information sharing method in an ad hoc network, which is applied to distributed network equipment in the ad hoc network as shown in figure 1, and comprises the following steps:
step 101, acquiring distribution network information.
And 102, sending the distribution network information to other equipment except the distributed equipment in the ad hoc network.
The distribution network information includes, but is not limited to, a name of a hotspot and a password corresponding to the hotspot, and may also include information such as an SSID of the hotspot.
The embodiment of the invention discloses a distribution network information sharing method in an ad hoc network, as shown in figure 2, applied to a device which is not distributed in the ad hoc network, and comprising the following steps:
step 201, when the distribution network information sent by the distributed network equipment in the ad hoc network is received, carrying out distribution according to the received distribution network information sent by the distributed network equipment in the ad hoc network.
Before the distribution network is carried out according to the received distribution network information sent by the distributed network equipment in the ad hoc network, when a distribution network instruction is received, the distribution network information is sent to other equipment except the distributed network equipment in the ad hoc network. The specific distribution network flow is shown in fig. 3.
On the basis, when a user needs to distribute a network to other kitchen appliances in a 'friend circle', the network can be distributed successfully immediately only by carrying out network distribution operation on the kitchen appliances (for example, pressing a network distribution key for 2 seconds for a long time), and related information is not required to be provided through auxiliary operation of a mobile phone, so that automatic and quick distribution is realized.
The kitchen electric distribution network has the advantages that when a user wants to distribute a network for other kitchen electric appliances in a home, the user does not need to operate the kitchen electric distribution network by himself or a person familiar with operation, the old or a nurse at home can simply operate the distribution network without the distribution network by the telephone, and then the kitchen electric control can be directly realized in a remote mode.
The embodiment of the invention discloses a device ad hoc network method, which is applied to first equipment and comprises the following steps:
step 401, after adding the second device into the first circle of friends white list of the first device, receiving a second circle of friends white list of the second device, where the second circle of friends white list includes a second networked device that establishes a second circle of friends with the second device.
As a further embodiment, before step 401, the method further includes: acquiring equipment information of second equipment to be networked; before acquiring the device information of the second device to be networked, the method further comprises the following steps: and searching the device to be networked. It should be noted that, in general, a plurality of devices to be networked are searched. The device information includes, but is not limited to, a name, a number, an identifier, and the like of the device.
In the embodiment of the present invention, multiple schemes may be adopted for adding the second device to the first circle of friends white list of the first device, for example, the second device and the first device perform circle scanning through a mobile phone, the second device and the first device perform circle grouping automatically if the second device and the first device are configured to the same user, the second device and the first device perform circle grouping through ranging, and the like.
Specifically, when the second device and the first device perform range finding and circle grouping, after obtaining the device information of the second device to be networked, the method further includes: sending a ranging command to the second equipment at a preset first power; and after receiving a networking command sent by the second equipment, adding the second equipment into a first friend circle white list of the first equipment.
In another case, after the networking command sent by the second device is not received, it is determined that the second device belongs to the verified list.
It should be noted that, in the embodiment of the present invention, the measured distance is an unobstructed straight line distance, and for the unobstructed straight line distance, an obstacle has a strong influence on signal attenuation, for example, the physical distance between the AB is only 1M, but the middle is separated by a wall, and it is likely that the actual measured distance is 10M away. Therefore, the adoption of the barrier-free straight line distance just meets the requirement that people need to distinguish kitchen appliances in different rooms.
Further, the first power is smaller than the communication power of the first device, because if the transmission signal strength is not reduced, the error ratio of the detected unobstructed straight-line distance is large, and reducing the transmission strength can effectively reduce the misjudgment. The change of the connection signal transmission power includes, but is not limited to, properly reducing the signal transmission power, and the distance can also be determined by increasing the signal transmission power, and reducing the signal transmission power is only a preferable situation to reduce the error.
Further, before sending the ranging command to the second device with the preset first power, the method further includes: acquiring the first circle of friends white list and the verified list; determining whether the second device is in the first circle of friends whitelist and the verified list; and when the second device is not in the first friend circle white list and the verified list, executing a step of sending a ranging command to the second device. That is, before sending the ranging command to the second device, it needs to be confirmed whether the ranging command has been sent to the second device before, and when the ranging command has not been sent (i.e. the second device is not in the first circle of friends white list and is not in the verified list), the ranging command is sent to the second device.
Step 402, searching the second networked device contained in the second friend circle white list, and adding the second networked device into the first friend circle white list.
When the first device sends a ranging command to the second device, the first device can appropriately change the transmission power of the connection signal through mutual agreement, detect the strength of the transmission signal of the other side, and perform multiple handshaking to confirm the distance between the first device and the second device.
For example, when a searches for a device B to be networked, a ranging command is sent to B; b, after receiving the ranging command signal, determining the distance between B and A; when the distance between the B and the A is smaller than or equal to the standard distance value, the A and the B form a first friend circle, namely the first friend circle of the A comprises the B in a white list; and if the second friend circle white list of the B comprises C and D, adding the C and the D into the first friend circle white list, namely, the first friend circle white list of the A comprises the B, the C and the D. In another case, after B receives the ranging command signal, the distance between B and A is determined; and when the distance between the B and the A is greater than the standard distance value, the A and the B can not form a first friend circle, and the B is classified into a verified list.
And because the floor area of the kitchen is smaller under the normal state, the distance between different kitchen appliances can be generally regarded as being within 3 meters of no obstacles, namely when the distance between the first device and the second device is less than or equal to 3 meters, the first device and the second device can be directly connected, the second device is listed in the circle of the first friend, and when the distance is greater than 3 meters, the second device is listed in the verified list of the first device.
As a further implementation manner, when a plurality of devices to be networked are searched, a next device to be networked in the plurality of devices to be networked is searched, the next device to be networked is used as the second device, and the plurality of devices to be networked are searched through traversal, so that a first circle of friends white list of the first circle of friends is obtained. That is, when a plurality of devices to be networked are searched, it is necessary to determine whether networking with each device to be networked is possible. The method for determining whether networking is possible with each device to be networked is the same as the steps 401 to 403 described above.
Further, the device ad hoc network method further comprises the following steps: receiving the distance between the second equipment and the first equipment sent by the second equipment, and taking the distance between the second equipment and the first equipment as the distance information in the first friend circle; receiving the distance between the second device and the second networked device, which is sent by the second device, and taking the distance between the second device and the second networked device as the distance information in the first friend circle; after obtaining the first circle of friends white list of the first circle of friends, the method further comprises: sending a ranging command to the second networked device; and receiving the distance between the second networked device and the first device, which is sent by the second networked device, and taking the distance between the second networked device and the first device as the distance information in the first friend circle.
It should be noted that the distance information in the first circle of friends includes a distance between any two devices in the white list of the first circle of friends, and may be stored in any one of the devices in the white list of the first circle of friends.
Wherein, equipment in the network deployment possesses communication module, and communication module can be in normal communication operating condition and try to search fast switch over in two kinds of states near equipment at the space of communication, and switching speed can reach second level, and then treats network deployment equipment through communication module search. For example, when a new nearby device is found, multiple handshakes can be performed to confirm the spacing between each other (which needs to be calibrated for each product at the time of production) by agreeing with each other to appropriately reduce the transmission power, detect the strength of the transmission signal of the other party, and so on. The communication module can be a WIFI module, and can also be any other communication module such as Bluetooth and zigbee which can realize communication and search functions.
As a further implementation, when two devices, such as a cigarette machine, which are not normally present at the same time, are included in an ad hoc network, which is contrary to the normal kitchen configuration, in order to ensure the networking accuracy, it is necessary to determine a weak link between the two devices, and to cut off the networking connection between the two devices at the weak link. For example, where the cut-off is made, the path length within the ad-hoc network may also be too long, contrary to normal kitchen configurations, and for example for a kitchen comprising six devices a, B, C, D, E, F, the distance between AB is 2 meters, BC is 2 meters, CD is 3 meters, DE is 2 meters, EF is 2 meters, and thus ABCDEF has a path length of 11 meters, whereas normally a domestic kitchen would not normally exceed 11 meters.
Specifically, in order to find out a weak link in the networking, the device ad hoc networking method further includes the following steps: (1) When two devices in the first friend circle meet a preset cut-off condition, determining an effective path between the two devices; (2) Screening out the maximum distance from the distances between all adjacent devices according to the distances between all adjacent devices in the effective path; (3) And cutting off the networking connection between the adjacent devices corresponding to the maximum distance.
Specifically, the following scheme may be adopted to determine the effective path between the two devices: determining all paths between the two devices; respectively determining the distance between adjacent devices in each path according to the distance information in the first friend circle; obtaining the maximum distance of the path according to the distance between the adjacent devices in any path, traversing all paths between the two devices, and obtaining a plurality of maximum distances corresponding to all paths between the two devices; and screening out the smallest maximum distance from the plurality of maximum distances, and taking the path corresponding to the smallest maximum distance as an effective path between the two devices. Illustratively, when the device A searches the devices B, C and D to be networked, a ranging command signal is sent;
b, after receiving the ranging command signal, determining the distance between the B and the A; when the distance between the B and the A is smaller than the standard distance value, the A and the B form a first friend circle; and if C and D are included in the white list of the friend circle of the B at the moment, adding the C and the D into the first friend circle, so that the A, the B, the C and the D form the first friend circle.
Suppose B determines from the ranging command that the distance between B and a is 1 meter and sends a distance between B and a of 1 meter to a. Meanwhile, the second friend circle of B records that the distance between B and C is 2 meters, the distance between B and D is 2.5 meters, the distance between C and D is 3 meters, B sends the distance between B and C is 2 meters, the distance between B and D is 2.5 meters, and the distance between C and D is 3 meters to A;
further, suppose that after a, B, C, and D form the first circle of friends, a still sends a ranging command signal to C and D, C determines that the distance to a is 2.8 meters after receiving the ranging command signal, and C sends the distance between C and a to a with 2.8 meters; and D determines that the distance between D and A is 2.9 meters after receiving the ranging command signal, and D sends the distance between D and A to A, wherein the distance between D and A is 2.9 meters.
The paths among the ADs include ABCD, ACBD, ABD, ACD and AD.
For the first path ABCD, AB =1,bc =2,cd =3, whereby the longest segment of AB, BC, CD is CD, that is to say the maximum distance between ABCDs is 3 meters;
for the second path ACBD, AC =2.8, CB =2, BD =2.5, and thus it can be seen that the longest segment of AC, CB, BD is AC, that is, the maximum distance between ACBDs is 2.8 meters;
for the third path ABD, AB =1,bd =2.5, whereby it can be seen that the longest segment of AB, BD is BD, that is to say the maximum distance between ABDs is 2.5 meters;
for the fourth route ACD, AC =2.8, CD =3, and it can be seen that the longest segment of AC and CD is CD, that is, the maximum distance between ACDs is 3 meters;
for the fifth active path AD, AD =2.9, i.e. the maximum distance of the AD is 2.9 meters.
The path with the smallest maximum distance is taken as the effective path, that is, the effective path between the ADs is ABD, because the maximum distance between the ABDs is 2.5 meters.
Thereby, when the first circle of friends needs to be cut, the maximum distance in the effective path, i.e. the maximum distance BD in the effective path ABD is cut.
The embodiment of the invention discloses a device ad hoc network method, which is applied to a second device and comprises the following steps:
step 501, when the distance between the second device and the first device is smaller than or equal to a preset standard distance, determining that the second device and the first device form a first circle of friends, and sending a second circle of friends white list of the second device to the first device, so that the first device obtains the first circle of friends white list.
Before the second device and the first device form a first circle of friends, the method further comprises: when a ranging command sent by first equipment is received, determining the distance between the second equipment and the first equipment according to the ranging command; and when the distance between the second equipment and the first equipment is smaller than or equal to a preset standard distance, judging that the second equipment and the first equipment form a first friend circle.
Further, determining the distance between the second device and the first device according to the ranging command comprises: acquiring first power when the first equipment sends the ranging command; acquiring a second power when the second device receives the ranging command; determining a distance between the second device and the first device according to the second power and the first power.
Illustratively, as an embodiment of the invention, when a cigarette machine finds an oven device in a kitchen, the distance between the cigarette machine and the oven is determined by reducing the signal transmission intensity, because the kitchen area is small, the mutual distances of different kitchen appliances are usually within a short distance (the common parameter in the present case is within 3 meters without obstacles), when the distance between the cigarette machine and the oven meets the short distance standard, the cigarette machine and the oven directly form an ad-hoc network, when the cigarette machine finds a rice cooker by reducing the signal transmission intensity, but the distance between the cigarette machine and the rice cooker exceeds the short distance standard, the cigarette machine abandons the networking operation with the rice, and by the above method, a friend circle is automatically established for the same series of products in the same kitchen, in the friend circle, some data acquired by the cigarette machine in real time is shared, so that the devices in the friend circle can receive the information, and the devices receiving the information selectively realize some 'linkage' functions according to the functions supported by the cigarette machine, so that users can experience the products more intelligently at the level.
The present invention also provides a distribution network information sharing apparatus in an ad hoc network, which is applied to a distribution network device in the ad hoc network, and as shown in fig. 6, the apparatus includes:
a distribution network information obtaining module 61, configured to obtain distribution network information, where the detailed content refers to step 101;
a distribution network information sending module 62, configured to send distribution network information to other devices in the ad hoc network except for the configured device, where details are described with reference to step 102.
The present invention also provides a distribution network information sharing apparatus in an ad hoc network, which is applied to a device without a distribution network in the ad hoc network, as shown in fig. 7, the apparatus includes:
the distribution network module 71 is configured to, when receiving a distribution network instruction, perform a distribution network according to the received distribution network information sent by the already-distributed network device in the ad hoc network, where details refer to step 201.
An embodiment of the present invention further provides a computer device, as shown in fig. 8, the computer device may include a processor 801 and a memory 802, where the processor 801 and the memory 802 may be connected by a bus or in another manner, and fig. 8 takes the example of being connected by a bus as an example.
The processor 801 may be a Central Processing Unit (CPU). The processor 801 may also be other general purpose processors, digital signal processors (DAPs), application specific Integrated circuits (AAICs), field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or any combination thereof.
The memory 802 is a non-transitory computer-readable storage medium, and can be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as program instructions/modules corresponding to the key shielding method of the distribution network information sharing device in the ad hoc network according to the embodiments of the present invention (for example, the distribution network information acquiring module 61 and the distribution network information sending module 62 shown in fig. 6 and the distribution network module 71 shown in fig. 7). The processor 801 executes various functional applications and data processing of the processor by running non-transitory software programs, instructions and modules stored in the memory 802, so as to implement the distribution network information sharing method in the ad hoc network in the above method embodiment.
The memory 802 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created by the processor 801, and the like. Further, the memory 802 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 802 optionally includes memory located remotely from the processor 801, which may be connected to the processor 801 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The one or more modules are stored in the memory 802 and when executed by the processor 801 perform a method for sharing distribution network information within an ad hoc network as in the embodiments of fig. 1-5.
The details of the computer device can be understood by referring to the corresponding descriptions and effects in the embodiments shown in fig. 1-3, and are not described herein again.
Those skilled in the art will appreciate that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can include the processes of the embodiments of the methods described above when executed. Wherein, the storage medium can be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a flash Memory (FlaAh Memory), a Hard disk (Hard DiAk Drive, abbreviated as HDD) or a solid state Drive (AAD), etc.; the storage medium may also comprise a combination of memories of the kind described above.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.

Claims (13)

1. A networking method of a device is applied to a first device, and is characterized by comprising the following steps:
after adding a second device into a first friend circle white list of the first device, receiving a second friend circle white list of the second device, wherein the second friend circle white list comprises a second networked device establishing a second friend circle with the second device;
searching the second networked device contained in the second friend circle white list, and adding the second networked device into the first friend circle white list;
after acquiring the device information of the second device to be networked, the method further comprises the following steps:
sending a ranging command to the second device with a preset first power, so that when the second device receives the ranging command, the second device determines an unobstructed straight-line distance between the second device and the first device according to the ranging command; when the barrier-free straight-line distance between the second device and the first device is smaller than or equal to a preset standard distance, determining that the second device and the first device form a first circle of friends, wherein the first power is smaller than the communication power of the first device;
and after a networking command sent by the second equipment is received, adding the second equipment into a first circle of friends white list of the first equipment.
2. The method of claim 1, further comprising:
respectively obtaining the distance between any two devices in the first friend circle;
determining an effective path according to the distance between any two devices in the first friend circle;
cutting off the maximum distance in the effective path when the first friend circle needs to be cut off;
the determining the valid path between the two devices comprises:
determining all paths between the two devices;
respectively determining the distance between adjacent devices in each path according to the distance information in the first friend circle;
obtaining the maximum distance of the path according to the distance between the adjacent devices in any path, traversing all paths between the two devices, and obtaining a plurality of maximum distances corresponding to all paths between the two devices;
and screening out the minimum maximum distance from the maximum distances, and taking the path corresponding to the minimum maximum distance as an effective path between the two devices.
3. The method of claim 2, wherein separately obtaining the distance between any two devices in the first circle of friends comprises:
receiving the distance between the second equipment and the first equipment sent by the second equipment, and taking the distance between the second equipment and the first equipment as the distance information in the first friend circle;
receiving the distance between the second device and the second networked device sent by the second device, and taking the distance between the second device and the second networked device as the distance information in the first friend circle;
after obtaining the first circle of friends white list of the first circle of friends, the method further comprises: sending a ranging command to the second networked device; and receiving the distance between the second networked device and the first device, which is sent by the second networked device, and taking the distance between the second networked device and the first device as the distance information in the first friend circle.
4. The method of claim 2, further comprising:
when two devices in the first friend circle meet a preset cut-off condition, determining an effective path between the two devices;
screening out the maximum distance from the distances between all adjacent devices according to the distances between all adjacent devices in the effective path;
and cutting off the networking connection between the adjacent devices corresponding to the maximum distance.
5. A networking method of a device is applied to a second device, and is characterized by comprising the following steps:
after the second device and the first device establish a first circle of friends, sending a second circle of friends white list of the second device to the first device, so that the first device obtains a first circle of friends white list;
the first device is a first device which executes the networking method of the device according to any one of claims 1 to 4.
6. A distribution network information sharing method in an ad hoc network is applied to the distributed network equipment in the ad hoc network, the distributed network equipment establishes the ad hoc network by using the method of one of claims 1 to 4 or claim 5, and the method is characterized by comprising the following steps:
acquiring distribution network information;
and sending the distribution network information to other equipment in the ad hoc network except the distributed equipment.
7. The method of claim 6, wherein the distribution network information comprises: a name of a hotspot and a password corresponding to the hotspot.
8. A distribution network information sharing method in an ad hoc network is applied to equipment without a distribution network in the ad hoc network, the equipment without the distribution network is built by using the method of one of claims 1 to 4 or claim 5, and the method is characterized by comprising the following steps:
and when the distribution network information sent by the distributed network equipment in the ad hoc network is received, distributing the network according to the received distribution network information sent by the distributed network equipment in the ad hoc network.
9. The method according to claim 8, further comprising, before performing distribution network according to the received distribution network information sent by the distributed network device in the ad hoc network, the following steps:
and when a distribution network instruction is received, the distribution network information is sent to other equipment except the distributed equipment in the ad hoc network.
10. A distribution network information sharing device in an ad hoc network is applied to the distributed network equipment in the ad hoc network, the distributed network equipment establishes the ad hoc network by using the method of one of claims 1 to 4 or claim 5, and the distribution network information sharing device is characterized by comprising the following steps:
the distribution network information acquisition module is used for acquiring distribution network information;
and the distribution network information sending module is used for sending distribution network information to other equipment except the distributed equipment in the ad hoc network.
11. A distribution network information sharing device in an ad hoc network is applied to non-distribution network equipment in the ad hoc network, the non-distribution network equipment establishes the ad hoc network by using the method of one of claims 1 to 4 or claim 5, and the distribution network information sharing device is characterized by comprising the following steps:
and the distribution network module is used for carrying out distribution network according to the received distribution network information sent by the distribution network equipment in the ad hoc network when a distribution network instruction is received.
12. An apparatus, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the steps of the networking method of the device of any one of claims 1-4 or claim 5, or to perform the steps of the networking information sharing method within an ad hoc network of any one of claims 6-7 or claims 8-9.
13. A computer readable storage medium, having stored thereon a computer program, characterized in that the computer program, when being executed by a processor, is adapted to carry out the steps of the networking method of the device of any of the claims 1-4 or 5, or the steps of the distribution network information sharing method within an ad hoc network of any of the claims 6-7 or 8-9.
CN202111165719.7A 2021-09-30 2021-09-30 Method, device and equipment for sharing distribution network information in ad hoc network Active CN113904891B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111165719.7A CN113904891B (en) 2021-09-30 2021-09-30 Method, device and equipment for sharing distribution network information in ad hoc network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111165719.7A CN113904891B (en) 2021-09-30 2021-09-30 Method, device and equipment for sharing distribution network information in ad hoc network

Publications (2)

Publication Number Publication Date
CN113904891A CN113904891A (en) 2022-01-07
CN113904891B true CN113904891B (en) 2023-03-10

Family

ID=79190177

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111165719.7A Active CN113904891B (en) 2021-09-30 2021-09-30 Method, device and equipment for sharing distribution network information in ad hoc network

Country Status (1)

Country Link
CN (1) CN113904891B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102883403A (en) * 2012-10-09 2013-01-16 常熟理工学院 Construction method for mobile ad hoc network
CN104654524A (en) * 2015-02-02 2015-05-27 珠海格力电器股份有限公司 Air conditioner cluster control method, control device and air conditioner management system
CN111083759A (en) * 2019-12-31 2020-04-28 展讯通信(上海)有限公司 Network establishing method of ad hoc network
CN111669228A (en) * 2020-05-29 2020-09-15 中国科学院声学研究所东海研究站 UUV cluster ad hoc network method and system based on underwater acoustic communication
CN112165727A (en) * 2020-09-09 2021-01-01 杭州涂鸦信息技术有限公司 Parallel network distribution system and method and mobile terminal
WO2021063059A1 (en) * 2019-09-30 2021-04-08 珠海格力电器股份有限公司 Networking method and apparatus, bluetooth device, and computer-readable medium
CN112822690A (en) * 2021-03-15 2021-05-18 广西电网有限责任公司柳州供电局 Star network multi-center node merging method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013065241A (en) * 2011-09-20 2013-04-11 Dainippon Printing Co Ltd Space sharing system, server, user terminal, space sharing method and program
CN103426042B (en) * 2012-05-15 2016-04-13 腾讯科技(深圳)有限公司 The group technology of social networks and system
CN106487533A (en) * 2015-08-27 2017-03-08 九玉(北京)科技有限公司 A kind of method and device set up circle of friends and communicated based on circle of friends
CN106886189A (en) * 2017-04-21 2017-06-23 厦门狄耐克物联智慧科技有限公司 A kind of method of the intelligent door lock interconnection communication based on internet

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102883403A (en) * 2012-10-09 2013-01-16 常熟理工学院 Construction method for mobile ad hoc network
CN104654524A (en) * 2015-02-02 2015-05-27 珠海格力电器股份有限公司 Air conditioner cluster control method, control device and air conditioner management system
WO2021063059A1 (en) * 2019-09-30 2021-04-08 珠海格力电器股份有限公司 Networking method and apparatus, bluetooth device, and computer-readable medium
CN111083759A (en) * 2019-12-31 2020-04-28 展讯通信(上海)有限公司 Network establishing method of ad hoc network
CN111669228A (en) * 2020-05-29 2020-09-15 中国科学院声学研究所东海研究站 UUV cluster ad hoc network method and system based on underwater acoustic communication
CN112165727A (en) * 2020-09-09 2021-01-01 杭州涂鸦信息技术有限公司 Parallel network distribution system and method and mobile terminal
CN112822690A (en) * 2021-03-15 2021-05-18 广西电网有限责任公司柳州供电局 Star network multi-center node merging method

Also Published As

Publication number Publication date
CN113904891A (en) 2022-01-07

Similar Documents

Publication Publication Date Title
EP3142017B1 (en) Network connectivity methods and systems
CN107534914B (en) Network switching method and device
CN108770008A (en) Configuration method, device and the storage medium that household appliance networks
WO2018049823A1 (en) Automatic network distribution method, apparatus and device, and repeater
CN112911671B (en) Method and device for constructing topology networking architecture
CN105306318A (en) Intelligent scene configuration method and device and server
CN106211271A (en) The method of network entry of intelligent home device, device and intelligent home device
US20230291799A1 (en) Method and Apparatus of Network Configuration for Internet-of-Things Device
CN105978763A (en) Network communication method, communication device and mobile terminal
CN107645789A (en) The method, apparatus and system of networking
CN114143143B (en) Gateway equipment determining method and device, storage medium and electronic device
US9467899B2 (en) Frequency agility for an ISM band home area network
CN113904891B (en) Method, device and equipment for sharing distribution network information in ad hoc network
CN107396316B (en) Method for switching network, device and terminal device
CN113904890B (en) Linkage method, device and equipment of chopping block disinfection machine
CN113890776B (en) Equipment ad hoc network method, device and equipment
CN111093291B (en) TDMA ad hoc network, construction method thereof, node and storage medium
CN113904889B (en) Method and device for sharing running data in ad hoc network and color screen equipment
CN113904888B (en) Linkage method of air detection equipment and door and window, air detection equipment and door and window
CN106059797A (en) Configuration method, client and integrated controller
CN113848743A (en) Time sharing method, device and equipment in ad hoc network
CN109450692A (en) A kind of networking method, system and terminal device
CN113835353B (en) Linkage method, device and equipment for working modes between kitchen appliances
CN111836385A (en) Method and device for processing network beacon in wireless sensor network
CN114063502B (en) Linkage method and device for reserved time

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