CN111065093B - Wireless ad hoc network system - Google Patents

Wireless ad hoc network system Download PDF

Info

Publication number
CN111065093B
CN111065093B CN202010028141.XA CN202010028141A CN111065093B CN 111065093 B CN111065093 B CN 111065093B CN 202010028141 A CN202010028141 A CN 202010028141A CN 111065093 B CN111065093 B CN 111065093B
Authority
CN
China
Prior art keywords
information
cloud server
wireless
physical address
network terminal
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
CN202010028141.XA
Other languages
Chinese (zh)
Other versions
CN111065093A (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.)
Ningbo Fotile Kitchen Ware Co Ltd
Original Assignee
Ningbo Fotile Kitchen Ware 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 Ningbo Fotile Kitchen Ware Co Ltd filed Critical Ningbo Fotile Kitchen Ware Co Ltd
Priority to CN202010028141.XA priority Critical patent/CN111065093B/en
Publication of CN111065093A publication Critical patent/CN111065093A/en
Application granted granted Critical
Publication of CN111065093B publication Critical patent/CN111065093B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W60/00Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/185Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with management of multicast group membership
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0806Configuration setting for initial configuration or provisioning, e.g. plug-and-play
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/02Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/03Protecting confidentiality, e.g. by encryption
    • 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)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a wireless ad hoc network system, which comprises a wireless ad hoc network device; the system comprises a cloud server, an information presetting module, first equipment and second equipment; the information presetting module is used for presetting first coding information and second coding information; the cloud server is used for sending the obtained first physical address, the second physical address and the second coding information to the first network terminal; the first network terminal is used for establishing a binding relationship among the first physical address, the second physical address and the second coding information so as to carry out networking on the first network terminal and the second network terminal; the binding relationship is updated after the new first device is replaced. The invention realizes the ad hoc network, improves the networking efficiency and reduces the labor cost; when a new outdoor unit is replaced, the binding relationship between the indoor unit and the outdoor unit is updated by one key, so that the re-entry is avoided, the workload is reduced, and the binding efficiency is improved; in addition, the validity of the binding relation table can be checked.

Description

