Power line carrier communication methods, main routing equipment and devices

By dynamically adjusting transmission opportunities based on the access status of sub-routers, the problem of wasted time slots at idle nodes in power line carrier communication is solved, and bandwidth utilization is improved.

CN115996072BActive Publication Date: 2026-04-03HUAWEI TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-19
Publication Date
2026-04-03

AI Technical Summary

Technical Problem

In existing power line carrier communication technologies, although domain master nodes allocate transmission opportunities equally, idle node time slots are wasted, resulting in low bandwidth utilization.

Method used

The main routing device dynamically adjusts the transmission opportunities of the sub-routing devices based on their access status, allocates transmission opportunities in non-overlapping time periods, reduces the transmission opportunities of idle devices, and improves bandwidth utilization.

Benefits of technology

By dynamically adjusting transmission opportunities, the wasted time slots of idle devices are reduced, the bandwidth utilization of the power line network is improved, and it has strong ease of use and practicality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115996072B_ABST
    Figure CN115996072B_ABST
Patent Text Reader

Abstract

This application relates to the field of communication control and provides a power line carrier communication method, a main routing device, and an apparatus. In the method provided in this application, the main routing device can obtain the device access status of a first sub-routing device. If the device access status of the first sub-routing device is in a first state, it indicates that no user equipment has accessed the first sub-routing device. At this time, the main routing device can choose not to allocate a first time slot of the transmission management cycle for the first sub-routing device, but instead allocate a second time slot of the transmission management cycle for the first sub-routing device. This reduces the number of transmission opportunities for the first sub-routing device, avoids the first sub-routing device wasting excessive time slots, improves the bandwidth utilization of the power line network, and has strong practicality and ease of use.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication control, and in particular to a power line carrier communication method, a main routing device and apparatus. Background Technology

[0002] Power line communication (PLC) is a communication technology that uses power lines as a transmission medium to achieve data transmission and information exchange.

[0003] In existing PLC technology, the domain master node typically adopts a shared transmission scheme, equally allocating transmission opportunities to each node in the power line network.

[0004] In other words, even if some idle nodes in the power line network have no data transmission needs, the domain master node will still allocate transmission opportunities to the idle nodes, resulting in the waste of the time slots corresponding to these transmission opportunities and low bandwidth utilization. Summary of the Invention

[0005] This application provides a power line carrier communication method, a main routing device and apparatus, which can solve the problems of excessive time slots and low bandwidth utilization in existing power line carrier communication technologies.

[0006] In a first aspect, embodiments of this application provide a power line carrier communication method, applied to a main routing device, comprising:

[0007] Obtain the device access status of the first sub-router device;

[0008] If the device access status of the first sub-routing device is the first status, then the first sub-routing device is not allocated a transmission opportunity for the first time period of the transmission management cycle, and is allocated a transmission opportunity for the second time period of the transmission management cycle.

[0009] The main routing device and the first sub-routing device are connected to the same power line network. The first state is used to indicate that no user equipment is connected to the first sub-routing device. The first time period and the second time period are non-overlapping time periods.

[0010] It should be noted that the main routing device is an electronic device with routing and management functions. A sub-routing device is an electronic device with routing functions but no management functions. The first sub-routing device can be understood as a sub-routing device connected to the same power line network as the main routing device.

[0011] Once the main router enters working mode, it can obtain the device access status of the first sub-router.

[0012] The device access status can be requested by the main router from the first sub-router, or it can be actively sent by the first sub-router to the main router.

[0013] The device access status can include a first status and a second status. The first status indicates that a user equipment has accessed the first sub-routing device, and the second status indicates that no user equipment has accessed the first sub-routing device.

[0014] User equipment refers to electronic devices other than the main routing device and the sub-routing device.

[0015] When the device status of the first sub-router is in the first state, it means that no user equipment has been connected to the first sub-router and the first sub-router has no service data to transmit.

[0016] At this time, the master routing device can determine the first sub-routing device as an idle device, not allocate a transmission opportunity for the first time period of the transmission management cycle to the first sub-routing device, and allocate a transmission opportunity for the second time period of the transmission management cycle to the first sub-routing device.

[0017] In other words, the master routing device does not allocate the first sub-routing device with the entire transmission management cycle of transmission opportunities equally, but only allocates the first sub-routing device with transmission opportunities for a portion of the transmission management cycle.

[0018] By using the above methods, the main routing device can reduce the transmission opportunities of idle devices and reduce the wasted time slots of idle devices, thereby improving the bandwidth utilization of the power line network and having strong ease of use and practicality.

[0019] In one possible implementation of the first aspect, after obtaining the device access status of the first sub-routing device, the method further includes:

[0020] If the device access status of the first sub-routing device is the second status, then the first sub-routing device is allocated a transmission opportunity for the first time period and the second time period. The second status is used to indicate that a user equipment has accessed the first sub-routing device.

[0021] It should be noted that when the device status of the first sub-routing device is in the second state, it indicates that a user device has been connected to the first sub-routing device, and the first sub-routing device may have service data that needs to be transmitted.

[0022] At this point, the main routing device can identify the first sub-routing device as an active device and allocate transmission opportunities for the first and second time periods to the active device, thus ensuring the transmission efficiency of the active device.

[0023] In one possible implementation of the first aspect, after the step of not allocating a transmission opportunity for a first time period of the transmission management cycle to the first sub-routing device if the device access state of the first sub-routing device is in a first state, and allocating a transmission opportunity for a second time period of the transmission management cycle to the first sub-routing device, the method further includes:

[0024] When a first state change notification is received from the first sub-routing device, the first sub-routing device is allocated a transmission opportunity for the first time period and the second time period.

[0025] It should be noted that in real-world applications, user devices may connect to or disconnect from sub-routers at any time.

[0026] Therefore, the device access status of the sub-routing device may be affected by the user device, changing from the first state to the second state, or from the second state to the first state.

[0027] When the access status of a sub-router changes, the sub-router can send a status change notification to the master router. This status change notification indicates that the sub-router's device status has changed.

[0028] Therefore, when the primary routing device receives the first state change notification sent by the first sub-routing device, it indicates that the device access state of the first sub-routing device has changed from the first state to the second state.

[0029] At this point, in order to ensure the transmission efficiency of the first sub-routing device, the main routing device can allocate the first sub-routing device a first time period and a second time period for transmission.

[0030] In one possible implementation of the first aspect, after allocating the transmission opportunities for the first time period and the second time period to the first sub-routing device, the method further includes:

[0031] When a second state change notification is received from the first sub-routing device, the first sub-routing device is no longer allocated a transmission opportunity for the first time period, and a transmission opportunity for the second time period is allocated to the first sub-routing device.

[0032] It should be noted that when the primary routing device receives a second state change notification from the first sub-routing device, it indicates that the device access state of the first sub-routing device has changed from the second state to the first state.

[0033] At this time, the first sub-routing device has no service data to transmit. If the main routing device continues to allocate the first time slot and the second time slot for transmission to the first sub-routing device, it may waste a lot of time slots.

[0034] Therefore, the master routing device can stop allocating a first time slot for transmission to the first sub-routing device and allocate a second time slot for transmission to the first sub-routing device, thereby reducing the transmission opportunities of the first sub-routing device, reducing wasted time slots, and improving the bandwidth utilization of the power line network.

[0035] In one possible implementation of the first aspect, the method further includes:

[0036] When a second sub-routing device is detected to be connected to the power line network, the first time period transmission opportunity is not allocated to the second sub-routing device, and a second time period transmission opportunity is allocated to the second sub-routing device.

[0037] It should be noted that, in addition to changes in device access status, sub-routing devices may also connect to or disconnect from the power line network.

[0038] The second sub-routing device refers to a sub-routing device newly connected to the power line network. When the main routing device detects that the second sub-routing device has connected to the power line network, since the newly connected sub-routing device usually has no user equipment connected, the main routing device can default the second sub-routing device to an idle device, not allocate a first time slot for transmission to the second sub-routing device, and allocate a second time slot for transmission to the second sub-routing device, thereby reducing wasted time slots and improving the bandwidth utilization of the power line network.

[0039] In one possible implementation of the first aspect, after allocating a transmission opportunity for the second time period to the second sub-routing device without allocating the first time period transmission opportunity to the second sub-routing device, the method further includes:

[0040] When a third state change notification is received from the second sub-routing device, the second sub-routing device is allocated a transmission opportunity for the first time period and the second time period.

[0041] It should be noted that when a user device connects to the second sub-routing device, the second sub-routing device can send a third change notification to the main routing device.

[0042] When the primary routing device receives a third change notification, it can determine that a user device has been connected to the second sub-routing device, and the second sub-routing device is an active device.

[0043] At this point, the primary routing device can allocate the first and second time slots for transmission to the secondary routing device, thereby ensuring the transmission efficiency of the secondary routing device.

[0044] In one possible implementation of the first aspect, the method further includes:

[0045] When a second sub-routing device is detected to be connected to the power line network, a transmission opportunity for the first time period and the second time period is allocated to the second sub-routing device;

[0046] If the device access status of the second sub-routing device is not obtained within the preset time period, or if the device access status of the second sub-routing device is in the third state, then the first time period transmission opportunity will be stopped from being allocated to the second sub-routing device, and the second time period transmission opportunity will be allocated to the second sub-routing device. The third state is used to indicate that no user device has accessed the second sub-routing device.

[0047] It should be noted that in other scenarios, when the main routing device detects that the second sub-routing device is connected to the power line network, the main routing device can also allocate a first time period and a second time period for transmission to the second sub-routing device to ensure the transmission efficiency of the second sub-routing device.

[0048] Then, the main routing device waits for a preset time. If the main routing device does not receive the device access status of the second sub-routing device within the preset time, or if the device access status received by the main routing device is a third state, the main routing device can determine the second sub-routing device as an idle device, stop allocating the first time slot for transmission to the second sub-routing device, allocate the second time slot for transmission to the second sub-routing device, reduce the transmission opportunities of the second sub-routing device, reduce wasted time slots, and improve the bandwidth utilization of the power line network.

[0049] If the main router receives the access status of the second sub-router within a preset time period, and the access status of the device is in the fourth state, the main router can maintain the previous configuration scheme without making any changes.

[0050] The third state indicates that no user equipment has accessed the second sub-routing device, and the fourth state indicates that a user equipment has accessed the second sub-routing device.

[0051] In one possible implementation of the first aspect, the method further includes:

[0052] When the first sub-routing device disconnects from the power line network, the allocation of transmission opportunities for the first time period and the second time period to the first sub-routing device is stopped.

[0053] It should be noted that when the master router detects that the first sub-router has disconnected from the power line network, it means that the first sub-router is no longer transmitting data through the power line network. At this time, the master router can stop allocating first and second time slots for transmission to the first sub-router, reducing invalid transmission opportunities, reducing wasted time slots, and improving the bandwidth utilization of the power line network.

[0054] In one possible implementation of the first aspect, obtaining the device access status of the first sub-routing device includes:

[0055] The device access status of the first sub-router device is obtained through a status transmission channel, which includes one or more of the following: power line network, Bluetooth connection, Wi-Fi connection, Universal Serial Bus connection, and Ethernet cable connection.

[0056] It should be noted that the main router can obtain the device access status of each sub-router through the status transmission channel.

[0057] The status transmission channel may include one or more of the following: power line network, Bluetooth connection, Wi-Fi connection, Universal Serial Bus connection, and Ethernet connection.

[0058] Secondly, embodiments of this application provide a power line carrier communication device applied to a main routing device, comprising:

[0059] The status acquisition module is used to acquire the device access status of the first sub-router device;

