Method, device, equipment and storage medium for assigning network address to laneway lights

Through wireless connection, the tunnel lights can automatically complete network address coding, which solves the problem of low manual setting of nodes in the mining area communication system and improves network efficiency and flexibility.

CN116112913BActive Publication Date: 2025-08-12SHENZHEN SOF LIGHTING TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211356823.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-01
Publication Date
2025-08-12
Estimated Expiration
2042-11-01

AI Technical Summary

Technical Problem

The network address setting of each node in the mining area communication system needs to be manually set, resulting in low addressing efficiency.

Method used

Through wireless connection, the tunnel lights can return to the corresponding tunnel light physical address based on the physical address reporting command, and receive the slave code assignment command from the host side to automatically complete the network address code assignment.

Benefits of technology

It realizes automatic network addressing of each node in the mining area communication system, and improves the efficiency and flexibility of the system networking.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116112913B_ABST
    Figure CN116112913B_ABST
Patent Text Reader

Abstract

The present application discloses a method, apparatus, device, and storage medium for assigning network addresses to tunnel lights. The method includes the following steps performed by a slave: the tunnel light returns the corresponding tunnel light physical address to the slave based on a physical address reporting instruction, and sends the slave physical address and the tunnel light physical address corresponding to the slave to the host; the slave receives a slave encoding instruction sent by the host, the slave encoding instruction including a slave network address corresponding to the slave physical address and a tunnel light network address corresponding to the tunnel light physical address, and sends the tunnel light network address to the tunnel light to assign a network address to the tunnel light. This method enables the host to automatically complete network address assignment when networking tunnel lights in a mine communication system, thereby improving system networking efficiency and networking flexibility.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of industrial equipment communication, and in particular to a method, device, equipment and storage medium for assigning network addresses to lane lights. Background Art

[0002] Mining areas are characterized by complex and harsh working environments, high gas concentrations, and the potential for hazards. This necessitates constant monitoring of environmental conditions and worker information to facilitate subsequent safety measures, scheduling, and control. Consequently, mine communication systems, responsible for transmitting operational data, have become essential for mining operations.

[0003] Currently, mine communication systems all rely on a single communication method, utilizing existing lighting cables at the work face as the transmission medium. Visible light base stations based on LED (Light-Emitting Diode) roadway lights are deployed within the work face as mobile nodes, connecting to the nearest roadway light with the strongest signal to establish a data transmission network. However, the network addresses of each node in the data transmission network, such as roadway lights and visible light base stations, must be manually configured during network construction. Improving the addressing efficiency of each node in the mine communication system network has become an urgent issue. Summary of the Invention

[0004] The embodiments of the present invention provide a method, device, equipment and storage medium for assigning network addresses to tunnel lamps, so as to solve the problem of improving the addressing efficiency of each node in a network of a mine communication system.

[0005] A method for assigning network addresses to laneway lights includes the following steps performed by a slave:

[0006] Send physical address reporting instructions to surrounding lane lights through wireless connection, so that the lane lights return the corresponding lane light physical address based on the physical address reporting instructions and save it;

[0007] Obtain the slave response request sent by the host, and send the slave physical address and lane light physical address to the host based on the slave response request;

[0008] Receive a slave coding instruction sent by the host end, the slave coding instruction including a slave network address corresponding to the slave physical address and a lane light network address corresponding to the lane light physical address;

[0009] The network address of the laneway light is sent to the laneway light to assign a network address to the laneway light.

[0010] A network address coding device for a laneway lamp includes a slave end and a host end, wherein the slave end includes:

[0011] A reporting instruction sending module is used to send a physical address reporting instruction to the surrounding lane lights through a wireless connection, so that the lane lights return the corresponding lane light physical address based on the physical address reporting instruction and save it;

[0012] A response request sending module is used to obtain a slave response request sent by the host end, and send the slave physical address and the lane light physical address to the host end based on the slave response request;

