A network access method and terminal based on G3-PLC communication network

By calculating the weight scores of devices in the G3-PLC network and giving priority to accessing target devices, combined with network evaluation and monitoring modes, the problem of unstable network access of PAN devices is solved, and communication efficiency and network stability are improved.

CN115473548BActive Publication Date: 2025-09-26SHENZHEN INHEMETER
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211045954.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-30
Publication Date
2025-09-26
Estimated Expiration
2042-08-30

AI Technical Summary

Technical Problem

The access of PAN devices in the G3-PLC network is unstable, resulting in low communication efficiency and difficulty in management in underdeveloped areas.

Method used

By calculating the weight score of each device in the list of accessible devices and sorting them, the target device with the highest weight is accessed first, and its network identification number is stored. Combined with the network evaluation process and monitoring mode, stable network access is ensured.

Benefits of technology

It achieves stable network access for PAN devices, improves the stability of communication topology and network access efficiency, and reduces dependence on whitelist settings.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115473548B_ABST
    Figure CN115473548B_ABST
Patent Text Reader

Abstract

The present invention provides a network access method and terminal based on the G3‑PLC communication network, which sends network request data and obtains a list of accessible devices according to the network request data; calculates a weight score for each device in the accessible device list, and sorts the accessible device list according to the weight score; accesses the target device with the highest ranking, obtains and stores the network identification number of the target device; after obtaining the accessible device list, the present invention sorts the devices in the accessible device list according to the weight score, so that the target device closest to the expected one can be obtained, and after accessing the target device, the network identification number of the target device is stored. The target device corresponding to the stored network identification number can be accessed preferentially the next time access is made, which alleviates the problem of unstable communication topology to a certain extent and does not need to rely on the setting of a whitelist.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communications, and in particular to a network access method and terminal based on a G3-PLC communication network. Background Art

[0002] The current G3-PLC communication technology standard (a power line narrowband communication technology standard) stipulates that all network access requests are initiated by a PAN (personal area network) device, which then responds to the beacon request from adjacent, already connected devices. However, adjacent device nodes may belong to different networks, or have different PANIDs. The G3-PLC standard protocol does not impose any restrictions on the selection of multiple PANIDs, meaning that PAN devices are open to their own network affiliation. The PANID selected by a PAN device for network access is not fixed each time, resulting in an unstable G3-PLC network structure and significantly reducing G3-PLC network communication efficiency. Even by adding a blacklist or whitelist on the PAN Coordinator to restrict PAN device access, this cannot effectively address the arbitrariness of PAN device PANID selection and requires significant manpower to identify the specific PANID network to which a PAN device belongs. This task is virtually impossible, especially in underdeveloped areas. Summary of the Invention

[0003] The technical problem to be solved by the present invention is to provide a network access method and terminal based on the G3-PLC communication network to achieve stable network access for PAN devices.

[0004] In order to solve the above technical problems, a technical solution adopted by the present invention is:

[0005] A method for accessing a G3-PLC communication network comprises the following steps:

[0006] Sending network request data, and obtaining a list of accessible devices according to the network request data;

[0007] Calculating a weight score for each device in the accessible device list, and sorting the accessible list according to the weight score;

[0008] Access the target device with the highest ranking, obtain the network identification number of the target device, and store it.

[0009] In order to solve the above technical problems, another technical solution adopted by the present invention is:

[0010] A network access terminal based on a G3-PLC communication network includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:

[0011] Sending network request data, and obtaining a list of accessible devices according to the network request data;

[0012] Calculating a weight score for each device in the accessible device list, and sorting the accessible list according to the weight score;

[0013] Access the target device with the highest ranking, obtain the network identification number of the target device, and store it.

[0014] The beneficial effect of the present invention is that after obtaining the list of accessible devices, the devices in the list of accessible devices are sorted according to the weight scores, so that the target device closest to the desired one can be obtained. After accessing the target device, the network identification number of the target device is stored, and the target device corresponding to the stored network identification number can be accessed preferentially the next time access is made, which alleviates the problem of unstable communication topology to a certain extent, and there is no need to rely on the setting of a whitelist. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 A flowchart of a method for accessing a G3-PLC communication network according to an embodiment of the present invention;