[0060] The idle setting module is used to, if the device access status of the first sub-routing device is in the first state, not to allocate a first time period of transmission management cycle transmission opportunity to the first sub-routing device, and to allocate a second time period of transmission management cycle transmission opportunity to the first sub-routing device.

[0061] The main routing device and the first sub-routing device are connected to the same power line network. The first state is used to indicate that no user equipment is connected to the first sub-routing device. The first time period and the second time period are non-overlapping time periods.

[0062] In one possible implementation of the second aspect, the apparatus further includes:

[0063] The active setting module is used to allocate the first time period and the second time period transmission opportunities to the first sub-routing device if the device access status of the first sub-routing device is in the second state. The second state is used to indicate that a user equipment has accessed the first sub-routing device.

[0064] In one possible implementation of the second aspect, the apparatus further includes:

[0065] The first change module is used to allocate the first time period and the second time period for sending when it receives the first state change notification sent by the first sub-routing device.

[0066] In one possible implementation of the second aspect, the apparatus further includes:

[0067] The second change module is used to stop allocating the first time period transmission opportunity to the first sub-routing device and allocate the second time period transmission opportunity to the first sub-routing device when it receives the second state change notification sent by the first sub-routing device.

[0068] In one possible implementation of the second aspect, the apparatus further includes:

[0069] The first access module is configured to, when it detects that the second sub-routing device is connected to the power line network, not allocate a transmission opportunity for the second sub-routing device during the first time period, and allocate a transmission opportunity for the second sub-routing device during the second time period.

[0070] In one possible implementation of the second aspect, the apparatus further includes:

[0071] The third change module is used to allocate the first time period and the second time period sending opportunities to the second sub-routing device when it receives the third state change notification sent by the second sub-routing device.

[0072] In one possible implementation of the second aspect, the apparatus further includes:

[0073] The second access module is used to allocate transmission opportunities for the first time period and the second time period to the second sub-routing device when it is detected that the second sub-routing device has accessed the power line network;

[0074] The fourth modification module is used to stop allocating the first time period transmission opportunity to the second sub-routing device and allocate the second time period transmission opportunity to the second sub-routing device if the device access status of the second sub-routing device is not obtained within a preset time period, or if the device access status of the second sub-routing device is a third state. The third state is used to indicate that no user equipment has accessed the second sub-routing device.

[0075] In one possible implementation of the second aspect, the apparatus further includes:

[0076] The device disconnection module is used to stop allocating the first time period and the second time period transmission opportunities to the first sub-routing device when the first sub-routing device disconnects from the power line network.

[0077] In one possible implementation of the second aspect, the status acquisition module is specifically used to acquire the device access status of the first sub-router device through a status transmission channel, wherein the status transmission channel includes one or more of the power line network, Bluetooth connection, Wi-Fi connection, Universal Serial Bus connection, and Ethernet cable connection.

[0078] Thirdly, embodiments of this application provide a main routing device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor is configured to execute the computer program to implement the method as described in the first aspect and any of the possible implementations of the first aspect.

[0079] Fourthly, embodiments of this application provide a computer-readable storage medium configured to store a computer program, characterized in that, when executed by a processor, the computer program implements the method as described in the first aspect and any of the possible implementations of the first aspect.

[0080] Fifthly, embodiments of this application provide a computer program product configured to run on a main routing device, causing the main routing device to perform the method described in the first aspect and any of the possible implementations of the first aspect.

[0081] In a sixth aspect, embodiments of this application provide a chip system including a memory and a processor, the processor being configured to execute a computer program stored in the memory to implement the method as described in the first aspect and any of the possible implementations of the first aspect.

[0082] The beneficial effects of the embodiments in this application compared with the prior art are:

[0083] In the power line carrier communication method of this application, the master routing device can obtain the device access status of the first sub-routing device. When the device access status of the first sub-routing device is in the first state, it means that no user equipment is connected to the first sub-routing device and no service data needs to be transmitted.

[0084] At this time, the master routing device may not allocate a transmission opportunity for the first time period of the transmission management cycle to the first sub-routing device, but may allocate a transmission opportunity for the second time period of the transmission management cycle to the first sub-routing device. The first time period and the second time period are non-overlapping time periods.

[0085] In other words, the master routing device does not allocate the first sub-routing device with the entire transmission management cycle of transmission opportunities equally, but only allocates the first sub-routing device with transmission opportunities for a portion of the transmission management cycle.

[0086] By using the above method, the main routing device can reduce the number of transmission opportunities allocated to the first sub-routing device, reduce wasted time slots, thereby improving the bandwidth utilization of the power line network, and has strong ease of use and practicality. Attached Figure Description

[0087] Figure 1 A system architecture diagram of a power line carrier communication system provided in this application embodiment;

[0088] Figure 2 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;

[0089] Figure 3 This is a schematic diagram of the structure of an index frame provided in an embodiment of this application;

[0090] Figure 4 A schematic diagram of windowing provided for an embodiment of this application;

[0091] Figure 5 A scenario diagram provided for an embodiment of this application;

[0092] Figure 6 A time slot distribution diagram provided for an embodiment of this application;

[0093] Figure 7 Another time slot distribution diagram provided for an embodiment of this application;

[0094] Figure 8 Another time slot distribution diagram provided for an embodiment of this application;

[0095] Figure 9 This is another scenario illustration provided for an embodiment of this application;

[0096] Figure 10 Another time slot distribution diagram provided for an embodiment of this application;

[0097] Figure 11 Another time slot distribution diagram provided for an embodiment of this application;

[0098] Figure 12 This is another scenario illustration provided for an embodiment of this application;

[0099] Figure 13 Another time slot distribution diagram provided for an embodiment of this application;

[0100] Figure 14Another time slot distribution diagram provided for an embodiment of this application;

[0101] Figure 15 This is another scenario illustration provided for an embodiment of this application;

[0102] Figure 16 This is another scenario illustration provided for an embodiment of this application;

[0103] Figure 17 This is another scenario illustration provided for an embodiment of this application;

[0104] Figure 18 This is another scenario illustration provided for an embodiment of this application;

[0105] Figure 19 This is another scenario illustration provided for an embodiment of this application;

[0106] Figure 20 This is another scenario illustration provided for an embodiment of this application;

[0107] Figure 21 This is another scenario illustration provided for an embodiment of this application;

[0108] Figure 22 Another time slot distribution diagram provided for an embodiment of this application;

[0109] Figure 23 Another time slot distribution diagram provided for an embodiment of this application;

[0110] Figure 24 This is another scenario illustration provided for an embodiment of this application;

[0111] Figure 25 Another time slot distribution diagram provided for an embodiment of this application;

[0112] Figure 26 This is another scenario illustration provided for an embodiment of this application;

[0113] Figure 27 Another time slot distribution diagram provided for an embodiment of this application;

[0114] Figure 28 Another time slot distribution diagram provided for an embodiment of this application;

[0115] Figure 29 A flowchart illustrating a power line carrier communication method provided in an embodiment of this application;

[0116] Figure 30 This is a schematic diagram of a power line carrier communication device provided in an embodiment of this application. Detailed Implementation

[0117] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.

[0118] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.

[0119] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0120] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."

[0121] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0122] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0123] Power line communication (PLC) is a communication technology that uses power lines as a transmission medium to achieve data transmission and information exchange.

[0124] When an electronic device is connected to a power line network, if the electronic device has PLC functionality, it can broadcast and receive data through the power line network.

[0125] In a power line network, all nodes (i.e., electronic devices connected to the power line network) are equal in status, and any influence exerted by any node on the power line can be perceived by other nodes in the power line network.

[0126] Therefore, when multiple nodes in a power line network transmit data at the same time, the data sent by the multiple nodes may interfere with each other, affecting the transmission effect.

[0127] For example, suppose that device A and device B are connected to a power line network, and both device A and device B have PLC functionality.

[0128] At a certain moment, device A modulates the data to be transmitted into a first signal and couples the first signal onto the power line; device B modulates the data to be transmitted into a second signal and couples the second signal onto the power line.

[0129] At this point, the first and second signals may interfere with each other and merge into a third signal.

[0130] When other nodes in the power line network receive the third signal, they may be unable to demodulate the third signal into the data that Device A and Device B want to transmit, causing data transmission failure between Device A and Device B.

[0131] Therefore, in order to enable the nodes in a power line network to transmit data in an orderly manner, the domain master node with management functions in the power line network can allocate transmission opportunities to each node equally, and each node can take turns transmitting data according to the transmission order set by the domain master node.

[0132] For example, suppose a power line network includes a first node, a second node, and a third node, with the second node as the domain master node. In this case, the domain master node can allocate transmission opportunities within a transmission management cycle to the first, second, and third nodes, setting the transmission order of the first, second, and third nodes as third node-first node-second node.

[0133] When the transmission management cycle arrives, the first node, the second node, and the third node can transmit data sequentially according to the above-described transmission order. Following this order, the third node transmits data first; after the third node finishes transmitting, it is the first node's turn; after the first node finishes transmitting, it is the second node's turn; and after the second node finishes transmitting, it is the third node's turn again.

[0134] In this way, each node can transmit data in an orderly manner, avoiding interference between the data sent by different nodes. However, since the domain master node allocates sending opportunities to each node equally, that is to say, even if some idle nodes do not have data transmission needs, the domain master node will still allocate sending opportunities to these idle nodes.

[0135] According to PLC standards, each transmission opportunity has a minimum transmission time slot. Therefore, when it is the turn of an idle node to transmit, even if that idle node has no data to transmit, the next node must wait for the minimum transmission time slot before it can assume that the idle node has given up its transmission opportunity and begin transmitting its own data.

[0136] For example, referring to the previous example, suppose that after the first node finishes sending, it is the second node's turn to send. However, the second node has no data to transmit, so it remains silent.

[0137] After the first node sends data, even if the second node does not transmit data, the third node must wait for the minimum transmission time slot. If the second node still has not transmitted data after waiting for the minimum transmission time slot, the third node can assume the second node has given up its transmission opportunity and begin transmitting data itself. The minimum transmission time slot that the third node waits for can be considered a wasted time slot.

[0138] Therefore, when there are a large number of idle nodes in the power line network, if the domain master node allocates transmission opportunities in the manner described above, it may result in a large number of time slots being wasted, which will seriously reduce the bandwidth utilization of the power line network.

[0139] In view of this, the present application provides a power line carrier communication method, in which the main routing device can dynamically adjust the transmission opportunities of the sub-routing devices according to the device access status of the sub-routing devices, reduce wasted time slots, improve bandwidth utilization, and has strong ease of use and practicality.

[0140] First, please refer to Figure 1 . Figure 1 An exemplary power line carrier communication system to which embodiments of this application are applicable is shown.

[0141] like Figure 1As shown, the power line carrier communication system may include: a power line network 101, a main routing device 102, a sub-routing device 103, and a user equipment 104.

[0142] Among them, the main routing device 102 is an electronic device with routing and management functions. The main routing device 102 can manage the transmission opportunities of the main routing device 102 and each sub-routing device 103 connected to the power line network 101.

[0143] Sub-routing device 103 is an electronic device that has routing function but no management function.

[0144] User equipment 104 is an electronic device other than main router 102 and sub-router 103. User equipment 104 may include one or more of the following types of electronic devices: desktop computer, laptop computer, tablet computer, mobile phone, smart TV, smart screen, smart speaker, smart air conditioner, robot vacuum cleaner, dishwasher, smart lamp, smart door lock, smart curtain, LiDAR, millimeter wave radar, video doorbell, etc.

[0145] The main routing device 102 and the sub-routing device 103 can be directly connected to the power line network 101 and exchange data through the power line network 101.