Wireless ad hoc network system
Technical Field
The invention relates to the technical field of wireless communication, in particular to a wireless ad hoc network system.
Background
At present, an outdoor auxiliary fan (fan unit) arranged in an intelligent building and an indoor range hood of a family are mutually independent, and real-time communication interaction cannot be carried out. Specifically, in the existing intelligent building, generally, the MAC address (physical address) of the indoor unit is counted manually, the MAC address is manually entered into the outdoor unit system, and then data such as the MAC address of the indoor unit and the MAC address of the outdoor unit are manually entered into the cloud server, so that the situations of omission, entry error and the like are easily caused, the labor cost is high, and the efficiency is low; each device needs to reserve a physical interface for reading and writing data, so that the situation that the dustproof and waterproof effects are unqualified is easy to occur. In addition, if the outdoor unit fails and needs to be replaced by a new unit, the binding relationship between the outdoor unit and the indoor unit needs to be manually recorded again, and the problems of large workload, long time consumption and low binding efficiency exist.
Disclosure of Invention
The invention aims to solve the technical problem that in the prior art, all devices in an intelligent building are independent from each other, real-time communication interaction cannot be carried out, and the data updating efficiency is low when an outdoor unit fails and needs to be replaced by a new unit, and provides a wireless ad hoc network system.
The invention solves the technical problems through the following technical scheme:
the invention provides a wireless ad hoc network system, which comprises at least one wireless ad hoc network device;
the wireless ad hoc network device comprises a cloud server, a service module, first equipment and N second equipment, wherein N is more than or equal to 1 and is an integer;
the first device comprises a first controller and a first network terminal, and the second device comprises a second controller and a second network terminal;
the first controller is electrically connected with the first network terminal, the second controller is electrically connected with the second network terminal, and the first network terminal is respectively in communication connection with the cloud server and the second network terminal;
the service module is used for presetting first coding information corresponding to the first equipment and presetting second coding information corresponding to the second equipment according to the first coding information;
the first controller is used for encrypting a first physical address of the first device and the first coding information to obtain first encryption information and sending the first encryption information to the cloud server through the first network terminal;
the second controller is used for encrypting a second physical address of the second device and the second coding information to obtain second encryption information and sending the second encryption information to the cloud server through the second network terminal;
the cloud server is used for sending the first physical address obtained by decrypting the first encrypted information, the second physical address obtained by decrypting the second encrypted information and the second coded information to the first network terminal;
the first network terminal is used for establishing a binding relationship among the first physical address, the second physical address and the second coded information so as to carry out networking on the first network terminal and the second network terminal, and sending the binding relationship to the cloud server;
when any one of the wireless ad hoc network devices is replaced with the new first device, the service module is further configured to preset third encoding information corresponding to the new first device;
the first controller is further configured to encrypt a third physical address and the third encoding information of the new first device to obtain third encryption information, and send the third encryption information to the cloud server through the first network terminal;
the cloud server is further configured to decrypt the third encrypted information to obtain third encoded information, determine whether the cloud server has the first encoded information that is the same as the third encoded information, and if so, reestablish the second physical address corresponding to the first encoded information and the new binding relationship between the second encoded information and the third physical address.
Preferably, the first network terminal comprises a first wireless network module and a second wireless network module, and the second network terminal comprises a third wireless network module;
the first wireless network module is in communication connection with the third wireless network module, and the second wireless network module is in communication connection with the cloud server.
Preferably, the first wireless network module and the third wireless network module both include an LoRa module, and the second wireless network module includes a 4G module.
Preferably, the first wireless network module is configured to store the binding relationship, and set the state of the storage flag bit to be an effective state after the storage is finished;
before the first device is replaced with a new device, the service module is used for sending a unbinding instruction to the cloud server;
the cloud server is used for removing the binding relationship between the first physical address of the first device and the second physical address of the second device before replacement according to the unbinding instruction, setting a storage identification bit in the first wireless network module to be in an invalid state, and meanwhile sending a first reminding message of successful unbinding to the service module.
Preferably, the first wireless network module is further configured to, when storing the new binding relationship, determine whether the state of the storage flag is an effective state, and if so, refuse to update the binding relationship; and if not, storing the new binding relationship, and sending a second reminding message with legal operation to the cloud server.
Preferably, the first controller is configured to generate a registration request and send the registration request to the cloud server through the first network terminal;
the cloud server is used for decrypting the first encrypted information to obtain the first physical address and the first coding information after receiving the registration request, and determining that the first device is successfully registered in the cloud server and generating a third reminding message.
Preferably, when the first device is successfully registered in the cloud server, the cloud server is configured to create a virtual group according to the first encoded information obtained by decryption; or, after the new first device is replaced and the first coding information which is the same as the third coding information does not exist in the cloud server, the cloud server is used for creating a virtual group according to the third coding information obtained through decryption;
wherein the virtual group comprises at least N virtual units;
the cloud server is used for decrypting the second encrypted information to obtain second coded information of the second equipment, and correspondingly setting each second equipment and one virtual unit in the virtual group according to target information in the second coded information.
Preferably, the first device comprises an outdoor fan set, and the second device comprises an indoor range hood;
the outdoor fan set and the indoor range hoods correspond to the same flue; and/or the presence of a gas in the gas,
the first coding information comprises a provincial and urban area name, a developer name, a cell name, a building number, a unit number, a flue number and a floor total number;
the second coding information comprises a provincial and urban area name, a developer name, a cell name, a building number, a unit number, a flue number and floor information;
the cloud server is used for creating a virtual group comprising at least N virtual units according to the total number of the floors in the first coding information; wherein the target information is the floor information.
Preferably, the first network terminal is configured to establish a binding relationship between the first physical address of the first device and the second physical address and the second encoding information of each second device, so as to perform networking on the first network terminal and the second network terminal;
and the first network terminal is also used for generating a binding relation table according to each binding relation and storing the binding relation table to a file system.
Preferably, the cloud server is configured to send an update request for updating the binding relationship table to the first network terminal;
and the first network terminal is used for updating the binding relation table according to the updating request.
Preferably, the second controller is configured to generate a connection request and send the connection request to the first network terminal through the second network terminal;
the first network terminal is used for judging whether a binding relationship exists between the first network terminal and the second network terminal in the binding relationship table or not when receiving the connection request, and if the binding relationship exists, establishing data communication between the first network terminal and the second network terminal.
Preferably, the cloud server is configured to encrypt the first physical address, the second physical address, and the second encoded information to obtain third encrypted information, and send the third encrypted information to the first network terminal;
the first network terminal is configured to decrypt the third encrypted information to obtain the first physical address, the second physical address, and the second encoded information.
Preferably, a first scanning code is set at the first device, and a second scanning code is set at the first device;
the service module is used for scanning the first scanning code to preset the first coding information corresponding to the first equipment;
the service module is further configured to scan the second scanning code to preset the second coding information corresponding to the second device;
the first scanning code further includes the first physical address, and the second scanning code further includes the second physical address.
Preferably, the wireless ad hoc network device further comprises an intelligent terminal;
the intelligent terminal corresponds to ID information, and the intelligent terminal corresponds to the second equipment;
the intelligent terminal is used for sending a binding request to the cloud server;
the intelligent terminal is further used for scanning the second scanning code to obtain the second physical address of the second device, encrypting the second physical address and the ID information to obtain fourth encryption information and sending the fourth encryption information to the cloud server;
the cloud server is used for judging whether the second equipment is in the virtual group or not after receiving the binding request, and if not, determining that the binding is failed;
if so, judging whether the ID information is bound with other second physical addresses, if so, canceling the binding and rebinding new second physical addresses, and generating a fourth reminding message when the binding is successful; and if not, binding the ID information with the second physical address.
Preferably, after the ID information is bound to the second physical address, the intelligent terminal is configured to wirelessly control the second device.
The positive progress effects of the invention are as follows:
according to the invention, the registration of the outdoor fan set in the cloud server is completed through the coding information and the MAC address of the outdoor fan set, a virtual set is created, then the coding information and the MAC address of the indoor range hood are transmitted to the cloud server, each indoor range hood is added into the virtual set, the outdoor machine MAC address, the indoor machine MAC address and the coding information are transmitted to a network terminal (namely a LoRa base station) of the outdoor fan set through the cloud server, the registration of the indoor machine LoRa terminal to the outdoor machine LoRa base station is automatically completed, namely the self-networking is realized, the communication interaction between the outdoor machine and the indoor machine is realized, the networking efficiency is improved, and the labor cost is reduced; when a new outdoor unit is replaced, the binding relationship between the indoor unit and the outdoor unit is updated by one key, so that the re-entry is avoided, the workload is reduced, and the binding efficiency is improved; in addition, the legality of the binding relation table can be checked.
Drawings
Fig. 1 is a schematic structural diagram of a wireless ad hoc network system according to embodiment 1 of the present invention.
Fig. 2 is a schematic structural diagram of a wireless ad hoc network system according to embodiment 2 of the present invention.
Fig. 3 is a schematic spatial layout diagram of a wireless ad hoc network system in an intelligent building according to embodiment 2 of the present invention.
Detailed Description
The invention is further illustrated by the following examples, which are not intended to limit the invention thereto.
Example 1
As shown in fig. 1, the wireless ad hoc network system of the present embodiment includes at least one wireless ad hoc network device 1, and each wireless ad hoc network device 1 includes a cloud server 2, a service module 3, a first device 4, and N second devices 5,N that are not less than 1 and are integers.
The different wireless ad hoc network devices can share the same cloud server and the same service module.
The first device 4 comprises a first controller 6 and a first network terminal 7 and the second device 5 comprises a second controller 8 and a second network terminal 9.
The first controller 6 is electrically connected to a first network terminal 7, and the second controller 8 is electrically connected to a second network terminal 9.
The first network terminal 7 is respectively connected with the cloud server 2 and the second network terminal 9 in a communication manner.
The service module 3 is configured to preset first coding information corresponding to the first device 4, and preset second coding information corresponding to the second device 5 according to the first coding information, that is, the first coding information is associated with the second coding information.
The first controller 6 is configured to generate a registration request and send the registration request to the cloud server 2 through the first network terminal 7.
The first controller 6 is further configured to encrypt a first physical address and first coding information of the first device 4 to obtain first encryption information, and send the first encryption information to the cloud server 2 through the first network terminal 7;
the cloud server 2 is configured to decrypt the first encrypted information to obtain a first physical address and first encoded information after receiving the registration request, and determine that the first device 4 is successfully registered in the cloud server 2 and generates a first reminding message, that is, the registration of the first device in the cloud server is completed.
In addition, the cloud server 2 may also determine whether the first device 4 meets a preset condition through information such as the MAC address of the first device 4 to determine whether to allow the first device 4 to register in the server; for example, when the MAC address of the first device 4 corresponds to an illegal account, the cloud server 2 does not allow the registration.
When the first device 4 is successfully registered in the cloud server 2, the cloud server 2 is further configured to create a virtual group according to the decrypted first encoding information.
The virtual group includes at least N virtual units (or called slot positions of the indoor units).
The second controller 8 is configured to encrypt the second physical address and the second encoding information of the second device 5 to obtain second encryption information, and send the second encryption information to the cloud server 2 through the second network terminal 9.
The cloud server 2 is configured to decrypt the second encrypted information to obtain second encoded information of the second devices 5, and set each second device 5 corresponding to one virtual unit in the virtual group according to target information in the second encoded information.
When a virtual group includes N virtual units, one virtual unit corresponds to one second device, that is, one virtual group corresponds to N second devices.
The cloud server 2 is configured to send a first physical address obtained by decrypting the first encrypted information, a second physical address obtained by decrypting the second encrypted information, and the second encoded information to the first network terminal 7.
The first network terminal 7 is configured to establish a binding relationship among the first physical address, the second physical address, and the second encoding information to perform networking on the first network terminal 7 and the second network terminal 9, that is, to complete registration of the second network terminal of the second device with the first network terminal of the first device.
Specifically, the cloud server 2 is configured to encrypt the first physical address, the second physical address, and the second encoding information to obtain third encryption information, and send the third encryption information to the first network terminal 7, and the first network terminal 7 is configured to decrypt the third encryption information to obtain the first physical address, the second physical address, and the second encoding information.
The first network terminal 7 is configured to establish a binding relationship between the first physical address of the first device 4 and the second physical address and the second encoding information of each second device 5, so as to perform networking on the first network terminal 7 and the second network terminal 9, that is, the second devices corresponding to the N virtual units are all added to the virtual group, and registration of the second network terminal of each second device with the first network terminal of the first device is completed.
The first network terminal 7 is further configured to generate a binding relationship table according to each binding relationship and store the binding relationship table in the file system.
The cloud server 2 is further configured to send an update request for updating the binding relationship table to the first network terminal 7;
the first network terminal 7 is used for updating the binding relation table according to the update request, so that the second network terminals of other second devices can be automatically registered with the first network terminal of the first device, and the networking efficiency is improved.
When the first equipment in any wireless ad hoc network device fails and needs to be replaced, the service module is further used for presetting third coding information corresponding to new first equipment 4;
the first controller 6 is further configured to encrypt a third physical address and third encoding information of the new first device 4 to obtain third encryption information, and send the third encryption information to the cloud server 2 through the first network terminal;
the cloud server 2 is further configured to decrypt the third encrypted information to obtain third encoded information, and determine whether there is first encoded information in the cloud server 2 that is the same as the third encoded information, and if there is first encoded information in the cloud server 2, reestablish a second physical address corresponding to the first encoded information and a new binding relationship between the second encoded information and the third physical address.
In addition, after the new first device 4 is replaced, when the first encoding information identical to the third encoding information does not exist in the cloud server 2, the cloud server 2 is configured to create a virtual group according to the third encoding information obtained by decryption.
Specifically, the first network terminal 7 includes a first wireless network module 10 and a second wireless network module 11, and the second network terminal 9 includes a third wireless network module 12.
The first wireless network module 10 is in communication connection with the third wireless network module 12, and the second wireless network module 11 is in communication connection with the cloud server 2.
The first wireless network module 10 and the third wireless network module 12 include but are not limited to an LoRa module, and the second wireless network module 11 includes but is not limited to a 4G module, that is, the first network terminal is equivalent to an LoRa base station, and the second network terminal is equivalent to an LoRa terminal.
The first wireless network module is used for storing the binding relationship and setting the state of the storage flag bit as an effective state after the storage is finished;
before the new first device 4 is replaced, the original first device is deleted from the service module, and a unbinding instruction is sent to the cloud server 2 through the service module;
the cloud server 2 is used for removing the binding relationship between the first physical address of the first device 4 and the second physical address of the second device before replacement according to the unbinding instruction, setting the storage identification bit in the first wireless network module to be in an invalid state, and sending a first reminding message of successful unbinding to the service module.
The first wireless network module is also used for judging whether the state of the storage zone bit is an effective state or not when storing the new binding relationship, and refusing to update the binding relationship if the state of the storage zone bit is the effective state; if not, the new binding relationship is stored, and a second prompting message with legal operation is sent to the cloud server 2.
For example, if the storage identifier is "0xA5A5", it indicates that the current binding relationship is in an effective state, and the local binding relationship table does not need to be updated, and at this time, the first wireless network module (LoRa base station) feeds back the storage operation to the cloud server that the storage operation is illegal, and refuses to update the binding relationship. When the storage identification bit is not '0 xA5 A5', indicating that the current binding relationship is in an invalid state, storing the latest binding relationship into a Flash file system (a file system) of the first wireless network module (LoRa base station), and feeding back that the storage operation is legal to the cloud server.
In addition, the cloud server comprises a business module and an MQTT (communication module), the business module is connected with the MQTT Broker to realize connection and communication with the MQTT, and the first device is connected with the MQTT Broker to realize connection and communication with the MQTT.
In the embodiment, the outdoor fan set is registered in the cloud server and a virtual group is created through the coding information and the MAC address of the outdoor fan set, then the coding information and the MAC address of the indoor range hood are transmitted to the cloud server, each indoor range hood is added into the virtual group, the outdoor machine MAC address, the indoor machine MAC address and the coding information are sent to a network terminal (namely a LoRa base station) of the outdoor fan set through the cloud server, the indoor machine LoRa terminal is autonomously registered to the outdoor machine LoRa base station, namely the self-networking is realized, the communication interaction between the outdoor machine and the indoor machine is realized, the networking efficiency is improved, and the labor cost is reduced; each device does not need to reserve a physical interface for reading and writing data, so that the dustproof and waterproof grade of the system is improved; in addition, when a new outdoor unit is replaced, the binding relationship between the indoor unit and the outdoor unit is updated by one key, so that the re-entry is avoided, the workload is reduced, and the binding efficiency is improved; in addition, the legality of the binding relation table can be checked.
Example 2
As shown in fig. 2, the wireless ad hoc network system of the present embodiment is a further improvement of embodiment 1, specifically:
when the application scenario of this embodiment is an intelligent building, the first device 4 includes an outdoor fan set, and the second device 5 includes an indoor range hood.
At this moment, the first device further comprises an outdoor direct current auxiliary fan, and the first controller is electrically connected with the first network terminal and the outdoor direct current auxiliary fan through serial ports respectively.
The second device also comprises an indoor range hood direct current fan, and the second controller is respectively and electrically connected with the second network terminal and the indoor range hood direct current fan through serial ports.
The outdoor fan set and the indoor range hoods correspond to the same flue, and each flue corresponds to one wireless ad hoc network device.
As shown in fig. 3, assuming that the same unit and the same floor of the same building (including 10 floors) include two households, two households in the first floor correspond to 101 and 102 respectively, two households in the second floor correspond to 201 and 202 respectively, and so on, 10 indoor range hoods of ten households 101, 201, … and 1001 correspond to the same flue P, and 10 indoor range hoods of ten households 102, 202, … and 1002 correspond to the other flue. The arrow direction is the flow direction of the oil smoke in the flue.
Specifically, the first encoded information includes, but is not limited to, a provincial or urban area name, a developer name, a cell name, a building number, a unit number, a smoke path number, and a total number of floors.
The second encoded information includes, but is not limited to, a provincial or urban area name, a developer name, a cell name, a building number, a unit number, a smoke channel number, and floor information.
The cloud server 2 is configured to create a virtual group including at least N virtual units according to the total number N of floors in the first encoded information.
The cloud server correspondingly sets each second device and one virtual unit in the virtual group according to the floor information in the second encoding information, namely, the second devices are added into the virtual group.
The second controller 8 is configured to generate a connection request and send the connection request to the first network terminal 7 through the second network terminal 9.
The first network terminal 7 is configured to, when receiving the connection request, determine whether a binding relationship exists between the first network terminal 7 and the second network terminal 9 in the binding relationship table, and if the binding relationship exists, establish data communication between the first network terminal 7 and the second network terminal 9.
In addition, as shown in fig. 3, a first scan code a1 is set at the first device 4, and a second scan code b1 is set at the first device 4.
The first scan code and the second scan code include, but are not limited to, a two-dimensional code.
The first scanning code and the second scanning code can be pasted on corresponding devices.
The service module 3 is configured to scan a first scan code to preset first coding information corresponding to the first device 4, and the service module 3 is further configured to scan a second scan code to preset second coding information corresponding to the second device 5;
the first scanning code further comprises a first physical address, and the second scanning code further comprises a second physical address.
The service module 3 includes, but is not limited to, an application program, a servlet.
The wireless ad hoc network device 1 further comprises an intelligent terminal 13, the intelligent terminal 13 corresponds to an ID information, and the intelligent terminal 13 corresponds to a second device 5.
The intelligent terminal 13 is configured to send a binding request to the cloud server 2.
The intelligent terminal 13 is further configured to scan the second scanning code to obtain a second physical address of the second device 5, encrypt the second physical address and the ID information to obtain fourth encryption information, and send the fourth encryption information to the cloud server 2.
The cloud server 2 is configured to determine whether the second device 5 is in the virtual group after receiving the binding request, and if not, determine that the binding is failed; if so, judging whether the ID information is bound with other second physical addresses, if so, canceling the binding and rebinding a new second physical address, and generating a second reminding message when the binding is successful; and if not, binding the ID information with the second physical address.
After the ID information is bound to the second physical address, the intelligent terminal 13 is configured to wirelessly control the second device 5.
The following is specifically illustrated by the examples:
taking ad hoc network registration and binding procedure between an outdoor fan unit and an indoor range hood in an intelligent building as an example:
1. registration of outdoor fan set in cloud server
(11) An operator scans a two-dimensional code pasted on an outdoor fan set through an APP (application program) or a service applet on a service mobile phone, enters a first code information preset interface, specifically presets information such as a city name, a developer name, a cell name, a building number, a unit number, a flue number, the total number of floors and the like in the interface according to actual conditions, and clicks a 'submit' button in the interface after the information is filled in to complete setting; the two-dimensional code comprises a first MAC address of the outdoor fan set;
(12) The first controller in the outdoor fan set is used for generating a registration request and sending the registration request to the cloud server through the 4G module;
a first controller in the outdoor fan unit acquires first coding information and a first MAC address in the two-dimensional code, encrypts the first coding information and the first MAC address by adopting an encryption algorithm (such as an AES128 algorithm) to acquire first encryption information, and sends the first encryption information to a cloud server through a 4G module;
(13) The cloud server verifies whether the first MAC address of the outdoor fan unit meets the registration condition or not according to the registration request, and if yes, a prompt message of successful registration is generated and fed back to an APP or a servlet on the service mobile phone;
the cloud server decrypts the first encrypted information by adopting an AES128 algorithm to obtain first coding information and an MAC address.
And when the registration is successful, creating a virtual group according to the total number N of the floors in the first coding information, wherein the virtual group corresponds to N indoor range hoods, and each virtual unit corresponds to one indoor range hood.
2. Registration of LoRa terminal of indoor range hood to LoRa base station of outdoor fan set
(21) An operator selects the registered outdoor fan unit from the operation interface and enters a detail interface of the outdoor fan unit;
(22) Clicking a button of an indoor range hood adding interface in a current operation interface and entering a sweeping interface;
(23) An operator scans a two-dimensional code pasted on an indoor range hood through an APP (application) or a small service program on a service mobile phone, enters a second coding information preset interface, specifically presets information such as a city district name, a developer name, a cell name, a building number, a unit number, a flue number, floor information and the like in the interface according to actual conditions, and clicks a 'submit' button in the interface after the information is filled in to complete the setting; wherein the two-dimensional code comprises a second MAC address of the outdoor fan set,
(24) A second controller in the outdoor fan set acquires second coding information and a second MAC address in the two-dimensional code, encrypts the second coding information and the second MAC address by adopting an encryption algorithm (such as AES 128) to acquire second encryption information, and sends the second encryption information to the cloud server through the LoRa module;
(25) The cloud server decrypts the second encrypted information by adopting an AES128 algorithm to obtain second coded information and a second MAC address, and sets the second equipment and one virtual unit in the virtual group correspondingly according to the floor information in the second coded information, namely, the indoor range hood is added into the virtual group;
(26) The cloud server adopts an AES128 algorithm to carry out confidentiality on the first MAC address of the outdoor fan set, the second MAC address of the indoor range hood and the second coding information to obtain third encryption information, and the third encryption information is sent to a LoRa base station of the outdoor fan set, and at the moment, registration of the indoor range hood on the cloud server is completed;
(27) After receiving the third encrypted information, the LoRa base station decrypts the third encrypted information by adopting an AES128 algorithm to obtain a first MAC address, a second MAC address of the indoor range hood and second coding information, establishes a binding relationship among the first MAC address, the second MAC address of the indoor range hood and the second coding information, forms a binding relationship table according to the binding relationship, and stores the binding relationship table into a file system of the LoRa base station, so that the LoRa terminal of one indoor range hood registers to the LoRa base station of the outdoor fan set;
(28) And (5) repeating the steps (22) - (27) for the other N-1 indoor range hoods until the LoRa terminals of the N indoor range hoods register to the LoRa base station of the outdoor fan set, and synchronously updating the binding relation table in the step (27) and storing the binding relation table in the LoRa base station.
3. Communication between outdoor fan set and indoor range hood
(31) A second controller in the indoor range hood generates a connection request and sends the connection request to an LoRa base station through an LoRa terminal;
(32) And when receiving the connection request, the LoRa base station judges whether the binding relationship exists between the LoRa terminal and the LoRa base station in the binding relationship table, and if so, establishes data communication between the LoRa terminal and the LoRa base station.
4. Binding of intelligent terminal of user and indoor range hood
(41) A user uses an APP (application) or a small service program on a service mobile phone of an intelligent terminal (mobile phone, tablet computer and the like) to scan a two-dimensional code pasted on an indoor range hood, and a corresponding second MAC (media access control) address is obtained;
(42) The intelligent terminal sends a binding request to a cloud server;
the intelligent terminal encrypts the second MAC address and the ID information (such as a mobile phone number) of the intelligent terminal and uploads the second MAC address and the ID information to the cloud server;
(43) After receiving the binding request, the cloud server judges whether the indoor range hood is added into the virtual group, if not, the indoor range hood cannot be bound, and the binding is determined to be failed;
if the mobile phone number corresponding to the intelligent terminal is in the virtual group, whether the mobile phone number corresponding to the intelligent terminal is bound with other indoor range hoods or not is continuously judged, if the mobile phone number corresponding to the intelligent terminal is not bound with the new second MAC address, a reminding message for successful binding is generated; and if the intelligent terminal is bound, canceling the historical binding, binding the mobile phone number corresponding to the intelligent terminal with the new second MAC address again, and generating a reminding message of successful binding. At this time, the user can check the binding result through the refresh list.
After the intelligent terminal of the user is bound with the indoor range hood, the user can directly wirelessly control the indoor range hood through the intelligent terminal to carry out control operations such as opening and closing on the indoor range hood, networking efficiency is improved, and user experience is improved.
5. Binding relationship is automatically updated when outdoor fan set is replaced
(51) An operator scans a two-dimensional code pasted on a new outdoor fan set through an APP (application) or a small service program on a service mobile phone, enters a third code information preset interface, specifically presets information such as a city name, a developer name, a cell name, a building number, a unit number, a flue number, the total number of floors and the like in the interface according to actual conditions, and clicks a 'submit' button in the interface after the information is filled in to complete setting; the two-dimensional code comprises a third MAC address of a new outdoor fan set;
(52) The controller in the new outdoor fan set is used for generating a registration request and sending the registration request to the cloud server through the 4G module;
the controller in the new outdoor fan set acquires third coding information and a third MAC address in the two-dimensional code, encrypts the third coding information and the third MAC address by adopting an encryption algorithm to acquire third encryption information, and sends the third encryption information to the cloud server through the 4G module;
(53) The cloud server is used for retrieving whether outdoor unit soft coding information which is identical to the third coding information exists in the cloud database or not, if not, the outdoor unit soft coding information is created in a virtual group according to the outdoor unit soft coding information, meanwhile, the cloud server verifies whether the third MAC address of the outdoor fan group meets a registration condition or not according to a registration request, and when the third MAC address meets the registration condition, a prompt message of successful registration is generated and fed back to an APP or a servlet on the service mobile phone;
if the completely same outdoor unit soft coding information exists, extracting the binding relationship between the outdoor unit physical address and the indoor unit physical address corresponding to the outdoor unit soft coding information in the cloud database, replacing the original first physical address of the outdoor unit with a new third physical address of the outdoor unit, establishing a new binding relationship with the original physical address of the indoor unit, and updating a binding relationship list;
(54) The cloud server encrypts and sends a third physical address of the new outdoor unit, a second physical address of the indoor unit and soft coding information of the indoor unit to a LoRa base station of the outdoor fan set;
(55) The LoRa base station of the outdoor fan set receives and analyzes a third physical address of a new outdoor unit, a second physical address of an indoor unit and soft coding information of the indoor unit;
the LoRa base station of the outdoor fan group judges whether the state of the storage identification bit is effective or not, and if the state is effective, the LoRa base station refuses to update the local binding relation table; if the binding relationship is invalid, the LoRa base station stores the new binding relationship into a Flash file system of the LoRa base station of the outdoor fan, and pushes a feedback cloud platform server to be legal in operation;
in addition, the cloud server also pushes each reminding message to the service mobile phone APP/servlet,
and the service mobile phone APP/servlet obtains an indoor unit detail list mounted under the outdoor unit by refreshing, and the function of updating the binding relationship between the outdoor unit and the indoor unit by one key is completed.
In the embodiment, the outdoor fan set is registered in the cloud server and virtual groups are created through the coding information and the MAC address of the outdoor fan set, then the coding information and the MAC address of the indoor range hood are transmitted to the cloud server, each indoor range hood is added into each virtual group, the outdoor machine MAC address, the indoor machine MAC address and the coding information are transmitted to the network terminals (namely LoRa base stations) of the outdoor fan set through the cloud server, the indoor machine LoRa terminals are automatically registered to the outdoor machine LoRa base stations, namely the ad hoc network is realized, the communication interaction between the outdoor machine and the indoor machine is realized, the networking efficiency is improved, and the labor cost is reduced; each device does not need to reserve a physical interface for reading and writing data, so that the dustproof and waterproof grade of the system is improved; in addition, when a new outdoor unit is replaced, the binding relationship between the indoor unit and the outdoor unit is updated by one key, so that the re-entry is avoided, the workload is reduced, and the binding efficiency is improved; the validity of the binding virtual table can be checked.
While specific embodiments of the invention have been described above, it will be understood by those skilled in the art that this is by way of example only, and that the scope of the invention is defined by the appended claims. Various changes and modifications to these embodiments may be made by those skilled in the art without departing from the spirit and scope of the invention, and these changes and modifications are within the scope of the invention.