[0016] Figure 2 Schematic diagram of the structure of a network access terminal based on the G3-PLC communication network according to an embodiment of the present invention;

[0017] Description of labels:

[0018] 1. A network access terminal based on a G3-PLC communication network; 2. A processor; 3. A memory. DETAILED DESCRIPTION

[0019] To illustrate the technical content, achieved objectives and effects of the present invention in detail, the following description is given in conjunction with the embodiments and accompanying drawings.

[0020] Please refer to Figure 1 , a network access method based on the G3-PLC communication network, comprising the steps of:

[0021] Sending network request data, and obtaining a list of accessible devices according to the network request data;

[0022] Calculating a weight score for each device in the accessible device list, and sorting the accessible list according to the weight score;

[0023] Access the target device with the highest ranking, obtain the network identification number of the target device, and store it.

[0024] From the above description, it can be seen that the beneficial effect of the present invention is that after obtaining the list of accessible devices, the devices in the list of accessible devices are sorted according to the weight scores, so that the target device closest to the desired one can be obtained. After accessing the target device, the network identification number of the target device is stored, and the target device corresponding to the stored network identification number can be accessed preferentially the next time access is made, which alleviates the problem of unstable communication topology to a certain extent, and there is no need to rely on the setting of the whitelist.

[0025] Furthermore, after sorting the accessible list according to the weight scores, the method further includes:

[0026] Determine whether it is the first time to access the network. If so, execute the step of accessing the target device with the highest ranking; otherwise, determine whether the network identification number is stored. If so, determine whether the accessible list includes the target device corresponding to the network identification number. If so, access the target device.

[0027] From the above description, it can be seen that if it is the first time to access the network, since the target device has not been accessed before, there is no need to obtain the network identification number from the corresponding memory again, and the target device can be directly accessed; if it is determined that it is not the first time to access the network, it means that the network identification number has been stored before. At this time, the corresponding network identification number is obtained from the corresponding memory and it is determined whether the target device corresponding to the network identification number can be accessed first, thereby achieving priority access to the network that has been accessed, improving the stability of the PAN device's network access, and there is no need to access the memory when accessing the network for the first time, thereby improving the efficiency of the network access process.

[0028] Furthermore, calculating the weight score of each device in the list of accessible devices includes:

[0029] CheckHop=AdpKr×MOD_Kr+AdpKm×MOD_Km+AdpKc×(MaxActiveTone) / (MaxNumTone)+AdpKq×((MaxLQI-LQI)) / (MaxLQI)+AdpKh×(Hop) / (MaxHop)+AdpKrt×(numActiveRoute) / (MaxNumActive route);

[0030] Among them, CheckHop represents the weight score of a device in the accessible device list; AdpKr, AdpKm, AdpKc, AdpKq, AdpKh, and AdpKrt represent weight ratio values; MOD_Kr and MOD_Km are preset parameters; MaxActiveTone represents the number of valid subcarriers of the device; MaxNumTone represents the number of subcarriers of the device; MaxLQI represents the maximum signal quality of the device; LQI represents the current signal quality of the device; Hop represents the number of hops, and MaxHop represents the maximum number of hops; numActiveRoute represents the current number of valid routes of the device; MaxNumActiveroute represents the maximum number of valid routes of the device;

[0031] Sorting the accessible list according to the weight scores includes:

[0032] The devices in the accessible list are sorted in ascending order of the weight scores.

[0033] As can be seen from the above description, based on the communication quality with the devices on the neighboring nodes, the busyness of the neighboring nodes and the quality of the entire link, a weight ratio value that can better reflect the actual situation is set. The neighboring node can access the node corresponding to the device in the device list. The current status of the device is determined based on the number of subcarriers, signal quality, number of routes, etc. of each device in the accessible device list, and priority is given to accessing the target device with good current device status to ensure the stability of network communication after access; the number of hops, also called the level, indicates how many devices the terminal device needs to forward the communication with the main device to reach the main device. The maximum number of hops is the specified maximum number of forwarding times.

[0034] Furthermore, after accessing the target device, the method further includes:

[0035] Determine whether the network identification number of the target device is consistent with the stored network identification number. If so, start the network monitoring mode and start the network evaluation process when a crosstalk signal is detected;