[0013] The coding instruction receiving module is used to receive the slave coding instruction sent by the host end, and the slave coding instruction includes the slave network address corresponding to the slave physical address and the lane light network address corresponding to the lane light physical address;

[0014] The network address coding module is used to send the network address of the laneway light to the laneway light to code the network address of the laneway light.

[0015] A network address coding device for a laneway lamp is also used to stop responding to a slave response request sent by a host end.

[0016] An electronic device includes a memory, a processor, and a computer program stored in the memory and runnable on the processor. When the processor executes the computer program, the network address coding method for the lane lights is implemented.

[0017] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the network address coding method for laneway lights.

[0018] A method for assigning network addresses to laneway lights includes the following steps performed by a host:

[0019] Sending a slave response request to the plurality of slave terminals, so that each slave terminal returns a slave physical address based on the slave response request;

[0020] Obtain the transmission and reception time of the data frame corresponding to each slave physical address through wireless connection, thereby extracting the slave distances corresponding to all slave physical addresses, and sorting all slave distances in ascending order to generate a slave distance table;

[0021] According to the slave distance table, the average slave distance corresponding to each slave end is obtained in turn, thereby generating a slave average distance table;

[0022] Based on the slave physical address and lane light physical address corresponding to each target slave end in the slave average distance table, respectively generate the slave network address and lane network address corresponding to the target slave end;

[0023] A slave coding instruction is sent to each target slave end. The slave coding instruction includes the slave network address corresponding to the target slave end and the lane light network address, which is used to code the network address of the lane light corresponding to the target slave end.

[0024] A network address coding device for a laneway lamp includes a host end, which includes:

[0025] A physical address acquisition module, configured to send a slave response request to a plurality of slave terminals, so that each slave terminal returns a slave physical address based on the slave response request;

[0026] The slave distance extraction module is used to obtain the transmission and reception time of the data frame corresponding to each slave physical address through a wireless connection, thereby extracting the slave distances corresponding to all slave physical addresses, and sorting all slave distances in ascending order to generate a slave distance table;

[0027] The average distance production module is used to obtain the slave end average distance corresponding to each slave end in turn according to the slave distance table, thereby generating the slave average distance table;

[0028] A network address generation module is used to generate a slave network address and a lane network address corresponding to a target slave end based on the slave physical address and lane light physical address corresponding to each target slave end in the slave average distance table;

[0029] The coding instruction sending module is used to send a slave coding instruction to each target slave end. The slave coding instruction includes the slave network address corresponding to the target slave end and the lane light network address, which is used to code the network address of the lane light corresponding to the target slave end.

[0030] A network address coding device for a laneway lamp is also used to stop sending slave response requests if no information returned from any slave end is received after sending slave response requests for a preset number of detection times.

[0031] A network address coding device for a laneway lamp is further used to sequentially extract the slave end with the smallest distance from a slave distance table as a slave end to be processed; send a preset number of distance test requests to the slave physical address corresponding to the slave end to be processed, and record the slave distance corresponding to the slave end to be processed obtained each time; use an average distance calculation mode to process the slave distance corresponding to the slave end to be processed each time, so as to obtain the average slave end distance corresponding to the slave end to be processed; delete the slave end to be processed with the obtained slave end average distance from the slave distance table, and continue to execute the steps of sequentially extracting the slave end with the smallest distance from the slave distance table as the slave end to be processed until the slave distance table is empty.

[0032] A network address coding device for a lane lamp is also used to generate a slave network address for a target slave end according to a network address generation rule; based on the slave network address and the network address generation rule, a corresponding lane network address is generated for the lane lamp corresponding to the target slave end.

[0033] An electronic device includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor. When the processor executes the computer program, the network address coding method for the lane light is implemented.

[0034] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the above-mentioned method for assigning network addresses to lane lights.