Claims (14)

1. A wireless ad hoc network system, comprising at least one wireless ad hoc network device;
the wireless ad hoc network device comprises a cloud server, a service module, first equipment and N second equipment, wherein N is more than or equal to 1 and is an integer;
the first device comprises a first controller and a first network terminal, and the second device comprises a second controller and a second network terminal;
the first controller is electrically connected with the first network terminal, the second controller is electrically connected with the second network terminal, and the first network terminal is respectively in communication connection with the cloud server and the second network terminal;
the service module is used for presetting first coding information corresponding to the first equipment and presetting second coding information corresponding to the second equipment according to the first coding information;
the first controller is used for encrypting a first physical address of the first device and the first coding information to obtain first encryption information and sending the first encryption information to the cloud server through the first network terminal;
the second controller is used for encrypting a second physical address of the second device and the second coding information to obtain second encryption information and sending the second encryption information to the cloud server through the second network terminal;
the cloud server is used for sending the first physical address obtained by decrypting the first encrypted information, the second physical address obtained by decrypting the second encrypted information and the second coded information to the first network terminal;
the first network terminal is used for establishing a binding relationship among the first physical address, the second physical address and the second coding information so as to carry out networking on the first network terminal and the second network terminal, and sending the binding relationship to the cloud server;
when any one of the wireless ad hoc network devices is replaced with the new first device, the service module is further configured to preset third encoding information corresponding to the new first device;
the first controller is further configured to encrypt a third physical address and the third encoding information of the new first device to obtain third encryption information, and send the third encryption information to the cloud server through the first network terminal;
the cloud server is further configured to decrypt the third encrypted information to obtain third encoded information, and determine whether the cloud server has the first encoded information that is the same as the third encoded information, and if so, reestablish the second physical address corresponding to the first encoded information and the new binding relationship between the second encoded information and the third physical address;
when the first device is successfully registered in the cloud server, the cloud server is used for creating a virtual group according to the first coding information obtained through decryption; or, after the new first device is replaced and the first coding information which is the same as the third coding information does not exist in the cloud server, the cloud server is used for creating a virtual group according to the third coding information obtained through decryption;
wherein the virtual group comprises at least N virtual units;
the cloud server is used for decrypting the second encrypted information to obtain second coded information of the second equipment, and correspondingly setting each second equipment and one virtual unit in the virtual group according to target information in the second coded information.
2. The wireless ad-hoc network system of claim 1, wherein the first network terminal comprises a first wireless network module and a second wireless network module, and the second network terminal comprises a third wireless network module;
the first wireless network module is in communication connection with the third wireless network module, and the second wireless network module is in communication connection with the cloud server.
3. The wireless ad hoc network system of claim 2, wherein the first wireless network module and the third wireless network module each comprise an LoRa module, and the second wireless network module comprises a 4G module.
4. The wireless ad hoc network system according to claim 3, wherein the first wireless network module is configured to store the binding relationship, and set a state of a storage flag to be an active state after the storage is completed;
before the new first device is replaced, the service module is used for sending a unbinding instruction to the cloud server;
the cloud server is used for removing the binding relationship between the first physical address of the first device and the second physical address of the second device before replacement according to the unbinding instruction, setting a storage identification bit in the first wireless network module to be in an invalid state, and meanwhile sending a first reminding message of successful unbinding to the service module.
5. The wireless ad hoc network system of claim 4, wherein the first wireless network module is further configured to determine whether the state of the storage flag is valid when storing the new binding relationship, and if so, refuse to update the binding relationship; and if not, storing the new binding relationship, and sending a second prompt message with legal operation to the cloud server.
6. The wireless ad hoc network system of claim 1, wherein the first controller is configured to generate a registration request and send the registration request to the cloud server through the first network terminal;
the cloud server is used for decrypting the first encrypted information to obtain the first physical address and the first coded information after receiving the registration request, and determining that the first device is successfully registered in the cloud server and generating a third reminding message.
7. The wireless ad hoc network system of claim 1, wherein the first device comprises an outdoor fan unit and the second device comprises an indoor range hood;
the outdoor fan set and the indoor range hoods correspond to the same flue; and/or the presence of a gas in the gas,
the first coding information comprises a provincial and urban area name, a developer name, a cell name, a building number, a unit number, a flue number and a floor total number;
the second coding information comprises a provincial and urban area name, a developer name, a cell name, a building number, a unit number, a flue number and floor information;
the cloud server is used for creating a virtual group comprising at least N virtual units according to the total number of the floors in the first coding information; wherein the target information is the floor information.
8. The wireless ad hoc network system of claim 1, wherein the first network terminal is configured to establish a binding relationship between the first physical address of the first device and the second physical address and the second encoded information of each of the second devices to perform networking on the first network terminal and the second network terminal;
and the first network terminal is also used for generating a binding relation table according to each binding relation and storing the binding relation table in a file system.
9. The wireless ad hoc network system of claim 8, wherein the cloud server is configured to send an update request for updating the binding relationship table to the first network terminal;
and the first network terminal is used for updating the binding relation table according to the updating request.
10. The wireless ad hoc network system of claim 8, wherein said second controller is configured to generate a connection request and send the connection request to said first network terminal through said second network terminal;
the first network terminal is configured to determine whether a binding relationship exists between the first network terminal and the second network terminal in the binding relationship table when receiving the connection request, and if so, establish data communication between the first network terminal and the second network terminal.
11. The wireless ad hoc network system of claim 1, wherein the cloud server is configured to encrypt the first physical address, the second physical address, and the second encoded information to obtain third encrypted information, and send the third encrypted information to the first network terminal;
the first network terminal is configured to decrypt the third encrypted information to obtain the first physical address, the second physical address, and the second encoded information.
12. The wireless ad-hoc network system of claim 1, wherein a first scanning code is set at said first device, a second scanning code is set at said first device;
the service module is used for scanning the first scanning code to preset the first coding information corresponding to the first equipment;
the service module is further configured to scan the second scanning code to preset the second coding information corresponding to the second device;
the first scanning code further includes the first physical address, and the second scanning code further includes the second physical address.
13. The wireless ad-hoc network system of claim 12, wherein said wireless ad-hoc network device further comprises a smart terminal;
the intelligent terminal corresponds to ID information, and the intelligent terminal corresponds to the second equipment;
the intelligent terminal is used for sending a binding request to the cloud server;
the intelligent terminal is further used for scanning the second scanning code to obtain the second physical address of the second device, encrypting the second physical address and the ID information to obtain fourth encryption information and sending the fourth encryption information to the cloud server;
the cloud server is used for judging whether the second equipment is in the virtual group or not after receiving the binding request, and if not, determining that the binding is failed;
if so, judging whether the ID information is bound with other second physical addresses, if so, canceling the binding and rebinding new second physical addresses, and generating a fourth reminding message when the binding is successful; and if not, binding the ID information with the second physical address.
14. The wireless ad hoc network system of claim 13, wherein after the ID information is bound to the second physical address, the intelligent terminal is configured to wirelessly control the second device.
CN202010028141.XA 2020-01-10 2020-01-10 Wireless ad hoc network system Active CN111065093B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010028141.XA CN111065093B (en) 2020-01-10 2020-01-10 Wireless ad hoc network system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010028141.XA CN111065093B (en) 2020-01-10 2020-01-10 Wireless ad hoc network system

