CN113438330A - Adaptive local area network address allocation method for LED lamp - Google Patents

Adaptive local area network address allocation method for LED lamp Download PDF

Info

Publication number
CN113438330A
CN113438330A CN202110495679.6A CN202110495679A CN113438330A CN 113438330 A CN113438330 A CN 113438330A CN 202110495679 A CN202110495679 A CN 202110495679A CN 113438330 A CN113438330 A CN 113438330A
Authority
CN
China
Prior art keywords
address
terminal
idle
local area
terminal equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110495679.6A
Other languages
Chinese (zh)
Inventor
汪沁
任泽铭
张志华
汪海源
雷仁大
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Anhui Liangliang Electronic Technology Co ltd
Original Assignee
Anhui Liangliang Electronic Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Anhui Liangliang Electronic Technology Co ltd filed Critical Anhui Liangliang Electronic Technology Co ltd
Priority to CN202110495679.6A priority Critical patent/CN113438330A/en
Publication of CN113438330A publication Critical patent/CN113438330A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/255Maintenance or indexing of mapping tables
    • 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
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5038Address allocation for local use, e.g. in LAN or USB networks, or in a controller area network [CAN]
    • 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/5053Lease time; Renewal aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a self-adaptive local area network address allocation method for LED lamps, which comprises the steps of firstly setting a route to be in an automatic IP allocation mode, then utilizing the MAC address of a central node, broadcasting the Mac address to corresponding terminal equipment through linear operation, then establishing an idle IP address list, wherein the idle IP address list is used for storing the IP address which is not allocated in a network segment, 0 represents that a terminal corresponding to the IP address is in a non-access state, and finally, the terminal equipment performs automatic matching through randomly received broadcasting, and when matching information is received, the Mac address is matched according to codes sent by an upper computer and is set as the IP address of the terminal equipment. The invention is convenient and quick to use, and can solve the problem that the IP address of the terminal equipment is not enough and the problem that the local area networks cannot be connected in common under the condition of no network.

Description