[0035] The above-mentioned method, device, equipment and storage medium for assigning network addresses to tunnel lights are as follows: the tunnel light returns the corresponding tunnel light physical address to the slave end based on the physical address reporting instruction, and sends the slave physical address corresponding to the slave and the tunnel light physical address to the host end; the slave end receives the slave coding instruction sent by the host end, the slave coding instruction includes the slave network address corresponding to the slave physical address and the tunnel light network address corresponding to the tunnel light physical address, and sends the tunnel light network address to the tunnel light to assign network addresses to the tunnel light. This method enables the host to automatically complete the network address assignment when networking between each node in the mine communication system, including the host end corresponding to the first tunnel light, the slave end composed of the base station, and the tunnel light corresponding to each slave end, thereby reducing the inconvenience of manual settings, improving system networking efficiency, and increasing networking flexibility. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments of the present invention. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0037] Figure 1 A schematic diagram of an application environment for assigning network addresses to laneway lights according to an embodiment of the present invention is depicted;

[0038] Figure 2 A flowchart of assigning network addresses to laneway lights according to one embodiment of the present invention is depicted;

[0039] Figure 3 A schematic diagram illustrating how the network address of a laneway lamp is automatically increased in sequence when the network address of the laneway lamp is assigned starting from the first laneway lamp according to the network coding series in one embodiment of the present invention;

[0040] Figure 4 A second flow chart illustrating the network address assignment of a laneway light according to one embodiment of the present invention is depicted;

[0041] Figure 5 A schematic diagram of a remote interaction device of a robot according to an embodiment of the present invention is depicted;

[0042] Figure 6 A schematic diagram of an apparatus according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0043] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.

[0044] The network address coding method for laneway lights provided by the embodiment of the present invention can be applied in the following situations: Figure 1 In the application environment, specifically, the nth laneway light detects nearby laneway lights via 2.4G and the nth laneway light measures the distance to nearby laneway lights via UWB. The network address coding method for laneway lights is applied in the network address coding system for laneway lights.

[0045] The network address coding method of the laneway light includes the following steps executed by the slave:

[0046] A physical address reporting instruction is sent to the surrounding lane lights through a wireless connection, so that the lane lights return the corresponding lane light physical address based on the physical address reporting instruction and save it.

[0047] Obtain the slave response request sent by the host side, and send the slave physical address and the lane light physical address to the host side based on the slave response request.

[0048] The slave coding instruction sent by the host side is received, where the slave coding instruction includes a slave network address corresponding to the slave physical address and a lane light network address corresponding to the lane light physical address.

[0049] The network address of the laneway light is sent to the laneway light to assign a network address to the laneway light.

[0050] The network address coding method for the laneway lamp further includes the following steps executed by the host side:

[0051] A slave response request is sent to a plurality of slave terminals, so that each slave terminal returns a slave physical address based on the slave response request.

[0052] The sending and receiving time of the data frame corresponding to each slave physical address is obtained through wireless connection, so as to extract the slave distances corresponding to all slave physical addresses, and then sort all slave distances in ascending order to generate a slave distance table.

[0053] According to the slave distance table, the average slave distance corresponding to each slave end is obtained in sequence, thereby generating the slave average distance table.

[0054] Based on the slave physical address and lane light physical address corresponding to each target slave end in the slave average distance table, a slave network address and lane network address corresponding to the target slave end are generated respectively.

[0055] A slave coding instruction is sent to each target slave end. The slave coding instruction includes the slave network address corresponding to the target slave end and the lane light network address, which is used to code the network address of the lane light corresponding to the target slave end.

[0056] In one embodiment, if Figure 2 As shown, a method for assigning network addresses to lane lights is provided. Figure 1 The slave and host sides in the example are used as examples to illustrate the specific steps.

[0057] S110. The slave terminal sends a physical address reporting instruction to the surrounding lane lights via a wireless connection, so that the lane lights return the corresponding lane light physical address based on the physical address reporting instruction and save it.

[0058] Specifically, the slave end can send a physical address reporting instruction to the lane light closest to it through the 2.4G wireless network, so that the lane light returns the corresponding lane light physical address based on the physical address reporting instruction and saves it.

