A method for partitioning, grouping, and data transmission of a single-phase street lamp system
By dividing black areas in a single-phase street light system and using partition, grouping and data transmission methods, the data reception problem caused by signal attenuation in the street light system is solved, and the data transmission efficiency is improved.
Patent Information
- Application Number
- CN202210006136.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-04
- Publication Date
- 2025-05-27
- Estimated Expiration
- 2042-01-04
AI Technical Summary
The existing street light systems have signal attenuation problems when transmitting data through power lines, resulting in remote street light nodes being unable to receive data correctly and the data transmission efficiency is low.
By dividing black areas in a single-phase street light system and using partition, grouping and data transmission methods, we ensure that the street light nodes in the same black area can correctly receive data packets, and the street light nodes in the same black area can transmit data at the same time, and data transmission across regions is carried out to improve efficiency.
It effectively solves the data reception problem caused by signal attenuation, improves data transmission efficiency, and ensures that remote street light nodes can receive data correctly.
Smart Images

Figure CN114867158B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of street lamp systems, and in particular to a method for partitioning, grouping and data transmission of a single-phase street lamp system. Background Art
[0002] In the existing street lamp system, when using the power line for data transmission, there will be a lot of signal attenuation. When the master control node sends data, only the relatively close street lamp nodes can correctly receive the data, and the relatively far street lamp nodes cannot receive or receive the data incorrectly. If the relatively far street lamp nodes need to receive the data, the data transmission efficiency is low. Therefore, how to design a data transmission scheme that can correctly receive the data and improve the signal transmission efficiency is an urgent problem to be solved. Summary of the Invention
[0003] The present invention aims to solve the above problems.
[0004] To achieve the above object, the technical solution of the present invention is specifically implemented as follows:
[0005] On the one hand, the present invention provides a method for partitioning a single-phase street lamp system. The single-phase street lamp system includes: a master control node and s street lamp nodes. The master control node is connected to the L line and the N line of the power line, and each street lamp node is connected to the L line and the N line of the power line. The master control node and the s street lamp nodes are connected in parallel to the power line in sequence, and the master control node is set as the first node; the logical address of the master control node is A 0 , and the logical addresses of the street lamp nodes after the master control node are A i , A iNumber them in ascending order according to the distance from the master node, i = 1... s, where s is a preset value and a positive integer greater than 1; The method includes: S1, the master node sends a master downlink black area division message through the power line; S2, the street lamp node located after the master node receives the master downlink black area division message through the power line. If the master downlink black area division message is correctly received, set its own area attribution information to belong to the black area. If the master downlink black area division message cannot be correctly received, set its own area attribution information to belong to the gray area; S3, the master node sends a master black area query message through the power line and receives a master black area query message response, where the master black area query message response includes the area attribution information of the street lamp node responding to the master black area query message; S4, the master node determines the number of street lamp nodes belonging to the first black area for the street lamp nodes whose area attribution information belongs to the black area, divides the street lamp nodes belonging to the first black area into the first black area, and uses the street lamp node with the largest logical address among the street lamp nodes in the first black area as the first boundary node of the first black area; S5, the master node sends a first black area boundary confirmation message to the first boundary node; S6, the first boundary node receives the first black area boundary confirmation message and marks itself as the boundary node of the first black area; S7, assign h the value of 1; S8, the h-th boundary node sends an h-th downlink black area division message through the power line; S9, the street lamp node located after the h-th boundary node receives the h-th downlink black area division message through the power line. If the h-th downlink black area division message is correctly received, set its own area attribution information to belong to the black area. If the h-th downlink black area division message cannot be correctly received, set its own area attribution information to belong to the gray area; S10, the h-th boundary node sends an h-th black area query message through the power line and determines whether an h-th black area query message response is received. If an h-th black area query message response is received, execute step S11. If the h-th black area query message response is not received, execute step S14, where the h-th black area query message response includes the area attribution information of the street lamp node responding to the h-th black area query message; S11, the h-th boundary node determines the number of street lamp nodes belonging to the (h + 1)-th black area for the street lamp nodes whose area attribution information belongs to the black area, divides the street lamp nodes belonging to the (h + 1)-th black area into the (h + 1)-th black area, and uses the street lamp node with the largest logical address among the street lamp nodes in the (h + 1)-th black area as the (h + 1)-th boundary node of the (h + 1)-th black area; S12, the h-th boundary node sends an (h + 1)-th black area boundary confirmation message to the (h + 1)-th boundary node; S13, the (h + 1)-th boundary node receives the (h + 1)-th black area boundary confirmation message and marks itself as the boundary node of the (h + 1)-th black area, let h = h + 1, and return to execute S8;S14. The h-th boundary node generates a black area division completion response as the last black area boundary node, and sends the black area division completion response to the master node.
[0006] Among them, the master node sends a master black area query message through the power line and receives a master black area query message response, including: the master node determines that the m-th street lamp node after the master node is the target street lamp node, and according to the logical address A of the target street lamp node m sends the master black area query message to the target street lamp node, where m is a preset value and a positive integer satisfying j ≤ m ≤ s; the target street lamp node generates the master black area query message response, and the master black area query message response includes the area attribution information of the target street lamp node, and sends the master black area query message response to the (m - 1)-th street lamp node. The (m - 1)-th street lamp node receives the master black area query message response, writes the area attribution information of the (m - 1)-th street lamp node into the master black area query message response, and sends the master black area query message response to the (m - 2)-th street lamp node, and so on, until the first street lamp node after the master node writes the area attribution information of the first street lamp node into the master black area query message response and sends the master black area query message response to the master node.
[0007] Among them, the master node sends the master black area query message to the target street lamp node according to the logical address A of the target street lamp node m including: the master node sends the master black area query message to the first street lamp node after the master node. The first street lamp node determines that the logical address of the target street lamp node in the master black area query message is inconsistent with its own logical address, then sends the master black area query message to the second street lamp node, and so on, until the (m - 1)-th street lamp node determines that the logical address of the target street lamp node in the master black area query message is inconsistent with its own logical address, and sends the master black area query message to the m-th street lamp node.
[0008] Among them, the master node sends a master black area query message through the power line and receives a master black area query message response, including: the master node determines that the first street lamp node after the master node is the target street lamp node; the master node sends a master black area query message to the first street lamp node after the master node through the power line, the first street lamp node generates a master black area query message response, the master black area query message response includes the area attribution information of the first street lamp node, and sends the master black area query message response to the master node, the master node receives the master black area query message response generated by the first street lamp node, if it is determined that the area attribution information of the first street lamp node belongs to the black area, then assign 2 to k; the master node determines that the k-th street lamp node after the master node is the target street lamp node; the master node sends the master black area query message to the first street lamp node after the master node through the power line, the first street lamp node determines that the logical address of the target street lamp node in the master black area query message is inconsistent with its own logical address, then sends the master black area query message to the second street lamp node, and so on, until the (m - 1)-th street lamp node determines that the logical address of the target street lamp node in the master black area query message is inconsistent with its own logical address, and sends the master black area query message to the k-th street lamp node, the k-th street lamp node generates the master black area query message response, the master black area query message response includes the area attribution information of the k-th street lamp node, and sends the master black area query message response to the (k - 1)-th street lamp node, the (k - 1)-th street lamp node receives the master black area query message response, writes the area attribution information of the (k - 1)-th street lamp node into the master black area query message response, and sends the master black area query message response to the (k - 2)-th street lamp node, and so on, until the first street lamp node after the master node writes the area attribution information of the first street lamp node into the master black area query message response, and sends the master black area query message response to the master node, the master node receives the master black area query message response generated by the k-th street lamp node, determines the area attribution information of the k-th street lamp node, if the area attribution information of the k-th street lamp node belongs to the black area, then k = k + 1, return to execute the operation that the master node determines that the k-th street lamp node after the master node is the target street lamp node, if the area attribution information of the k-th street lamp node belongs to the gray area, then stop sending the master black area query message.
[0009] Among them, the h-th boundary node generates a black area division completion response as the last black area boundary node, and sending the black area division completion response to the master node includes: the h-th boundary node generates the black area division completion response as the last black area boundary node, and writes the logical address A of the h-th boundary node s into the black area division completion response, and sends the black area division completion response to the (h - 1)-th boundary node. The (h - 1)-th boundary node writes its own logical address into the black area division completion response, and sends the black area division completion response to the (h - 2)-th boundary node, and so on, until the 1st boundary node writes its own logical address into the black area division completion response and sends the black area division completion response to the master node.
[0010] Among them, the h-th boundary node generates a black area division completion response as the last black area boundary node, and sending the black area division completion response to the master node includes: the h-th boundary node generates the black area division completion response as the last black area boundary node, and writes the logical address A of the h-th boundary node s into the black area division completion response, and forwards the black area division completion response one by one to the first street lamp node in the last black area within the last black area. The first street lamp node in the last black area sends the black area division completion response to the (h - 1)-th boundary node. The (h - 1)-th boundary node writes its own logical address into the black area division completion response, and sends the black area division completion response to the (h - 2)-th boundary node, and so on, until the 1st boundary node writes its own logical address into the black area division completion response and sends the black area division completion response to the master node.
[0011] On the other hand, the present invention provides a method for grouping black areas of a single-phase street lamp system, including: obtaining w black areas through the above-mentioned method for partitioning a single-phase street lamp system; the master node obtains a grouping strategy, and the grouping strategy includes: dividing the w black areas into t 1 black area groupings into t v black area groupings, t 1 black area groupings include the 1st black area, the (1 + v)-th black area, the (1 + 2v)-th black area, and so on; t 2 black area groupings include the 2nd black area, the (2 + v)-th black area, the (2 + 2v)-th black area, and so on; until, t vThe black area grouping includes the v-th black area, the 2v-th black area, and so on. Each black area in the same black area grouping transmits data at the same time without interference. According to the grouping strategy, the master node sets group identification for the boundary nodes in each black area, generates a group setting message, which includes the group identification corresponding to each boundary node, and sends the group setting message to each of the boundary nodes. Each of the boundary nodes receives the group setting message and saves its own group identification.
[0012] Another aspect of the present invention provides a method for time-division data transmission of a single-phase street lamp system, including: the master node designates time slot information for the black area grouping obtained by the grouping method for the uplink response data transmission, where the time slot length indicated by the time slot information is greater than the time required for the boundary nodes of the last black area to transmit the uplink response data to the master node one by one. The uplink response data is the data sent by the street lamp nodes to the master node. The street lamp nodes in the black area groupings belonging to the same group transmit the uplink response data at the same time, and the street lamp nodes in the black area groupings belonging to different groups transmit the uplink response data at different times. The master node sends a time slot division instruction to the boundary nodes in each black area, and the time slot division instruction includes the time slot information for each boundary node to transmit the uplink response data. The master node sends a query instruction to the destination boundary node. The destination boundary node receives the query instruction, generates a query response, and sends the query response to the master node according to its own time slot information.
[0013] Among them, the master node designating the time slot information for the black area grouping for the uplink response data transmission includes: the master node obtains the time required for the boundary nodes of the last black area to transmit the uplink response data to the master node one by one; the master node determines the time slot length according to the time required for the boundary nodes of the last black area to transmit the uplink response data to the master node one by one; the master node sequentially assigns the time slot length to the boundary nodes of each black area from the t 1 black area grouping to the t v black area grouping.
[0014] Among them, the method further includes: the master node sends a time synchronization instruction to the boundary nodes in each black area; the boundary nodes in each black area perform a time synchronization operation and return a time synchronization response to the master node.
[0015] On the other hand, the present invention provides a method for uploading data in a single-phase street lamp system, which is applied to the black area obtained by the above single-phase street lamp system zoning method, and includes: the target street lamp node receives the query message sent by the master node and generates a query response; the target street lamp node sends the query response node by node to the head street lamp node of the black area to which the target street lamp node belongs; the head street lamp node sends the query response to the boundary node of the previous black area of the black area to which the target street lamp node belongs; the boundary node of the previous black area of the black area to which the target street lamp node belongs sends the query response black area by black area to the boundary node of the first black area after the master node; the boundary node of the first black area after the master node sends the query response to the master node.
[0016] Among them, the target street lamp node sending the query response node by node to the head street lamp node of the black area to which the target street lamp node belongs includes: the target street lamp node sends the query response to the previous street lamp node of the target street lamp node; the previous street lamp node of the target street lamp node writes the information to be transmitted into the query response, and sends the query response node by node to the previous street lamp node of the previous street lamp node of the target street lamp node, and so on, until the query response is sent to the head street lamp node of the black area to which the target street lamp node belongs.
[0017] On the other hand, the present invention provides a method for downloading data in a single-phase street lamp system, which is applied to the black area obtained by the above single-phase street lamp system zoning method, and includes: the master node generates a downlink data message and broadcasts and sends the downlink data message; all street lamp nodes in the first black area after the master node receive the downlink data message, and the boundary node in the first black area after the master node broadcasts and sends the downlink data message; all street lamp nodes in the next black area of the first black area after the master node receive the downlink data message, and the boundary node in the next black area of the first black area after the master node broadcasts and sends the downlink data message; and so on, until all street lamp nodes in the last black area receive the downlink data message.
[0018] On the other hand, the present invention provides a method for downlink data transmission in a single-phase street lamp system, which is applied to the black area obtained by the above-mentioned single-phase street lamp system zoning method, and includes: the master control node determines the logical address of the target street lamp node, generates a downlink data packet, and broadcasts and sends the downlink data packet, where the downlink data packet includes the logical address of the target street lamp node and a black area forwarding flag; all street lamp nodes in the first black area after the master control node receive the downlink data packet, and the boundary node in the first black area after the master control node determines whether the logical address of the target street lamp node belongs to its own black area. If it belongs to its own black area, the downlink data packet is stopped from being sent. If it does not belong to its own black area, the downlink data packet is broadcast and sent; all street lamp nodes in the next black area after the first black area after the master control node receive the downlink data packet, and the boundary node in the next black area after the first black area after the master control node determines whether the logical address of the target street lamp node belongs to its own black area. If it belongs to its own black area, the downlink data packet is stopped from being sent. If it does not belong to its own black area, the downlink data packet is broadcast and sent; and so on, until all street lamp nodes in the black area where the target street lamp node is located receive the downlink data packet, and the boundary node in the black area where the target street lamp node is located determines that the logical address of the target street lamp node belongs to its own black area, then the downlink data packet is stopped from being sent.
[0019] As can be seen from the technical solutions provided by the present invention above, the present invention divides s street lamp nodes into several black areas. When data is transmitted, the street lamp nodes in the same black area can correctly receive the data packets sent by the boundary nodes in the previous black area. When the black areas in the same black area group return responses to the master control node, data transmission can be performed in the same time slot. In addition, when performing uplink data transmission or downlink data transmission, cross-area data transmission can be performed to improve data transmission efficiency. Description of the Drawings
[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0021] Figure 1 It is a schematic structural diagram of a single-phase street lamp system provided by an embodiment of the present invention;
[0022] Figure 2 It is a schematic diagram of black area grouping provided by an embodiment of the present invention. Detailed Embodiments
[0023] The following clearly and completely describes the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are only a part rather than all of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0024] The following will further describe the embodiments of the present invention in detail with reference to the accompanying drawings.
[0025] Figure 1 The structural schematic diagram of the street lamp system provided by the embodiment of the present invention is shown. Refer to Figure 1 , the street lamp system provided by the embodiment of the present invention includes: a master control node and s street lamp nodes. The master control node is connected to the L line and N line of the power line, and each street lamp node is connected to the L line and N line of the power line. The master control node and s street lamp nodes are connected in parallel to the power line in sequence, and the master control node is set as the first node; the logical address of the master control node is A 0 , the logical addresses of the street lamp nodes after the master control node are A i , A i They are numbered in ascending order from small to large according to the distance from the master control node, i = 1... s, where s is a preset value and a positive integer greater than 1. In specific applications, A i can be the pole number of the street lamp.
[0026] The following describes the method for partitioning the single-phase street lamp system provided by the embodiment of the present invention. Through this partitioning method, s street lamp nodes can be divided into several black areas. The street lamp nodes in the same black area can correctly receive the messages broadcast by the boundary node (or the master control node) of the previous black area. The method for partitioning the single-phase street lamp system provided by the embodiment of the present invention includes:
[0027] S101, the master control node sends a master control downlink black area division message through the power line;
[0028] S102, the street lamp nodes after the master control node receive the master control downlink black area division message through the power line. If the master control downlink black area division message is correctly received, the self-region attribution information is set to the attributed black area. If the master control downlink black area division message cannot be correctly received, the self-region attribution information is set to the attributed gray area.
[0029] Specifically, the master control node sends the downlink black area division message in a broadcast manner. The street lamp nodes that can correctly receive the downlink black area message set their self-region attribution information to the attributed black area, and the street lamp nodes that cannot correctly receive the downlink black area division message set their self-region attribution information to the attributed gray area. Other street lamp nodes that cannot receive the downlink black area message keep the default self-region attribution information as the attributed white area.
[0030] S103. The master control node sends a master control black area query message via the power line and receives a response to the master control black area query message. The response to the master control black area query message includes the area attribution information of the street lamp nodes that respond to the master control black area query message.
[0031] Specifically, after sending the downlink black area division message, the master control node sends a master control black area query message to the street lamp nodes to command the street lamp nodes that receive the query message to return their own area attribution information. There are two ways for the master control node to send the master control black area query message and receive the response to the master control black area query message. One is that the master control node determines a destination street lamp node, uses the logical address of the destination street lamp node as the destination address, and sends the master control black area query message to the destination street lamp node node by node. The destination street lamp node returns its own area attribution information, which is returned to the master control node node by node. Each passing street lamp node writes its own area attribution information into the response to the master control black area query message, so that the master control node can know the area attribution information of each street lamp node from the first street lamp node after the master control node to the destination street lamp node. The other is that the master control node sends the master control black area query message to the street lamp nodes one by one and receives the response to the master control black area query message returned by each street lamp node until it receives the street lamp node with the area attribution information belonging to the gray area and then stops sending the master control black area query message.
[0032] As an optional implementation manner of the embodiment of the present invention, the master control node sends a master control black area query message via the power line and receives the response to the master control black area query message, including: the master control node determines the mth street lamp node after the master control node as the destination street lamp node, and according to the logical address A of the destination street lamp node m sends a master control black area query message to the destination street lamp node, where m is a preset value and a positive integer satisfying j ≤ m ≤ s; the destination street lamp node generates a response to the master control black area query message, the response to the master control black area query message includes the area attribution information of the destination street lamp node, and sends the response to the master control black area query message to the (m - 1)th street lamp node. The (m - 1)th street lamp node receives the response to the master control black area query message, writes the area attribution information of the (m - 1)th street lamp node into the response to the master control black area query message, and sends the response to the master control black area query message to the (m - 2)th street lamp node, and so on, until the first street lamp node after the master control node writes the area attribution information of the first street lamp node into the response to the master control black area query message and sends the response to the master control black area query message to the master control node. Among them, the master control node according to the logical address A of the destination street lamp node mSending a master black area query message to the destination street lamp node includes: The master node sends the master black area query message to the first street lamp node after the master node. If the first street lamp node determines that the logical address of the destination street lamp node in the master black area query message is inconsistent with its own logical address, it sends the master black area query message to the second street lamp node, and so on, until the (m - 1)-th street lamp node determines that the logical address of the destination street lamp node in the master black area query message is inconsistent with its own logical address, and sends the master black area query message to the m-th street lamp node.
[0033] As an alternative implementation of the embodiment of the present invention, the master node sends a master black area query message through the power line and receives a master black area query message response, including: the master node determines that the first street lamp node after the master node is the target street lamp node; the master node sends a master black area query message to the first street lamp node after the master node through the power line, and the first street lamp node generates a master black area query message response, which includes the area attribution information of the first street lamp node, and sends the master black area query message response to the master node. The master node receives the master black area query message response generated by the first street lamp node. If it is determined that the area attribution information of the first street lamp node belongs to the black area, then assign 2 to k; the master node determines that the k-th street lamp node after the master node is the target street lamp node; the master node sends the master black area query message to the first street lamp node after the master node through the power line. If the first street lamp node determines that the logical address of the target street lamp node in the master black area query message is inconsistent with its own logical address, it sends the master black area query message to the second street lamp node, and so on, until the (m - 1)-th street lamp node determines that the logical address of the target street lamp node in the master black area query message is inconsistent with its own logical address, and sends the master black area query message to the k-th street lamp node. The k-th street lamp node generates a master black area query message response, which includes the area attribution information of the k-th street lamp node, and sends the master black area query message response to the (k - 1)-th street lamp node. The (k - 1)-th street lamp node receives the master black area query message response, writes the area attribution information of the (k - 1)-th street lamp node into the master black area query message response, and sends the master black area query message response to the (k - 2)-th street lamp node, and so on, until the first street lamp node after the master node writes the area attribution information of the first street lamp node into the master black area query message response and sends the master black area query message response to the master node. The master node receives the master black area query message response generated by the k-th street lamp node, judges the area attribution information of the k-th street lamp node. If the area attribution information of the k-th street lamp node belongs to the black area, then k = k + 1, and return to execute the operation that the master node determines that the k-th street lamp node after the master node is the target street lamp node. If the area attribution information of the k-th street lamp node belongs to the gray area, stop sending the master black area query message.
[0034] S104. The master node determines the number of street lamp nodes belonging to the first black area according to the street lamp nodes whose area attribution information belongs to the black area, divides the street lamp nodes belonging to the first black area into the first black area, and takes the street lamp node with the largest logical address among the street lamp nodes in the first black area as the first boundary node of the first black area;
[0035] S105. The master node sends a first black area boundary confirmation message to the first boundary node;
[0036] S106. The first boundary node receives the first black area boundary confirmation message and marks itself as the boundary node of the first black area.
[0037] Specifically, the master control node can determine the number of street lamp nodes belonging to the first black area as needed. For example, the master control node learns from the response to the master control black area query message that the first street lamp node to the fifth street lamp node are the street lamp nodes belonging to the black area. To ensure the accuracy of data transmission, the master control node can divide the first street lamp node to the fourth street lamp node into the first black area. Of course, the master control node can also divide the first street lamp node to the fifth street lamp node into the first black area, and the range of the black area can be determined according to the actual situation.
[0038] After determining the first black area, the master control node determines the street lamp node with the largest logical address among the street lamp nodes in the first black area as the first boundary node of the first black area. That is, the master control node determines the street lamp node farthest from itself in the first black area as the first boundary node of the first black area, and uses the logical address of this street lamp node as the destination address to send the first black area boundary confirmation message to this street lamp node node by node, in order to command this street lamp node to mark itself as the boundary node of the first black area.
[0039] The street lamp node that has marked itself as a boundary node can divide the street lamp nodes in the subsequent unpartitioned black areas in the same way as the master control node divides the black areas until the last black area is divided. The boundary node of the last black area generates a black area division completion response and sends the black area division completion response to the master control node, as follows:
[0040] S107. Set h to 1;
[0041] S108. The h-th boundary node sends the h-th downstream black area division message through the power line;
[0042] S109. The street lamp nodes located after the h-th boundary node receive the h-th downstream black area division message through the power line. If the h-th downstream black area division message is correctly received, set their own area attribution information to the attributed black area. If the h-th downstream black area division message cannot be correctly received, set their own area attribution information to the attributed gray area;
[0043] S110. The h-th boundary node sends the h-th black area query message through the power line, and determines whether the h-th black area query message response is received. If the h-th black area query message response is received, execute step S111. If the h-th black area query message response is not received, execute step S114. Among them, the h-th black area query message response includes the area attribution information of the street lamp node responding to the h-th black area query message;
[0044] S111. The h-th boundary node determines the number of street lamp nodes belonging to the (h + 1)-th black area for the street lamp nodes belonging to the black area according to the area attribution information, divides the street lamp nodes belonging to the (h + 1)-th black area into the (h + 1)-th black area, and takes the street lamp node with the largest logical address among the street lamp nodes in the (h + 1)-th black area as the (h + 1)-th boundary node of the (h + 1)-th black area;
[0045] S112. The h-th boundary node sends a boundary confirmation message for the (h + 1)-th black area to the (h + 1)-th boundary node;
[0046] S113. The (h + 1)-th boundary node receives the boundary confirmation message for the (h + 1)-th black area, marks itself as the boundary node of the (h + 1)-th black area, sets h = h + 1, and returns to execute S108;
[0047] S114. The h-th boundary node generates a black area division completion response as the last black area boundary node, and sends the black area division completion response to the main control node.
[0048] Specifically, there are two ways for the last black area boundary node to generate a black area division completion response and send the black area division completion response to the main control node. One is that after the last black area boundary node writes its own logical address into the black area division completion response, the boundary nodes of each black area send the black area division completion response to the main control node one by one. The other is that after the last black area boundary node writes its own logical address into the black area division completion response, it sends the black area division completion response to each node in this black area one by one. The first street lamp node in this black area sends the black area division completion response to the boundary node of the previous black area, and the boundary nodes of each black area send the black area division completion response to the main control node one by one through the boundary nodes of the previous black area.
[0049] As an optional implementation manner of the embodiment of the present invention, the h-th boundary node generates a black area division completion response as the last black area boundary node and sends the black area division completion response to the main control node, including: the h-th boundary node generates a black area division completion response as the last black area boundary node, and writes the logical address A of the h-th boundary node s into the black area division completion response, and sends the black area division completion response to the (h - 1)-th boundary node. The (h - 1)-th boundary node writes its own logical address into the black area division completion response, and sends the black area division completion response to the (h - 2)-th boundary node, and so on, until the first boundary node writes its own logical address into the black area division completion response and sends the black area division completion response to the main control node.
[0050] As an alternative implementation of the embodiment of the present invention, the h-th boundary node generates a black area division completion response as the last black area boundary node and sends the black area division completion response to the master node, including: the h-th boundary node generates a black area division completion response as the last black area boundary node, and writes the logical address A of the h-th boundary node s into the black area division completion response, and in the last black area, forwards the black area division completion response one by one to the first street lamp node in the last black area. The first street lamp node in the last black area sends the black area division completion response to the (h - 1)-th boundary node, and the (h - 1)-th boundary node writes its own logical address into the black area division completion response and sends the black area division completion response to the (h - 2)-th boundary node, and so on, until the first boundary node writes its own logical address into the black area division completion response and sends the black area division completion response to the master node.
[0051] Hereinafter, a specific example is provided to illustrate the black area division method for the single-phase street lamp system provided by the embodiment of the present invention:
[0052] The master node issues a downlink black area division message. The street lamp nodes on the bus whose own area attribution information belongs to the black area can correctly decode the message, and then mark themselves as belonging to the black area. The street lamp nodes on the bus whose own area attribution information belongs to the gray area cannot correctly decode the message and detect a CRC error, and then mark themselves as belonging to the gray area. The nodes on the bus whose own area attribution information belongs to the white area cannot trigger the CRC check and maintain their default state of belonging to the white area;
[0053] The master node issues a downlink black area query message, and the scope involved in the message can be larger, for example, from the first street lamp node to the eleventh street lamp node;
[0054] The eleventh street lamp node initiates a response to the black area query message, and finally the master node receives the area attribution information of the first street lamp node to the eleventh street lamp node;
[0055] The master node determines that only the first street lamp node to the fifth street lamp node fall within the black area. For safety reasons, the black area can be reduced by one node, and it is determined that the first street lamp node to the fourth street lamp node fall within the black area. As an alternative implementation of the embodiment of the present invention, the master node can repeat the above steps multiple times and take the smallest area result as the black area range.
[0056] Assume that the black area obtained from the master node's downlink is the first street lamp node to the fourth street lamp node, and the master node sends a downlink black area boundary confirmation message to the fourth street lamp node;
[0057] The fourth street lamp node marks itself as a black area boundary node of the downlink message.
[0058] The 4th street lamp node then sends a black area division message to the subsequent nodes. The 5th to 8th street lamp nodes mark themselves as black areas; the 10th to 12th street lamp nodes mark themselves as gray areas; the 13th street lamp node and the subsequent street lamp nodes maintain their default status of belonging to the white area.
[0059] The 4th street lamp node sends a black area query message, and the scope involved in the message can be larger, for example, from the 5th street lamp node to the 16th street lamp node.
[0060] The 16th street lamp node initiates a response to the black area query message.
[0061] The 4th street lamp node receives the area attribution information of the 5th to 16th street lamp nodes, and determines that only the 5th to 9th street lamp nodes fall within the black area. For safety reasons, the black area is reduced by one node, and it is determined that the 5th to 8th street lamp nodes fall within the black area. As an alternative implementation of this embodiment of the present invention, the 4th street lamp node can repeat the above steps multiple times, and take the smallest area result as the black area range.
[0062] Assume that the black area downstream of the 4th street lamp node is from the 5th to 8th street lamp nodes. The 4th street lamp node sends a black area boundary confirmation message to the 8th street lamp node.
[0063] The 8th street lamp node marks itself as a black area boundary node of the downstream message.
[0064] Repeat the above process until all the street lamp nodes on the bus are divided into adjacent black areas and the boundary nodes of each black area are specified.
[0065] After the last black area division is completed, the last street lamp node naturally becomes the last black area boundary node. The last street lamp node initiates a black area division completion response message to the master control node; this response message is set with a black response flag and a black area forwarding flag. The black area boundary node numbers can also be attached; when this upstream response message is sent, among the nodes that can receive this message in front, there is only one black area boundary node, and other nodes do not process this message. The black area boundary node adds its own node number to the end of the response message, and then continues to forward this response message until the response message reaches the master control node, and the master control node receives the numbers of each black area boundary node.
[0066] It can be seen that by using the black area division method of the single-phase street lamp system provided by this embodiment of the present invention, s street lamp nodes can be divided into several black areas, so that when data is transmitted subsequently, the street lamp nodes within the same black area can correctly receive the data messages sent by the previous black area boundary node. At the same time, when returning a response to the master control node, data can be transmitted across areas, improving the data transmission efficiency.
[0067] The following provides a method for grouping black areas of a single-phase street lamp system, including:
[0068] S201, obtaining w black areas through the above-mentioned method for partitioning a single-phase street lamp system;
[0069] S202, the master node obtains a grouping strategy, and the grouping strategy includes: dividing the w black areas into t 1 grouping of black areas into t v grouping of black areas, t 1 The grouping of black areas includes the 1st black area, the (1 + v)th black area, the (1 + 2v)th black area, and so on; t 2 The grouping of black areas includes the 2nd black area, the (2 + v)th black area, the (2 + 2v)th black area, and so on; until, t v The grouping of black areas includes the vth black area, the 2vth black area, and so on. Each black area in the same grouping of black areas transmits data at the same time without interference;
[0070] S203, the master node sets a group identification for each boundary node in each black area according to the grouping strategy, generates a group setting message, and the group setting message includes: the group identification corresponding to each boundary node respectively, and sends the group setting message to each boundary node;
[0071] S204, each boundary node receives the group setting message and saves its own group identification.
[0072] Specifically, the group identification is used to indicate t 1 grouping of black areas into t v grouping of black areas, so that the boundary node can know which grouping of black areas the black area it is in belongs to.
[0073] When a frame of signal is transmitted in a black area, it has no impact on the white area. At this time, if there is a signal emitted in the white area, it will not reach the black area either and will not have any impact on the black area. Therefore, as long as the distance between two street lamp nodes is far enough, there is no need to deploy signal isolation equipment on the bus, and these two street lamp nodes can send signals simultaneously, thus realizing the spatial multiplexing of bus channel resources.
[0074] Starting from the master node, the street lamp nodes distributed on the bus are divided into different adjacent black areas according to the signal reception area. According to the principle of spatial multiplexing, there may be signal aliasing in adjacent black areas and black areas separated by one black area, but generally there will be no signal aliasing in black areas separated by two or more black areas. Therefore, according to the actual situation, the number of groupings, that is, the number of v, can be set. For example, see Figure 2, Assume there are 1000 nodes on the bus, which are divided into 100 adjacent black zones. In this embodiment, v can be set to 5, that is, starting from the master node, the black zones are grouped and sequentially set as A, B, C, D, E, A, B, C, D, E, A, B, C, D, E... in a cycle. The number of street lamp nodes in each black zone can be the same or different, and the last node in each black zone is the boundary node of that black zone.
[0075] It can be seen that through the black zone grouping method of the single-phase street lamp system provided by the embodiment of the present invention, multiple black zones can be divided into multiple groups, and the boundary nodes of each black zone can know which black zone grouping they belong to, so as to ensure that in subsequent data transmission, each black zone in the same black zone grouping can perform data transmission at the same time and signal aliasing will not occur.
[0076] The following provides a data time-division transmission method for a single-phase street lamp system, including:
[0077] S301, The master node designates the time slot information for the uplink response data transmission for the black zone grouping obtained by the above grouping method. Among them, the time slot length indicated by the time slot information is greater than the time required for the boundary nodes of the last black zone to transmit the uplink response data to the master node one by one. The uplink response data is the data sent by the street lamp node to the master node. The street lamp nodes in the black zone grouping belonging to the same group transmit the uplink response data at the same time, and the street lamp nodes in the black zone grouping belonging to different groups transmit the uplink response data at different times;
[0078] S302, The master node sends the time slot division instruction to the boundary nodes in each black zone. The time slot division instruction includes the time slot information for each boundary node to transmit the uplink response data;
[0079] S303, The master node sends a query instruction to the destination boundary node;
[0080] S304, The destination boundary node receives the query instruction, generates a query response, and sends the query response to the master node according to its own time slot information.
[0081] Specifically, at the same moment, the black zones in the same group can perform data transmission simultaneously. For example: all the black zones marked as group A can initiate data transmission simultaneously. At the next agreed moment, all the black zones marked as group B can initiate data transmission simultaneously. And so on for other moments and other zones.
[0082] It can be seen that through the data time-division transmission method of the single-phase street lamp system provided by the embodiment of the present invention, as long as a fixed data sending moment is designated for each group of black zones within a certain time period, each group of black zones can take turns to send data, thus realizing the time multiplexing of the bus channel resources.
[0083] As an alternative embodiment of the embodiment of the present invention, the master node designates the time slot information for the uplink response data transmission of the black area grouping, including: the master node obtains the time required for the boundary nodes of the last black area to transmit the uplink response data to the master node one by one; the master node determines the time slot length according to the time required for the boundary nodes of the last black area to transmit the uplink response data to the master node one by one; the master node sequentially assigns the time slot length to the t 1 black area grouping to t v the boundary nodes of each black area in the black area grouping.
[0084] Specifically, the length of the time slot designated for each black area grouping needs to be greater than the time when the response frame of the last black area on the bus arrives at the master node. For example, on the bus of the aforementioned 1000 nodes, the time when the response frame of the end boundary of the 100th black area arrives at the master node is about 150 ms, so 200 ms is taken as the length of the time slot.
[0085] As an alternative embodiment of the embodiment of the present invention, the method for time-division transmission of single-phase street lamp system data provided by the embodiment of the present invention further includes: the master node sends a time synchronization instruction to the boundary nodes in each black area; the boundary nodes in each black area perform time synchronization operations and return time synchronization responses to the master node.
[0086] Specifically, the master node initiates the time synchronization of the bus, and the synchronization protocol can adopt SNTP (Simple Network Time Protocol). In the present invention, only the boundary nodes at the end of the black area need to participate in the time synchronization. For example, after the time synchronization is achieved, one second can be divided into 5 time periods of 200 ms according to the second rhythm. Each time period is assigned to the 5 black area groupings of A, B, C, D, and E respectively.
[0087] The following provides a method for transmitting uplink data of a single-phase street lamp system, which is applied to the black area obtained by the above-mentioned single-phase street lamp system zoning method, including:
[0088] S401, the target street lamp node receives the query message sent by the master node and generates a query response;
[0089] S402, the target street lamp node sequentially sends the query response to the head street lamp node of the black area to which the target street lamp node belongs;
[0090] S403, the head street lamp node sends the query response to the boundary node of the previous black area of the black area to which the target street lamp node belongs;
[0091] S404, the boundary node of the previous black area of the black area to which the target street lamp node belongs sends the query response to the boundary node of the first black area after the master node one black area by one;
[0092] S405. The boundary node of the first black area after the master node sends the query response to the master node.
[0093] Specifically, the uplink data refers to the data sent from the street lamp node to the master node. The destination street lamp node sends the query response node by node to the first street lamp node in this black area. The first street lamp node in this black area sends the query response to the boundary node of the previous black area. The boundary node of the previous black area performs cross - area data transmission forward, thereby improving the data transmission efficiency.
[0094] As an alternative implementation manner of the embodiment of the present invention, the destination street lamp node sending the query response node by node to the head street lamp node of the black area to which the destination street lamp node belongs includes: the destination street lamp node sends the query response to the previous street lamp node of the destination street lamp node; the previous street lamp node of the destination street lamp node writes the information to be transmitted into the query response, and sends the query response node by node to the previous street lamp node of the previous street lamp node of the destination street lamp node, and so on, until the query response is sent to the head street lamp node of the black area to which the destination street lamp node belongs.
[0095] Specifically, the destination street lamp node sends the query response node by node to the first street lamp node in this black area. Each passing street lamp node in this black area writes its own information to be transmitted into the query response, so that multiple pieces of information to be transmitted can be transmitted, improving the data transmission efficiency.
[0096] Next, a method for downlink data transmission of a single - phase street lamp system is provided, which is applied to the black area obtained by the above - mentioned single - phase street lamp system zoning method, and includes:
[0097] S501. The master node generates a downlink data packet and broadcasts the downlink data packet.
[0098] S502. All street lamp nodes in the first black area after the master node receive the downlink data packet, and the boundary node in the first black area after the master node broadcasts the downlink data packet.
[0099] S503. All street lamp nodes in the next black area after the first black area after the master node receive the downlink data packet, and the boundary node in the next black area after the first black area after the master node broadcasts the downlink data packet.
[0100] And so on.
[0101] S504. Until all street lamp nodes in the last black area receive the downlink data packet.
[0102] Specifically, the downlink data refers to the data sent from the master control node to the street lamp nodes. For the message sent from the master control node, if it is marked with "forward according to the black area", the street lamp node that receives the message in the first black area determines whether it needs to process according to the scope involved in the message. If the street lamp node is the boundary node of the first black area, it forwards the message by referring to the way the master control node sends the message.
[0103] It can be seen that through the downlink data transmission method of the single-phase street lamp system provided by the embodiment of the present invention, the multiple by which the message forwarding speed can be increased is approximately equal to the number of nodes in a black area, thereby improving the data transmission efficiency.
[0104] The following provides another downlink data transmission method for the single-phase street lamp system, which is applied to the black areas obtained by the above-mentioned single-phase street lamp system zoning method, and includes:
[0105] S601, the master control node determines the logical address of the destination street lamp node, generates a downlink data message, and broadcasts and sends the downlink data message. The downlink data message includes the logical address of the destination street lamp node and the black area forwarding flag;
[0106] S602, all the street lamp nodes in the first black area after the master control node receive the downlink data message. The boundary node in the first black area after the master control node judges whether the logical address of the destination street lamp node belongs to its own black area. If it belongs to its own black area, it stops sending the downlink data message. If it does not belong to its own black area, it broadcasts and sends the downlink data message;
[0107] S603, all the street lamp nodes in the next black area after the first black area after the master control node receive the downlink data message. The boundary node in the next black area after the first black area after the master control node judges whether the logical address of the destination street lamp node belongs to its own black area. If it belongs to its own black area, it stops sending the downlink data message. If it does not belong to its own black area, it broadcasts and sends the downlink data message;
[0108] And so on,
[0109] S604, until all the street lamp nodes in the black area where the destination street lamp node is located receive the downlink data message. The boundary node in the black area where the destination street lamp node is located judges that the logical address of the destination street lamp node belongs to its own black area, and then stops sending the downlink data message.
[0110] Specifically, when the master control node determines a destination street lamp node and needs the street lamp node to respond, it takes the logical address of the destination street lamp node as the destination address of the downlink data message, sends the downlink data message, and sends the downlink data message zone by zone.
[0111] It can be seen that through the method for transmitting downlink data of the single-phase street lamp system provided by the embodiments of the present invention, the downlink data packet is sent to the destination street lamp node across regions, so that the sending time of the downlink data packet is shortened and the data transmission efficiency is improved.
[0112] Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those of ordinary skill in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present invention without departing from the principles and spirit of the present invention. The scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A method for partitioning a single-phase street lamp system, characterized in that, The single-phase street lamp system includes: a master node and s street lamp nodes. The master node is connected to the L line and the N line of the power line, and each street lamp node is connected to the L line and the N line of the power line. The master node and the s street lamp nodes are connected in parallel to the power line in sequence, and the master node is set as the first node; the logical address of the master node is A 0 , and the logical addresses of the street lamp nodes after the master node are A i , A i numbered in ascending order from small to large according to the distance from the master node, i = 1... s, where s is a preset value and a positive integer greater than 1; the method includes: S1, the master node sends a master downlink black area division message through the power line; S2, the street lamp nodes located after the master node receive the master downlink black area division message through the power line. If the master downlink black area division message is correctly received, the self-region attribution information is set to belong to the black area. If the master downlink black area division message cannot be correctly received, the self-region attribution information is set to belong to the gray area; S3, the master node sends a master black area query message through the power line and receives a master black area query message response, where the master black area query message response includes the region attribution information of the street lamp nodes responding to the master black area query message; S4, the master node determines the number of street lamp nodes belonging to the first black area for the street lamp nodes whose region attribution information belongs to the black area, divides the street lamp nodes belonging to the first black area into the first black area, and takes the street lamp node with the largest logical address among the street lamp nodes in the first black area as the first boundary node of the first black area; S5, the master node sends a first black area boundary confirmation message to the first boundary node; S6, the first boundary node receives the first black area boundary confirmation message and marks itself as the boundary node of the first black area; S7, assign h with 1; S8, the h-th boundary node sends an h-th downlink black area division message through the power line; S9, the street lamp nodes located after the h-th boundary node receive the h-th downlink black area division message through the power line. If the h-th downlink black area division message is correctly received, the self-region attribution information is set to belong to the black area. If the h-th downlink black area division message cannot be correctly received, the self-region attribution information is set to belong to the gray area; S10, the h-th boundary node sends an h-th black area query message through the power line, and determines whether an h-th black area query message response is received. If the h-th black area query message response is received, execute step S11. If the h-th black area query message response is not received, execute step S14, where the h-th black area query message response includes the region attribution information of the street lamp nodes responding to the h-th black area query message; S11, the h-th boundary node determines the number of street lamp nodes belonging to the (h + 1)-th black area for the street lamp nodes whose region attribution information belongs to the black area, divides the street lamp nodes belonging to the (h + 1)-th black area into the (h + 1)-th black area, and takes the street lamp node with the largest logical address among the street lamp nodes in the (h + 1)-th black area as the (h + 1)-th boundary node of the (h + 1)-th black area; S12, the h-th boundary node sends an (h + 1)-th black area boundary confirmation message to the (h + 1)-th boundary node; S13, the (h + 1)-th boundary node receives the (h + 1)-th black area boundary confirmation message and marks itself as the boundary node of the (h + 1)-th black area, let h = h + 1, and return to execute S8; S14. The h-th boundary node generates a black area division completion response as the last black area boundary node, and sends the black area division completion response to the master node.
2. The method according to claim 1, wherein, the master node sends a master black area query message through the power line and receives a master black area query message response, including: The master node determines the m-th street lamp node after the master node as the destination street lamp node, and according to the logical address A of the destination street lamp node m sends the master black area query message to the destination street lamp node, where m is a preset value and a positive integer satisfying j ≤ m ≤ s; the destination street lamp node generates the master black area query message response, the master black area query message response includes the area attribution information of the destination street lamp node, and sends the master black area query message response to the (m - 1)-th street lamp node. The (m - 1)-th street lamp node receives the master black area query message response, writes the area attribution information of the (m - 1)-th street lamp node into the master black area query message response, and sends the master black area query message response to the (m - 2)-th street lamp node, and so on, until the first street lamp node after the master node writes the area attribution information of the first street lamp node into the master black area query message response and sends the master black area query message response to the master node.
3. The method according to claim 2, wherein, The master control node sends the master black area query message to the destination street lamp node according to the logical address A of the destination street lamp node m including: the master node sends the master black area query message to the first street lamp node after the master node. If the first street lamp node determines that the logical address of the destination street lamp node in the master black area query message is inconsistent with its own logical address, it sends the master black area query message to the second street lamp node, and so on, until the (m - 1)-th street lamp node determines that the logical address of the destination street lamp node in the master black area query message is inconsistent with its own logical address and sends the master black area query message to the m-th street lamp node.
4. The method according to claim 1, wherein, the master node sends a master black area query message through the power line and receives a master black area query message response, including: the master node determines that the first street lamp node after the master node is the destination street lamp node; the master node sends a master black area query message to the first street lamp node after the master node through the power line. The first street lamp node generates a master black area query message response, the master black area query message response includes the area attribution information of the first street lamp node, and sends the master black area query message response to the master node. The master node receives the master black area query message response generated by the first street lamp node. If it determines that the area attribution information of the first street lamp node belongs to the black area, it assigns 2 to k; the master node determines that the k-th street lamp node after the master node is the destination street lamp node; After the master control node sends the master control black area query message to the first street lamp node after the master control node through the power line, if the first street lamp node determines that the logical address of the destination street lamp node in the master control black area query message is inconsistent with its own logical address, it sends the master control black area query message to the second street lamp node, and so on, until the (m - 1)-th street lamp node determines that the logical address of the destination street lamp node in the master control black area query message is inconsistent with its own logical address, and sends the master control black area query message to the k-th street lamp node. The k-th street lamp node generates a response to the master control black area query message, and the response to the master control black area query message includes the area attribution information of the k-th street lamp node, and sends the response to the master control black area query message to the (k - 1)-th street lamp node. The (k - 1)-th street lamp node receives the response to the master control black area query message, writes the area attribution information of the (k - 1)-th street lamp node into the response to the master control black area query message, and sends the response to the master control black area query message to the (k - 2)-th street lamp node, and so on, until the first street lamp node after the master control node writes the area attribution information of the first street lamp node into the response to the master control black area query message, and sends the response to the master control black area query message to the master control node. The master control node receives the response to the master control black area query message generated by the k-th street lamp node, and judges the area attribution information of the k-th street lamp node. If the area attribution information of the k-th street lamp node belongs to the black area, then k = k + 1, and return to execute the operation that the master control node determines that the k-th street lamp node after the master control node is the destination street lamp node. If the area attribution information of the k-th street lamp node belongs to the gray area, stop sending the master control black area query message.
5. The method according to claim 1, wherein, the h-th boundary node generates a black area division completion response as the last black area boundary node, and sending the black area division completion response to the master control node includes: The h-th boundary node generates the black area division completion response as the last black area boundary node, and writes the logical address A of the h-th boundary node s into the black area division completion response, and sends the black area division completion response to the (h - 1)-th boundary node. The (h - 1)-th boundary node writes its own logical address into the black area division completion response, and sends the black area division completion response to the (h - 2)-th boundary node, and so on, until the 1st boundary node writes its own logical address into the black area division completion response and sends the black area division completion response to the master control node.
6. The method according to claim 1, wherein, the h-th boundary node generates a black area division completion response as the last black area boundary node, and sending the black area division completion response to the master control node includes: The h-th boundary node generates the black area division completion response as the last black area boundary node, and writes the logical address A of the h-th boundary node s into the black area division completion response. In the last black area, the black area division completion response is forwarded one by one to the first street lamp node in the last black area. The first street lamp node in the last black area sends the black area division completion response to the (h - 1)-th boundary node. The (h - 1)-th boundary node writes its own logical address into the black area division completion response and sends the black area division completion response to the (h - 2)-th boundary node, and so on, until the first boundary node writes its own logical address into the black area division completion response and sends the black area division completion response to the master control node.
7. A method for grouping black areas in a single-phase street lamp system, wherein, comprising: obtaining w black areas through the single-phase street lamp system zoning method according to any one of claims 1 to 6; The master node obtains a grouping policy, where the grouping policy includes: dividing the w black areas into t 1 Black area grouping into t v Black area grouping, t 1 The black area grouping includes the 1st black area, the (1 + v)th black area, the (1 + 2v)th black area, and so on; t 2 The black area grouping includes the 2nd black area, the (2 + v)th black area, the (2 + 2v)th black area, and so on; until, t v The black area grouping includes the vth black area, the 2vth black area, and so on. Each black area in the same black area grouping performs data transmission at the same time without interference with each other; the master control node sets group identification for boundary nodes in each black area according to the grouping strategy, generates a group setting message, and the group setting message includes: the group identification corresponding to each boundary node, and sends the group setting message to each boundary node; each of the boundary nodes receives the group setting message and saves its own group identification.
8. A method for time-sharing data transmission in a single-phase street lamp system, wherein, comprising: The master node designates time slot information for uplink response data transmission for the black area grouping obtained by the grouping method as described in claim 7. Among them, the time slot length indicated by the time slot information is greater than the time required for the boundary nodes of the last black area to transmit uplink response data to the master node node by node. The uplink response data is the data sent by the street lamp node to the master node. The street lamp nodes in the black area grouping belonging to the same group transmit uplink response data at the same time, and the street lamp nodes in the black area grouping belonging to different groups transmit uplink response data at different times; The master node sends a time slot division instruction to the boundary nodes in each black area, and the time slot division instruction includes the time slot information for each boundary node to transmit uplink response data; The master node sends a query instruction to the destination boundary node; The destination boundary node receives the query instruction, generates a query response, and sends the query response to the master node according to its own time slot information.
9. According to the method described in claim 8, wherein, The time slot information designated by the master node for the black area grouping for uplink response data transmission includes: The master node obtains the time required for the boundary nodes of the last black area to transmit uplink response data to the master node node by node; The master node determines the time slot length according to the time required for the boundary nodes of the last black area to transmit uplink response data to the master node node by node; The master node sequentially assigns the slot lengths to the black zone groups from t to t according to the time order. 1 black zone groups up to t v the boundary nodes of each black zone in the black zone groups.
10. According to the method described in claim 8, wherein, further includes: The master node sends a time synchronization instruction to the boundary nodes in each black area; The boundary nodes in each black area perform a time synchronization operation and return a time synchronization response to the master node.
11. A method for uplink data transmission in a single-phase street lamp system, which is applied to the black area obtained by the single-phase street lamp system zoning method as described in any one of claims 1 to 6, wherein, includes: The destination street lamp node receives the query message sent by the master node and generates a query response; The destination street lamp node sends the query response node by node to the head street lamp node of the black area to which the destination street lamp node belongs; The head street lamp node sends the query response to the boundary node of the previous black area of the black area to which the destination street lamp node belongs; The boundary node of the previous black area of the black area to which the destination street lamp node belongs sends the query response black area by black area to the boundary node of the first black area after the master node; The boundary node of the first black area after the master node sends the query response to the master node.
12. According to the method described in claim 11, wherein, The destination street lamp node sending the query response node by node to the head street lamp node of the black area to which the destination street lamp node belongs includes: The destination street lamp node sends the query response to the previous street lamp node of the destination street lamp node; The previous street lamp node of the target street lamp node writes the information to be transmitted into the query response, and sends the query response node by node to the previous street lamp node of the previous street lamp node of the target street lamp node, and so on, until the query response is sent to the head street lamp node of the black area to which the target street lamp node belongs.
13. A method for downlink data transmission of a single-phase street lamp system, which is applied to the black area obtained by the single-phase street lamp system zoning method according to any one of claims 1 to 6. It is characterized in that including: The master node generates a downlink data packet and broadcasts and sends the downlink data packet; All street lamp nodes in the first black area after the master node receive the downlink data packet, and the boundary node in the first black area after the master node broadcasts and sends the downlink data packet; All street lamp nodes in the next black area after the first black area after the master node receive the downlink data packet, and the boundary node in the next black area after the first black area after the master node broadcasts and sends the downlink data packet; and so on until all street lamp nodes in the last black area receive the downlink data packet.
14. A method for downlink data transmission of a single-phase street lamp system, which is applied to the black area obtained by the single-phase street lamp system zoning method according to any one of claims 1 to 6. It is characterized in that including: The master node determines the logical address of the target street lamp node, generates a downlink data packet, and broadcasts and sends the downlink data packet, and the downlink data packet includes the logical address of the target street lamp node and the forwarding flag according to the black area; All street lamp nodes in the first black area after the master node receive the downlink data packet, and the boundary node in the first black area after the master node judges whether the logical address of the target street lamp node belongs to its own black area. If it belongs to its own black area, stop sending the downlink data packet. If it does not belong to its own black area, broadcast and send the downlink data packet; All street lamp nodes in the next black area after the first black area after the master node receive the downlink data packet, and the boundary node in the next black area after the first black area after the master node judges whether the logical address of the target street lamp node belongs to its own black area. If it belongs to its own black area, stop sending the downlink data packet. If it does not belong to its own black area, broadcast and send the downlink data packet; and so on until all street lamp nodes in the black area where the target street lamp node is located receive the downlink data packet, and the boundary node in the black area where the target street lamp node is located judges that the logical address of the target street lamp node belongs to its own black area, and then stops sending the downlink data packet.
Citation Information
Patent Citations
Data processing method for any street lamp node in single-phase street lamp system and street lamp node
CN115250136A