[0146] And / or, the main router device 102 and the sub-router device 103 can also exchange data through one or more communication connections such as Wi-Fi connection, Bluetooth connection, universal serial bus (USB) connection, Registered Jack 45 (RJ45) connection.

[0147] User device 104 can be connected to main router device 102, and / or user device 104 can also be connected to sub-router device 103.

[0148] When user device 104 is connected to main router device 102 / sub-router device 103, user device 104 and main router device 102 / sub-router device 103 can interact with each other through one or more communication connections such as Wi-Fi connection, Bluetooth connection, USB connection, and RJ45 connection.

[0149] In addition, when the main router 102 is connected to the Internet line, the main router can receive the uplink data sent by the sub-router 103 and / or user equipment 104, and transmit the uplink data to the Internet through the Internet line;

[0150] And / or, the main router 102 can also receive downlink data transmitted over the Internet through the Internet access line and forward the downlink data to the sub-router 103 and / or the user 104.

[0151] The aforementioned internet access lines may include any one or more of the following: Asymmetric Digital Subscriber Line (ADSL), digital data network (DDN) lines, fiber optic broadband, etc.

[0152] Understandably, although Figure 1 The diagram shows four sub-routing devices 103 and two user devices 104. However, in practical applications, power line carrier communication systems can have more than [a certain number of devices]. Figure 1 The diagram shows more or fewer sub-routing devices 103 and user devices 104. Figure 1 The sub-routing device 103 and user device 104 shown should not impose any limit on the specific number of sub-routing device 103 and user device 104.

[0153] refer to Figure 2 , Figure 2 An exemplary schematic diagram of the structure of the electronic device 200 provided in the embodiments of this application is shown. The electronic device 200 may be the main routing device 102, the sub-routing device 103, or the user device 104 described above.

[0154] Electronic device 200 may include processor 210, external memory interface 220, internal memory 221, universal serial bus (USB) interface 230, charging management module 240, power management module 241, battery 242, antenna 1, antenna 2, mobile communication module 250, wireless communication module 260, audio module 270, speaker 270A, receiver 270B, microphone 270C, headphone jack 270D, sensor module 280, button 290, motor 291, indicator 292, camera 293, display screen 294, and subscriber identification module (SIM) card interface 295, etc. The sensor module 280 may include a pressure sensor 280A, a gyroscope sensor 280B, a barometric pressure sensor 280C, a magnetic sensor 280D, an accelerometer sensor 280E, a distance sensor 280F, a proximity sensor 280G, a fingerprint sensor 280H, a temperature sensor 280J, a touch sensor 280K, an ambient light sensor 280L, a bone conduction sensor 280M, etc.

[0155] Processor 210 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). These different processing units may be independent devices or integrated into one or more processors.

[0156] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.

[0157] The processor 210 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. This memory can store instructions or data that the processor 210 has just used or that are used repeatedly. If the processor 210 needs to use the instruction or data again, it can directly retrieve it from the memory. This avoids repeated accesses, reduces the waiting time of the processor 210, and thus improves the efficiency of the system.

[0158] In some embodiments, the processor 210 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0159] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 210 may include multiple I2C buses. The processor 210 can couple to the touch sensor 280K, charger, flash, camera 293, etc., through different I2C bus interfaces. For example, the processor 210 can couple to the touch sensor 280K through the I2C interface, enabling the processor 210 and the touch sensor 280K to communicate through the I2C bus interface, thereby realizing the touch function of the electronic device 200.

[0160] The I2S interface can be used for audio communication. In some embodiments, the processor 210 may include multiple I2S buses. The processor 210 can be coupled to the audio module 270 via the I2S bus to enable communication between the processor 210 and the audio module 270. In some embodiments, the audio module 270 can transmit audio signals to the wireless communication module 260 via the I2S interface to enable the function of answering phone calls through a Bluetooth headset.

[0161] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 270 and the wireless communication module 260 can be coupled via the PCM bus interface. In some embodiments, the audio module 270 can also transmit audio signals to the wireless communication module 260 via the PCM interface, enabling the function of answering phone calls through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0162] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 210 and the wireless communication module 260. For example, the processor 210 communicates with the Bluetooth module in the wireless communication module 260 via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module 270 can transmit audio signals to the wireless communication module 260 via the UART interface to enable music playback through Bluetooth headphones.

[0163] The MIPI interface can be used to connect the processor 210 to peripheral devices such as the display screen 294 and the camera 293. The MIPI interface includes a camera serial interface (CSI) and a display serial interface (DSI). In some embodiments, the processor 210 and the camera 293 communicate via the CSI interface to enable the electronic device 200 to capture images. The processor 210 and the display screen 294 communicate via the DSI interface to enable the electronic device 200 to display images.

[0164] The GPIO interface can be configured via software. It can be configured as a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 210 to a camera 293, a display screen 294, a wireless communication module 260, an audio module 270, a sensor module 280, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0165] USB port 230 is a USB standard compliant interface, specifically a Mini USB port, Micro USB port, or USB Type-C port. USB port 230 can be used to connect a charger to charge electronic device 200, and can also be used for data transfer between electronic device 200 and peripheral devices. It can also be used to connect headphones for audio playback. This interface can also be used to connect other electronic devices, such as AR devices.

[0166] It is understood that the interface connection relationships between the modules illustrated in the embodiments of the present invention are merely illustrative and do not constitute a structural limitation on the electronic device 200. In other embodiments of this application, the electronic device 200 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.

[0167] The charging management module 240 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 240 receives charging input from the wired charger via a USB interface 230. In some wireless charging embodiments, the charging management module 240 receives wireless charging input via the wireless charging coil of the electronic device 200. While charging the battery 242, the charging management module 240 can also supply power to the electronic device via the power management module 241.

[0168] The power management module 241 connects the battery 242, the charging management module 240, and the processor 210. The power management module 241 receives input from the battery 242 and / or the charging management module 240, providing power to the processor 210, internal memory 221, display screen 294, camera 293, and wireless communication module 260, etc. The power management module 241 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 241 may also be located within the processor 210. In other embodiments, the power management module 241 and the charging management module 240 may be located in the same device.

[0169] The wireless communication function of electronic device 200 can be implemented through antenna 1, antenna 2, mobile communication module 250, wireless communication module 260, modem processor, and baseband processor.

[0170] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 200 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with a tuning switch.

[0171] The mobile communication module 250 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 200. The mobile communication module 250 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 250 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 250 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 250 may be housed in the processor 210. In some embodiments, at least some functional modules of the mobile communication module 250 and at least some modules of the processor 210 may be housed in the same device.

[0172] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 270A, receiver 270B, etc.) or displays images or videos through the display screen 294. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 210 and may be housed in the same device as the mobile communication module 250 or other functional modules.

[0173] The wireless communication module 260 can provide solutions for wireless communication applications on the electronic device 200, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 260 can be one or more devices integrating at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 210. The wireless communication module 260 can also receive signals to be transmitted from processor 210, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0174] In some embodiments, antenna 1 of electronic device 200 is coupled to mobile communication module 250, and antenna 2 is coupled to wireless communication module 260, enabling electronic device 200 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).

[0175] Electronic device 200 implements display functions through a GPU, a display screen 294, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 294 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 210 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0176] Display screen 294 is used to display images, videos, etc. Display screen 294 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 200 may include one or N displays 294, where N is a positive integer greater than 1.

[0177] Electronic device 200 can perform shooting functions through ISP, camera 293, video codec, GPU, display screen 294 and application processor.

[0178] The ISP (Image Signal Processor) is used to process data fed back from the camera 293. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, transforming it into an image visible to the naked eye. The ISP can also perform algorithmic optimization on image noise, brightness, and skin tone. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 293.

[0179] Camera 293 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the electronic device 200 may include one or N cameras 293, where N is a positive integer greater than 1.

[0180] Digital signal processors (DSPs) are used to process digital signals. Besides digital image signals, they can also process other digital signals. For example, when electronic device 200 selects a frequency, the DSP is used to perform Fourier transforms on the frequency energy.

[0181] Video codecs are used to compress or decompress digital video. Electronic device 200 may support one or more video codecs. Thus, electronic device 200 can play or record video in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0182] An NPU (Neural Processing Unit) is a neural network (NN) computing processor that, by borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, rapidly processes input information and can continuously learn on its own. NPUs enable intelligent cognitive applications in electronic devices, such as image recognition, facial recognition, speech recognition, and text understanding.

[0183] The external storage interface 220 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 200. The external memory card communicates with the processor 210 through the external storage interface 220 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.

[0184] Internal memory 221 can be used to store computer executable program code, which includes instructions. Internal memory 221 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of electronic device 200 (such as audio data, phonebook, etc.). Furthermore, internal memory 221 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc. Processor 210 executes various functional applications and data processing of electronic device 200 by running instructions stored in internal memory 221 and / or instructions stored in memory disposed in the processor.

[0185] Electronic device 200 can implement audio functions such as music playback and recording through audio module 270, speaker 270A, receiver 270B, microphone 270C, headphone jack 270D, and application processor.

[0186] The audio module 270 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 270 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 270 may be located in the processor 210, or some functional modules of the audio module 270 may be located in the processor 210.

[0187] The speaker 270A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. The electronic device 200 can listen to music or make hands-free calls through the speaker 270A.

[0188] The receiver 270B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. When the electronic device 200 answers a telephone call or voice message, the receiver 270B can be brought close to the ear to listen to the voice.

[0189] Microphone 270C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can speak by bringing their mouth close to microphone 270C, inputting the sound signal into microphone 270C. Electronic device 200 may have at least one microphone 270C. In some embodiments, electronic device 200 may have two microphones 270C, which, in addition to collecting sound signals, can also perform noise reduction. In other embodiments, electronic device 200 may also have three, four, or more microphones 270C, which can collect sound signals, reduce noise, identify the sound source, and perform directional recording, etc.

[0190] The headphone jack 270D is used to connect wired headphones. The headphone jack 270D can be a USB 230 interface or a 3.5mm Open Mobile Terminal Platform (OMTP) standard interface, a CTIA (Cellular Telecommunications Industry Association of the USA) standard interface.

[0191] Pressure sensor 280A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 280A can be disposed on display screen 294. There are many types of pressure sensors 280A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may include at least two parallel plates with conductive material. When force is applied to pressure sensor 280A, the capacitance between the electrodes changes. Electronic device 200 determines the pressure intensity based on the change in capacitance. When a touch operation is applied to display screen 294, electronic device 200 detects the intensity of the touch operation based on pressure sensor 280A. Electronic device 200 can also calculate the touch position based on the detection signal from pressure sensor 280A. In some embodiments, touch operations applied to the same touch position but with different touch operation intensities can correspond to different operation commands. For example, when a touch operation with an intensity less than a first pressure threshold is applied to the SMS application icon, a command to view an SMS is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to the SMS application icon, a command to create a new SMS is executed.

[0192] The gyroscope sensor 280B can be used to determine the motion attitude of the electronic device 200. In some embodiments, the gyroscope sensor 280B can determine the angular velocity of the electronic device 200 around three axes (i.e., the x, y, and z axes). The gyroscope sensor 280B can be used for image stabilization. For example, when the shutter is pressed, the gyroscope sensor 280B detects the angle of the electronic device 200's shake, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to counteract the shake of the electronic device 200 through reverse movement, thus achieving image stabilization. The gyroscope sensor 280B can also be used in navigation and motion-sensing game scenarios.

[0193] The barometric pressure sensor 280C is used to measure air pressure. In some embodiments, the electronic device 200 calculates altitude using the air pressure value measured by the barometric pressure sensor 280C to assist in positioning and navigation.

