CN111049918A - Communication establishment method and device of Internet of things - Google Patents

Communication establishment method and device of Internet of things Download PDF

Info

Publication number
CN111049918A
CN111049918A CN201911314683.7A CN201911314683A CN111049918A CN 111049918 A CN111049918 A CN 111049918A CN 201911314683 A CN201911314683 A CN 201911314683A CN 111049918 A CN111049918 A CN 111049918A
Authority
CN
China
Prior art keywords
internet
things
local address
router
information
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.)
Granted
Application number
CN201911314683.7A
Other languages
Chinese (zh)
Other versions
CN111049918B (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.)
State Grid Corp of China SGCC
North China Electric Power University
Global Energy Interconnection Research Institute
Beijing China Power Information Technology Co Ltd
Information and Telecommunication Branch of State Grid Hebei Electric Power Co Ltd
Information and Telecommunication Branch of State Grid Jibei Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
North China Electric Power University
Global Energy Interconnection Research Institute
Beijing China Power Information Technology Co Ltd
Information and Telecommunication Branch of State Grid Hebei Electric Power Co Ltd
Information and Telecommunication Branch of State Grid Jibei Electric Power 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 State Grid Corp of China SGCC, North China Electric Power University, Global Energy Interconnection Research Institute, Beijing China Power Information Technology Co Ltd, Information and Telecommunication Branch of State Grid Hebei Electric Power Co Ltd, Information and Telecommunication Branch of State Grid Jibei Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201911314683.7A priority Critical patent/CN111049918B/en
Publication of CN111049918A publication Critical patent/CN111049918A/en
Application granted granted Critical
Publication of CN111049918B publication Critical patent/CN111049918B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • 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)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a communication establishing method and device of the Internet of things, wherein the method comprises the following steps: after entering a parent node working mode, sending a channel occupation request to a router; if the response information returned by the router is judged to include the channel occupation permission information, broadcasting first announcement information to enable the lower-layer terminal to generate a first link local address according to the prefix information; wherein the first advertisement information includes the prefix information. The device is used for executing the method. The communication establishing method and device of the Internet of things provided by the embodiment of the invention improve the efficiency of network address configuration.

Description