[0059] S210. The host sends a slave response request to multiple slaves, so that each slave returns a slave physical address based on the slave response request.

[0060] In one embodiment, a method for assigning network addresses to lane lights is provided. After step S210, that is, after sending slave response requests to multiple slave terminals, the method further specifically includes the following steps:

[0061] S2101. If the host side has not received any information returned by any slave side after sending the preset number of detection requests, the host side stops sending the slave response requests.

[0062] S120. The slave side obtains the slave response request sent by the host side, and sends the slave physical address and the lane light physical address to the host side based on the slave response request.

[0063] Preferably, after step S120, that is, after sending the slave physical address and the lane light physical address to the host side based on the slave response request, the method further includes:

[0064] S1201. The slave device stops responding to the slave response request sent by the master device.

[0065] Specifically, the system uses 2.4G wireless signals and ultra-wideband (UWB) technology to record timestamps when sending and receiving data frames. It detects nearby slave devices and assigns them network address codes, thus completing the automatic coding function. The steps are as follows:

[0066] 1. 2.4G wireless signal detection of nearby lane lights from the machine

[0067] 1.1. According to the 2.4G part of the networking protocol, the wireless signal is sent to detect the nearby slave end, and the physical address code of the nearby slave end is read back through the transmission of the 2.4G signal. It is stored in the memory of this machine.

[0068] 1.2. The host sends a signal to detect the nearby slaves every 20 milliseconds.

[0069] The slave responds with a response code and transmits the slave's physical address code. After receiving the response code from the slave, the master sends a detection completion response code specifically to this slave. The slave no longer responds to the master after receiving the detection completion information. When the master sends 20 consecutive detection signals to the nearby slave end without a response signal from the slave, the detection is considered complete.

[0070] The protocols for sending and receiving 1.3G and 2.4G wireless signals are as follows:

[0071] The received physical address code and network address code are data 0x0000, which is a public address;

[0072] The protocol data format for detecting nearby devices sent by the slave in response;

[0073] The network address code sent does not have the code data 0;

[0074] After the host receives the response signal from the slave, it sends the detection completion protocol data in the following format:

[0075]

[0076] The network address code is sent without coded data 0.

[0077] S220. The host side obtains the sending and receiving time of the data frame corresponding to each slave physical address through a wireless connection, thereby extracting the slave distances corresponding to all slave physical addresses, and sorting all slave distances in ascending order to generate a slave distance table.

[0078] S230. The host side obtains the slave side average distance corresponding to each slave side in turn according to the slave side distance table, thereby generating a slave side average distance table.

[0079] Step S230 specifically includes the following steps:

[0080] S231. The host side extracts the slave side with the shortest distance from the slave distance table in turn as the slave side to be processed.

[0081] S232. The host sends a preset number of distance test requests to the slave physical address corresponding to the slave to be processed, and records the slave distance corresponding to the slave to be processed obtained each time.

[0082] S233. The host side uses the average distance calculation mode to process the slave distance corresponding to the slave side to be processed each time, thereby obtaining the average slave distance corresponding to the slave side to be processed.

[0083] S234. The host deletes the slave end with the average distance from the slave end from the slave distance table, and continues to extract the slave end with the smallest distance from the slave distance table as the slave end to be processed until the slave distance table is empty.

[0084] Specifically, the host uses UWB (Ultra Wide Band) technology to measure the distance of nearby slaves as follows:

[0085] 2.1. Based on the nearby slave terminals detected by the above 2.4G wireless signal, the distances of the above slave terminals are measured by recording the timestamps when the data frames of UWB technology are sent and received; from this, the physical address code of the slave terminal with the closest distance is obtained.

[0086] 2.2. Based on the physical address codes of the nearby slaves detected in step 1, the host measures one of the slaves 10 times at 2-millisecond intervals. Remove the maximum and minimum values, add the remaining 8 values, and divide by 8 to obtain the distance value of this slave. Follow this method to test all detected slaves.