[0036] Otherwise, the network assessment process is started directly, and after executing the network assessment process once, it switches to the network monitoring mode.

[0037] From the above description, it can be seen that considering the network busyness, when the network identification number of the connected target device is inconsistent with the stored network identification number, active evaluation is required, that is, the network evaluation process is directly started. The inconsistency indicates that the target device has not been connected and the network quality cannot be determined. When the network identification number of the connected target device is consistent with the stored network identification number, active evaluation is not required. Since the corresponding target device has been connected, only passive monitoring is required, and the network evaluation process can be started when necessary.

[0038] Furthermore, the network evaluation process includes:

[0039] Search the network to obtain a list of accessible devices;

[0040] Determine whether there is a target device corresponding to the stored network identification number in the device list. If so, apply to access the target device. Otherwise, switch to network monitoring mode.

[0041] From the above description, it can be seen that the network evaluation process is to determine whether there is a target device corresponding to the stored network identification number after searching the network. If so, it will be transferred to the target device with the stored network identification number. Before officially connecting to the device without the stored network identification number, another verification will be performed to further ensure the stability of the network topology.

[0042] Furthermore, the step of accessing the target device ranked highest, obtaining the network identification number of the target device and storing the network identification number of the target device includes:

[0043] Determine whether a confirmation message is received within a first preset time. If so, mark the network identification number as a bound network identification number and start a network monitoring mode; otherwise, perform a restart.

[0044] From the above description, it can be seen that if no confirmation information is received within the first preset time, it means that the target device cannot be accessed normally. At this time, after restarting, the list of accessible devices around will be searched again and the target device will be re-determined. The network identification number previously stored will be overwritten with the network identification number of the newly determined target device. If a confirmation message is received, the network identification number will be officially bound and stored, and the network monitoring mode will be started, indicating that the network is accessed normally.

[0045] Furthermore, the determining whether the network identification number is stored further includes:

[0046] If the network identification number is not stored, a preset temporary network identification number is obtained to send the network request data;

[0047] Determine whether the network access is completed within the second preset time. If not, execute the step of accessing the target device with the highest ranking.

[0048] From the above description, it can be seen that if it is not the first time to access the network but the network identification number is not stored, it means that the network identification number may be accidentally deleted. First, obtain the preset temporary network identification number. The temporary network identification number can be the network identification number of the target device that has been accessed before. If the network access is not completed within the second preset time, then access the target device with the highest ranking, which further ensures the stability of network access.

[0049] Furthermore, the determining whether the network access is completed within the second preset time includes:

[0050] It is determined whether a short address allocated by the target device corresponding to the temporary network identification number is received within a second preset time. If so, it indicates that the network access is completed.

[0051] From the above description, it can be seen that whether the network access is completed is determined by whether the assigned short address is received. Receiving the assigned short address means that an Internet address has been assigned, and only then can normal communication with the network be achieved. Using this as the judgment standard, the network access result can be judged more accurately.

[0052] Furthermore, the network identification number of the target device is PANID.

[0053] As can be seen from the above description, using PANID as the network identification number does not require setting a unique identifier separately, which facilitates identification.

[0054] Reference Figure 2 , a network access terminal based on the G3-PLC communication network, including a memory, a processor and a computer program stored in the memory and capable of running on the processor. When the processor executes the computer program, each step of the above-mentioned network access method based on the G3-PLC communication network is implemented.

[0055] The above-mentioned network access method and terminal based on the G3-PLC communication network of the present invention can be applied to the network access of devices in the G3-PLC communication network, and are described below through specific implementation methods:

[0056] Please refer to Figure 1 , embodiment 1 of the present invention is:

[0057] A method for accessing a G3-PLC communication network comprises the following steps:

[0058] S1. Send network request data and obtain a list of accessible devices according to the network request data;

[0059] In an optional implementation, the device in the accessible device list is a PAN Coordinater;

[0060] S2. Calculate a weight score for each device in the accessible device list, and sort the accessible device list according to the weight score, including:

[0061] S21. Calculate the weight score of each device in the accessible device list:

[0062] CheckHop=AdpKr×MOD_Kr+AdpKm×MOD_Km+AdpKc×(MaxActiveTone) / (MaxNumTone)+AdpKq×((MaxLQI-LQI)) / (MaxLQI)+AdpKh×(Hop) / (MaxHop)+AdpKrt×(numActiveRoute) / (MaxNumActive route);

[0063] Among them, CheckHop represents the weight score of a device in the accessible device list; AdpKr, AdpKm, AdpKc, AdpKq, AdpKh, and AdpKrt represent weight ratio values; MOD_Kr and MOD_Km are preset parameters; MaxActiveTone represents the number of valid subcarriers of the device; MaxNumTone represents the number of subcarriers of the device; MaxLQI represents the maximum signal quality of the device; LQI represents the current signal quality of the device; Hop represents the number of hops, and MaxHop represents the maximum number of hops; numActiveRoute represents the current number of valid routes of the device; MaxNumActiveroute represents the maximum number of valid routes of the device;

[0064] Among them, MOD_Kr and MOD_Km can be adjusted according to the feedback from actual applications to further optimize the sorting effect;

[0065] S22. Sort the devices in the accessible list in ascending order of the weight scores; the smaller the score, the better the device status; the current score represents the energy required for the terminal device to communicate with the main device; when a channel with lower energy consumption is found, the channel is definitely preferred, and the device corresponding to the channel is the preferred device (if the terminal node does not have a preset PANID and cannot join the network on its own);

[0066] S6. Access the target device with the highest ranking, obtain the network identification number of the target device, and store it.

[0067] The second embodiment of the present invention is:

[0068] A network access method based on a G3-PLC communication network, which differs from the first embodiment in that it includes the following between S2 and S6:

[0069] S3, determine whether it is the first time to join the network, if so, execute S6; otherwise, determine whether the network identification number is stored, if so, execute S4, otherwise, execute S5;

[0070] S4. Determine whether the accessible list includes the target device corresponding to the network identification number. If so, access the target device and determine whether network access is completed within a second preset time. If not, execute S6.

[0071] S5. Obtain a preset temporary network identification number and send network request data; determine whether network access is completed within the second preset time, if not, execute S6;

[0072] In an optional embodiment, the second preset time is 10-20 minutes, such as 15 minutes. During the network access process, the second preset time is set to 10-20 minutes. After the time exceeds, the target device with the highest ranking can be directly accessed, thereby improving the efficiency of network access.

[0073] After network access is completed in step S4, S5 or step S6, step S7 is executed:

[0074] S7, determine whether the network identification number of the target device is consistent with the stored network identification number, if so, execute S8, otherwise execute S9;

[0075] S8. Start the network monitoring mode and start the network evaluation process when a crosstalk signal is detected; otherwise, directly start the network evaluation process and switch to the network monitoring mode after executing the network evaluation process once;

[0076] In an optional implementation, the network assessment process is performed only once after power-on to ensure network access stability;

[0077] The network assessment process includes: searching the network to obtain a list of accessible devices; determining whether a target device corresponding to a stored network identification number exists in the device list; if so, applying to access the target device; otherwise, switching to a network monitoring mode; in the network monitoring mode, monitoring all communication frames at the link layer, which contain a network identification number, i.e., a PANID;

[0078] S9. Determine whether a confirmation message is received within a first preset time. If so, mark the network identification number as a bound network identification number and start a network monitoring mode; otherwise, execute a restart;

[0079] In an optional embodiment, the confirmation information may be any valid communication, and the first preset time is 24 hours. Since the network access is successful, the window period for receiving the confirmation information is extended, thereby avoiding continuous access to target devices corresponding to different network identification numbers and improving network stability.

[0080] In an optional implementation, if a bound network identification number is connected, the network will not be reselected and the crosstalk signal will be ignored when received.

[0081] Please refer to Figure 2 , the third embodiment of the present invention is:

[0082] A network access terminal 1 based on a G3-PLC communication network includes a processor 2, a memory 3, and a computer program stored in the memory 3 and executable on the processor 2. When the processor 2 executes the computer program, each step in the first embodiment is implemented.

[0083] In an optional implementation, a network access terminal 1 based on the G3-PLC communication network is a PAN Device (Personal Area Network Device).