Communication establishment method and device of Internet of things
Technical Field
The invention relates to the technical field of Internet of things, in particular to a communication establishing method and device of the Internet of things.
Background
In recent years, with the rapid development of the internet of things industry, the application range of the internet of things is wider and wider.
At present, in the field of power technology, internet of things equipment is sensing layer equipment of a ubiquitous power internet of things platform and is used for acquiring internet of things data. The internet of things equipment generally adopts a data transparent transmission mode to transmit data, the routers of the internet of things communicate, and before the internet of things equipment communicates, a network address needs to be configured for each piece of internet of things equipment. In the prior art, the network address of the internet of things device is configured manually, and the configuration efficiency of the network address is very low for a large number of internet of things devices.
Therefore, how to provide a communication establishing method for the internet of things, which can automatically configure a network address for an internet of things device to improve the configuration efficiency of the network address becomes an important issue to be solved in the field.
Disclosure of Invention
For solving the problems in the prior art, embodiments of the present invention provide a communication establishing method and apparatus for the internet of things, which can at least partially solve the problems in the prior art.
On one hand, the invention provides a communication establishing method of the Internet of things, which comprises the following steps:
after entering a parent node working mode, sending a channel occupation request to a router;
if the response information returned by the router is judged to include the channel occupation permission information, broadcasting first announcement information to enable the lower-layer terminal to generate a first link local address according to the prefix information; wherein the first advertisement information includes the prefix information.
In another aspect, the present invention provides a communication establishing apparatus for an internet of things, including:
the first sending unit is used for sending a channel occupation request to the router after entering a parent node working mode;
a judging unit, configured to broadcast first advertisement information to enable a lower layer terminal to generate a first link local address according to prefix information after judging that it is known that response information returned by the router includes a channel occupation permission message; wherein the first advertisement information includes the prefix information.
In another aspect, the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the steps of the communication establishment method of the internet of things according to any one of the embodiments.
In yet another aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the communication establishment method of the internet of things according to any of the above embodiments.
According to the communication establishing method and device for the Internet of things, provided by the embodiment of the invention, the channel occupation request can be sent to the router after the parent node working mode is entered, and the first announcement information is broadcasted after the response information returned by the router is judged and acquired to include the channel occupation permission message, so that the lower-layer terminal generates the first link local address according to the prefix information, the network address can be automatically configured for the lower-layer terminal, and the network address configuration efficiency is improved.
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, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
fig. 1 is a schematic structural diagram of an internet of things communication system according to an embodiment of the present invention.
Fig. 2 is a schematic flow chart of a communication establishment method of the internet of things according to an embodiment of the present invention.
Fig. 3 is a flowchart illustrating a communication establishment method of the internet of things according to another embodiment of the present invention.
Fig. 4 is a flowchart illustrating a communication establishment method of the internet of things according to another embodiment of the present invention.
Fig. 5 is a flowchart illustrating a communication establishment method of the internet of things according to still another embodiment of the present invention.
Fig. 6 is a schematic structural diagram of an internet of things communication system according to another embodiment of the present invention.
Fig. 7 is a schematic structural diagram of a communication establishing apparatus of the internet of things according to an embodiment of the present invention.
Fig. 8 is a schematic structural diagram of a communication establishing apparatus of the internet of things according to another embodiment of the present invention.
Fig. 9 is a schematic structural diagram of a communication establishing apparatus of the internet of things according to another embodiment of the present invention.
Fig. 10 is a schematic structural diagram of a communication establishing apparatus of the internet of things according to still another embodiment of the present invention.
Fig. 11 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
Fig. 1 is a schematic structural diagram of an internet of things communication system according to an embodiment of the present invention, and as shown in fig. 1, the internet of things communication system according to the embodiment of the present invention includes a router 100 and multiple layers of internet of things devices, where each layer of internet of things device includes at least one internet of things device. The layer 1 of internet of things device comprises an internet of things device 101, an internet of things device 102 and an internet of things device 103, and the router 100 is respectively in communication connection with the internet of things device 101, the internet of things device 102 and the internet of things device 103. The layer 2 thing allies oneself with the device and includes thing allies oneself with device 201 and thing allies oneself with device 202, thing allies oneself with device 201 and thing allies oneself with device 101 communication connection, thing allies oneself with device 202 and thing allies oneself with device 103 communication connection. The 3 rd layer of internet of things device comprises an internet of things device 301, and the internet of things device 301 is in communication connection with the internet of things device 202. The internet of things device 101 can execute the method for establishing communication of the internet of things provided by the embodiment of the invention, and establish communication connection with the internet of things device 201; the internet of things device 103 can execute the communication establishment method of the internet of things provided by the embodiment of the invention, and establish communication connection with the internet of things device 202; the internet of things device 202 may execute the communication establishment method of the internet of things provided by the embodiment of the present invention to establish a communication connection with the internet of things device 301. The device 101 for the internet of things is an upper terminal of the device 201 for the internet of things, and the device 201 for the internet of things is a lower terminal of the device 101 for the internet of things; the internet of things device 103 is an upper terminal of the internet of things device 202, and the internet of things device 202 is a lower terminal of the internet of things device 103; the internet of things device 202 is an upper terminal of the internet of things device 301, and the internet of things device 301 is a lower terminal of the internet of things device 202. Each of the internet of things devices may be an electrical component such as a sensor, and may be set according to actual needs, which is not limited in the embodiments of the present invention.
The communication system of the Internet of things can adopt an IPv6 Protocol (Internet Protocol Version 6) for communication. IPv6 is a network layer protocol redesigned to overcome the exposed shortage of IPv4, the upper layer transmission protocol TCP/UDP is not changed, and the address space is 2 of IPv496Besides fundamentally solving the problem of insufficient IPv4 addresses, the method improves IPv4 in expansibility, service quality and safety. The IPv6 address is represented in a colon hexadecimal notation and includes prefix information, which may include a global routing prefix and subnet identification, and network interface identification. A network node may have multiple network interfaces, and the IPv6 address mechanism allows different network interfaces to use the same network interface identifier, as long as the network interfaces are in different subnets and no address conflict occurs. The IPv6 address allocation mode comprises stateless address automatic configuration, and a network node generates an IPv6 global unicast address by receiving routing advertisement information sent by a router on a link and combining network interface identification. With the continuous development of the internet of things, more and more internet of things devices are connected into the internet of things, and a stateless address automatic configuration mechanism is introduced, so that the network address allocation efficiency of the internet of things devices can be effectively improved.
Fig. 2 is a schematic flow chart of a communication establishment method of the internet of things according to an embodiment of the present invention, and as shown in fig. 2, the communication establishment method of the internet of things according to the embodiment of the present invention includes:
s201, after entering a father node working mode, sending a channel occupation request to a router;
specifically, after entering a parent node working mode, the internet of things terminal sends a channel occupation request to the router, where the channel occupation request is used to apply for occupying a current channel of the router from the router, and the router receives the channel occupation request. The router can modify the flag bit of the current channel, so that the state of the current channel is changed from idle to occupied, and other internet of things terminals in the same level as the internet of things terminal sending the channel occupation request cannot communicate with the router. The parent node working mode is preset, and can be started manually through a button arranged on the internet of things terminal or through software setting, and the setting is performed according to actual needs, and the embodiment of the invention is not limited.
The internet of things terminal is an internet of things device in an internet of things communication system and needs to establish communication with a lower-layer terminal. The terminal of the internet of things is, for example, the internet of things device 101, the internet of things device 103, and the internet of things device 202 in fig. 1, and the channel occupation request may be sent to the router 100 through the internet of things device 103 for the internet of things device 202.
S202, if judging that the response information returned by the router comprises a channel occupation permission message, broadcasting first announcement information to enable a lower-layer terminal to generate a first link local address according to prefix information; wherein the first advertisement information includes the prefix information.
Specifically, after receiving the channel occupation request, the router may respond to the channel occupation request according to a use condition of a current channel, and if the current channel has no data to transmit, the router may return response information including a channel occupation permission message to the internet of things terminal, and after receiving the response information including the channel occupation permission message, the internet of things terminal may determine that the response information includes the channel occupation permission message, which indicates that the router allows the internet of things terminal to use the current channel, and may broadcast first advertisement information, where the first advertisement information includes prefix information. The lower layer terminal may receive the first advertisement information, and generate a first link local address according to the prefix information and the interface identifier of the lower layer terminal, and the lower layer terminal may establish a communication connection through the first link local address and the link local address of the internet of things terminal included in the first advertisement information. The lower-layer terminal is a newly-added internet-of-things device, the first link local address is not available before the first announcement information is received, the number of the lower-layer terminals may be one or multiple, and the lower-layer terminals are set according to actual needs, which is not limited in the embodiment of the invention. The first advertisement information may include the prefix information and a link local address of the internet of things terminal. It can be understood that, if there is data transmission in the current channel, the router may return response information including a channel occupation rejection message to the internet of things terminal, and after receiving the response information including the channel occupation rejection message, the internet of things terminal may determine that the response information includes the channel occupation rejection message, which indicates that the router does not allow the internet of things terminal to use the current channel, and may wait for a period of time before resending the channel occupation request to the router.
For example, in the internet of things communication system shown in fig. 1, when the router 100 has established a communication connection with the internet of things device 101 through the IPv6 protocol, and the internet of things device 201 needs to establish communication with the internet of things device 101 as a new internet of things device, the parent node operating mode of the internet of things device 101 is first turned on. After entering the parent node operation mode, the internet of things device 101 sends a channel occupation request to the router 100, requesting to use the current channel of the router 100. The router 100 returns response information including the channel occupation permission message to the internet of things device 101, and after receiving the response information, the internet of things device 101 determines that the response information includes the channel occupation permission message, and then broadcasts first advertisement information, where the first advertisement information includes prefix information and a link local address of the internet of things device 101. The internet of things device 201 may receive the first advertisement information, and obtain the prefix information and the link local address of the internet of things device 101 from the first advertisement information. The internet of things device 201 may generate a temporary link local address of the internet of things device 201 according to the prefix information and the network interface identifier of the internet of things device 201, and then send a neighbor solicitation message to perform repetitive detection on the temporary link local address of the internet of things device 201, because the lower terminal of the internet of things device 101 is only one internet of things device 201, the problem of address repeatability is not caused, and the internet of things device 201 may use the temporary link local address of the internet of things device 201 as the link local address of the internet of things device 201. The internet of things device 201 uploads the internet of things data to the internet of things device 101 according to the link local address of the internet of things device 101, and the link local address of the internet of things device 201 can be carried while the internet of things data is uploaded.
According to the communication establishing method of the Internet of things, the channel occupation request can be sent to the router after the working mode of the father node is entered, and the first announcement information is broadcasted after the response information returned by the router is judged and acquired to include the channel occupation permission message, so that the lower-layer terminal can generate the first link local address according to the prefix information, the network address can be automatically configured for the lower-layer terminal, and the network address configuration efficiency is improved. In addition, the lower-layer terminal can be accessed to the Internet of things under the condition of not directly communicating with the router, and the safety of the Internet of things is improved. And the lower-layer terminal can be flexibly and conveniently accessed into the Internet of things, so that the Internet of things is conveniently expanded.
Fig. 3 is a schematic flow chart of a communication establishing method of the internet of things according to another embodiment of the present invention, and as shown in fig. 3, on the basis of the foregoing embodiments, further, the communication establishing method of the internet of things according to the embodiment of the present invention further includes:
and S203, after receiving the Internet of things data uploaded by the lower-layer terminal, sending a channel release request to the router to release channel occupation.
Specifically, the lower layer terminal may obtain a link local address of the internet of things terminal through the first announcement information, and then upload the internet of things data to the internet of things terminal. After receiving the internet of things data, the internet of things terminal may send a channel release request to the router, where the channel release request is used to release the current channel and release the occupation of the channel. The router can receive the channel release request, then modify the flag bit of the current channel, change the state of the current channel from occupied to idle, and enable other internet of things terminals in the same level as the internet of things terminal sending the channel release request to communicate with the router. The data of the internet of things is data of temperature, current, voltage, switching state and the like, and is set according to actual needs, and the embodiment of the invention is not limited.
Fig. 4 is a schematic flow chart of a communication establishing method of the internet of things according to another embodiment of the present invention, and as shown in fig. 4, on the basis of the foregoing embodiments, further, the communication establishing method of the internet of things according to the embodiment of the present invention further includes:
s401, receiving second advertisement information broadcasted by the router, wherein the second advertisement information comprises the prefix information;
specifically, the communication connection between the internet of things terminal and the router is established by the router. The router broadcasts second advertisement information, the second advertisement information includes the prefix information, and the internet of things terminal receives the second advertisement information and obtains the prefix information from the second advertisement.
S402, obtaining a second link local address according to the prefix information and the local interface identifier.
Specifically, after receiving the superimposed advertisement information, the terminal of the internet of things may obtain a second link local address according to the prefix information and the local interface identifier. And the local interface identifier is the network interface identifier of the internet of things terminal.
Fig. 5 is a schematic flowchart of a communication establishing method of the internet of things according to still another embodiment of the present invention, and as shown in fig. 5, on the basis of the foregoing embodiments, further, the obtaining a second link local address according to the prefix information and the local interface identifier includes:
s4021, generating a temporary link local address according to the prefix information and the local interface identifier;
specifically, after obtaining the prefix information, the terminal of the internet of things may generate a temporary link local address of the terminal of the internet of things according to the prefix information and the local interface identifier. The specific process of generating the temporary link local address according to the prefix information and the local interface identifier is the prior art, and is not described herein again.
S4022, sending a neighbor request message, wherein the neighbor request message comprises the temporary link local address;
specifically, after the internet of things terminal generates the temporary link local address, it may broadcast a Neighbor solicitation message in a channel, where the Neighbor solicitation message may be sent based on a Neighbor Discovery Protocol (NDP) of an IPv6 protocol, so as to perform repeatability detection on the temporary link local address. Wherein the neighbor solicitation message includes the temporary link local address.
S4023, if the neighbor advertisement message responding to the neighbor solicitation message is not received within the preset time, using the temporary link local address as the second link local address.
Specifically, other internet of things terminals using the same channel as the internet of things terminal may receive the neighbor solicitation message, compare the temporary link local address with a local link local address, if the temporary link local address is different from the local link local address, then not send a neighbor advertisement message responding to the neighbor solicitation message to the internet of things terminal, and if the temporary link local address is the same as the local link local address, send a neighbor advertisement message responding to the neighbor solicitation message to the internet of things terminal. And if the internet of things terminal does not receive the neighbor advertisement message responding to the neighbor solicitation message within the preset time, the internet of things terminal indicates that the temporary link local address is not repeated, and the internet of things terminal takes the temporary link local address as the second link local address. And if the internet of things terminal receives the neighbor advertisement message responding to the neighbor solicitation message in the preset time, the temporary link local address is repeated, and the second link local address needs to be manually configured. Since the local interface identification of the internet of things terminal is calculated by the MAC address, and the MAC address is globally unique, the probability of the temporary link local address being duplicated is small. The preset time is set according to actual experience, and the embodiment of the invention is not limited.
For example, in the internet of things communication system shown in fig. 1, the router 100 may broadcast second advertisement information, which may be received by the internet of things device 101, the internet of things device 102, and the internet of things device 103. After receiving the second advertisement information, the internet of things device 101 may obtain prefix information of the router 100 from the second advertisement information, then generate a temporary link local address of the internet of things device 101 according to the prefix information of the router 100 and a network interface identifier of the internet of things device 101, and then the internet of things device 101 may send a neighbor solicitation message, where the neighbor solicitation message includes the temporary link local address of the internet of things device 101. The internet of things device 102 and the internet of things device 103 may receive the neighbor solicitation message, and the link local addresses of the internet of things device 102 and the internet of things device 103 are different from the temporary link local address, and do not send a neighbor advertisement message in response to the neighbor solicitation message to the internet of things device 101. If the internet of things device 101 does not receive the neighbor advertisement message within the preset time, the temporary link local address of the internet of things device 101 is used as the link local address of the internet of things device 101, that is, the second link local address of the internet of things device 101. The processing procedure after the internet of things device 102 and the internet of things device 103 receive the second notice information is similar to that of the internet of things device 101, and is not described herein again.
Fig. 6 is a schematic structural diagram of an internet of things communication system according to another embodiment of the present invention, and as shown in fig. 6, the internet of things communication system according to the embodiment of the present invention includes a router 600, a plurality of user total electric meters and a plurality of user electric power meters, where the plurality of user total electric meters form a layer 1 internet of things device, and the plurality of user electric power meters form a layer 2 internet of things device. The router 600 is in communication connection with each user general electric meter through an IPv6 protocol, and each user general electric meter is in communication connection with a plurality of user sub electric meters through an IPv6 protocol. Each user total electric meter is used for counting the electric quantity used by the corresponding resident user, each user sub-electric meter is used for counting the electric quantity used by the household appliances of the corresponding resident user, and the household appliances comprise but are not limited to refrigerators, televisions, washing machines, water heaters and air conditioners.
The router 600 is used as a network layer entity to initiate a process of establishing a communication network of the communication system of the internet of things, and requests the MAC sublayer of the data link layer to establish an effective communication channel, that is, a wireless link with a frequency that is not occupied is found to be occupied through scanning and searching, so as to complete a process of initializing the communication network. The occupied radio link serves as a channel for communication. The router 600 broadcasts second advertisement information on the channel, the second advertisement information including prefix information and a link local address of the router 600. The user electric meter 1 may receive the second advertisement information, obtain the prefix information of the router 600 from the second advertisement information, then generate a temporary link local address of the user electric meter 1 according to the prefix information of the router 600 and the network interface identifier of the user electric meter 1, and then the user electric meter 1 may send a neighbor solicitation message, where the neighbor solicitation message includes the temporary link local address of the user electric meter 1. The other user general electric meters may receive the neighbor solicitation message, and if the link local address of the other user general electric meters is different from the temporary link local address, the neighbor advertisement message responding to the neighbor solicitation message is not transmitted to the user general electric meter 1. If the user electric meter 1 does not receive the neighbor advertisement message within the preset time, the temporary link local address of the user electric meter 1 is used as the link local address of the user electric meter 1, that is, the second link local address of the user electric meter 1. The processing procedure of receiving the second announcement information by the other user electric meters is similar to the processing procedure of the user electric meter 1, and is not described herein again.
The process of establishing communication between each user's total electric meter and the corresponding user's sub-electric meter is similar, and the process of establishing communication between the user's total electric meter 1 and the corresponding user's sub-electric meter is taken as an example for explanation. And starting a father node working mode of the user general electric meter 1. After entering the parent node operation mode, the user electric meter 1 sends a channel occupation request to the router 600, requesting to use the current channel of the router 600. The router 600 returns response information including a channel occupation permission message to the user electricity meter 1, after receiving the response information, the user electricity meter 1 determines that the response information includes the channel occupation permission message, and then broadcasts first announcement information, where the first announcement information includes prefix information of the router 600 and a link local address of the user electricity meter 1, and the user electricity distribution meter 1, the user electricity distribution meters 2 and … …, and the user electricity distribution meter m respectively receive the first announcement information. The user sub-meter 1 acquires the prefix information of the router 600 and the link local address of the user main meter 1 from the first advertisement information. The user electricity distribution meter 1 may generate a temporary link local address of the user electricity distribution meter 1 according to the prefix information of the router 600 and the network interface identifier of the user electricity distribution meter 1, then send a neighbor solicitation message, perform repeatability detection on the temporary link local address of the user electricity distribution meter 1, and after detecting that the temporary link local address of the user electricity distribution meter 1 is not repeated, the user electricity distribution meter 1 may use the temporary link local address of the user electricity distribution meter 1 as the link local address of the user electricity distribution meter 1. The user electricity distribution meter 1 uploads the detected electric quantity used by the household appliance to the user electricity distribution meter 1 according to the link local address of the user electricity distribution meter 1, and the link local address of the user electricity distribution meter 1 can be carried while the electric quantity is uploaded. The processing procedure after the user electricity distribution meter 2, the user electricity distribution meters 3 and … … and the user electricity distribution meter m receive the first notice information is similar to the processing procedure of the user electricity distribution meter 1, and is not described herein again.
Fig. 7 is a schematic structural diagram of a communication establishing apparatus of the internet of things according to an embodiment of the present invention, and as shown in fig. 7, the communication establishing apparatus of the internet of things according to the embodiment of the present invention includes a first sending unit 701 and a determining unit 702, where:
the first sending unit 701 is configured to send a channel occupation request to the router after entering the parent node operating mode; the determining unit 702 is configured to broadcast first advertisement information to enable a lower layer terminal to generate a first link local address according to prefix information after determining that the response information returned by the router includes a channel occupation permission message; wherein the first advertisement information includes the prefix information.
Specifically, after entering the parent node operating mode, the first sending unit 701 sends a channel occupation request to the router, where the channel occupation request is used to apply for occupying a current channel of the router from the router, and the router receives the channel occupation request. The router can modify the flag bit of the current channel, so that the state of the current channel is changed from idle to occupied, and other internet of things terminals in the same level as the internet of things terminal sending the channel occupation request cannot communicate with the router. The parent node working mode is preset, and can be started manually through a button arranged on the internet of things terminal or through software setting, and the setting is performed according to actual needs, and the embodiment of the invention is not limited.
Specifically, after receiving the channel occupation request, the router may respond to the channel occupation request according to a use condition of the current channel, and if the current channel has no data to transmit, the router may return response information including a channel occupation permission message to the determining unit 702, and after receiving the response information including the channel occupation permission message, the determining unit 702 may determine that the response information includes the channel occupation permission message, which indicates that the router allows the internet of things terminal to use the current channel, and broadcast first advertisement information, where the first advertisement information includes prefix information. The lower layer terminal may receive the first advertisement information, and generate a first link local address according to the prefix information and the interface identifier of the lower layer terminal, and the lower layer terminal may establish a communication connection through the first link local address and the link local address of the internet of things terminal included in the first advertisement information. The lower-layer terminal is a newly-added internet-of-things device, the first link local address is not available before the first announcement information is received, the number of the lower-layer terminals may be one or multiple, and the lower-layer terminals are set according to actual needs, which is not limited in the embodiment of the invention. The first advertisement information may include the prefix information and a link local address of the internet of things terminal. It can be understood that, if the current channel has data transmission, the router may return response information including a channel occupation rejection message to the determining unit 702, and after receiving the response information including the channel occupation rejection message, the determining unit 702 may determine that the response information includes the channel occupation rejection message, which indicates that the router does not allow the internet of things terminal to use the current channel, and may wait for a period of time before resending the channel occupation request to the router.
The communication establishing device of the internet of things provided by the embodiment of the invention can send the channel occupation request to the router after entering the father node working mode, and broadcast the first notice information after judging and knowing that the response information returned by the router comprises the channel occupation permission message, so that the lower-layer terminal generates the first link local address according to the prefix information, the network address can be automatically configured for the lower-layer terminal, and the network address configuration efficiency is improved. In addition, the lower-layer terminal can be accessed to the Internet of things under the condition of not directly communicating with the router, and the safety of the Internet of things is improved. And the lower-layer terminal can be flexibly and conveniently accessed into the Internet of things, so that the Internet of things is conveniently expanded.
Fig. 8 is a schematic structural diagram of a communication establishing apparatus of the internet of things according to another embodiment of the present invention, as shown in fig. 8, on the basis of the foregoing embodiments, further, the communication establishing apparatus of the internet of things according to the embodiment of the present invention further includes a second sending unit 703, where:
the second sending unit 703 is configured to send a channel release request to the router to release channel occupancy after receiving the internet of things data uploaded by the lower terminal.
Specifically, the lower layer terminal may obtain a link local address of the internet of things terminal through the first advertisement information, and then upload the internet of things data to the second sending unit 703. After receiving the internet of things data, the second sending unit 703 may send a channel release request to the router, where the channel release request is used to release the current channel and release the occupation of the channel. The router can receive the channel release request, then modify the flag bit of the current channel, change the state of the current channel from occupied to idle, and enable other internet of things terminals in the same level as the internet of things terminal sending the channel release request to communicate with the router. The data of the internet of things is data of temperature, current, voltage, switching state and the like, and is set according to actual needs, and the embodiment of the invention is not limited.
Fig. 9 is a schematic structural diagram of a communication establishing apparatus of the internet of things according to another embodiment of the present invention, and as shown in fig. 9, the communication establishing apparatus of the internet of things according to the embodiment of the present invention further includes a receiving unit 704 and an obtaining unit 705, where:
the receiving unit 704 is configured to receive second advertisement information broadcasted by the router, where the second advertisement information includes the prefix information; the obtaining unit 705 is configured to obtain the second link local address according to the prefix information and the local interface identifier.
Specifically, the communication connection between the receiving unit 704 and the router is established by the router. The router broadcasts second advertisement information, where the second advertisement information includes the prefix information, and the receiving unit 704 receives the second advertisement information and obtains the prefix information from the second advertisement.
After receiving the overlay advertisement information, the obtaining unit 705 may obtain the second link local address according to the prefix information and the local interface identifier. And the local interface identifier is the network interface identifier of the internet of things terminal.
Fig. 10 is a schematic structural diagram of a communication establishing apparatus of the internet of things according to yet another embodiment of the present invention, and as shown in fig. 10, on the basis of the foregoing embodiments, further, the obtaining unit 705 includes a generating subunit 7051, a sending subunit 7052, and a determining subunit 7053, where:
the generating subunit 7051 is configured to generate a temporary link local address according to the prefix information and the local interface identifier; a sending subunit 7052 is configured to send a neighbor solicitation message, where the neighbor solicitation message includes the temporary link local address; the determining subunit 7053 is configured to, if a neighbor advertisement message responding to the neighbor solicitation message is not received within a preset time, use the temporary link local address as the second link local address.
Specifically, after obtaining the prefix information, the generating subunit 7051 may generate the temporary link local address of the terminal of the internet of things according to the prefix information and the local interface identifier. The specific process of generating the temporary link local address according to the prefix information and the local interface identifier is the prior art, and is not described herein again.
After generating the temporary link local address, transmitting subunit 7052 may broadcast a neighbor solicitation message within the channel, which may be transmitted based on a neighbor discovery protocol of the IPv6 protocol, to perform a duplicate detection on the temporary link local address. Wherein the neighbor solicitation message includes the temporary link local address.
Other internet of things terminals using the same channel as the internet of things terminal may receive the neighbor solicitation message and then compare the temporary link local address with the local link local address, and if the temporary link local address is different from the local link local address, a neighbor advertisement message responding to the neighbor solicitation message is not sent to the determining subunit 7053, and if the temporary link local address is the same as the local link local address, a neighbor advertisement message responding to the neighbor solicitation message is sent to the determining subunit 7053. Determining subunit 7053, if it does not receive the neighbor advertisement message in response to the neighbor solicitation message within a preset time, which indicates that the temporary link local address is not duplicated, determining subunit 7053 may use the temporary link local address as the second link local address. If it is determined that subunit 7053 receives the neighbor advertisement message in response to the neighbor solicitation message within the preset time, which indicates that the temporary link local address is duplicated, it needs to manually configure the second link local address. Since the local interface identification of the internet of things terminal is calculated by the MAC address, and the MAC address is globally unique, the probability of the temporary link local address being duplicated is small. The preset time is set according to actual experience, and the embodiment of the invention is not limited.
The embodiment of the apparatus provided in the embodiment of the present invention may be specifically configured to execute the processing flows of the above method embodiments, and the functions of the apparatus are not described herein again, and refer to the detailed description of the above method embodiments.
Fig. 11 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 11, the electronic device may include: a processor (processor)1101, a communication Interface (Communications Interface)1102, a memory (memory)1103 and a communication bus 1104, wherein the processor 1101, the communication Interface 1102 and the memory 1103 are communicated with each other via the communication bus 1104. The processor 1101 may call logic instructions in the memory 1103 to perform the following method: after entering a parent node working mode, sending a channel occupation request to a router; if the response information returned by the router is judged to include the channel occupation permission information, broadcasting first announcement information to enable the lower-layer terminal to generate a first link local address according to the prefix information; wherein the first advertisement information includes the prefix information.
In addition, the logic instructions in the memory 1103 can be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The present embodiment discloses a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the method provided by the above-mentioned method embodiments, for example, comprising: after entering a parent node working mode, sending a channel occupation request to a router; if the response information returned by the router is judged to include the channel occupation permission information, broadcasting first announcement information to enable the lower-layer terminal to generate a first link local address according to the prefix information; wherein the first advertisement information includes the prefix information.
The present embodiment provides a computer-readable storage medium, which stores a computer program, where the computer program causes the computer to execute the method provided by the above method embodiments, for example, the method includes: after entering a parent node working mode, sending a channel occupation request to a router; if the response information returned by the router is judged to include the channel occupation permission information, broadcasting first announcement information to enable the lower-layer terminal to generate a first link local address according to the prefix information; wherein the first advertisement information includes the prefix information.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In the description herein, reference to the description of the terms "one embodiment," "a particular embodiment," "some embodiments," "for example," "an example," "a particular example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A communication establishing method of the Internet of things is characterized by comprising the following steps:
after entering a parent node working mode, sending a channel occupation request to a router;
if the response information returned by the router is judged to include the channel occupation permission information, broadcasting first announcement information to enable the lower-layer terminal to generate a first link local address according to the prefix information; wherein the first advertisement information includes the prefix information.
2. The method of claim 1, further comprising:
and after receiving the Internet of things data uploaded by the lower-layer terminal, sending a channel release request to the router to release channel occupation.
3. The method of claim 1 or 2, further comprising:
receiving second advertisement information broadcasted by the router, wherein the second advertisement information comprises the prefix information;
and acquiring a second link local address according to the prefix information and the local interface identifier.
4. The method of claim 3, wherein obtaining the second link-local address according to the prefix information and the local interface identifier comprises:
generating a temporary link local address according to the prefix information and the local interface identifier;
sending a neighbor solicitation message, the neighbor solicitation message including the temporary link local address;
and if the neighbor advertisement message responding to the neighbor solicitation message is not received within the preset time, taking the temporary link local address as the second link local address.
5. A communication establishing device of the Internet of things is characterized by comprising:
the first sending unit is used for sending a channel occupation request to the router after entering a parent node working mode;
a judging unit, configured to broadcast first advertisement information to enable a lower layer terminal to generate a first link local address according to prefix information after judging that it is known that response information returned by the router includes a channel occupation permission message; wherein the first advertisement information includes the prefix information.
6. The apparatus of claim 5, further comprising:
and the second sending unit is used for sending a channel release request to the router to release channel occupation after receiving the internet of things data uploaded by the lower-layer terminal.
7. The apparatus of claim 5 or 6, further comprising:
a receiving unit, configured to receive second advertisement information broadcasted by the router, where the second advertisement information includes the prefix information;
and the obtaining unit is used for obtaining the second link local address according to the prefix information and the local interface identifier.
8. The apparatus of claim 7, wherein the obtaining unit comprises:
a generating subunit, configured to generate a temporary link local address according to the prefix information and the local interface identifier;
a sending subunit, configured to send a neighbor solicitation message, where the neighbor solicitation message includes the temporary link local address;
a determining unit, configured to, if a neighbor advertisement message responding to the neighbor solicitation message is not received within a preset time, use the temporary link local address as the second link local address.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 4 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 4.
CN201911314683.7A 2019-12-19 2019-12-19 Communication establishment method and device of Internet of things Active CN111049918B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911314683.7A CN111049918B (en) 2019-12-19 2019-12-19 Communication establishment method and device of Internet of things

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911314683.7A CN111049918B (en) 2019-12-19 2019-12-19 Communication establishment method and device of Internet of things