[0087] 2.3、The distance measurement protocol sent by the host and slave is as follows:

[0088] The data format of the distance measurement host sending protocol is as follows:

[0089]

[0090] The data format of the distance measurement slave sending protocol is as follows:

[0091]

[0092] S240. The host generates a slave network address and a lane network address corresponding to each target slave based on the slave physical address and lane light physical address corresponding to each target slave in the slave average distance table.

[0093] Step S240 specifically includes the following steps:

[0094] S241. The host generates a slave network address for the target slave according to the network address generation rules.

[0095] S242. The host generates a corresponding lane network address for the lane light corresponding to the target slave based on the slave network address and the network address generation rule.

[0096] S250. The host sends a slave coding instruction to each target slave. The slave coding instruction includes the slave network address corresponding to the target slave and the lane light network address, and is used to code the network address of the lane light corresponding to the target slave.

[0097] 3. Assign the network address code to the nearest slave terminal detected:

[0098] 3.1. The second step above obtains the physical address code of the nearest slave end, and then assigns the address code obtained by the networking rules to the nearest slave end measured through 2.4G wireless data transmission, thereby completing the automatic address assignment of a slave end.

[0099] 3.2. The host sends coding protocol data to the slave. The slave responds to the host after receiving the data. When the host receives the response data from the slave, the coding is completed.

[0100] 3.3. Assigning network address code The host and slave send protocol as follows

[0101]

[0102] The data format of the coding protocol sent by the host to the nearest slave is as follows:

[0103]

[0104] The data format of the coding protocol sent by the slave to the nearest slave is as follows:

[0105] 4. The steps for coding lane lights are as follows:

[0106] 4.1. Start from the first laneway light (host) and go through step 1 to detect nearby laneway lights.

[0107] 4.2. Measure the distances of all lane lights detected in step 1 through step 2 and find the closest lane light.

[0108] 4.3. According to the rules of network address code, a new network address code is obtained.

[0109] 4.4. Assign the newly generated network address code to the nearest lane light in step 3.

[0110] 4.5. The slave device that obtains the new address code records the physical address code and network address code of the first laneway light.

[0111] 4.6. The above five steps complete the assignment of a new network address code.

[0112] 4.7. The lane lights (host) that have just been assigned a new address code will detect nearby lane lights through step 1 and identify the slaves that have been assigned a network code.

[0113] 4.8. Measure the distance of the lane lights detected in step 1 through step 2 (do not measure the slave end that has been assigned a network address code) and determine the closest lane light.

[0114] 4.9. According to the rules of network address code, a new network address code is obtained.

[0115] 4.10. Assign the newly generated network address code in step 3 to the nearest lane light.

[0116] 4.11. The slave end that obtains the new address code records the physical address code and network address code of all coded lane lights.

[0117] 4.12. The above five steps complete the assignment of a new network address code.

[0118] 4.13. Repeat 4.7 to 4.12 to complete the assignment of network address codes for all lane lights.

[0119] S130. The slave end receives the slave coding instruction sent by the host end, where the slave coding instruction includes a slave network address corresponding to the slave physical address and a lane light network address corresponding to the lane light physical address.

[0120] S140. The slave terminal sends the network address of the lane light to the lane light to assign a network address code to the lane light.

[0121] In addition, if there are problems encountered during the coding process:

[0122] 5.1 Step 1: No nearby lane lights with no assigned network address codes are detected;

[0123] 5.2 The causes are: 1. Affected by the mine environment; 2. The installation position of the tunnel lights is unreasonable, and the installation distance of the tunnel lights is relatively far.

[0124] 5.3 Solution: 1. Resend the signal detection, 2. Increase the 2.4G transmission power of the detection lane lights, if still no lane lights with network address codes are detected, 3. Request the previous lane light to increase the 2.4G transmission power to detect nearby lane lights with no network address codes.

[0125] 5.4 If the above two methods still fail to detect the lane lights that have not been assigned network address codes, and the number of lane lights that have been assigned codes is less than the number of lane lights that need to be assigned codes, an error will be reported.