[0194] The magnetic sensor 280D includes a Hall sensor. The electronic device 200 can use the magnetic sensor 280D to detect the opening and closing of the flip cover. In some embodiments, when the electronic device 200 is a flip phone, the electronic device 200 can detect the opening and closing of the flip cover using the magnetic sensor 280D. Then, based on the detected opening and closing state of the cover or the flip cover, features such as automatic flip unlocking can be set.

[0195] The accelerometer 280E can detect the magnitude of acceleration of electronic device 200 in various directions (typically three axes). When electronic device 200 is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the posture of electronic device, and can be applied to applications such as screen orientation switching and pedometers.

[0196] A distance sensor 280F is used to measure distance. Electronic device 200 can measure distance via infrared or laser. In some embodiments, during a shooting scene, electronic device 200 can utilize the distance sensor 280F to measure distance for rapid focusing.

[0197] The proximity sensor 280G may include, for example, a light-emitting diode (LED) and a light detector, such as a photodiode. The LED may be an infrared LED. The electronic device 200 emits infrared light outward through the LED. The electronic device 200 uses the photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that an object is near the electronic device 200. When insufficient reflected light is detected, the electronic device 200 can determine that no object is near the electronic device 200. The electronic device 200 may use the proximity sensor 280G to detect when a user holds the electronic device 200 close to their ear for a call, so as to automatically turn off the screen to save power. The proximity sensor 280G can also be used in holster mode and pocket mode for automatic unlocking and locking of the screen.

[0198] The ambient light sensor 280L is used to sense the brightness of ambient light. The electronic device 200 can adaptively adjust the brightness of its display screen 294 based on the sensed ambient light level. The ambient light sensor 280L can also be used to automatically adjust the white balance when taking photos. The ambient light sensor 280L can also work in conjunction with the proximity sensor 280G to detect whether the electronic device 200 is in a pocket, preventing accidental touches.

[0199] The fingerprint sensor 280H is used to collect fingerprints. The electronic device 200 can utilize the characteristics of the collected fingerprints to achieve fingerprint unlocking, accessing application locks, taking photos with fingerprints, answering calls with fingerprints, etc.

[0200] Temperature sensor 280J is used to detect temperature. In some embodiments, electronic device 200 uses the temperature detected by temperature sensor 280J to execute a temperature handling strategy. For example, when the temperature reported by temperature sensor 280J exceeds a threshold, electronic device 200 reduces the performance of a processor located near temperature sensor 280J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is below another threshold, electronic device 200 heats battery 242 to prevent abnormal shutdown of electronic device 200 due to low temperature. In still other embodiments, when the temperature is below yet another threshold, electronic device 200 boosts the output voltage of battery 242 to prevent abnormal shutdown due to low temperature.

[0201] Touch sensor 280K, also known as a "touch device," can be located on display screen 294. The touch sensor 280K and display screen 294 together form a touchscreen, also known as a "touchscreen." Touch sensor 280K detects touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through display screen 294. In other embodiments, touch sensor 280K may also be located on the surface of electronic device 200, in a different position than display screen 294.

[0202] The bone conduction sensor 280M can acquire vibration signals. In some embodiments, the bone conduction sensor 280M can acquire vibration signals from the vibrating bone segments of the human vocal cords. The bone conduction sensor 280M can also contact the human pulse to receive blood pressure signals. In some embodiments, the bone conduction sensor 280M can also be incorporated into headphones to form bone conduction headphones. The audio module 270 can parse the voice signals from the vibrating bone segments of the vocal cords acquired by the bone conduction sensor 280M to realize voice functionality. The application processor can parse heart rate information from the blood pressure signals acquired by the bone conduction sensor 280M to realize heart rate detection functionality.

[0203] Buttons 290 include a power button, volume buttons, etc. Buttons 290 can be mechanical buttons or touch-sensitive buttons. Electronic device 200 can receive button input and generate key signal inputs related to user settings and function control of electronic device 200.

[0204] Motor 291 can generate vibration alerts. Motor 291 can be used for incoming call vibration alerts or for touch vibration feedback. For example, different vibration feedback effects can be corresponding to touch operations applied to different applications (such as taking photos, playing audio, etc.). Motor 291 can also correspond to different vibration feedback effects for touch operations applied to different areas of the display screen 294. Different application scenarios (such as time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized.

[0205] Indicator 292 can be an indicator light, which can be used to indicate charging status, power changes, messages, missed calls, notifications, etc.

[0206] The SIM card interface 295 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 295 to make contact with and separate from the electronic device 200. The electronic device 200 can support one or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 295 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 295 simultaneously. The multiple cards can be of the same or different types. The SIM card interface 295 is also compatible with different types of SIM cards. The SIM card interface 295 is also compatible with external memory cards. The electronic device 200 interacts with the network through the SIM card to realize functions such as calls and data communication. In some embodiments, the electronic device 200 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 200 and cannot be separated from the electronic device 200.

[0207] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 200. In other embodiments of this application, the electronic device 200 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0208] The following will be based on Figure 1 The power line carrier communication system shown Figure 2 The electronic device shown, combined with specific application scenarios, provides a detailed description of the power line carrier communication method provided in the embodiments of this application.

[0209] 1. Parameter initialization.

[0210] During the initialization phase, the main routing device can respond to the configuration operations of the administrator (i.e., the device manufacturer or user) to determine the transmission management cycle and windowing method.

[0211] The transmission management cycle can be understood as the period during which the main routing device manages the transmission opportunities of each routing device.

[0212] In each transmission management cycle, the master routing device can configure the transmission opportunities and transmission order of each routing device, and notify each sub-routing device through index frames (MAP frames).

[0213] The structure of the MAP frame can be configured according to actual needs. For example, Figure 3As shown, the structure of a MAP frame may include a header, configuration information, and extended information. The configuration information may include at least one descriptive information, such as description information 1, description information 2, and description information n (n is a positive integer greater than 2). This descriptive information is used to record information such as the device identifier of the routing device allocated a transmission opportunity and the transmission order.

[0214] When a sub-routing device receives a MAP frame, it can obtain the transmission opportunities and transmission order of each routing device from the MAP frame.

[0215] When the next transmission management cycle arrives, routing devices configured with transmission opportunities can transmit data sequentially according to the above transmission order, while routing devices without transmission opportunities cannot transmit data.

[0216] For example, suppose that the main routing device, sub-routing device A, sub-routing device B, and sub-routing device C are all connected to the power line network.

[0217] During a certain transmission management cycle, the master routing device configures the transmission opportunities and transmission order of the master routing device, sub-routing device A, and sub-routing device B through MAP frames, but does not configure the transmission opportunity of sub-routing device C.

[0218] When the next transmission management cycle arrives, the main routing device, sub-routing device A, and sub-routing device B can transmit data sequentially according to the above transmission order. Sub-routing device C is not configured to send data, so sub-routing device C cannot transmit data.

[0219] Furthermore, a transmission management cycle can include one or more AC cycles. The AC cycle can be calculated based on the frequency of the AC power.

[0220] For example, assuming the frequency of the alternating current is 50Hz, then one alternating current cycle is 20ms. In this case, if the transmission management cycle includes one alternating current cycle, then the transmission management cycle is 20ms; if the transmission management cycle includes two alternating current cycles, then the transmission management cycle is 20*2=40ms.

[0221] Assuming the frequency of the alternating current is 60Hz, one alternating current cycle is approximately 16.7ms. Therefore, if the transmission management cycle includes one alternating current cycle, the transmission management cycle is approximately 16.7ms; if the transmission management cycle includes two alternating current cycles, the transmission management cycle is approximately 16.7 * 2 = 33.4ms.

[0222] Windowing refers to the method of dividing the AC cycle. To improve anti-interference performance, the main routing device can divide an AC cycle into multiple time windows according to the above windowing method, and set different channel parameters for each time window.

[0223] Multiple routing devices can send different message frames within the same time window. However, because different time windows are configured with different channel parameters, the same message frame can only be transmitted within one time window and cannot be transmitted across multiple time windows.

[0224] The above windowing method can be set according to actual needs. For example, assume that a transmission management cycle includes two AC cycles, each AC cycle being 20ms.

[0225] At this time, as Figure 4 As shown in scenario (a), if each AC cycle is divided into 8 time windows, the transmission management cycle can include 16 time windows, each of which is 2.5 ms.

[0226] like Figure 4 As shown in scenario (b), if each AC cycle is divided into 10 time windows, the transmission management cycle can include 20 time windows, each of which is 2ms.

[0227] 2. Obtain device access status.

[0228] When the main routing device enters the working state, it can obtain the device access status of each sub-routing device connected to the power line network through the status transmission channel.

[0229] The aforementioned status transmission channel may include one or more of the following communication connections: power line network, Wi-Fi connection, Bluetooth connection, USB connection, RJ45 connection, etc.

[0230] The device access status described above indicates whether any user equipment is connected to the sub-routing device. This status can include both instances of user equipment access and instances of no user equipment access.

[0231] The access status of the aforementioned devices can be represented by one or more of the following elements: numbers, characters, punctuation marks, etc.

[0232] For example, in some scenarios, an electronic device can use 1 to indicate that a user device is connected and 0 to indicate that no user device is connected; in other scenarios, an electronic device can use a-1 to indicate that a user device is connected and b-9 to indicate that no user device is connected; in still other scenarios, an electronic device can also use other forms to indicate the device connection status. This application does not limit the specific form of the device connection status.

[0233] Furthermore, the aforementioned device access status can be requested by the main routing device from the sub-routing device, or the aforementioned device access status can be actively sent by the sub-routing device to the main routing device.

[0234] For example, in some scenarios, the primary router can send an access status request to the secondary router. Upon receiving the access status request, the secondary router can respond by reporting its own access status to the primary router.

[0235] In other scenarios, a sub-router device can proactively send its device access status to the master router when it discovers the master router.

[0236] This application does not limit the specific method by which the main routing device obtains the device access status of the sub-routing device.

[0237] 3. Dynamically configure sending opportunities.

[0238] After obtaining the access status of the sub-routing devices, the master router can allocate sending opportunities to the sub-routing devices based on their access status.

[0239] If a sub-router device's access status shows that a user device is connected, it means that the sub-router device may have service data that needs to be transmitted. In this case, the main router device can identify the sub-router device as an active device.

[0240] If a sub-router's access status is "No user device access," it means that the sub-router is idle and there is no service data to transmit. In this case, the master router can identify the sub-router as an idle device.

[0241] Afterwards, the master router can allocate the first time period of the transmission management cycle to the master router and active devices, set the first transmission order of the master router and active devices, and not allocate the first time period of transmission opportunity to idle devices.

[0242] Furthermore, the main routing device can also allocate a second time period of transmission management cycle transmission opportunities to the main routing device, active devices, and idle devices, and set the second transmission order of the main routing device, active devices, and idle devices.

[0243] The first and second time periods are non-overlapping. The first and second time periods can be set according to actual needs.

[0244] Specifically, in some embodiments, the first time period and the second time period can be preset fixed time periods.

[0245] For example, suppose a transmission management cycle consists of 20 time windows. In some scenarios, the master router can fix the first to thirteenth time windows in the transmission management cycle as the first time period, fix the 14th time window as the time period for transmitting MAP frames, and fix the 15th to 20th time windows as the second time period.

[0246] In other scenarios, the main routing device can fix the first to ninth time windows in the transmission management cycle as the first time period, fix the tenth time window as the time period for transmitting MAP frames, and fix the eleventh to twentieth time windows as the second time period.

[0247] In other embodiments, the first time period and the second time period can also be dynamically adjusted time periods.