Publications (2)

Publication Number Publication Date
CN111049918A true CN111049918A (en) 2020-04-21
CN111049918B CN111049918B (en) 2023-05-19

Family

ID=70237839

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911314683.7A Active CN111049918B (en) 2019-12-19 2019-12-19 Communication establishment method and device of Internet of things

Country Status (1)

Country Link
CN (1) CN111049918B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114816680A (en) * 2022-03-09 2022-07-29 华北电力大学 Business process model discovery method based on CPU-GPU architecture

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859443A (en) * 2006-01-06 2006-11-08 华为技术有限公司 Method for distributing terminal device IP address under router
WO2007009367A1 (en) * 2005-07-19 2007-01-25 Alcatel A method for duplicate address detection in the two-layer access network supporting ipv6 and a system thereof
US20080263353A1 (en) * 2007-04-23 2008-10-23 Ralph Edward Droms Autoconfigured prefix delegation based on distributed hash
US20090161581A1 (en) * 2007-12-20 2009-06-25 Jin Hyoung Kim ADDRESS AUTOCONFIGURATION METHOD AND SYSTEM FOR IPv6-BASED LOW-POWER WIRELESS PERSONAL AREA NETWORK
CN101753460A (en) * 2010-01-15 2010-06-23 杭州华三通信技术有限公司 Method and device for processing internet protocol version 6(IPV6) routing prefix
CN101909091A (en) * 2010-07-22 2010-12-08 华为终端有限公司 Address violation detection method, customer premises equipment and host
CN102238075A (en) * 2010-05-05 2011-11-09 杭州华三通信技术有限公司 IPv6 (Internet Protocol version 6) routing establishing method based on Ethernet Point-to-Point Protocol and access server
CN103916484A (en) * 2012-12-31 2014-07-09 华为技术有限公司 IP-address configuring method and device
CN108848100A (en) * 2018-06-27 2018-11-20 清华大学 A kind of stateful IPv6 address generating method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007009367A1 (en) * 2005-07-19 2007-01-25 Alcatel A method for duplicate address detection in the two-layer access network supporting ipv6 and a system thereof
CN1859443A (en) * 2006-01-06 2006-11-08 华为技术有限公司 Method for distributing terminal device IP address under router
US20080263353A1 (en) * 2007-04-23 2008-10-23 Ralph Edward Droms Autoconfigured prefix delegation based on distributed hash
US20090161581A1 (en) * 2007-12-20 2009-06-25 Jin Hyoung Kim ADDRESS AUTOCONFIGURATION METHOD AND SYSTEM FOR IPv6-BASED LOW-POWER WIRELESS PERSONAL AREA NETWORK
CN101753460A (en) * 2010-01-15 2010-06-23 杭州华三通信技术有限公司 Method and device for processing internet protocol version 6(IPV6) routing prefix
CN102238075A (en) * 2010-05-05 2011-11-09 杭州华三通信技术有限公司 IPv6 (Internet Protocol version 6) routing establishing method based on Ethernet Point-to-Point Protocol and access server
CN101909091A (en) * 2010-07-22 2010-12-08 华为终端有限公司 Address violation detection method, customer premises equipment and host
CN103916484A (en) * 2012-12-31 2014-07-09 华为技术有限公司 IP-address configuring method and device
CN108848100A (en) * 2018-06-27 2018-11-20 清华大学 A kind of stateful IPv6 address generating method and device

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
YUE MA;BO PENG: "Vivaldi antenna with balun feed for SKA feeding system in UWB", 《2015 1ST URSI ATLANTIC RADIO SCIENCE CONFERENCE (URSI AT-RASC)》 *
王洪君等: "基于过滤机制的抑制BGP路由表增长的方法", 《东北大学学报(自然科学版)》 *
金芳;刘大臣;吴学智;: "6LowPan邻居发现优化策略", 现代电子技术 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114816680A (en) * 2022-03-09 2022-07-29 华北电力大学 Business process model discovery method based on CPU-GPU architecture