[0126] How to deal with problems encountered during UWB distance measurement:

[0127] 6.1 Step 2: The required distance data to the roadway light cannot be measured.

[0128] 6.2 Causes: 1. Affected by the mine environment; 2. The installation position of the tunnel lights is unreasonable; 3. The installation distance of the tunnel lights is relatively far

[0129] 6.3 Solution: 1. Increase the UWB transmission power of the measured lane lights. If the effective distance to the lane lights is still not measured, 2. Request a nearby lane light to increase its UWB transmission power to measure the distance to the lane lights and complete the distance judgment.

[0130] 6.4 In step 2, if the distances between two or more measured lights are less than one meter (the installation distance of all laneway lights is greater than one meter), it is impossible to determine which laneway light is the nearby laneway light.

[0131] 6.5 Solution: 1. Resend the signal to test the distance. 2. Request the previous lane light to increase the UWB transmission power. Measure the distances of these lane lights and identify their specific locations.

[0132] The naming rules of physical address codes are as follows:

[0133] The data length of the physical address code is 8 bytes:

[0134] The first and second bytes are the manufacturer number;

[0135] The third and fourth bytes are the customer number;

[0136] The fifth byte is the production batch;

[0137] Bytes 6 to 8 are the rolling code numbers of the lane lights:

[0138]

[0139] Lane light rolling code: automatically increased when the lane light is burned into the software.

[0140] The naming rules for network address codes are as follows:

[0141] The data length of the network address code is 8 bytes:

[0142] The first and second bytes are the customer number;

[0143] The third and fourth bytes are the gateway device number;

[0144] The 5th byte is the version number;

[0145] Bytes 6 to 8 are the network code sequence number as follows:

[0146]

[0147] Network code serial number: the same gateway device: such as Figure 3 As shown, it will automatically increase when coding starts from the first lane light.

[0148] The network address coding method of the laneway lamp provided in this embodiment is as follows: Figure 4 In the method, the tunnel light returns the corresponding tunnel light physical address to the slave end based on the physical address reporting instruction, and sends the slave physical address corresponding to the slave and the tunnel light physical address to the host end; the slave end receives the slave coding instruction sent by the host end, which includes the slave network address corresponding to the slave physical address and the tunnel light network address corresponding to the tunnel light physical address, and sends the tunnel light network address to the tunnel light to assign the network address to the tunnel light. This method enables the host to automatically complete the network address assignment when networking each node in the mine communication system, including the host end corresponding to the first tunnel light, the slave end composed of the base station, and the tunnel light corresponding to each slave end, thereby reducing the inconvenience of manual settings, improving system networking efficiency, and increasing networking flexibility.

[0149] In one embodiment, a network address coding device for lane lights is provided, which corresponds one-to-one to the network address coding method for lane lights in the above embodiment. Figure 5 As shown, the slave end 100 in the network address coding device for the laneway lamp includes a reporting instruction sending module 110, a response request sending module 120, a coding instruction receiving module 130 and a network address coding module 140. The functional modules are described in detail as follows:

[0150] The reporting instruction sending module 110 is used to send a physical address reporting instruction to the surrounding lane lights through a wireless connection, so that the lane lights return the corresponding lane light physical address based on the physical address reporting instruction and save it.

[0151] The response request sending module 120 is used to obtain the slave response request sent by the host end, and send the slave physical address and the lane light physical address to the host end based on the slave response request.

[0152] The coding instruction receiving module 130 is used to receive the slave coding instruction sent by the host end, and the slave coding instruction includes the slave network address corresponding to the slave physical address and the lane light network address corresponding to the lane light physical address.

[0153] The network address coding module 140 is used to send the network address of the laneway light to the laneway light, so as to code the network address of the laneway light.