Publications (2)

Publication Number Publication Date
CN111065093A CN111065093A (en) 2020-04-24
CN111065093B true CN111065093B (en) 2023-04-18

Family

ID=70307089

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010028141.XA Active CN111065093B (en) 2020-01-10 2020-01-10 Wireless ad hoc network system

Country Status (1)

Country Link
CN (1) CN111065093B (en)

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581316A (en) * 2013-10-31 2014-02-12 中国科学院计算机网络信息中心 Intercommunication control system and method of internet-of-things controllers
JP2015097346A (en) * 2013-11-15 2015-05-21 富士通株式会社 Node device, node control program, and network topology control method
US10187357B2 (en) * 2015-07-05 2019-01-22 M2MD Technologies, Inc. Method and system for internetwork communication with machine devices
CN105897528A (en) * 2016-05-30 2016-08-24 宁波方太厨具有限公司 Linkage control method between intelligent household equipment
CN106685917B (en) * 2016-11-09 2019-11-12 苏州数言信息技术有限公司 The realization method and system that internet of things equipment and controller are intelligently bound
CN107567065B (en) * 2017-08-16 2020-11-10 南京天溯自动化控制系统有限公司 Transparent data transmission method and system based on wireless self-organizing network
CN108667950B (en) * 2018-03-23 2021-12-21 海信集团有限公司 Method and device for obtaining device identification
CN109618381B (en) * 2018-11-27 2022-05-13 国网山东省电力公司济宁供电公司 Ad hoc network communication method and ad hoc network communication system