Adaptive local area network address allocation method for LED lamp
Technical Field
The invention relates to the technical field of LED lamps, in particular to a self-adaptive local area network address allocation method for an LED lamp.
Background
Along with the smart lighting concept, the intelligent lighting system is more and more attentive, not only can the automatic energy-saving and emission-reducing functions of products be realized, but also the concept of healthy smart lighting is deeply implanted into the requirements of consumers. However, in the process of expanding intelligent lighting products, consumers and suppliers find that the current intelligent device module cannot meet the scene mode of the existing random application by adopting a traditional fixed IP address allocation mode, and particularly, products depending on internet address allocation cannot be normally used completely when no external network exists, so that a self-adaptive local area network address allocation technology which can be suitable for the internet and the local area network is developed, the intelligent terminal device required by the consumer for randomly networking control at any time and any place is met, and the intelligent terminal device is certainly popular and loved in the market. The internet address allocation technology is a unique number for a terminal device to access or control other networks, thereby causing the disadvantages of small quantity or fixed address in the current address allocation control. This is not a problem for large network servers. But the method can become a fatal restriction to various terminal application devices in the internet of things. Because for a location in a non-network environment, once the external network is lost, the whole local area network cannot be networked for communication. Currently, the commonly used network IP address allocation employs dynamic IP and MAC binding assignment.
The existing LED lamp self-adaptive local area network address allocation technology cannot automatically realize networking and intercommunication without an external network, is particularly obvious when conventional wireless communication is adopted, and has the condition of insufficient IP addresses when more terminal control devices are adopted.
Disclosure of Invention
The invention mainly aims to provide a self-adaptive local area network address allocation method for an LED lamp, which can effectively solve the problems in the background technology.
In order to achieve the purpose, the invention adopts the technical scheme that:
a self-adaptive local area network address allocation method for LED lamps comprises the following steps:
step 1, setting a route to be in an automatic IP distribution mode;
step 2, broadcasting the Mac address to corresponding terminal equipment through linear operation by using the MAC address of the central node;
step 3, an idle IP address list is established, the idle IP address list is used for storing IP addresses which are not distributed in the network segment, and 0 represents that the terminal corresponding to the IP address is in an unaccessed state;
step 4, the terminal equipment performs automatic pairing through randomly received broadcast, and when matching information is received, the Mac address of the terminal equipment is matched according to the code sent by the upper computer and is set as the IP address of the terminal equipment;
step 5, finding the IP address of the router requested by the terminal to access this time and the IP address corresponding to the MAC address of the terminal stored in the idle IP address list, recording the current state of the IP address as 1, wherein 1 represents that the terminal corresponding to the IP address is in an access state, and updating the idle IP address list;
and 6, feeding back the IP address marked as 0 in the IP address corresponding to the terminal MAC address stored in the idle IP address list to the central node, and randomly distributing the IP address for the next time by the central node.
Preferably, the method further comprises the step of when the idle IP address list is allocated to the terminal temporarily
When the terminal MAC address corresponding to the IP address requests access, the free IP address list is preferably allowed
The access request of the terminal MAC address corresponding to the IP address prohibits the access of the terminal temporarily allocated with the IP address.
Preferably, the routing address adopts a type C address.
Preferably, the free IP address list is updated in real time.
Compared with the prior art, the invention has the following beneficial effects:
according to the address allocation method for the self-adaptive local area network for the LED lamp, in the local area network, the MAC address of a central node is utilized, the MAC address is broadcasted to corresponding terminal equipment through linear operation, the terminal equipment is automatically paired through randomly received broadcast, when pairing information is matched, the Mac address of the terminal equipment is matched according to codes sent by an upper computer, and meanwhile, the terminal equipment is set as the IP address of the terminal equipment, so that the problem that the IP addresses of the terminal equipment are insufficient and the problem that the local area network cannot be connected in a common mode under the condition that no network exists can be solved.
Detailed Description
In order to make the technical means, the creation characteristics, the achievement purposes and the effects of the invention easy to understand, the invention is further described with the specific embodiments.
A self-adaptive local area network address allocation method for LED lamps comprises the following steps:
step 1, setting a route to be in an automatic IP distribution mode;
step 2, broadcasting the Mac address to corresponding terminal equipment through linear operation by using the MAC address of the central node;
step 3, an idle IP address list is established, the idle IP address list is used for storing IP addresses which are not distributed in the network segment, and 0 represents that the terminal corresponding to the IP address is in an unaccessed state;
step 4, the terminal equipment performs automatic pairing through randomly received broadcast, and when matching information is received, the Mac address of the terminal equipment is matched according to the code sent by the upper computer and is set as the IP address of the terminal equipment;
step 5, finding the IP address of the router requested by the terminal to access this time and the IP address corresponding to the MAC address of the terminal stored in the idle IP address list, recording the current state of the IP address as 1, wherein 1 represents that the terminal corresponding to the IP address is in an access state, and updating the idle IP address list;
and 6, feeding back the IP address marked as 0 in the IP address corresponding to the terminal MAC address stored in the idle IP address list to the central node, and randomly distributing the IP address for the next time by the central node.
When the terminal MAC address corresponding to the IP address in the idle IP address list requests access, it is preferable to allow the access request of the terminal MAC address corresponding to the IP address in the idle IP address list and prohibit access of the terminal to which the IP address is temporarily assigned.
The routing address adopts a C-type address.
And updating the idle IP address list in real time.
The invention is to say that the invention is a method for allocating addresses of a self-adaptive local area network for LED lamps, when in use, in the local area network, the MAC address of a central node is utilized, the Mac address is broadcasted to corresponding terminal equipment through linear operation, the terminal equipment automatically pairs through randomly received broadcast, when matching information is received, the Mac address of the terminal equipment is matched according to a code sent by an upper computer, and meanwhile, the Mac address of the terminal equipment is set as an IP address of the terminal equipment, so that the problem that the IP addresses of the terminal equipment are insufficient and the problem that the local area network cannot be connected in a common mode in a network-free state can be solved.
The foregoing shows and describes the general principles and broad features of the present invention and advantages thereof. It will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, which are described in the specification and illustrated only to illustrate the principle of the present invention, but that various changes and modifications may be made therein without departing from the spirit and scope of the present invention, which fall within the scope of the invention as claimed. The scope of the invention is defined by the appended claims and equivalents thereof.

Claims (4)