[0154] In one embodiment, a network address coding device for a laneway light is provided. This device corresponds exactly to the network address coding method for a laneway light in the aforementioned embodiment. The host end 200 of this network address coding device for a laneway light includes a physical address acquisition module 210, a slave distance extraction module 220, an average distance generation module 230, a network address generation module 240, and a coding instruction transmission module 250. Each functional module is described in detail below:

[0155] The physical address acquisition module 210 is configured to send a slave response request to a plurality of slave terminals, so that each slave terminal returns a slave physical address based on the slave response request.

[0156] The slave distance extraction module 220 is used to obtain the transmission and reception time of the data frame corresponding to each slave physical address through a wireless connection, thereby extracting the slave distances corresponding to all slave physical addresses, and sorting all slave distances in ascending order to generate a slave distance table.

[0157] The average distance generating module 230 is configured to sequentially obtain the slave end average distance corresponding to each slave end according to the slave distance table, thereby generating the slave average distance table.

[0158] The network address generation module 240 is configured to generate a slave network address and a lane network address corresponding to a target slave end based on the slave physical address and lane light physical address corresponding to each target slave end in the slave average distance table.

[0159] The coding instruction sending module 250 is used to send a slave coding instruction to each target slave end. The slave coding instruction includes the slave network address corresponding to the target slave end and the lane light network address, which is used to code the network address of the lane light corresponding to the target slave end.

[0160] The specific definitions of the network address assignment device for roadway lights can be found in the definitions of the network address assignment method for roadway lights above and will not be repeated here. Each module in the aforementioned roadway light network address assignment device can be implemented in whole or in part through software, hardware, or a combination thereof. Each of these modules can be embedded in or independent of the device's processor in hardware form, or stored in the device's memory in software form, allowing the processor to call and execute the corresponding operations of each module.

[0161] In one embodiment, a device is provided. The device may be a server, and its internal structure diagram may be as follows: Figure 6 As shown. The electronic device includes a processor, memory, network interface and database connected via a system bus. The processor of the device is used to provide computing and control capabilities. The memory of the device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The database of the device is used to store data to be saved in a method for assigning network addresses to lane lights. The network interface of the device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a method for assigning network addresses to lane lights is implemented.

[0162] In one embodiment, a device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the network address coding method for the laneway light in the above embodiment is implemented. For example, Figure 2 Alternatively, when the processor executes the computer program, the functions of the modules / units of the network address coding device for the lane lights in the above embodiment are realized, for example Figure 5 The functions of modules 110 to 250 are shown in FIG. 1 and will not be described in detail here to avoid repetition.

[0163] In one embodiment, a computer-readable storage medium is provided, storing a computer program. When executed by a processor, the computer program implements the method for assigning network addresses to laneway lights in the aforementioned embodiment. Alternatively, the computer program implements the functions of the modules / units in the device for assigning network addresses to laneway lights in the aforementioned device embodiment. To avoid repetition, these details are omitted here.

[0164] Those skilled in the art will understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0165] Those skilled in the art will clearly understand that for the sake of convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0166] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention, and should all be included in the scope of protection of the present invention.

Claims

1. A method for assigning network addresses to laneway lights, applied to a slave terminal, characterized in that: include: Sending a physical address reporting instruction to surrounding lane lights via a wireless connection, so that the lane lights return and save the corresponding lane light physical address based on the physical address reporting instruction; Obtaining a slave response request sent by the host end, and sending a slave physical address and the lane light physical address to the host end based on the slave response request; receiving a slave coding instruction sent by the host end, wherein the slave coding instruction includes a slave network address corresponding to the slave physical address and a lane light network address corresponding to the lane light physical address; Sending the lane light network address to the lane light to assign a network address code to the lane light; The network address coding method for laneway lights is applied to the host side and includes: Sending a slave response request to a plurality of slave terminals, so that each of the slave terminals returns a slave physical address based on the slave response request; Obtaining the transmission and reception duration of the data frame corresponding to each of the slave physical addresses through a wireless connection, thereby extracting the slave distances corresponding to all the slave physical addresses, and sorting all the slave distances in ascending order to generate a slave distance table; According to the slave distance table, sequentially obtaining the slave end average distance corresponding to each slave end, thereby generating a slave average distance table; Based on the slave physical address and lane light physical address corresponding to each target slave end in the slave average distance table, respectively generate a slave network address and lane network address corresponding to the target slave end; A slave coding instruction is sent to each of the target slave terminals, wherein the slave coding instruction includes a slave network address corresponding to the target slave terminal and a lane light network address, and is used to code the network address of the lane light corresponding to the target slave terminal.

