Network communication address dynamic allocation method and system based on Wi-SUN
By using the dynamic address allocation method of the Wi-SUN network, the problems of inconvenient address management and high operation and maintenance costs in the Wi-SUN network are solved, and the decoupling of HDLC address and meter number is realized, supporting large-scale meter deployment and efficient communication.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- WASION GROUP HLDG
- Filing Date
- 2026-01-08
- Publication Date
- 2026-04-17
AI Technical Summary
In the existing Wi-SUN network communication system, there is a fixed mapping relationship between the HDLC address of the sub-table and the table sequence number, which leads to complex address management, poor flexibility, address overlap problem, high operation and maintenance cost, and low communication efficiency.
A dynamic address allocation method based on the Wi-SUN network is adopted. The Wi-SUN communication module broadcasts discovery request frames, and the sub-table decides whether to reply with discovery report frames based on random probability parameters. The Wi-SUN module dynamically allocates unique HDLC device addresses and completes address updates through registration request frames. The Discover, DiscoverReport and Register protocols are introduced to realize address management.
It decouples HDLC addresses from meter numbers, avoids address conflicts, supports large-scale meter deployment, reduces operation and maintenance costs, improves communication efficiency, and enables unlimited network expansion and fine-grained management.
Smart Images

Figure CN121887774A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of power line communication technology, and particularly relates to a method and system for dynamic address allocation based on Wi-SUN network communication. Background Technology
[0002] In existing power line communication systems, in the Wi-SUN network AMI communication scheme, sub-meters (such as terminal meters) typically need to communicate with Wi-SUN communication modules (such as concentrators) via HDLC addresses. In traditional methods, the HDLC address of a sub-meter may have a fixed mapping relationship with the meter serial number (meter number). For example, meter number "12345678" corresponds to HDLC address "5678+16 = 5694". However, this mapping relationship lacks regularity, resulting in complex address management, poor flexibility, and address overlap, which makes it impossible to conduct large-scale Wi-SUN sub-Wi-SUN communication module network communication. Furthermore, manual configuration is required when adding or replacing new meters, increasing operation and maintenance costs. In addition, the Wi-SUN communication module needs to frequently send broadcast frames to discover sub-meters, but the purpose and mechanism of broadcast frames are unclear, affecting communication efficiency.
[0003] Patent application CN101106530A discloses a method and relay device for implementing HDLC bearer signaling relay, including: a relay mapping table configuration module for configuring a relay mapping table of HDLC channel identifiers and signaling processing device IP addresses and ports; an HDLC data frame processing module for receiving HDLC data frames from an HDLC channel, querying the corresponding signaling processing device IP address and port from the relay mapping table according to the HDLC channel identifier, and packaging the HDLC data frames into UDP signaling packets for transmission to the corresponding signaling processing device; and a UDP signaling packet processing module for receiving UDP signaling packets from the signaling processing device, parsing the HDLC channel identifier and HDLC data frames from the UDP signaling packets, and transmitting the HDLC data frames from the corresponding HDLC channel. This patent application uses the HDLC channel identifier to query the address and port through the relay mapping table, resulting in a fixed mapping relationship, which has the same drawbacks as existing technologies.
[0004] Therefore, how to achieve efficient and convenient dynamic address allocation to reduce operation and maintenance costs and improve communication efficiency is a problem that urgently needs to be solved by personnel in this technical field. Summary of the Invention
[0005] To address the shortcomings of existing technologies, the purpose of this invention is to provide a dynamic address allocation method based on Wi-SUN network communication, so as to solve the problems of inconvenient address management, high operation and maintenance costs, and low communication efficiency of Wi-SUN network AMI communication in existing power line communication systems; in addition, this invention also provides a dynamic address allocation system based on Wi-SUN network communication.
[0006] To solve the above-mentioned technical problems, the present invention adopts the following technical solution:
[0007] In a first aspect, the present invention provides a method for dynamically allocating communication addresses based on a Wi-SUN network, comprising the following steps:
[0008] S10, the Wi-SUN communication module broadcasts a discovery request frame to at least one sub-table under the AMI network. The discovery request frame contains a Discover PDU (Discover Protocol Data Unit) for registering discovery.
[0009] S20. After receiving the discovery request frame, the unregistered sub-table determines whether to reply to the Wi-SUN communication module with a discovery report frame based on the random probability parameters generated by the true random number generator in the Discover PDU. The discovery report frame contains a DiscoverReport PDU (DiscoverReport Protocol Data Unit), which is used to report the system title of the sub-table, i.e., SystemTitle. The system title is bound to the sub-table device information and is unique.
[0010] S30. After receiving the discovery report frame, the Wi-SUN communication module dynamically allocates a unique HDLC device address according to the corresponding sub-table of the system title, and broadcasts a registration request frame. The registration request frame contains a Register PDU (Register Protocol Data Unit), which carries the system title and the allocated HDLC device address.
[0011] S40. After receiving the registration request frame, the sub-table verifies whether the system title therein is consistent with its own. If so, it updates its HDLC device address to the allocated HDLC device address and completes the registration.
[0012] Furthermore, the Discover PDU, DiscoverReport PDU, and Register PDU employ a data structure defined based on ASN.1 syntax and are transmitted using A-XDR encoding rules.
[0013] Furthermore, in S10, the data structure of the Discover PDU includes a response probability field and an allowed time slot field, wherein the response probability field is used to indicate the probability threshold for the sub-table to reply to the discovery report frame, and the allowed time slot field is used to limit the time window for the sub-table to reply to the discovery report frame.
[0014] Furthermore, the triggering conditions for the Wi-SUN communication module to broadcast the discovery request frame include timed triggering and / or manual triggering.
[0015] Furthermore, in S20, the decision of whether to respond to unregistered sub-tables based on the probability parameters in the Discover PDU specifically includes:
[0016] S201. The sub-table generates a random number itself;
[0017] S202. Compare the random number with the response probability field value in the Discover PDU;
[0018] S203. When the random number is not greater than the response probability field value, the sub-table replies with a discovery report frame.
[0019] Furthermore, after successful registration, the Wi-SUN communication module assigns a unique device address to the sub-table and saves it to its own parameter file to record the mapping relationship between the system title of the registered sub-table and the HDLC device address assigned to it; the Wi-SUN communication module also synchronizes all table number information to the system end according to whether there are new table registrations.
[0020] Furthermore, if the Wi-SUN communication module deletes the file and device address of a sub-table, the Wi-SUN communication module broadcasts a PingRequest PDU to the sub-table. The PingRequest PDU carries the system title of the sub-table. After verifying that the system title is consistent, the sub-table restores its status to the unregistered state, that is, it has been uninstalled.
[0021] Secondly, the present invention also provides a system employing the above method, comprising:
[0022] The Wi-SUN communication module and at least one sub-table; the Wi-SUN communication module broadcasts discovery request frames, receives and processes discovery report frames replied by the sub-table, dynamically generates HDLC device addresses, and broadcasts registration request frames; the sub-table receives discovery request frames and decides whether to reply with discovery report frames based on probability parameters, receives registration request frames, and verifies and updates HDLC device addresses.
[0023] Furthermore, the system is applicable to smart meter centralized data collection scenarios, the Wi-SUN communication module is a concentrator, and the sub-meter is a smart meter.
[0024] Furthermore, the sub-table is connected to the Wi-SUN communication module via an RS485 bus.
[0025] Compared with existing technologies, the Wi-SUN network communication address dynamic allocation method and system provided by this invention have at least the following advantages:
[0026] In existing power line communication systems, address management for Wi-SUN network AMI communication is inconvenient, operation and maintenance costs are high, and communication efficiency is low. This invention completely decouples HDLC addresses from meter numbers through a dynamic address allocation mechanism. The Wi-SUN communication module assigns a unique, meter number-independent HDLC address to each sub-meter based on its reported System-Title, fundamentally eliminating the possibility of address conflicts. This supports large-scale meter deployment and enables unlimited network scalability. A complete registration and discovery mechanism (Discover, DiscoverReport, Register) is introduced. The Wi-SUN communication module periodically or manually triggers a Discover PDU broadcast frame to actively search for unregistered new meters. New meters probabilistically reply to the DiscoverReport PDU using a built-in random number mechanism, reporting their own information. This avoids bus conflicts caused by simultaneous responses from all new meters. Upon receiving the reply, the Wi-SUN communication module assigns an address to the new meter via the Register PDU and automatically establishes a mapping file between the address and meter number locally. This mapping file can be pushed to the HES system, minimizing manual intervention and eliminating the need for complex address configuration. This significantly improves installation efficiency and reduces labor and time costs. The response-probability and allowed-time-slots fields in the PDU frame work together. The sub-table determines whether to respond based on the probability value and completes the reply within the specified short time slot, effectively avoiding data collisions on the communication channel and ensuring smooth communication in high-density node environments. Through the PingRequest and PingResponse services, specific sub-tables can be precisely managed (such as resetting their status to unregistered) without affecting other parts of the network, achieving fine-grained network maintenance and management and greatly improving communication efficiency. Attached Figure Description
[0027] To more clearly illustrate the solutions of the present invention, a brief introduction will be given to the drawings used in the description of the embodiments below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0028] Figure 1 A flowchart illustrating a method for dynamic address allocation based on Wi-SUN network communication, provided as an embodiment of the present invention;
[0029] Figure 2 A structural diagram of a Wi-SUN network communication address dynamic allocation system provided in an embodiment of the present invention;
[0030] Figure 3 This invention provides a DLMS / COSEM standard definition diagram for a Wi-SUN network communication address dynamic allocation method according to an embodiment of the invention.
[0031] Figure 4 This is a standard format definition diagram of the Register PDU standard format in a Wi-SUN network communication address dynamic allocation method provided in an embodiment of the present invention. Detailed Implementation
[0032] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art. The terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. For example, terms such as “length,” “width,” “upper,” “lower,” “left,” “right,” “front,” “rear,” “vertical,” “horizontal,” “top,” “bottom,” “inner,” and “outer” indicate orientations or positions based on the accompanying drawings and are for ease of description only, and should not be construed as limiting the technical solution. The terms “comprising” and “having,” and any variations thereof, in the specification, claims, and accompanying drawings of this invention, are intended to cover non-exclusive inclusion. The terms “first,” “second,” etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish different objects and not to describe a particular order. In the specification, claims, and accompanying drawings of this invention, when an element is referred to as “fixed to,” “mounted to,” “set on,” or “connected to” another element, it may be directly or indirectly located on that other element. For example, when an element is referred to as “connected to” another element, it may be directly or indirectly connected to that other element. Furthermore, the reference to "embodiment" herein means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0033] This invention provides a dynamic address allocation method based on Wi-SUN network communication, applied in the Wi-SUN network AMI communication scheme when sub-meters (such as smart meters) communicate with Wi-SUN communication modules (such as concentrators) via HDLC addresses. The dynamic address allocation method based on Wi-SUN network communication includes the following steps:
[0034] S10. The Wi-SUN communication module broadcasts a discovery request frame to at least one sub-table under the AMI network. The discovery request frame contains a Discover PDU for registration discovery. S20. Upon receiving the discovery request frame, an unregistered sub-table determines whether to reply to the Wi-SUN communication module with a discovery report frame based on the random probability parameters generated by the true random number generator in the Discover PDU. The discovery report frame contains a DiscoverReport PDU, used to report the sub-table's system title, i.e., SystemTitle. This system title is bound to the sub-table's device information and is unique. S30. Upon receiving the discovery report frame, the Wi-SUN communication module dynamically assigns a unique HDLC device address to the corresponding sub-table based on the system title and broadcasts a registration request frame. The registration request frame contains a Register PDU, which carries the system title and the assigned HDLC device address. S40. Upon receiving the registration request frame, the sub-table verifies whether the system title matches its own. If so, it updates its HDLC device address to the assigned HDLC device address, completing the registration.
[0035] This invention effectively solves the problems of inconvenient address management, high operation and maintenance costs, and low communication efficiency in existing Wi-SUN network AMI communication.
[0036] This invention provides a method for dynamically allocating communication addresses based on Wi-SUN networks. This method is applied in Wi-SUN network AMI communication schemes during the communication process between sub-meters (such as smart meters) and Wi-SUN communication modules (such as concentrators) via HDLC addresses. In this embodiment, the method includes the following steps:
[0037] The S10, S10, and Wi-SUN communication modules broadcast discovery request frames to at least one sub-table under the AMI network. The discovery request frame contains a Discover PDU for registering the discovery.
[0038] Specifically, in this embodiment, the Wi-SUN communication module (Wi-SUN communication module) periodically or manually triggers Discover PDU broadcast frames to search for newly installed tables in the cascaded network. For example, it can be started once a day in the early morning when the channel is idle, or the table search can be performed through DLMS communication or manual triggering methods such as buttons. The response-probability value sent by the first broadcast is 1ms, that is, the random value generated by the sub-tables in the cascaded network that have not been registered and assigned MAC addresses is allowed to reply if it is within 1ms or more. In this way, according to the probability calculation, only 1% will generate a value less than 1. If the response-probability is 2, the probability is 2%, and so on, thereby reducing the probability of bus collision caused by the simultaneous reply of sub-tables. Then, the response-probability value is increased sequentially (up to a maximum of 100ms) until all tables are successfully registered.
[0039] S20. After receiving the discovery request frame, the unregistered sub-table decides whether to reply to the Wi-SUN communication module with a discovery report frame based on the random probability parameters generated by the true random number generator in the Discover PDU. The discovery report frame contains the DiscoverReport PDU, which is used to report the sub-table's system title, i.e., SystemTitle. This system title is bound to the sub-table's device information and is unique.
[0040] Specifically, in this embodiment, when a sub-table that is not registered and has not been assigned a network address receives a Discover PDU frame broadcast by the Wi-SUN communication module (Wi-SUN communication module), the sub-table itself uses a random number generator to generate a random number between 1 and 100 to determine whether it needs to reply to the Discover PDU for reporting. Sub-tables that are registered and have been assigned a network address do not process the broadcast frame or reply to the Discover PDU.
[0041] Furthermore, in this embodiment, unregistered sub-tables determine whether the currently generated random value is not greater than the response-probability value. If the generated random value is not greater than the response-probability, then a response is made; otherwise, no response is made. If no response is made, it is possible that the response-probability value is small, and all random values generated by all tables are greater than this value. In this case, the Wi-SUN communication module broadcasts the response-probability value in the Discover PDU frame to increase the probability of the sub-table responding to the DiscoverReport.
[0042] Furthermore, in this embodiment, the sub-table, according to the judgment rule in S20, replies with DiscoverReport and its own system title (System-Title) to the Wi-SUN communication module.
[0043] After receiving the discovery report frame, the S30 and Wi-SUN communication modules dynamically assign a unique HDLC device address to the corresponding sub-table according to the system title, and broadcast a registration request frame. The registration request frame contains a Register PDU, which carries the system title and the assigned HDLC device address.
[0044] Specifically, in this embodiment, the Wi-SUN communication module generates a unique MAC address (device address) based on the System-Title returned by the sub-table and the file table of device addresses it has created. This MAC address is different from the registered sub-table and is used to configure the sub-table. Therefore, the address does not correspond to the table number. However, the sub-table and device address file is created and saved. Then, a registration frame (Register PDU) is broadcast and sent. This registration frame carries the System-Title from the DiscoverReport returned by the sub-table and the MAC address assigned to the sub-table.
[0045] S40. After receiving the registration request frame, the sub-table verifies whether the system title in it is consistent with its own. If so, it updates its HDLC device address to the assigned HDLC device address and completes the registration.
[0046] Specifically, in this embodiment, the sub-table determines whether the System-Title field in the Register PDU broadcast by the Wi-SUN communication module received by the current S40 is consistent with itself. If they are consistent, the MAC-address of the network is updated, and the sub-table is successfully registered.
[0047] Furthermore, in this embodiment, the Wi-SUN communication module continues to send broadcast frames Discover PDU to search for new unregistered sub-tables. If the response-probability value has reached 100 and no sub-table has responded with a DiscoverReport, it indicates that there are no other unregistered new tables in the network, and the table search ends.
[0048] Furthermore, in this embodiment, the Wi-SUN communication module, following the above process, successfully registers all new tables and assigns a unique device address to each new sub-table, saving it to its own parameter file, thereby establishing the device address and the sub-table System-Title (since System-Title is converted from the table number, it can be considered unique). The Wi-SUN module pushes all table number information to the HES (system end) via a push mechanism based on whether any new tables have been registered, thus establishing a complete file relationship for the entire communication AMI network.
[0049] Furthermore, in this embodiment, if the Wi-SUN communication module deletes the file and device address of a certain sub-table, the Wi-SUN communication module broadcasts a PingRequest PDU to the sub-table. The PingRequest PDU carries the system title of the sub-table. After verifying that the system title is consistent, the sub-table restores its status to the unregistered state, that is, it has been uninstalled.
[0050] Furthermore, in this embodiment, the Discover PDU, DiscoverReport PDU, and Register PDU adopt a data structure based on the ASN.1 syntax definition and are transmitted using the A-XDR encoding rule.
[0051] In the Wi-SUN network communication address dynamic allocation method provided by this embodiment of the invention, the HDLC address of the sub-table is dynamically allocated through the registration discovery mechanism, which is independent of the table sequence number, thereby avoiding the complexity of mapping and the problem of overlapping HDLC addresses that prevent networking.
[0052] The Wi-SUN communication module sends out broadcast frames (such as Discover PDU) as registration discovery frames to trigger responses from sub-tables.
[0053] In the A-XDR encoding rules, the Discover PDU includes `response-probability` and `allowed-time-slots` fields. `response-probability` ranges from 0 to 100, indicating a random value between 0 and 100, and this value represents the probability of a response being allowed. For example, after receiving a Discover PDU broadcast frame, the meter uses its internal random number generator to generate a truly random number between 0 and 100. A response is only allowed if this random number is less than the `response-probability` array value, thus preventing collisions caused by all meters responding simultaneously. `allowed-time-slots` ranges from 0 to 100. (0..32767) indicates that the meter must reply within this limited interval after receiving the DiscoverPDU. For example, the timing of RS485 communication is calculated based on the transmission time of 10 bytes, so the formula is 100 / baudrate. For example, when the baud rate is 9600, the timing is 11ms, and the allowed-time-slots value is encoded as 000B. The meter will then complete the transmission of this frame within the 11ms time slot to avoid bus conflicts caused by continuously occupying the bus.
[0054] In an automatic registration environment, the sub-table needs to implement a registration discovery mechanism, which can both passively respond to Wi-SUN communication module requests (such as requesting table number or logical device name) and actively cooperate to complete address allocation.
[0055] The discovery service (Discover and DiscoverReport), registration service (Register), and ping service (PingRegister) are defined using the ASN.1 (Abstract Syntax Mark-1) coding standard to ensure protocol standardization.
[0056] Specifically, the discovery service includes Discover PDU (service identifier 0x1D) and DiscoverReport PDU (service identifier 0x1E), and the registration service includes Register PDU (service identifier 0x1C). Correct transmission of data frames is achieved through A-XDR encoding. For example, after the Wi-SUN communication module broadcasts a Discover PDU, the sub-table replies with a DiscoverReport PDU and reports its own system title (System-Title) and the optional field: Alarm-Descriptor. The Wi-SUN communication module then assigns a physical address to the sub-table based on the System-Title replied by the sub-table via the Register PDU. The System-Title corresponds one-to-one with the table number, and the conversion rules are shown in Table 1 below.
[0057]
[0058] MC stands for manufacturer identifier, T1 b For different types of electricity meters, such as single-phase and three-phase meters, T2 b Occupying the high 4 bits of Byte5, it indicates the meter's function type, such as meter types with internal or external relays, load management functions, etc., SN b This is the table sequence number. For example, 12345678 is converted to BC 61 4E. If the table number is WSE1020703684408,
[0059] The corresponding System-Title is: 57 53 45 66 70 38 38 38.
[0060] This invention also provides a Wi-SUN network communication address dynamic allocation system, which employs the Wi-SUN network communication address dynamic allocation method described in the above embodiments, including:
[0061] The system consists of a Wi-SUN communication module and at least one sub-table. The Wi-SUN communication module broadcasts discovery request frames, receives and processes discovery report frames from the sub-tables, dynamically generates HDLC device addresses, and broadcasts registration request frames. The sub-tables receive discovery request frames and decide whether to reply with discovery report frames based on probability parameters. They also receive registration request frames and verify and update HDLC device addresses. The sub-tables are connected to the Wi-SUN communication module via an RS485 bus. The system is suitable for smart meter centralized data collection scenarios, where the Wi-SUN communication module acts as a concentrator and the sub-tables are smart meters.
[0062] Specifically, in this embodiment, the Wi-SUN communication module receives the Gateway protocol (which carries table number information) from the HES, converts the Gateway protocol into the HDLC protocol, and forwards it to the RS485 port for sub-table RS485 communication.
[0063] DLMS_Gateway is the gateway protocol of the DLMS standard, and the data frame format is shown in Table 2 below:
[0064] Table 2
[0065]
[0066] DLMS / COSEM standard definition as follows Figure 3 As shown.
[0067] Example 1
[0068] The following describes the dynamic power line communication address allocation method provided in this embodiment of the invention, in conjunction with standard protocols (such as IEC61334-5-1):
[0069] 1) Discovery Service Mechanism
[0070] The discovery service consists of Discover and DiscoverReport, defined using ASN.1 expressions:
[0071] Discover PDU:
[0072] ASN.1 expression: DiscoverPDU ::= SEQUENCE { response-probability INTEGER(0..100), allowed-time-slots INTEGER(0..32767), DiscoverReport-initial-creditINTEGER(0..MAX_INITIAL_CREDIT), ICEqualCredit INTEGER(0..1)}
[0073] Service identifier: 0x1D, using A-XDR encoding.
[0074] Example: The Wi-SUN communication module sends a broadcast frame (such as frame example 7E A0 15 00 02 FE FF 03 13 6BBA E6 E6 00 1D 03 00 28 00 00 4E D4 7E), which contains a Discover PDU to trigger a sub-table response.
[0075] DiscoverReport PDU:
[0076] ASN.1 expression: DiscoverReportPDU ::= SEQUENCE { system-title-listSystem-Title-List, alarm-descriptor Alarm-Descriptor OPTIONAL}, where System-Title-List ::= SEQUENCE OF System-Title.
[0077] Service ID: 0x1E, using A-XDR encoding.
[0078] 2) Registration Service Mechanism
[0079] The registration service is initiated by the client (such as the Wi-SUN communication module). The sub-table does not respond but the physical address needs to be updated.
[0080] Register PDU:
[0081] ASN.1 expression: RegisterPDU ::= SEQUENCE { active -initiator-system-titleSystem-Title, list-of-correspondence Correspondence-List}, where Correspondence::= SEQUENCE { new-system-title System-Title}.
[0082] Service identifier: 0x1C, using A-XDR encoding.
[0083] Standard format definition as follows Figure 4 As shown.
[0084] 3) Sub-table cooperation operation
[0085] In an automated registration environment, the sub-table needs to implement a registration discovery mechanism:
[0086] Passive response: After receiving the broadcast discovery frame from the Wi-SUN communication module, the sub-table replies with a DiscoverReport PDU, providing information such as the table number and logical device name.
[0087] Active cooperation: During the registration process, the sub-table automatically changes the assigned physical address and sets the "new table flag" to false to ensure seamless address updates.
[0088] Example: In the user documentation, HDLC address 17 and table number 12345678 have no mapping relationship, which demonstrates the advantages of dynamic allocation.
[0089] 4) Data Frame Example
[0090] Sub-table communication frame: 7E A0 1D 03 00 02 00 23 30 34 68 E6 E7 00 C4 01 C1 00 0908 31 32 33 34 35 36 37 38 86 D9 7E (Table number 12345678, HDLC address 17).
[0091] Wi-SUN communication module broadcast frames: 7E A0 15 00 02 FE FF 03 13 6B BA E6 E6 00 1D 0500 28 00 00 D6 EF 7E and 7E A0 15 00 02 FE FF 03 13 6B BA E6 E6 00 1D 0A 00 2800 00 2A 85 7E (both are registration discovery frames).
[0092] Compared with the prior art, the Wi-SUN network communication dynamic address allocation method and system described in the above embodiments have advantages over existing technologies. In existing power line communication systems, address management of Wi-SUN network AMI communication is inconvenient, operation and maintenance costs are high, and communication efficiency is low. This invention completely decouples HDLC addresses from meter numbers through a dynamic address allocation mechanism. The Wi-SUN communication module assigns a unique, meter number-independent HDLC address to each sub-meter based on its reported System-Title, fundamentally eliminating the possibility of address conflicts. This supports large-scale meter deployment and enables unlimited network scalability. A complete registration and discovery mechanism (Discover, DiscoverReport, Register) is introduced. The Wi-SUN communication module periodically or manually triggers a Discover PDU broadcast frame to actively search for unregistered new meters. New meters probabilistically reply to the DiscoverReport PDU using a built-in random number mechanism, reporting their own information. This avoids bus conflicts caused by simultaneous responses from all new meters. Upon receiving the reply, the Wi-SUN communication module assigns an address to the new meter via the Register PDU and automatically establishes a mapping file between the address and meter number locally. This mapping file can be pushed to the HES system, minimizing manual intervention and eliminating the need for complex address configuration. This significantly improves installation efficiency and reduces labor and time costs. The response-probability and allowed-time-slots fields in the PDU frame work together. The sub-table determines whether to respond based on the probability value and completes the reply within the specified short time slot, effectively avoiding data collisions on the communication channel and ensuring smooth communication in high-density node environments. Through the PingRequest and PingResponse services, specific sub-tables can be precisely managed (such as resetting their status to unregistered) without affecting other parts of the network, achieving fine-grained network maintenance and management and greatly improving communication efficiency.
[0093] Obviously, the embodiments described above are merely preferred embodiments of the present invention, and not all embodiments. The accompanying drawings illustrate preferred embodiments of the present invention, but do not limit the scope of the patent. The present invention can be implemented in many different forms; rather, these embodiments are provided to provide a more thorough and complete understanding of the disclosure of the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing specific embodiments, or make equivalent substitutions for some of the technical features. Any equivalent structures made using the content of this specification and drawings, directly or indirectly applied to other related technical fields, are similarly within the scope of patent protection of this invention.
Claims
1. A method for dynamically allocating a Wi-SUN network communication address, characterized in that, Includes the following steps: S10, the Wi-SUN communication module broadcasts a discovery request frame to at least one sub-table under the AMI network, the discovery request frame containing a Discover PDU for registering the discovery; S20. After receiving the discovery request frame, the unregistered sub-table determines whether to reply to the Wi-SUN communication module with a discovery report frame based on the random probability parameters generated by the true random number generator in the Discover PDU. The discovery report frame contains a DiscoverReport PDU, which is used to report the system title of the sub-table, i.e., SystemTitle. The system title is bound to the sub-table device information and is unique. S30. After receiving the discovery report frame, the Wi-SUN communication module dynamically allocates a unique HDLC device address according to the corresponding sub-table of the system title, and broadcasts a registration request frame. The registration request frame contains a Register PDU, which carries the system title and the allocated HDLC device address. S40. After receiving the registration request frame, the sub-table verifies whether the system title therein is consistent with its own. If so, it updates its HDLC device address to the allocated HDLC device address and completes the registration. 2.The method of claim 1, wherein, The Discover PDU, DiscoverReport PDU, and Register PDU adopt a data structure based on the ASN.1 syntax definition and are transmitted using the A-XDR encoding rule. 3.The method of claim 1, wherein, In S10, the data structure of Discover PDU includes a response probability field and an allowed time slot field, wherein the response probability field is used to indicate the probability threshold of the sub-table responding to the discovery report frame, and the allowed time slot field is used to limit the time window for the sub-table to respond to the discovery report frame.
4. The method of claim 3, wherein, The triggering conditions for the Wi-SUN communication module to broadcast the discovery request frame include timed triggering and / or manual triggering.
5. The method of claim 4, wherein, In step S20, the decision of whether to respond to the unregistered sub-table based on the probability parameters in the Discover PDU specifically includes: S201, The sub-table uses a true random number generator to generate a random number; S202. Compare the random number with the response probability field value in the Discover PDU; S203. When the random number is not greater than the response probability field value, the sub-table replies with a discovery report frame.
6. The method for dynamic allocation of communication addresses based on Wi-SUN network according to claim 1, characterized in that, After successful registration, the Wi-SUN communication module assigns a unique device address to the sub-table and saves it to its own parameter file to record the mapping relationship between the system title of the registered sub-table and the HDLC device address assigned to it; the Wi-SUN communication module also synchronizes all table number information to the HES system terminal according to whether there are new table registrations.
7. The method for dynamic allocation of communication addresses based on Wi-SUN network according to claim 1, characterized in that, If the Wi-SUN communication module deletes the file and device address of a sub-table, the Wi-SUN communication module broadcasts a PingRequest PDU to the sub-table. The PingRequest PDU carries the system title of the sub-table. After verifying that the system title is consistent, the sub-table restores its status to the unregistered state, that is, it has been uninstalled.
8. A system employing the method as described in any one of claims 1 to 7, characterized in that, include: Wi-SUN communication module and at least one sub-table; The Wi-SUN communication module broadcasts a discovery request frame, receives and processes the discovery report frame replied by the sub-table, dynamically generates the HDLC device address, and broadcasts a registration request frame; the sub-table receives the discovery request frame and decides whether to reply with a discovery report frame based on probability parameters, receives the registration request frame, and verifies and updates the HDLC device address.
9. The system according to claim 8, characterized in that, The system is suitable for smart meter centralized data collection scenarios. The Wi-SUN communication module serves as a remote communication module, and the sub-meter is a smart meter.
10. The system according to claim 8, characterized in that, The sub-tables are connected to the Wi-SUN communication module via an RS485 bus. The Wi-SUN communication module is registered with HES and imports the sub-table information it manages into the HES system through a reporting mechanism. HES then initiates communication requests to communicate and interact with each sub-table.
Citation Information
Patent Citations
A method for realizing HDLC carrier signaling relay and relay device
CN101106530A