[0248] At this point, the main routing device can calculate the theoretical minimum bandwidth of the idle devices when different numbers of time windows are set in the second time period, based on the number of idle devices. The calculation method for the theoretical minimum bandwidth can be determined according to the actual scenario, and this application embodiment does not limit the specific calculation method for the theoretical minimum bandwidth.

[0249] Then, the main routing device can set a first time period and a second time period, provided that the theoretical minimum bandwidth of the idle device meets the basic overhead of the idle device.

[0250] For example, in some scenarios, assuming a transmission management cycle includes 16 time windows, when the main routing device calculates that there are 3 time windows in the second time period, the theoretical minimum bandwidth of the idle device is greater than the basic overhead of the idle device.

[0251] At this point, the main routing device can randomly select 3 time windows from the 16 time windows as the second time period, randomly select 1 time window as the time period for transmitting MAP frames, and determine the other time windows as the first time period.

[0252] In other scenarios, assuming a transmission management cycle includes 20 time windows, and the main routing device calculates that when the second time period has 4 time windows, the theoretical minimum bandwidth of the idle device is greater than the basic overhead of the idle device.

[0253] At this point, the main routing device can, with a certain margin, determine the first to fifth time windows within the transmission management cycle as the second time period, the sixth time window as the time period for transmitting MAP frames, and the seventh to twentieth time windows as the first time period.

[0254] In other scenarios, the main routing device can also set the first and second time periods in other ways. This application does not limit the specific methods for setting the first and second time periods.

[0255] Furthermore, the above-mentioned method for generating the sending order can be set according to actual needs.

[0256] For example, in some embodiments, the master routing device can randomly sort the device identifiers of each routing device to obtain the transmission order; in other embodiments, the master routing device can start from the first character of the device identifier and sort the device identifiers of each routing device according to any one or more combinations of sorting rules such as descending numerical order, ascending numerical order, descending alphabetical order, and ascending alphabetical order to obtain the transmission order; in still other embodiments, the master routing device can also generate the transmission order in other ways. This application does not limit the specific method by which the master routing device generates the transmission order.

[0257] Furthermore, when generating the second transmission order, the main routing device can directly generate the second transmission order according to the above generation method.

[0258] Alternatively, the main routing device can first arrange the device identifiers of idle devices, and then arrange the device identifiers of the main routing device and active devices, so that idle devices can have priority to send in the second time period, thus ensuring the bandwidth of idle devices.

[0259] For example, suppose sub-routing device A is an idle device, while sub-routing devices B and C are active devices. When generating the second transmission order, the master router can first prioritize sub-routing device A. Then, after sub-routing device A, the master router, sub-routing device B, and sub-routing device C are sorted to obtain the second transmission order. In this case, the second transmission order might be: sub-routing device A - sub-routing device C - master router - sub-routing device B.

[0260] After configuring the transmission opportunities and transmission order of each routing device, the master routing device can broadcast MAP frames in the power line network to notify each sub-routing device of the configuration of transmission opportunities and transmission order.

[0261] When a sub-routing device receives a MAP frame, it can determine its own transmission opportunity and transmission order through the MAP frame.

[0262] When the next transmission management cycle arrives, the main routing device and the active device can transmit data sequentially within the first time period according to the first transmission order mentioned above.

[0263] Furthermore, the main routing device, active device, and idle device can transmit data sequentially within the second time period according to the aforementioned second transmission order.

[0264] For example, please see Figure 5 Assume that the power line carrier communication system includes a main routing device A0, sub-routing devices A1, A2, A3, A4, and A5, and a power line network A6.

[0265] The main routing device A0, sub-routing devices A1, A2, A3, A4, and A5 are all connected to the power line network A6.

[0266] In some power line carrier communication methods, regardless of whether the sub-routing devices have data to transmit, the master routing device A0 will equally allocate transmission opportunities to each routing device.

[0267] Assuming that only the main router device A0 has downlink data to transmit, and other sub-routers do not have data to transmit, the transmission order generated by the main router device A0 can be: A1-A2-A3-A4-A5-A0.

[0268] Please see Figure 6 , Figure 6 The right-angled rectangles in the diagram represent time windows, and the rounded rectangles represent time slots occupied by each routing device. Figure 6 The diagram illustrates the distribution of time slots occupied by each routing device within two time windows.

[0269] like Figure 6 As shown, during the transmission management cycle, the main routing device A0 and each sub-routing device can have the opportunity to send data in the order described above.

[0270] When it is a routing device's turn to send data, if that routing device has data to transmit, it can use that sending opportunity to transmit data.

[0271] If a routing device has no data transmission, it can remain silent. In this case, other routing devices can wait for the minimum transmission time slot, and the routing device will automatically relinquish its transmission opportunity, allowing the next routing device to take its turn.

[0272] Therefore, although none of the sub-routing devices have data to transmit, the main routing device A0 needs to wait for 5 minimum transmission time slots in each time window before it can transmit data.

[0273] In other words, within each time window, the bandwidth corresponding to 5 minimum transmission slots is wasted.

[0274] Assuming a transmission management cycle consists of 20 time windows, each lasting 2ms, and a minimum transmission slot of 35.84us, the wasted bandwidth ratio is (35.84*5) / 2000 = 8.96%.

[0275] Furthermore, as the number of sub-routing devices increases, the proportion of wasted bandwidth also increases. When the number of sub-routing devices increases to 15, the minimum wasted transmission time slots in each time window will increase to 15, and the proportion of wasted bandwidth will be (35.84*15) / 2000 = 26.88%.

[0276] In the power line carrier communication method provided in the embodiments of this application, it is assumed that the first 13 time windows of the transmission management cycle are the first time period, the 14th time window is the time period for transmitting MAP frames, and the 15th to 20th time windows are the second time period, during which no user equipment is accessed by any of the sub-routing devices.

[0277] Once the main router A0 enters the working state, it can obtain the device access status of each sub-router.

[0278] At this time, the device access status reported by sub-routing devices A1, A2, A3, A4, and A5 to the main router A0 is that no user devices are connected.

[0279] Therefore, the main routing device A0 can identify sub-routing devices A1, A2, A3, A4, and A5 as idle devices.

[0280] Then, the primary router A0 can allocate the first time period for sending, but not allocate the first time period for sending to other sub-routers, and set the first sending order to: A0.

[0281] Furthermore, the main routing device A0 can allocate a second time period for sending opportunities to the main routing device A0, sub-routing devices A1, A2, A3, A4, and A5, and set the second sending order as: A1-A2-A3-A4-A5-A0.

[0282] Afterwards, the master routing device A0 can broadcast MAP frames on the power line network to notify each sub-routing device of the configuration of the above-mentioned transmission opportunities and transmission order.

[0283] After receiving the MAP frame, each sub-routing device can determine its own transmission opportunity and transmission order through the MAP frame.

[0284] When the next transmission management cycle arrives, the main routing device A0 and each sub-routing device transmit data according to the aforementioned transmission opportunities and transmission order.

[0285] Please see Figure 7 , Figure 7 An example is shown, illustrating the distribution of time slots occupied by each routing device within the two time windows of the first time period.

[0286] like Figure 7 As shown, in the first time period of the transmission management cycle, only the main routing device A0 transmits data in each time window, and the main routing device A0 does not need to wait for the time slots of other sub-routing devices.

[0287] In other words, compared with the previous power line carrier communication method, the method of this application embodiment can save 5 wasted minimum transmission time slots in each time window of the first time period, and improve bandwidth utilization by 8.96%.

[0288] Furthermore, as the number of sub-routing devices increases, the bandwidth utilization saved by the method in this embodiment can be further improved. When the number of sub-routing devices increases to 15, the method in this embodiment can save 15 wasted minimum transmission time slots in each time window of the first time period, improving bandwidth utilization by 26.88%.

[0289] Please see Figure 8 , Figure 8 An example is shown, illustrating the distribution of time slots occupied by each routing device within the two time windows of the second time period.

[0290] like Figure 8 As shown, during the second time period of the transmission management cycle, the main routing device A0 and each sub-routing device can transmit data sequentially according to the second transmission order, thereby meeting the basic overhead required for each idle device to transmit a small number of management messages.

[0291] At this point, combining the first and second time periods, when the number of sub-routing devices is 5, the bandwidth utilization rate improved by the method provided in this application embodiment is [(35.84*5)*13] / [2000*(13+6)]=6.13%.

[0292] When the number of sub-routing devices increases to 15, the bandwidth utilization rate improved by the method provided in this application embodiment is [(35.84*15)*13] / [2000*(13+6)]=18.39%.

[0293] In addition, please refer to Tables 1 and 2. Tables 1 and 2 present experimental data obtained from testing the two power line carrier communication methods under the conditions listed in the examples above.

[0294] Table 1 presents the experimental data for the first power line carrier communication method in this example:

[0295] Table 1

[0296] Number of sub-routing devices Total rate (unit: Mbit / s) Bandwidth utilization 1 947 69% 3 880 64% 7 774 56% 15 630 45%

[0297] Table 2 presents experimental data for the power line carrier communication method provided in the embodiments of this application:

[0298] Table 2

[0299] Number of sub-routing devices Total rate (unit: Mbit / s) Bandwidth utilization 1 947 69% 3 920 68% 7 890 64% 15 863 62%

[0300] The experimental data above show that the power line carrier communication method provided in this application embodiment can effectively improve the bandwidth utilization of the power line network compared with other power line carrier communication methods.

[0301] Furthermore, as the number of sub-routing devices increases, the bandwidth utilization improved by the method provided in this application embodiment will also increase.

[0302] When the number of sub-routing devices increases to 15, the method provided in this application embodiment can improve bandwidth utilization by (62%-45%) = 17%, which is a very significant improvement.

[0303] Based on the above examples and experimental data, it can be seen that in the method provided in this application embodiment, the main routing device can allocate a second time period for transmission to idle devices, but not allocate a first time period for transmission to idle devices, thereby reducing the transmission opportunities of idle devices, avoiding idle devices wasting too many time slots, effectively improving the bandwidth utilization of the power line network, and improving the data transmission efficiency of each routing device.

[0304] 4. Changes in device access status.

[0305] In real-world applications, user devices may connect to or disconnect from sub-routing devices at any time.

[0306] Therefore, the device access status of a sub-router may be affected by user devices, changing from having user devices connected to no user devices connected, or from having no user devices connected to having user devices connected.

[0307] When the access status of a sub-router changes, the sub-router can send a status change notification to the master router through the status transmission channel.

[0308] When the master routing device receives a status change notification, it can determine the device access status of the sub-routing device based on the status change notification and reallocate transmission opportunities to each routing device.

[0309] Specifically, when the access status of a sub-routing device changes from having user devices accessing the device to having no user devices accessing the device, the main routing device can determine that the sub-routing device as an idle device, no longer allocate a transmission opportunity for it in the first time period, and update the first transmission order of the main routing device and the active device.

[0310] When the access status of a sub-routing device changes from no user device access to user device access, the main routing device can identify the sub-routing device as an active device, allocate a transmission opportunity for it in the first time period, and update the first transmission order of the main routing device and the active device.

[0311] For example, such as Figure 9 As shown, assume the power line carrier communication system includes a main routing device B0, sub-routing devices B1, B2, and B3, a power line network B4, and user equipment B5. User equipment B5 establishes a communication connection with sub-routing device B1.

[0312] At the first moment, the main routing device B0 obtains the device access status of each sub-routing device. At this time, the device access status reported by sub-routing device B1 is that there are user devices connected, while the device access status reported by sub-routing devices B2 and B3 is that there are no user devices connected.