Also Published As

Publication number Publication date
CN111049918B (en) 2023-05-19

Similar Documents

Publication Publication Date Title
US8103784B2 (en) Communication device and communication control method using efficient echonet address determination scheme
CN108886538B (en) Method and apparatus for configuring M2M device
JP3178419B2 (en) Information providing server, information providing client, and recording medium
CN107113892B (en) Method and device for automatically networking gateway equipment
CN102118453B (en) Method, service device, client and communication system for automatic configuration of IP address
US10965640B2 (en) Configuration of an M2M device
CN107800597B (en) Data transmission method and device for household appliance and computer readable storage medium
CN112449752A (en) IPv6 address configuration method and routing equipment
CN111049918B (en) Communication establishment method and device of Internet of things
CN108667957B (en) IP address allocation method, first electronic device and first server
CN113196721A (en) Discovery method and device of Internet of things equipment and terminal equipment
CN104969598B (en) A kind of method and apparatus using white spectrum communication
CN110798884B (en) Terminal communication method and device
CN116016605A (en) Networking method and device for center node and terminal node of Internet of things
CN108370390B (en) Method for collecting addresses in a sub-network and corresponding collecting node
CN112333296B (en) Equipment discovery method and system
CN104837146B (en) Configuration parameter distribution method, receiving method and device
CN102761625A (en) Method and system for registering domain name for video monitoring terminal
CN101465951A (en) Method and device for dynamically configuring IPv6 of IPv6 set-top box
CN108495299B (en) Method and device for receiving service information and multimode terminal
JP2006211347A (en) Radio communication system
KR20190135052A (en) IP address setting method and device
CN115550318B (en) IPv6 address configuration method and device, equipment and storage medium
CN111416881B (en) Method and device for acquiring domain name system configuration information and storage medium
KR100942923B1 (en) Method and System for selecting optimal DHCP server in condition of WiMedia wireless communication environment

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