1. A self-adaptive local area network address allocation method for LED lamps is characterized by comprising the following steps:
step 1, setting a route to be in an automatic IP distribution mode;
step 2, broadcasting the Mac address to corresponding terminal equipment through linear operation by using the MAC address of the central node;
step 3, an idle IP address list is established, the idle IP address list is used for storing IP addresses which are not distributed in the network segment, and 0 represents that the terminal corresponding to the IP address is in an unaccessed state;
step 4, the terminal equipment performs automatic pairing through randomly received broadcast, and when matching information is received, the Mac address of the terminal equipment is matched according to the code sent by the upper computer and is set as the IP address of the terminal equipment;
step 5, finding the IP address of the router requested by the terminal to access this time and the IP address corresponding to the MAC address of the terminal stored in the idle IP address list, recording the current state of the IP address as 1, wherein 1 represents that the terminal corresponding to the IP address is in an access state, and updating the idle IP address list;
and 6, feeding back the IP address marked as 0 in the IP address corresponding to the terminal MAC address stored in the idle IP address list to the central node, and randomly distributing the IP address for the next time by the central node.
2. The method for allocating the address of the LED lamp in the adaptive local area network as claimed in claim 1, wherein the method comprises the following steps: when the terminal MAC address corresponding to the IP address in the idle IP address list requests access, it is preferable to allow the access request of the terminal MAC address corresponding to the IP address in the idle IP address list and prohibit access of the terminal to which the IP address is temporarily assigned.
3. The method for allocating the address of the LED lamp in the adaptive local area network as claimed in claim 1, wherein the method comprises the following steps: the routing address adopts a C-type address.
4. The method for allocating the address of the LED lamp in the adaptive local area network as claimed in claim 1, wherein the method comprises the following steps: and updating the idle IP address list in real time.
CN202110495679.6A 2021-05-07 2021-05-07 Adaptive local area network address allocation method for LED lamp Pending CN113438330A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110495679.6A CN113438330A (en) 2021-05-07 2021-05-07 Adaptive local area network address allocation method for LED lamp

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110495679.6A CN113438330A (en) 2021-05-07 2021-05-07 Adaptive local area network address allocation method for LED lamp

Publications (1)

Publication Number Publication Date
CN113438330A true CN113438330A (en) 2021-09-24

Family

ID=77753317

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110495679.6A Pending CN113438330A (en) 2021-05-07 2021-05-07 Adaptive local area network address allocation method for LED lamp

Country Status (1)

Country Link
CN (1) CN113438330A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104378456A (en) * 2014-11-20 2015-02-25 无锡悟莘科技有限公司 Allocation optimization method for IP addresses in local area network
CN106231001A (en) * 2016-07-25 2016-12-14 浙江大华技术股份有限公司 A kind of method, apparatus and system carrying out IP address configuration
CN106603743A (en) * 2016-12-16 2017-04-26 合网络技术(北京)有限公司 Broadcast request response method based on DHCP protocol customization, system and terminal thereof
US20180287995A1 (en) * 2015-09-29 2018-10-04 Orange Technique for managing an address in a local area network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104378456A (en) * 2014-11-20 2015-02-25 无锡悟莘科技有限公司 Allocation optimization method for IP addresses in local area network
US20180287995A1 (en) * 2015-09-29 2018-10-04 Orange Technique for managing an address in a local area network
CN106231001A (en) * 2016-07-25 2016-12-14 浙江大华技术股份有限公司 A kind of method, apparatus and system carrying out IP address configuration
CN106603743A (en) * 2016-12-16 2017-04-26 合网络技术(北京)有限公司 Broadcast request response method based on DHCP protocol customization, system and terminal thereof

Similar Documents

Publication Publication Date Title
CN102316447B (en) Internet protocol (IP) address allocation and sending method, wireless access device, server and system
CN106302616B (en) Network awakening method, remote server and network switching equipment
CN105847456B (en) A kind of RS485 distributes address methods, devices and systems automatically
CN104994530B (en) More Wi-Fi internet of things equipment grouping collective's control system and method based on group MAC Address
CN103200209A (en) Access method of member resources, group server and member devices
US20170289033A1 (en) Address cache for tunnel endpoint associated with an overlay network
CN102025798A (en) Address allocation processing method, device and system
CN102231764A (en) Method and device for distributing network addresses
CN102098354A (en) Method and server for allocating dynamic host configuration protocol (DHCP) addresses
US20130003596A1 (en) Method and device for relocating address space
CN105245629A (en) DHCP-based host communication method and device
CN102291259B (en) Low-voltage power line communication network layer management method based on multi-master station mode
CN104717603A (en) Method and system for achieving Bluetooth low-power-consumption networking and supporting convenient interconnection
CN111556592B (en) Networking method and device, LoRa equipment and storage medium
CN111913397B (en) Device control method, device, storage medium, and electronic apparatus
CN112291386A (en) Bluetooth address allocation method of intelligent lamp, computer device and computer readable storage medium
CN105704821A (en) Channel mapping based MAC protocol of multi-channel distribution method
CN102685274B (en) Group address distribution method of intelligent equipment in intelligent household network
CN102685273B (en) The address distribution method of smart machine
EP3086512B1 (en) Implementation method and apparatus for vlan to access vf network and fcf
CN107370792A (en) A kind of DALI extension systems and control method
CN107370647B (en) Method for interconnecting local area internal controller systems and local area network system
CN102694882B (en) The group address distribution method of smart machine in intelligent home network
CN113438330A (en) Adaptive local area network address allocation method for LED lamp
CN111385744B (en) Dynamic channel access method based on polling

Legal Events

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

Application publication date: 20210924

RJ01 Rejection of invention patent application after publication