[0313] Therefore, the primary routing device B0 can allocate the first time period for sending to both the primary routing device B0 and the secondary routing device B1, and set the first sending order to: B0-B1.

[0314] Furthermore, the main routing device B0 can allocate a second time period for sending opportunities to the main routing device B0, sub-routing devices B1, B2, and B3, and set the second sending order as: B0-B1-B2-B3.

[0315] Afterwards, the master routing device B0 can broadcast MAP frames on the power line network to inform each sub-routing device of the configuration of transmission opportunities and transmission order.

[0316] Please see Figure 10 and Figure 11 , Figure 10 and Figure 11 The right-angled rectangles in the diagram represent time windows, and the rounded rectangles represent time slots occupied by each routing device.

[0317] When the first time period of the next transmission management cycle arrives, such as Figure 10 As shown, the main routing device B0 and the sub-routing device B1 can take turns transmitting data according to the first transmission order described above.

[0318] At this point, the main routing device B0 can start transmitting data according to the first transmission order mentioned above; after the main routing device B0 completes its transmission, it is the turn of the sub-routing device B1 to transmit data, and the sub-routing device B1 starts transmitting data; after the sub-routing device B1 completes its transmission, it is the turn of the main routing device B0 to transmit data again, and the main routing device B0 starts transmitting data.

[0319] The main routing device B0 and the sub-routing device B1 take turns transmitting data according to the above-described cyclical method until the first time period ends.

[0320] When a routing device has a transmission opportunity, if the routing device has data to transmit, the length of the time slot occupied by the routing device in this transmission opportunity is positively correlated with the amount of data that the routing device needs to transmit.

[0321] The more data a routing device needs to transmit, the longer the message it sends and the longer the time slot it occupies; the less data a routing device needs to transmit, the shorter the message it sends and the shorter the time slot it occupies.

[0322] Furthermore, since different time windows have different channel parameters, the same frame of data can only be transmitted within the same time window and cannot be transmitted across multiple time windows.

[0323] In other words, the longest time slot occupied by the routing device in this transmission opportunity is the length of the time window, and the time slot occupied by the routing device in this transmission opportunity cannot span different time windows.

[0324] Furthermore, since each transmission opportunity has a minimum transmission time slot, if the routing device has no data to transmit, or if the routing device needs to transmit very little data and the transmission time is less than the minimum transmission time slot, then the time slot occupied by the routing device in this transmission opportunity is the minimum transmission time slot.

[0325] When the second time period arrives, such as Figure 11 As shown, the main routing device B0, sub-routing device B1, sub-routing device B2, and sub-routing device B3 can take turns transmitting data according to the second transmission order.

[0326] At the second moment, such as Figure 12 As shown, user equipment B5 disconnected its communication connection with sub-routing device B1, and user equipment B6 established a communication connection with sub-routing device B3.

[0327] At this time, sub-routing device B1 sends a status change notification 1 to the main routing device B0, and sub-routing device B2 sends a status change notification 2 to the main routing device B0.

[0328] After receiving the status change notification 1, the main routing device B0 determines that the device access status of the sub-routing device B1 has changed to no user device access, and no longer allocates the first time period transmission opportunity to the sub-routing device B1.

[0329] After receiving the status change notification 2, the main routing device B0 determines that the device access status of the sub-routing device B3 has changed to "user equipment access" and allocates the first time period for sending to the sub-routing device B3.

[0330] Then, the master routing device can update the first transmission order to B0-B3, and notify each sub-routing device of the updated transmission opportunities and transmission order through a MAP frame.

[0331] When the first time period of the next transmission management cycle arrives, such as Figure 13 As shown, the main routing device B0 and the sub-routing device B3 can take turns transmitting data according to the updated first transmission order.

[0332] When the second time period arrives, such as Figure 14 As shown, the main routing device B0, sub-routing device B1, sub-routing device B2, and sub-routing device B3 can continue to transmit data in turn according to the unupdated second transmission order.

[0333] As can be seen from the above examples, in the method provided in this application embodiment, when the device access status of the sub-routing device changes, the main routing device can dynamically adjust the transmission opportunities of the sub-routing device according to the changes in the sub-routing device.

[0334] If the access status of a sub-routing device changes from having user devices connected to having no user devices connected, the main routing device can stop allocating the first time slot for transmission to that sub-routing device, thereby reducing wasted time slots and improving bandwidth utilization.

[0335] If the access status of a sub-routing device changes from no user device access to user device access, the main routing device can allocate a first time period for transmission to the sub-routing device, thereby improving the transmission efficiency of the sub-routing device.

[0336] 5. Access and disconnection of sub-routing devices.

[0337] In addition to the possibility of changes in device access status, sub-routing devices may also respond to user actions by connecting to or disconnecting from the power line network.

[0338] When a new sub-routing device is connected to the power line network, the master routing device can allocate transmission opportunities within the transmission management cycle for the new sub-routing device.

[0339] In some possible implementations, when the master router discovers a new sub-router, it can default the sub-router's access status to no user devices and identify the sub-router as an idle device.

[0340] Then, the master routing device can allocate a second time period for the sub-routing device, update the second transmission order, and not allocate a first time period for the sub-routing device.

[0341] Subsequently, if a user device connects to the sub-router device, the sub-router device can send a status change notification to the main router device.

[0342] After receiving a status change notification, the main routing device can determine that the access status of the sub-routing device is that a user device has accessed the device, identify the sub-routing device as an active device, allocate a transmission opportunity for the sub-routing device within a first time period, and update the first transmission order.

[0343] For example, such as Figure 15 As shown, assume the power line carrier communication system includes a power line network C0, a main routing device C1, a sub-routing device C2, and a sub-routing device C3. Sub-routing device C2 and sub-routing device C3 have no user equipment connected.

[0344] At the third moment, the primary router C1 can be allocated the first time period for sending, and the first sending order is set to: C1.

[0345] Additionally, the main routing device C1 can allocate a second time period for sending opportunities to the main routing device C1, sub-routing devices C2 and C3, and set the second sending order to: C2-C3-C1.

[0346] like Figure 16 As shown, at the fourth moment, the main routing device C1 discovers that the sub-routing device C4 has accessed the power line network C0. At this time, the main routing device C1 can assume that the device access status of the sub-routing device C4 is no user device access, and will not allocate a first time period transmission opportunity to the sub-routing device C4, but will allocate a second time period transmission opportunity to the sub-routing device C4, and update the second transmission order to: C2-C3-C4-C1.

[0347] At this time, since user equipment C5 is connected to sub-router device C4, sub-router device C4 can send a status change notification 3 to main router device C1.

[0348] After receiving state change notification 3, the main routing device C1 determines that the access status of the sub-routing device C4 is that a user device has accessed. Therefore, the main routing device C1 can allocate a transmission opportunity for the sub-routing device C4 within the first time period and update the first transmission order to: C1-C4.

[0349] As can be seen from the above example, when the main routing device discovers a new sub-routing device connected to the powerline network, the main routing device can default the sub-routing device to an idle device and only allocate a second time slot for transmission, thereby reducing wasted time slots and improving the bandwidth utilization of the powerline network.

[0350] When the primary routing device receives a device change notification from the secondary routing device, it can identify the secondary routing device as an active device and allocate a first time slot for transmission to improve the data transmission efficiency of the secondary routing device.

[0351] In some other possible implementations, when the main routing device discovers a new sub-routing device, the main routing device can default the device access status of the sub-routing device to have a user device connected, and determine the sub-routing device as an active device.

[0352] Then, the master routing device can allocate transmission opportunities within the first time period and the second time period for the sub-routing device, and update the first transmission order and the second transmission order.

[0353] Afterward, the main router can wait for a preset duration. The preset duration can be set according to actual needs. For example, the preset duration can be set to 1 minute, 5 minutes, 10 minutes, etc.

[0354] If, within a preset time period, the main router receives the device access status sent by the sub-router, and the device access status indicates that a user device has accessed the device, then the main router can maintain its current configuration.

[0355] If the main router does not receive the device access status from the sub-router within the preset time period, or if the main router receives a device access status indicating that no user device has accessed, the main router can determine the sub-router as an idle device, stop allocating transmission opportunities for it within the first time period, and update the first transmission order.

[0356] For example, such as Figure 17 As shown, assume the power line carrier communication system includes a power line network D0, a main routing device D1, a sub-routing device D2, and a sub-routing device D3. Sub-routing device D2 and sub-routing device D3 have no user equipment connected.

[0357] At the fifth moment, the primary router device D1 can be allocated the first time period for sending, and the first sending order is set to: D1.

[0358] Additionally, the main routing device D1 can allocate a second time period for sending opportunities to the main routing device D1, sub-routing devices D2 and D3, and set the second sending order to: D2-D3-D1.

[0359] like Figure 18 As shown, at the sixth moment, the main routing device D1 discovers that the sub-routing device D4 has accessed the power line network D0. At this time, the main routing device D1 can assume that the device access status of the sub-routing device D4 is that a user device is connected, and allocate the sub-routing device D4 a first time period and a second time period for transmission. The first transmission opportunity is updated to: D1-D4, and the second transmission order is updated to: D2-D3-D4-D1.

[0360] At this time, since no user equipment is connected to the sub-router device D4, the sub-router device D4 does not need to send its device access status to the master router device D1.

[0361] Assuming a preset duration of 10 minutes, after waiting for 10 minutes, the main router D1 still has not received the device access status from the sub-router D4. Therefore, the main router D1 can determine that the device access status of the sub-router D4 is no user device access, and will no longer allocate the first time slot for sending to the sub-router D4, updating the first sending order to D1.

[0362] As can be seen from the above example, when the main routing device discovers a new sub-routing device connected to the power line network, the main routing device can default the sub-routing device to an active device and allocate transmission opportunities for it in the first and second time periods, so that the sub-routing device can provide smooth data transmission services for user devices and improve the data transmission efficiency of user devices.

[0363] When the main routing device finds that no user equipment has accessed the sub-routing device, or the sub-routing device has timed out and failed to send the device access status, the main routing device can determine the sub-routing device as an idle device and no longer allocate the first time slot for sending, thereby reducing wasted time slots and improving bandwidth utilization.

[0364] In addition, when a sub-routing device disconnects from the power line network, the master routing device can stop allocating transmission opportunities to that sub-routing device and update the transmission order.

[0365] If the sub-routing device is an active device, the master routing device can stop allocating transmission opportunities to the sub-routing device in the first and second time periods, and update the first and second transmission orders.

[0366] If the sub-routing device is an idle device, the master routing device can stop allocating transmission opportunities to the sub-routing device in the second time period and update the second transmission order.

[0367] For example, such as Figure 19 As shown, assume the power line carrier communication system includes a main routing device E0, sub-routing devices E1 and E2, and a power line network E3. The main routing device E0, sub-routing devices E1 and E2 are all connected to the power line network E3.

[0368] At the seventh moment, since neither sub-routing device E1 nor sub-routing device E2 has any user equipment connected, the main routing device E0 determines sub-routing devices E1 and E2 as idle devices.

[0369] Then, the main routing device E0 can allocate a first time period for transmission to itself, setting the first transmission order to: E0. Furthermore, the main routing device can allocate a second time period for transmission to itself, sub-routing devices E1 and E2, setting the second transmission order to: E1-E2-E0.

[0370] At the eighth moment, as Figure 20 As shown, sub-routing device E2 has left the power line network E3.

[0371] After the primary routing device E0 detects that the secondary routing device E2 has left, the primary routing device E0 may no longer allocate a second time slot for the secondary routing device E2 and update the second transmission order to: E1-E0.