2. The method for assigning network addresses to laneway lights according to claim 1, characterized in that: After sending the slave physical address and the lane light physical address to the host side based on the slave response request, the method further includes: Stop responding to the slave response request sent by the host.

3. The method for assigning network addresses to laneway lights according to claim 1, wherein: After sending the slave response request to the multiple slave terminals, the method further includes: If the slave response request is sent a preset number of times and no information returned from any slave is received, the sending of the slave response request is stopped.

4. The method for assigning network addresses to laneway lights according to claim 1, wherein: The step of sequentially obtaining the average slave end distance corresponding to each slave end according to the slave end distance table includes: Extracting the slave end with the smallest distance from the slave distance table in sequence as the slave end to be processed; Sending a preset number of distance test requests to the slave physical address corresponding to the slave terminal to be processed, and recording the slave distance corresponding to the slave terminal to be processed obtained each time; The average distance calculation mode is used to process the slave distance corresponding to the slave end to be processed each time, thereby obtaining the slave end average distance corresponding to the slave end to be processed; The slave end to be processed in the litigation with the obtained average distance from the slave end is deleted from the slave distance table, and the step of extracting the slave end with the smallest distance from the slave distance table as the slave end to be processed is continued until the slave distance table is empty.

5. The method for assigning network addresses to laneway lights according to claim 1, characterized in that: Generating the slave network address and lane network address corresponding to the target slave terminal includes: Generate a slave network address for the target slave terminal according to a network address generation rule; Based on the slave network address and the network address generation rule, the corresponding lane network address is generated for the lane light corresponding to the target slave end.

6. A network address coding device for laneway lights, characterized in that: The system comprises a slave and a host, wherein the slave comprises: A reporting instruction sending module is used to send a physical address reporting instruction to the surrounding lane lights through a wireless connection, so that the lane lights return the corresponding lane light physical address based on the physical address reporting instruction and save it; a response request sending module, configured to obtain a slave response request sent by a host end, and send a slave physical address and a lane light physical address to the host end based on the slave response request; A coding instruction receiving module is used to receive a slave coding instruction sent by the host end, wherein the slave coding instruction includes a slave network address corresponding to the slave physical address and a lane light network address corresponding to the lane light physical address; A network address coding module, used to send the network address of the laneway light to the laneway light, so as to code the network address of the laneway light; The host side includes: a physical address acquisition module, configured to send a slave response request to a plurality of slave terminals, so that each of the slave terminals returns a slave physical address based on the slave response request; A slave distance extraction module is used to obtain the transmission and reception duration of the data frame corresponding to each of the slave physical addresses through a wireless connection, thereby extracting the slave distances corresponding to all the slave physical addresses, and sorting all the slave distances in ascending order to generate a slave distance table; an average distance generation module, configured to sequentially obtain the slave end average distance corresponding to each slave end according to the slave distance table, thereby generating the slave average distance table; A network address generation module, configured to generate a slave network address and a lane network address corresponding to each target slave end based on the slave physical address and lane light physical address corresponding to each target slave end in the slave average distance table; The coding instruction sending module is used to send a slave coding instruction to each of the target slave terminals. The slave coding instruction includes a slave network address corresponding to the target slave terminal and a lane light network address, and is used to code the network address of the lane light corresponding to the target slave terminal.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the network address coding method for the laneway light according to any one of claims 1 to 5 is implemented.

8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the network address coding method for a laneway light as claimed in any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Networking and route establishing method

    CN111464445A