[0084] In summary, the present invention provides a network access method and terminal based on the G3-PLC communication network. By automatically obtaining a list of accessible devices and sorting them according to weights, the network identification number of the target device that is finally accessed is stored, thereby realizing automatic binding of the network identification number and ensuring that the network identification number accessed each time is basically the same, thereby achieving network stability and not accessing a different network identification number each time. At the same time, there is no permanent binding to the accessed network identification number. Through the network evaluation process and the network monitoring mode, the bound network identification number can be automatically replaced according to changes in the actual environment to ensure network smoothness and balance network quality and network stability.

[0085] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent transformations made using the contents of the present invention's description and drawings, or directly or indirectly applied in related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for accessing a G3-PLC communication network, characterized in that: Including steps: Sending network request data, and obtaining a list of accessible devices according to the network request data; Calculating a weight score for each device in the accessible device list, and sorting the accessible device list according to the weight score; Accessing the target device ranked first, obtaining and storing the network identification number of the target device; After sorting the list of accessible devices according to the weight scores, the following further comprises: Determine whether it is the first time to access the network. If so, execute the step of accessing the target device with the highest ranking; otherwise, determine whether a network identification number is stored. If so, determine whether the list of accessible devices includes a target device corresponding to the stored network identification number. If so, access the target device. After accessing the target device, the method further includes: Determine whether the network identification number of the target device is consistent with the stored network identification number. If so, start the network monitoring mode and start the network evaluation process when a crosstalk signal is detected; Otherwise, the network assessment process is started directly and switches to the network monitoring mode after executing the network assessment process once; The network assessment process includes: Search the network to obtain a list of accessible devices; Determine whether there is a target device corresponding to the stored network identification number in the accessible device list. If so, apply to access the target device. Otherwise, switch to network monitoring mode.

2. A method for accessing a G3-PLC communication network according to claim 1, characterized in that: Calculating the weight score of each device in the accessible device list includes: CheckHop=AdpKr×MOD_Kr+AdpKm×MOD_Km+AdpKc×(MaxActiveTone) / (MaxNumTone)+AdpKq×((MaxLQI-LQI)) / (MaxLQI)+AdpKh×(Hop) / (MaxHop)+AdpKrt×(numActiveRoute) / (MaxNumActive route); Among them, CheckHop represents the weight score of a device in the accessible device list; AdpKr, AdpKm, AdpKc, AdpKq, AdpKh, and AdpKrt represent weight ratio values; MOD_Kr and MOD_Km are preset parameters; MaxActiveTone represents the number of valid subcarriers of the device; MaxNumTone represents the number of subcarriers of the device; MaxLQI represents the maximum signal quality of the device; LQI represents the current signal quality of the device; Hop represents the number of hops, and MaxHop represents the maximum number of hops; numActiveRoute represents the current number of valid routes of the device; MaxNumActiveroute represents the maximum number of valid routes of the device; Sorting the list of accessible devices according to the weight scores includes: The devices in the accessible device list are sorted in ascending order according to the weight scores.

3. A method for accessing a G3-PLC communication network according to claim 1, characterized in that: The step of accessing the target device ranked first, obtaining and storing the network identification number of the target device, comprises: Determine whether a confirmation message is received within a first preset time. If so, mark the network identification number as a bound network identification number and start a network monitoring mode; otherwise, perform a restart.

4. A method for accessing a G3-PLC communication network according to claim 1, characterized in that: The determining whether a network identification number is stored further includes: If the network identification number is not stored, a preset temporary network identification number is obtained to send the network request data; Determine whether the network access is completed within the second preset time. If not, execute the step of accessing the target device with the highest ranking.

5. A method for accessing a G3-PLC communication network according to claim 4, characterized in that: The determining whether network access is completed within the second preset time includes: It is determined whether a short address allocated by the target device corresponding to the temporary network identification number is received within a second preset time. If so, it indicates that the network access is completed.

6. A method for accessing a G3-PLC communication network according to claim 1, characterized in that: The network identification number of the target device is PANID.

7. A network access terminal based on a G3-PLC communication network, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of a network access method based on a G3-PLC communication network according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Terminal

    CN104967990A

  • Communication terminal, communication device, communication management device, communication system, network joining method, and network joining program

    WO2021176713A1