[0372] As can be seen from the above example, when the master router discovers that the sub-router has left the power line network, the master router can stop allocating transmission opportunities for it, update the transmission order, reduce wasted time slots, and improve the bandwidth utilization of the power line network.

[0373] The following section will provide a detailed explanation of the above power line carrier communication method in conjunction with specific application scenarios.

[0374] Please see Figure 21 In this example, the power line carrier communication system includes a power line network F0, a main routing device F1, a sub-routing device F2, a sub-routing device F3, a sub-routing device F4, and a user equipment F5.

[0375] The main routing device F1, sub-routing devices F2, F3, and F4 are all connected to the power line network F0, and the user equipment F5 is connected to the sub-routing device F3.

[0376] At the ninth moment, the main routing device F1 enters the working state and sends access status requests to the sub-routing devices F2, F3 and F4.

[0377] At this time, since sub-routing devices F2 and F4 have no user devices connected, while sub-routing device F3 has user device F5 connected, the device access status reported by sub-routing devices F2 and F4 to the main router F1 is no user devices connected, while the device access status reported by sub-routing device F3 to the main router F1 is user devices connected.

[0378] After receiving the device access status feedback from each sub-routing device, the main routing device F1 can identify sub-routing devices F2 and F4 as idle devices, and sub-routing device F3 as an active device.

[0379] Then, the main routing device F1 can allocate a first time period of transmission opportunities to the main routing device F1 and the sub-routing device F3, and set the first transmission order to: F1-F3; and the main routing device F1 can allocate a second time period of transmission opportunities to the main routing device F1, the sub-routing device F2, the sub-routing device F3 and the sub-routing device F4, and set the second transmission order to: F1-F2-F3-F4.

[0380] Afterwards, the master routing device F1 can broadcast MAP frame 1 in the power line network to notify each sub-routing device of the configuration of the above-mentioned transmission opportunities and transmission order.

[0381] After receiving MAP frame 1, each sub-routing device can determine its own transmission opportunity and transmission order based on MAP frame 1.

[0382] Please see Figure 22 and Figure 23 , Figure 22 and Figure 23 The right-angled rectangles in the diagram represent time windows, and the rounded rectangles represent time slots occupied by each routing device.

[0383] When the first time period of the next transmission management cycle arrives, such as Figure 22 As shown, the main routing device F1 and the sub-routing device F3 can take turns transmitting data according to the first transmission order described above.

[0384] When the second time period arrives, such as Figure 23As shown, the main routing device F1, sub-routing device F2, sub-routing device F3, and sub-routing device F4 can take turns transmitting data according to the second transmission order described above.

[0385] At the tenth moment, as Figure 24 As shown, user equipment F5 has disconnected from sub-router F3. At this time, sub-router F3 can send a status change notification to the main router F1.

[0386] After receiving the status change notification, the main routing device F1 determines that the access status of the sub-routing device F3 has changed to no user device access. Therefore, the main routing device F1 can determine the sub-routing device F3 as an idle device and will no longer allocate a transmission opportunity for the sub-routing device F3 in the first time period, and update the first transmission order to: F1.

[0387] Afterwards, the master routing device F1 can broadcast MAP frame 2 in the power line network, and notify each sub-routing device of the updated transmission opportunities and transmission order through MAP frame 2.

[0388] After receiving MAP frame 2, each sub-routing device can determine its own transmission opportunity and transmission order based on MAP frame 2.

[0389] When the first time period of the next transmission management cycle arrives, such as Figure 25 As shown, only the main routing device F1 can transmit data.

[0390] When the second time period arrives, the main routing device F1, sub-routing device F2, sub-routing device F3, and sub-routing device F4 can take turns transmitting data according to the unupdated second transmission order.

[0391] At the eleventh moment, such as Figure 26 As shown, sub-routing device F6 is connected to power line network F0, and sub-routing device F6 and user equipment F7 have established a communication connection.

[0392] After discovering the sub-router F6, the main router F1 can make the sub-router F6 the active device by default, allocate the first time period and the second time period for sending, update the first sending order to: F1-F6, and update the second sending order to: F1-F2-F3-F4-F6.

[0393] Then, the master routing device F1 can broadcast MAP frame 3 in the power line network to notify each sub-routing device of the updated transmission opportunities and transmission order.

[0394] After receiving MAP frame 3, each sub-routing device can determine its own transmission opportunity and transmission order based on MAP frame 3.

[0395] When the first time period of the next transmission management cycle arrives, such as Figure 27 As shown, the main routing device F1 and the sub-routing device F6 can take turns transmitting data according to the updated first transmission order.

[0396] When the second time period arrives, such as Figure 28 As shown, the main routing device F1, sub-routing devices F2, F3, F4, and F6 can take turns transmitting data according to the updated second transmission order.

[0397] Furthermore, after waiting for 2 minutes, the main router F1 received the device access status sent by the sub-router F6, which indicated that a user device had accessed the network.

[0398] Since 2 minutes is less than the preset duration of 5 minutes, and the access status of the sub-router device F6 is that a user device has been connected, the main router device F1 can continue to use the previously configured sending opportunities and sending order.

[0399] In summary, in the method provided in this application embodiment, the main routing device can obtain the device access status of each sub-routing device and determine whether a user has accessed the sub-routing device.

[0400] If a user device connects to a sub-routing device, the main routing device can identify the sub-routing device as an active device and allocate transmission opportunities for the sub-routing device in the first and second time periods to ensure the transmission efficiency of the sub-routing device.

[0401] If no user equipment is connected to the sub-routing device, the main routing device can identify the sub-routing device as an idle device, allocate only the second time slot for transmission to the sub-routing device, and not allocate the first time slot for transmission to the sub-routing device. This reduces the transmission opportunities of idle devices and avoids idle devices wasting too many minimum transmission time slots, thereby effectively improving the bandwidth utilization of the power line network and increasing the transmission speed.

[0402] When the access status of a sub-routing device changes, the main routing device can dynamically adjust the transmission opportunities of that sub-routing device based on the changes.

[0403] If the access status of a sub-routing device changes from having user devices connected to having no user devices connected, the main routing device can stop allocating the first time slot for transmission to that sub-routing device, thereby reducing wasted time slots and improving bandwidth utilization.

[0404] If the access status of a sub-routing device changes from no user device access to user device access, the main routing device can allocate a first time period for transmission to the sub-routing device, thereby improving the transmission efficiency of the sub-routing device.

[0405] If a new sub-routing device is connected to the powerline network, the main routing device can default the sub-routing device to an idle device and allocate a second time slot for transmission only to the sub-routing device, thereby reducing wasted time slots and improving the bandwidth utilization of the powerline network.

[0406] Alternatively, the main routing device can also make the sub-routing device the active device by default, allocating first and second time slots for transmission to the sub-routing device, so that the sub-routing device can provide smooth data transmission services to user devices and improve the data transmission efficiency of user devices.

[0407] When a sub-routing device leaves the powerline network, the master routing device can stop allocating transmission opportunities to that sub-routing device, reducing wasted time slots and improving the bandwidth utilization of the powerline network.

[0408] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0409] The following will describe in detail another power line carrier communication method provided in this application embodiment from the perspective of the main routing device. Please refer to... Figure 29 The power line carrier communication method provided in this embodiment includes:

[0410] In a first aspect, embodiments of this application provide a power line carrier communication method, applied to a main routing device, comprising:

[0411] S291. Obtain the device access status of the first sub-router device;

[0412] It should be noted that the main routing device is an electronic device with routing and management functions. A sub-routing device is an electronic device with routing functions but no management functions. The first sub-routing device can be understood as a sub-routing device connected to the same power line network as the main routing device.

[0413] Once the main router enters working mode, it can obtain the device access status of the first sub-router.

[0414] The device access status can be requested by the main router from the first sub-router, or it can be actively sent by the first sub-router to the main router.

[0415] The device access status can include a first status and a second status. The first status indicates that a user equipment has accessed the first sub-routing device, and the second status indicates that no user equipment has accessed the first sub-routing device.

[0416] User equipment refers to electronic devices other than the main routing device and the sub-routing device.

[0417] S292. If the device access state of the first sub-routing device is the first state, then the first sub-routing device is not allocated a transmission opportunity for the first time period of the transmission management cycle, and is allocated a transmission opportunity for the second time period of the transmission management cycle.

[0418] The aforementioned main routing device and the aforementioned first sub-routing device are connected to the same power line network. The aforementioned first state is used to indicate that no user equipment is connected to the aforementioned first sub-routing device. The aforementioned first time period and the aforementioned second time period are non-overlapping time periods.

[0419] It should be noted that when the device status of the first sub-router is in the first state, it means that no user equipment is connected to the first sub-router and the first sub-router has no service data to transmit.

[0420] At this time, the master routing device can determine the first sub-routing device as an idle device, not allocate a transmission opportunity for the first time period of the transmission management cycle to the first sub-routing device, and allocate a transmission opportunity for the second time period of the transmission management cycle to the first sub-routing device.

[0421] In other words, the master routing device does not allocate the first sub-routing device with the entire transmission management cycle of transmission opportunities equally, but only allocates the first sub-routing device with transmission opportunities for a portion of the transmission management cycle.

[0422] By using the above methods, the main routing device can reduce the transmission opportunities of idle devices and reduce the wasted time slots of idle devices, thereby improving the bandwidth utilization of the power line network and having strong ease of use and practicality.

[0423] Optionally, after obtaining the device access status of the first sub-routing device, the method further includes:

[0424] If the device access status of the first sub-routing device is the second status, then the first sub-routing device is allocated the first time period and the second time period for transmission. The second status is used to indicate that a user equipment has accessed the first sub-routing device.

[0425] It should be noted that when the device status of the first sub-routing device is in the second state, it indicates that a user device has been connected to the first sub-routing device, and the first sub-routing device may have service data that needs to be transmitted.

[0426] At this point, the main routing device can identify the first sub-routing device as an active device and allocate transmission opportunities for the first and second time periods to the active device, thus ensuring the transmission efficiency of the active device.

[0427] Optionally, after allocating a transmission opportunity for the first time period of the transmission management cycle to the first sub-routing device if the device access state of the first sub-routing device is in the first state, the method further includes:

[0428] When a first state change notification is received from the first sub-routing device, the first sub-routing device is allocated the opportunity to send the first time period and the second time period.

[0429] It should be noted that in real-world applications, user devices may connect to or disconnect from sub-routers at any time.

[0430] Therefore, the device access status of the sub-routing device may be affected by the user device, changing from the first state to the second state, or from the second state to the first state.

[0431] When the access status of a sub-router changes, the sub-router can send a status change notification to the master router. This status change notification indicates that the sub-router's device status has changed.

[0432] Therefore, when the primary routing device receives the first state change notification sent by the first sub-routing device, it indicates that the device access state of the first sub-routing device has changed from the first state to the second state.

[0433] At this point, in order to ensure the transmission efficiency of the first sub-routing device, the main routing device can allocate the first sub-routing device a first time period and a second time period for transmission.

[0434] Optionally, after allocating the transmission opportunities for the first time period and the second time period to the first sub-routing device, the method further includes:

[0435] When a second state change notification is received from the first sub-routing device, the allocation of the first time period for sending the first sub-routing device is stopped, and the allocation of the second time period for sending the first sub-routing device is performed.

[0436] It should be noted that when the primary routing device receives a second state change notification from the first sub-routing device, it indicates that the device access state of the first sub-routing device has changed from the second state to the first state.

[0437] At this time, the first sub-routing device has no service data to transmit. If the main routing device continues to allocate the first time slot and the second time slot for transmission to the first sub-routing device, it may waste a lot of time slots.