Also Published As

Publication number Publication date
CN111065093A (en) 2020-04-24

Similar Documents

Publication Publication Date Title
CN101656668B (en) Method and device for using core based nodes for state transfer
CN1132376C (en) Method and apparatus for providing anonymous data transfer in a communication system
US9331986B2 (en) Encryption communication method, apparatus and system
EP1744484A1 (en) Method and apparatus for providing authentification in a mobile communication system
EP1775877A1 (en) Method and apparatus for storing and distributing encryption keys
KR20110102395A (en) Trust establishment from forward link only to non-forward link only devices
EP1401162B9 (en) Packet communication terminal, packet communication system, packet communication method and packet communication program
JPH10112883A (en) Radio communication exchange system, exchange, public key management device, mobile terminal and mobile terminal recognizing method
AU2013269845B2 (en) Method for tracking a mobile device onto a remote displaying unit
JP2013157693A (en) Encryption communication system, communication device, key distribution device, and encryption communication method
CN101981892A (en) Systems and methods for group key distribution and management for wireless communications systems
CN101150851A (en) Method, server and mobile station for transmitting data from server to mobile station
KR101767889B1 (en) Method of identifying terminal and apparatus thereof
JP5079014B2 (en) Location-based multimedia message transmission service method and apparatus
CN111246597B (en) Wireless ad hoc network system
CN1155288C (en) Method and apparatus for selecting an identification confirmation information
CN100471314C (en) Method and system for providing digital broadcast to roaming users
CN101022418B (en) HMIP identifying method, equipment and system
CN111065093B (en) Wireless ad hoc network system
CN110166230B (en) Key management method and device
CN111787514B (en) Method and device for acquiring equipment control data, storage medium and electronic device
KR101500118B1 (en) Data sharing method and data sharing system
CN113691973B (en) Number portability method based on block chain network and operator system
JP6158697B2 (en) Communication system and software update method
CN103517267A (en) System, method and device for determining actual code number

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