[0438] Therefore, the master routing device can stop allocating a first time slot for transmission to the first sub-routing device and allocate a second time slot for transmission to the first sub-routing device, thereby reducing the transmission opportunities of the first sub-routing device, reducing wasted time slots, and improving the bandwidth utilization of the power line network.

[0439] Optionally, the above method further includes:

[0440] When a second sub-routing device is detected to be connected to the power line network, the first time period transmission opportunity is not allocated to the second sub-routing device, and a second time period transmission opportunity is allocated to the second sub-routing device.

[0441] It should be noted that, in addition to changes in device access status, sub-routing devices may also connect to or disconnect from the power line network.

[0442] The second sub-routing device refers to a sub-routing device newly connected to the power line network. When the main routing device detects that the second sub-routing device has connected to the power line network, since the newly connected sub-routing device usually has no user equipment connected, the main routing device can default the second sub-routing device to an idle device, not allocate a first time slot for transmission to the second sub-routing device, and allocate a second time slot for transmission to the second sub-routing device, thereby reducing wasted time slots and improving the bandwidth utilization of the power line network.

[0443] Optionally, after allocating a transmission opportunity for the first time period to the second sub-routing device and a transmission opportunity for the second time period to the second sub-routing device, the method further includes:

[0444] When a third state change notification is received from the second sub-routing device, the second sub-routing device is allocated the opportunity to send the first time period and the second time period.

[0445] It should be noted that when a user device connects to the second sub-routing device, the second sub-routing device can send a third change notification to the main routing device.

[0446] When the primary routing device receives a third change notification, it can determine that a user device has been connected to the second sub-routing device, and the second sub-routing device is an active device.

[0447] At this point, the primary routing device can allocate the first and second time slots for transmission to the secondary routing device, thereby ensuring the transmission efficiency of the secondary routing device.

[0448] Optionally, the above method further includes:

[0449] When a second sub-routing device is detected to be connected to the power line network, the second sub-routing device is allocated a transmission opportunity for the first time period and the second time period.

[0450] If the device access status of the second sub-routing device is not obtained within the preset time period, or if the device access status of the second sub-routing device is in the third state, then the allocation of the first time period transmission opportunity to the second sub-routing device will be stopped, and the allocation of the second time period transmission opportunity to the second sub-routing device will be performed. The third state is used to indicate that no user device has accessed the second sub-routing device.

[0451] It should be noted that in other scenarios, when the main routing device detects that the second sub-routing device is connected to the power line network, the main routing device may also allocate a first time period and a second time period for the second sub-routing device to send data.

[0452] Then, the main routing device waits for a preset time. If the main routing device does not receive the device access status of the second sub-routing device within the preset time, or if the device access status received by the main routing device is a third state, the main routing device can determine the second sub-routing device as an idle device, stop allocating the first time slot for transmission to the second sub-routing device, allocate the second time slot for transmission to the second sub-routing device, reduce the transmission opportunities of the second sub-routing device, reduce wasted time slots, and improve the bandwidth utilization of the power line network.

[0453] If the main routing device receives the device access status of the second sub-routing device within a preset time period, and the device access status is in the fourth state, it indicates that a user device has connected to the second sub-routing device.

[0454] At this point, the main routing device can maintain its previous configuration without making any changes.

[0455] Optionally, the above method further includes:

[0456] When the first sub-routing device disconnects from the power line network, the allocation of transmission opportunities for the first time period and the second time period to the first sub-routing device is stopped.

[0457] It should be noted that when the master router detects that the first sub-router has disconnected from the power line network, it means that the first sub-router is no longer transmitting data through the power line network. At this time, the master router can stop allocating first and second time slots for transmission to the first sub-router, reducing invalid transmission opportunities, reducing wasted time slots, and improving the bandwidth utilization of the power line network.

[0458] Optionally, S291 above includes:

[0459] The device access status of the first sub-router device is obtained through a status transmission channel, which includes one or more of the following: power line network, Bluetooth connection, Wi-Fi connection, universal serial bus connection, and network cable connection.

[0460] It should be noted that the main router can obtain the device access status of each sub-router through the status transmission channel.

[0461] The status transmission channel may include one or more of the following: power line network, Bluetooth connection, Wi-Fi connection, Universal Serial Bus connection, and Ethernet connection.

[0462] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0463] Corresponding to the power line carrier communication method described in the above embodiments, Figure 30 A structural block diagram of a power line carrier communication device provided in an embodiment of this application is shown. For ease of explanation, only the parts related to the embodiments of this application are shown.

[0464] This device can be applied to main routing equipment, see reference. Figure 30 The device includes:

[0465] Status acquisition module 301 is used to acquire the device access status of the first sub-router device;

[0466] The idle setting module 302 is used to, if the device access state of the first sub-routing device is the first state, not to allocate a first time period of transmission management cycle transmission opportunity to the first sub-routing device, and to allocate a second time period of transmission management cycle transmission opportunity to the first sub-routing device.

[0467] The aforementioned main routing device and the aforementioned first sub-routing device are connected to the same power line network. The aforementioned first state is used to indicate that no user equipment is connected to the aforementioned first sub-routing device. The aforementioned first time period and the aforementioned second time period are non-overlapping time periods.

[0468] Optionally, the above-mentioned device further includes:

[0469] The active setting module is used to allocate the first time period and the second time period transmission opportunities to the first sub-routing device if the device access status of the first sub-routing device is the second status. The second status is used to indicate that a user device has accessed the first sub-routing device.

[0470] Optionally, the above-mentioned device further includes:

[0471] The first change module is used to allocate the first time period and the second time period transmission opportunities to the first sub-routing device when it receives the first state change notification sent by the first sub-routing device.

[0472] Optionally, the above-mentioned device further includes:

[0473] The second change module is used to stop allocating the first time period transmission opportunity to the first sub-routing device and allocate the second time period transmission opportunity to the first sub-routing device when it receives the second state change notification sent by the first sub-routing device.

[0474] Optionally, the above-mentioned device further includes:

[0475] The first access module is configured to, when it detects that the second sub-routing device is connected to the power line network, not allocate the first time period transmission opportunity to the second sub-routing device, and allocate the second time period transmission opportunity to the second sub-routing device.

[0476] Optionally, the above-mentioned device further includes:

[0477] The third change module is used to allocate the first time period and the second time period transmission opportunities to the second sub-routing device when it receives the third state change notification sent by the second sub-routing device.

[0478] Optionally, the above-mentioned device further includes:

[0479] The second access module is used to allocate the first time period and the second time period transmission opportunities to the second sub-routing device when it is detected that the second sub-routing device is connected to the power line network.

[0480] The fourth modification module is used to stop allocating the first time period transmission opportunity to the second sub-routing device and allocate the second time period transmission opportunity to the second sub-routing device if the device access status of the second sub-routing device is not obtained within a preset time period, or if the device access status of the second sub-routing device is a third state. The third state is used to indicate that no user equipment has accessed the second sub-routing device.

[0481] Optionally, the above-mentioned device further includes:

[0482] The device disconnection module is used to stop allocating the first time period and the second time period transmission opportunities to the first sub-routing device when the first sub-routing device disconnects from the power line network.

[0483] Optionally, the status acquisition module 301 is specifically used to acquire the device access status of the first sub-router device through a status transmission channel, wherein the status transmission channel includes one or more of the above-mentioned power line network, Bluetooth connection, Wi-Fi connection, Universal Serial Bus connection, and Ethernet cable connection.

[0484] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0485] In the embodiments provided in this application, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are merely illustrative. For instance, the division of modules or units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0486] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0487] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0488] If the integrated modules / units described above are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can also be implemented by a computer program instructing related hardware. The computer program described above can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program described above includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable storage medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc. It should be noted that the content included in the computer-readable storage medium can be appropriately added or removed according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable storage medium does not include electrical carrier signals and telecommunication signals.

[0489] Finally, it should be noted that the above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A power line carrier communication method, applied to a main routing device, characterized in that, include: Obtain the device access status of the first sub-router device; If the device access status of the first sub-routing device is in the first state, then the first sub-routing device is not allocated a transmission opportunity for the first time period of the transmission management cycle, but is allocated a transmission opportunity for the second time period of the transmission management cycle; the transmission management cycle includes one or more AC cycles; The main routing device and the first sub-routing device are connected to the same power line network. The first state is used to indicate that no user equipment is connected to the first sub-routing device. The first time period and the second time period are non-overlapping time periods.

2. The method as described in claim 1, characterized in that, After obtaining the device access status of the first sub-routing device, the process further includes: If the device access status of the first sub-routing device is the second status, then the first sub-routing device is allocated a transmission opportunity for the first time period and the second time period. The second status is used to indicate that a user equipment has accessed the first sub-routing device.

3. The method as described in claim 1, characterized in that, After setting that if the device access state of the first sub-routing device is in the first state, then no transmission opportunity for the first time period of the transmission management cycle is allocated to the first sub-routing device, and a transmission opportunity for the second time period of the transmission management cycle is allocated to the first sub-routing device, the method further includes: When a first state change notification is received from the first sub-routing device, the first sub-routing device is allocated a transmission opportunity for the first time period and the second time period.

4. The method as described in claim 2, characterized in that, After allocating the first time period and the second time period transmission opportunities to the first sub-routing device, the method further includes: When a second state change notification is received from the first sub-routing device, the first sub-routing device is no longer allocated a transmission opportunity for the first time period, and a transmission opportunity for the second time period is allocated to the first sub-routing device.

5. The method according to any one of claims 1-4, characterized in that, The method further includes: When a second sub-routing device is detected to be connected to the power line network, the first time period transmission opportunity is not allocated to the second sub-routing device, but the second time period transmission opportunity is allocated to the second sub-routing device.

6. The method as described in claim 5, characterized in that, After the step of not allocating a transmission opportunity for the first time period to the second sub-routing device and allocating a transmission opportunity for the second time period to the second sub-routing device, the method further includes: When a third state change notification is received from the second sub-routing device, the second sub-routing device is allocated a transmission opportunity for the first time period and the second time period.

7. The method according to any one of claims 1-4, characterized in that, The method further includes: When a second sub-routing device is detected to be connected to the power line network, a transmission opportunity for the first time period and the second time period is allocated to the second sub-routing device; If the device access status of the second sub-routing device is not obtained within the preset time period, or if the device access status of the second sub-routing device is in the third state, then the first time period transmission opportunity will be stopped from being allocated to the second sub-routing device, and the second time period transmission opportunity will be allocated to the second sub-routing device. The third state is used to indicate that no user device has accessed the second sub-routing device.

8. The method according to any one of claims 1-7, characterized in that, The method further includes: When the first sub-routing device disconnects from the power line network, the allocation of transmission opportunities for the first time period and the second time period to the first sub-routing device is stopped.

9. The method according to any one of claims 1-8, characterized in that, The step of obtaining the device access status of the first sub-routing device includes: The device access status of the first sub-router device is obtained through a status transmission channel, which includes one or more of the following: power line network, Bluetooth connection, Wi-Fi connection, Universal Serial Bus connection, and Ethernet cable connection.

10. A main routing device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, The processor is configured to implement the method as described in any one of claims 1 to 9 when executing the computer program.

11. A computer-readable storage medium configured to store a computer program, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 9.

12. A computer program product, characterized in that, The computer program product is configured to run on a primary routing device, causing the primary routing device to perform the method as described in any one of claims 1 to 9.

13. A chip system, characterized in that, The chip system includes a memory and a processor, the processor being configured to execute a computer program stored in the memory to implement the method as described in any one of claims 1 to 9.

Citation Information

Patent Citations

  • Wireless frame length self-adaption communication method and node equipment

    CN103974423A