WO2014180170A1 - Power line carrier communication method and apparatus - Google Patents

Power line carrier communication method and apparatus Download PDF

Info

Publication number
WO2014180170A1
WO2014180170A1 PCT/CN2014/070109 CN2014070109W WO2014180170A1 WO 2014180170 A1 WO2014180170 A1 WO 2014180170A1 CN 2014070109 W CN2014070109 W CN 2014070109W WO 2014180170 A1 WO2014180170 A1 WO 2014180170A1
Authority
WO
WIPO (PCT)
Prior art keywords
power line
carrier communication
line carrier
communication device
data packet
Prior art date
Application number
PCT/CN2014/070109
Other languages
French (fr)
Chinese (zh)
Inventor
朱鸣杰
沈力为
陈光胜
赵启山
Original Assignee
上海海尔集成电路有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 上海海尔集成电路有限公司 filed Critical 上海海尔集成电路有限公司
Publication of WO2014180170A1 publication Critical patent/WO2014180170A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B3/00Line transmission systems
    • H04B3/54Systems for transmission via power distribution lines
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B2203/00Indexing scheme relating to line transmission systems
    • H04B2203/54Aspects of powerline communications not already covered by H04B3/54 and its subgroups
    • H04B2203/5462Systems for power line communications
    • H04B2203/5495Systems for power line communications having measurements and testing channel

Abstract

The present invention provides a power line carrier communication method and apparatus. The power line carrier communication apparatus receives a response message from a target device, and when the packet error ratio carried in the response message exceeds a preset value, the power line carrier communication apparatus sends a measurement command to the target device and obtains channel quality of the power line returned by the target device, the measurement command being used to give an instruction to measure the channel quality of the power line; the power line carrier communication apparatus performs calculation according to the channel quality of the current power line and the size of a data packet to be transmitted in the power line, to obtain transmission parameters for data packet transmission in the power line, and then transmits the data packet in the power line according to the transmission parameters. In this way, the transmission parameters for data packet transmission in the power line can be adjusted in real time according to the current channel quality, thereby improving the channel utilization and ensuring the success rate of the data packet transmission in a power line.

Description

电力线载波通信方法和装置  Power line carrier communication method and device
技术领域 Technical field
本发明涉及通信技术, 尤其涉及一种电力线载波通信方法和装置。 背景技术 电力线载波通信技术是通过电力线进行数据传输的通信技术, 以实现对 数据、 语音或视频等的数据传输。  The present invention relates to communication technologies, and in particular, to a power line carrier communication method and apparatus. Background Art Power line carrier communication technology is a communication technology for data transmission through a power line to realize data transmission for data, voice, video, and the like.
在现有技术中, 根据终端节点在电力线载波通信信道中由于位置不同产 生路径衰减不同的情况, 可以采用不同传输参数进行通信, 例如: 近端节点 可以降低发送功率、 提高传输速率, 而远端节点可以提高发送功率、 降低传 输速率。  In the prior art, according to the situation that the terminal node generates different path attenuations due to different positions in the power line carrier communication channel, different transmission parameters may be used for communication, for example: the near-end node can reduce the transmission power and increase the transmission rate, and the far-end node Nodes can increase transmit power and reduce transmission rate.
然而, 现有技术需要对传输参数进行预先的配置, 从而导致使用电力线 进行数据传输的调制局限于预先配置的传输模式, 无法灵活的根据实际情况 对传输参数进行自适应调整。 发明内容  However, the prior art requires pre-configuration of the transmission parameters, so that the modulation using the power line for data transmission is limited to the pre-configured transmission mode, and the transmission parameters cannot be adaptively adjusted according to actual conditions. Summary of the invention
本发明提供一种电力线载波通信方法和装置, 以灵活的根据实际情况 对传输参数进行自适应调整。  The invention provides a power line carrier communication method and device, which can adaptively adjust transmission parameters according to actual conditions.
一方面, 本发明提供一种电力线载波通信方法, 包括:  In one aspect, the present invention provides a power line carrier communication method, including:
步骤 1、 电力线载波通信装置接收目标设备的响应消息, 所述响应消息 中携带的误包率超过预设值时, 所述电力线载波通信装置向所述目标设备 发送测量命令, 并获得所述目标设备返回的所述电力线的信道质量, 所述 测量命令用以指示测量所述电力线的信道质量;  Step 1. The power line carrier communication device receives a response message of the target device, and when the error packet rate carried in the response message exceeds a preset value, the power line carrier communication device sends a measurement command to the target device, and obtains the target. Channel quality of the power line returned by the device, the measurement command is used to indicate measuring channel quality of the power line;
步骤 2、所述电力线载波通信装置根据当前所述电力线的信道质量和所述 电力线中准备传输的数据包大小进行计算, 获得用于在所述电力线中进行所 述数据包传输的传输参数;  Step 2: The power line carrier communication device performs calculation according to a channel quality of the current power line and a data packet size to be transmitted in the power line, and obtains a transmission parameter for performing the data packet transmission in the power line;
步骤 3、所述电力线载波通信装置根据所述传输参数在所述电力线中传输 所述数据包。 另一方面, 本发明提供一种电力线载波通信装置, 包括: 获取模块, 用于接收目标设备的响应消息, 所述响应消息中携带的误 包率超过预设值时, 所述电力线载波通信装置向所述目标设备发送测量命 令, 并获得所述目标设备返回的所述电力线的信道质量, 所述测量命令用 以指示测量所述电力线的信道质量; Step 3: The power line carrier communication device transmits the data packet in the power line according to the transmission parameter. In another aspect, the present invention provides a power line carrier communication apparatus, including: an acquisition module, configured to receive a response message of a target device, where the error packet rate in the response message exceeds a preset value, the power line carrier communication device Sending a measurement command to the target device, and obtaining a channel quality of the power line returned by the target device, where the measurement command is used to indicate measuring a channel quality of the power line;
处理模块, 用于根据当前所述电力线的信道质量和所述电力线中准备传 输的数据包大小进行计算, 获得用于在所述电力线中进行所述数据包传输的 传输参数;  a processing module, configured to calculate, according to a channel quality of the current power line and a data packet size to be transmitted in the power line, to obtain a transmission parameter for performing the data packet transmission in the power line;
发送模块, 用于根据所述传输参数在所述电力线中传输所述数据包。 本发明提供的电力线载波通信方法, 通过电力线载波通信装置接收目 标设备的响应消息, 该响应消息中携带的误包率超过预设值时, 电力线载 波通信装置向目标设备发送测量命令, 并获得目标设备返回的电力线的信 道质量, 该测量命令用以指示测量电力线的信道质量, 并根据当前电力线 的信道质量和电力线中准备传输的数据包大小进行计算, 获得用于在该电力 线中进行数据包传输的传输参数, 接着, 根据该传输参数在该电力线中传输 数据包, 从而可以根据当前的信道质量, 实时的对用于在该电力线中进行数 据包传输的传输参数进行调整, 进而提高了信道的利用率, 并保证了在电力 线上进行数据包传输的成功率。 附图说明 图 1为本发明一 ^ ;施例的电力线载波通信方法的流程示意图;  And a sending module, configured to transmit the data packet in the power line according to the transmission parameter. The power line carrier communication method provided by the present invention receives a response message of the target device by the power line carrier communication device, and when the error packet rate carried in the response message exceeds a preset value, the power line carrier communication device sends a measurement command to the target device, and obtains a target. The channel quality of the power line returned by the device, the measurement command is used to indicate the channel quality of the measured power line, and is calculated according to the channel quality of the current power line and the size of the data packet to be transmitted in the power line, and obtained for data packet transmission in the power line. Transmission parameters, and then transmitting data packets in the power line according to the transmission parameters, so that the transmission parameters for data packet transmission in the power line can be adjusted in real time according to the current channel quality, thereby improving the channel. Utilization, and guarantees the success rate of packet transmission on the power line. BRIEF DESCRIPTION OF DRAWINGS FIG. 1 is a schematic flow chart of a power line carrier communication method according to an embodiment of the present invention;
图 2为本发明再- -实施例的电力线载波通信方法的流程 ^  2 is a flow chart of a power line carrier communication method according to still another embodiment of the present invention.
图 3为本发明另- -实施例的电力线载波通信方法的流程 ^  3 is a flow chart of a power line carrier communication method according to another embodiment of the present invention.
图 4为本发明另- -实施例的电力线载波通信方法的流程 ^  4 is a flow chart of a power line carrier communication method according to another embodiment of the present invention.
图 5为本发明一 ;施例的数据帧的格式示意图;  FIG. 5 is a schematic diagram of a format of a data frame according to an embodiment of the present invention; FIG.
图 6为本发明再- -实施例的数据帧的格式示意图;  6 is a schematic diagram of a format of a data frame according to still another embodiment of the present invention;
图 7为本发明另- -实施例的电力线载波通信方法的流程 ^  7 is a flow chart of a power line carrier communication method according to another embodiment of the present invention.
图 8为本发明一 ;施例的电力线载波通信装置的示意图。 具体实施方式 本发明实施例提供的电力线载波通信方法具体可以应用于通过电力线进 行数据包传输的通信系统中, 在需要对电力线进行实时控制, 并及时调整传 输参数时。 本实施例提供的电力线载波通信方法具体可以通过电力线载波通 信装置来执行, 该电力线载波通信装置可以设置在电力线中, 其中, 该电力 线载波通信装置可以采用软件和 /或硬件的方式来实现, 例如, 该电力线载波 通信装置可以是基于嵌入式芯片如 32位或 16位的中央处理器。 以下对电力线 载波通信方法和电力线载波通信装置进行详细地说明。 FIG. 8 is a schematic diagram of a power line carrier communication apparatus according to an embodiment of the present invention. detailed description The power line carrier communication method provided by the embodiment of the present invention can be specifically applied to a communication system that performs data packet transmission through a power line, when real-time control of the power line is needed, and the transmission parameter is adjusted in time. The power line carrier communication method provided in this embodiment may be specifically implemented by a power line carrier communication device, where the power line carrier communication device may be disposed in a power line, where the power line carrier communication device may be implemented by using software and/or hardware, for example, The power line carrier communication device may be based on an embedded chip such as a 32-bit or 16-bit central processing unit. Hereinafter, the power line carrier communication method and the power line carrier communication device will be described in detail.
图 1为本发明一实施例的电力线载波通信方法的流程示意图。如图 1所示, 该电力线载波通信方法可以包括:  FIG. 1 is a schematic flow chart of a power line carrier communication method according to an embodiment of the present invention. As shown in FIG. 1, the power line carrier communication method may include:
步骤 101、 电力线载波通信装置接收目标设备的响应消息, 该响应消息 中携带的误包率超过预设值时, 电力线载波通信装置向目标设备发送测量 命令, 并获得目标设备返回的电力线的信道质量。  Step 101: The power line carrier communication device receives the response message of the target device, and when the error packet rate carried in the response message exceeds a preset value, the power line carrier communication device sends a measurement command to the target device, and obtains a channel quality of the power line returned by the target device. .
在本实施例中, 测量命令用以指示测量电力线的信道质量。 其中, 步 骤 101可以应用在物理层中。  In this embodiment, the measurement command is used to indicate the channel quality of the measured power line. Wherein, step 101 can be applied in the physical layer.
具体的, 在电力线载波通信装置使用的过程中, 若电力线载波通信装 置发送数据包给目标设备之后, 接收目标设备的响应消息, 其中, 该响应 消息中携带的误包率超过预设值时, 可以通过电力线载波通信装置发送测 量命令, 以获取电力线的信道质量, 该测量命令用以指示测量该电力线的 信道质量。 需要说明的是, 在电力线载波通信装置第一次使用时, 可以通 过电力线载波通信装置中预设的信息获取电力线的信道质量。  Specifically, in the process of using the power line carrier communication device, if the power line carrier communication device sends the data packet to the target device, and receives the response message of the target device, where the error packet rate carried in the response message exceeds a preset value, The measurement command may be sent by the power line carrier communication device to obtain the channel quality of the power line, the measurement command being used to indicate the channel quality of the power line. It should be noted that, when the power line carrier communication device is used for the first time, the channel quality of the power line can be obtained through information preset in the power line carrier communication device.
具体的, 若电力线载波通信装置在预设时长内没有接收到目标设备的 响应消息, 则可以通过其他路径建立与目标设备的连接。 不论数据包是从 电力线载波通信装置最初发送的路径到达目标设备, 还是通过其他路径到达 目标设备, 若电力线载波通信装置在接收到的目标设备的响应消息中携带的 误包率超过预设值时,则可以确定需要对该电力线的信道质量进行测量, 以 获取该电力线的信道质量, 需要说明的是, 目标设备返回给电力线载波装置 的信道质量可以是目标设备计算获得的关于信道质量的参数, 同时, 将获取 的信道质量发送至介质访问控制层, 其中, 对电力线的信道质量进行测量可 以发送测量命令, 以获得关于信道质量的测量结果。  Specifically, if the power line carrier communication device does not receive the response message of the target device within the preset duration, the connection with the target device may be established through other paths. Regardless of whether the data packet arrives at the target device from the path originally transmitted by the power line carrier communication device or reaches the target device through another path, if the power line carrier communication device receives the error packet rate in the response message of the target device exceeds a preset value The channel quality of the power line needs to be measured to obtain the channel quality of the power line. It should be noted that the channel quality returned by the target device to the power line carrier device may be a parameter about the channel quality calculated by the target device. At the same time, the obtained channel quality is transmitted to the medium access control layer, wherein measuring the channel quality of the power line may send a measurement command to obtain a measurement result regarding the channel quality.
电力线载波通信装置可以在介质访问控制层中根据目标设备返回的电力 线信道质量, 确定在电力线中进行数据包传输的传输参数。 例如, 电力线载 波通信装置可以根据测量结果更改传输参数,具体可以更改选择可用子载波、 调整循环前缀的长度或最佳段落长度, 从而对数据包的分割、 传输带宽和传 输速率进行实时的调整, 以适应信道变化。 The power line carrier communication device can return power according to the target device in the medium access control layer Line channel quality, which determines the transmission parameters for packet transmission in the power line. For example, the power line carrier communication device can change the transmission parameters according to the measurement result, and specifically can change the length of the available subcarriers, adjust the length of the cyclic prefix or the optimal paragraph length, thereby real-time adjustment of the data packet splitting, transmission bandwidth, and transmission rate. To adapt to channel changes.
步骤 102、电力线载波通信装置根据当前电力线的信道质量和电力线中准 备传输的数据包大小进行计算, 获得用于在电力线中进行数据包传输的传输 参数。  Step 102: The power line carrier communication device calculates according to the channel quality of the current power line and the size of the data packet to be prepared for transmission in the power line, and obtains transmission parameters for data packet transmission in the power line.
具体的, 电力线载波通信装置可以对当前电力线的信道质量, 以及准 备在电力线中传输的数据包的大小进行计算, 并获得用于在该电力线中进行 数据包传输的传输参数。  Specifically, the power line carrier communication device can calculate the channel quality of the current power line, and the size of the data packet to be transmitted in the power line, and obtain transmission parameters for data packet transmission in the power line.
其中, 根据步骤 101获取的电力线的信道质量可以调整对应的传输参数, 具体的, 电力线的信道质量可以为信道传播的路径数大于第一阈值、 信道的 噪声大于第二阈值或信道的噪声阴影效应在任一频点的干扰超过第三阈值 等。  The channel quality of the power line can be adjusted according to the channel quality of the power line obtained in step 101. Specifically, the channel quality of the power line may be that the number of paths of the channel propagation is greater than the first threshold, the noise of the channel is greater than the second threshold, or the noise shadow effect of the channel. The interference at any frequency point exceeds the third threshold and the like.
举例来讲, 若信道传播的路径数大于第一阈值时, 可以增加循环前缀的 长度, 以提高通讯的抗信号间干扰能力;  For example, if the number of paths of the channel propagation is greater than the first threshold, the length of the cyclic prefix may be increased to improve the inter-signal interference capability of the communication;
若信道的噪声大于第二阈值时, 也就说信道的干扰噪声大于第二阈值, 可以通过提高发送功率来改善信噪比或增加帧的重复次数, 以提高解码率从 而获得更高的通讯成功率;  If the noise of the channel is greater than the second threshold, that is, the interference noise of the channel is greater than the second threshold, the signal-to-noise ratio can be improved or the number of repetitions of the frame can be increased by increasing the transmission power, so as to improve the decoding rate and obtain higher communication success. Rate
若信道的噪声阴影效应在任一频点的干扰超过第三阈值时, 对子载波进 行调整, 并通过对子载波的调整屏蔽该频点的子载波, 以避免该频点对数据 包传输的干扰。  If the noise shadow effect of the channel exceeds the third threshold when the interference of any frequency point exceeds the third threshold, the subcarrier is adjusted, and the subcarrier of the frequency point is shielded by adjusting the subcarrier to avoid interference of the frequency point on the data packet transmission. .
需要说明的是, 本实施例中的第一阈值、 第二阈值、 第三阈值可以由本 领域技术人员根据实际情况进行调整与设定。  It should be noted that the first threshold, the second threshold, and the third threshold in this embodiment may be adjusted and set according to actual conditions by those skilled in the art.
本实施例的步骤 102可以应用在介质访问控制层, 在获得用于在电力线 中传输数据包的传输参数之后, 电力线载波通信装置可以将这些计算出来的 传输参数连同需要发送的数据包从介质访问控制层发送给物理层, 以用于电 力线对该数据包的发送。  Step 102 of this embodiment may be applied to the medium access control layer, after obtaining the transmission parameters for transmitting the data packets in the power line, the power line carrier communication device may access the calculated transmission parameters together with the data packets to be transmitted from the medium. The control layer sends to the physical layer for transmission of the data packet by the power line.
步骤 103、 电力线载波通信装置根据该传输参数在电力线中传输数据包。 在本实施例中, 电力线载波通信装置可以根据步骤 102获得的传输参 数将数据包在电力线中传输, 例如, 根据传输参数对数据包进行分割, 或 者, 根据传输参数对调制方式、 子载波选择、 帧的重复次数或循环前缀的 长度其中的任一个或其组合进行调整。 Step 103: The power line carrier communication device transmits the data packet in the power line according to the transmission parameter. In this embodiment, the power line carrier communication device may obtain the transmission parameter according to step 102. The data packet is transmitted in the power line, for example, the data packet is segmented according to the transmission parameter, or the modulation parameter, the subcarrier selection, the number of repetitions of the frame, or the length of the cyclic prefix, or a combination thereof, according to the transmission parameter. Adjustment.
本发明实施例提供的电力线载波通信方法, 通过电力线载波通信装置 接收目标设备的响应消息, 该响应消息中携带的误包率超过预设值时, 电 力线载波通信装置向目标设备发送测量命令, 并获得目标设备返回的电力 线的信道质量, 该测量命令用以指示测量电力线的信道质量, 电力线载波 通信装置根据当前电力线的信道质量和电力线中准备传输的数据包大小进行 计算, 获得用于在该电力线中进行数据包传输的传输参数, 接着, 根据该传 输参数在该电力线中传输数据包, 从而可以根据当前的信道质量, 实时的对 用于在该电力线中进行数据包传输的传输参数进行调整, 进而提高了信道的 利用率, 并保证了在电力线上进行数据包传输的成功率。  The power line carrier communication method provided by the embodiment of the present invention receives a response message of the target device by using the power line carrier communication device, and when the error packet rate carried in the response message exceeds a preset value, the power line carrier communication device sends a measurement command to the target device, and Obtaining a channel quality of a power line returned by the target device, the measurement command is used to indicate a channel quality of the measured power line, and the power line carrier communication device calculates, according to a channel quality of the current power line and a data packet size to be transmitted in the power line, obtained for the power line Transmitting a transmission parameter of the data packet, and then transmitting the data packet in the power line according to the transmission parameter, so that the transmission parameter used for data packet transmission in the power line can be adjusted in real time according to the current channel quality, In turn, the channel utilization rate is improved, and the success rate of data packet transmission on the power line is ensured.
在本实施例中, 电力线载波通信装置跨层设置在应用层、 介质访问控 制层和物理层上,且通过物理层执行上述实施例中的步骤 101和步骤 103, 通过介质访问控制层执行步骤 102, 具体为:  In this embodiment, the power line carrier communication device is disposed on the application layer, the medium access control layer, and the physical layer, and the steps 101 and 103 in the foregoing embodiment are performed through the physical layer, and the step 102 is performed by the medium access control layer. , Specifically:
电力线载波通信装置向目标设备发送测量命令, 以获得目标设备返回 的电力线的信道质量可以在物理层执行;  The power line carrier communication device transmits a measurement command to the target device to obtain a channel quality of the power line returned by the target device, which can be performed at the physical layer;
电力线载波通信装置根据当前电力线的信道质量和准备在电力线中传输 的数据包大小进行计算可以在介质访问控制层执行;  The power line carrier communication device can perform calculation at the medium access control layer according to the channel quality of the current power line and the size of the data packet to be transmitted in the power line;
电力线载波通信装置根据传输参数在电力线中传输数据包可以在物理层 执行。  The power line carrier communication device can transmit data packets in the power line according to transmission parameters and can be performed at the physical layer.
需要说明的, 在步骤 103之前, 还包括:  It should be noted that, before step 103, the method further includes:
介质访问控制层向物理层发送数据帧, 其中, 该数据帧的帧头信息中 可以包含有传输参数。  The medium access control layer sends a data frame to the physical layer, where the frame header information of the data frame may include a transmission parameter.
进一步的, 在上述图 1所示实施例的基础上, 在步骤 101、 获取电力 线的信道质量之前, 还可以包括:  Further, on the basis of the foregoing embodiment shown in FIG. 1 , before the obtaining the channel quality of the power line, the method may further include:
电力线载波通信装置获取上位机从串行通信接口或电力线发送的控制 信号; 并根据控制信号确定工作模式, 该工作模式可以包括: 主站模式、 从 站模式、 测试模式或升级模式;  The power line carrier communication device acquires a control signal sent by the host computer from the serial communication interface or the power line; and determines an operation mode according to the control signal, and the working mode may include: a master station mode, a slave mode, a test mode, or an upgrade mode;
具体的,电力线载波通信装置可以根据应用层服务接口 (APP-SAP)与上位 机进行连接, 并接收上位机发送的控制信号, 从而根据控制信号确定工作模 式, 其中, 工作模式可以包括: 主站模式、 从站模式、 测试模式或升级模式, 该应用层服务接口可以为串行接口、 无线接口、 USB或其它接口。 Specifically, the power line carrier communication device can be based on an application layer service interface (APP-SAP) and a higher level The machine is connected, and receives a control signal sent by the host computer, thereby determining an operation mode according to the control signal, wherein the working mode may include: a master mode, a slave mode, a test mode or an upgrade mode, and the application layer service interface may be a string Line interface, wireless interface, USB or other interface.
本实施例通过对工作模式的确定,可以进行测试模式或升级模式的操作, 而且, 测试模式或升级模式提供了远程操作, 从而可以降低电力线的测试或 升级成本。  In this embodiment, the operation of the test mode or the upgrade mode can be performed by determining the operation mode, and the test mode or the upgrade mode provides remote operation, thereby reducing the test or upgrade cost of the power line.
图 2为本发明再一实施例的电力线载波通信方法的流程示意图。 如图 2 所示, 电力线载波通信装置可以根据在应用层获得的控制信号, 确定工作模 式, 若工作模式为测试模式, 则以下步骤在应用层执行, 具体步骤可以包括: 步骤 201、 电力线载波通信装置根据获得的控制信号确定工作模式为测 试模式  2 is a schematic flow chart of a power line carrier communication method according to still another embodiment of the present invention. As shown in FIG. 2, the power line carrier communication device can determine the working mode according to the control signal obtained at the application layer. If the working mode is the test mode, the following steps are performed at the application layer. The specific steps may include: Step 201: Power line carrier communication The device determines the working mode as the test mode according to the obtained control signal
具体的, 在电力线载波通信装置根据控制信号确定工作模式为测试模式, 该测试模式中的具体项目可以为通过电力线载波发送主站命令帧并等待响 应, 或调整载波通信传输的传输参数再通信等。  Specifically, the power line carrier communication device determines, according to the control signal, that the working mode is a test mode, and the specific item in the test mode may be: sending a master station command frame through the power line carrier and waiting for a response, or adjusting a transmission parameter of the carrier communication transmission, and then re-communicating, etc. .
步骤 202、 电力线载波通信装置根据测试模式中的具体项目进行测试, 获得测试结果, 并将测试结果发送给上位机, 上位机通过应用层服务接口与 应用层进行数据传输。  Step 202: The power line carrier communication device performs testing according to a specific item in the test mode, obtains a test result, and sends the test result to the upper computer, and the upper computer performs data transmission through the application layer service interface and the application layer.
需要说明的是,在根据测试模式中的具体项目进行测试之后,可以获得测 试结果, 并且该测试结果可以通过串行接口或其它接口传输给上位机, 或是 通过电力线远程通信接收测试结果, 并传输到上位机上。  It should be noted that after testing according to a specific item in the test mode, the test result can be obtained, and the test result can be transmitted to the host computer through a serial interface or other interface, or the test result is received through power line remote communication, and Transfer to the host computer.
步骤 203、 上位机根据测试结果确定是否进行升级维护。  Step 203: The host computer determines whether to perform upgrade maintenance according to the test result.
需要说明的是,将测试结果传输给上位机的方式不论是上述的哪种方式, 上位机可以根据该测试结果确定是否进行升级维护, 并且电力线载波通信装 置可以根据上位机发送的是否升级维护的信息进行相应的操作。 若是, 则执 行步骤 204; 若否, 则执行步骤 205。  It should be noted that, in any of the above manners, the host computer can determine whether to perform upgrade maintenance according to the test result, and whether the power line carrier communication device can be upgraded according to whether the host computer transmits the maintenance or not. The information is processed accordingly. If yes, go to step 204; if no, go to step 205.
步骤 204、 将工作模式转换为升级模式。  Step 204: Convert the working mode to the upgrade mode.
如果需要则进入升级模式, 则上位机向电力线载波通信装置发送工作模 式为升级模式的控制信号。  If it is required to enter the upgrade mode, the host computer sends a control signal whose operation mode is the upgrade mode to the power line carrier communication device.
步骤 205、 将工作模式转换为主站模式或从站模式;  Step 205: Convert the working mode to a master mode or a slave mode;
若不需要进入升级模式, 则上位机向电力线载波通信装置发送工作模式 为主站模式或从站模式, 同时退出测试模式并重启系统, 以便电力线载波通 信装置根据选择的工作模式进行工作。 If it is not required to enter the upgrade mode, the host computer sends a working mode to the power line carrier communication device. In master mode or slave mode, the test mode is exited and the system is restarted so that the power line carrier communication device operates according to the selected mode of operation.
若工作模式为主站模式, 则执行上述实施例中的步骤 101、 步骤 102和 步骤 103。  If the working mode is the master mode, step 101, step 102 and step 103 in the above embodiment are executed.
本实施例通过对工作模式的确定, 可以进行测试模式操作, 而且, 测试 模式提供了远程操作, 从而可以降低电力线的测试成本。  In this embodiment, the test mode operation can be performed by determining the operation mode, and the test mode provides remote operation, thereby reducing the test cost of the power line.
图 3为本发明另一实施例的电力线载波通信方法的流程示意图。 如图 3 所示, 电力线载波通信装置可以根据在应用层获得的控制信号, 确定工作模 式, 若工作模式为升级模式, 则以下步骤在应用层执行, 具体步骤可以包括: 步骤 301、 电力线载波通信装置根据在应用层接收的控制信号确定是否 为远程升级模式。  FIG. 3 is a schematic flow chart of a power line carrier communication method according to another embodiment of the present invention. As shown in FIG. 3, the power line carrier communication device can determine the working mode according to the control signal obtained at the application layer. If the working mode is the upgrade mode, the following steps are performed at the application layer. The specific steps may include: Step 301: Power line carrier communication The device determines whether it is a remote upgrade mode based on a control signal received at the application layer.
具体的, 根据控制信号可以确定是否进行远程升级模式, 其中, 若是远 程升级, 则执行步骤 302、 可以通过电力线发送升级数据, 若不是远程升级, 则执行步骤 303、 可以通过串行通信接口发送升级数据。  Specifically, the remote upgrade mode may be determined according to the control signal. If the remote upgrade is performed, step 302 may be performed, and the upgrade data may be sent through the power line. If the remote upgrade is not performed, step 303 may be performed, and the upgrade may be sent through the serial communication interface. data.
步骤 302、 通过电力线发送升级数据。  Step 302: Send upgrade data through a power line.
需要说明的是, 若是远程升级, 可以根据升级数据的大小, 在发送升级 数据前进行数据的分割, 从而避免在电力线传输中噪声的干扰,  It should be noted that, if the remote upgrade is performed, the data may be divided before the upgrade data is sent according to the size of the upgrade data, thereby avoiding noise interference in the power line transmission.
步骤 303、 通过串行通信接口发送升级数据;  Step 303: Send upgrade data through a serial communication interface.
在步骤 302之后, 通过电力线发送升级数据可以具体包括:  After the step 302, sending the upgrade data through the power line may specifically include:
步骤 304、 检查该升级数据是否正确。  Step 304: Check whether the upgrade data is correct.
在通过电力线发送升级数据给目标设备之后, 目标设备在接收完所有的 升级数据之后, 检查接收到的该升级数据是否正确, 若检查接收到的该升级 数据正确, 则执行步骤 305 ; 若检查接收到的该升级数据不正确, 则执行步 骤 302, 通过电力线发送升级数据, 并依此执行步骤 304 以检查升级数据是 否正确。  After the upgrade data is sent to the target device through the power line, after receiving all the upgrade data, the target device checks whether the received upgrade data is correct. If the received upgrade data is correct, step 305 is performed; If the upgrade data is incorrect, go to step 302, send the upgrade data through the power line, and perform step 304 to check whether the upgrade data is correct.
在步骤 303之后, 通过串行通信接口发送升级数据可以具体包括: 步骤 306、 检查该升级数据是否正确。  After the step 303, sending the upgrade data through the serial communication interface may specifically include: Step 306: Check whether the upgrade data is correct.
在通过电力线发送升级数据给目标设备之后, 目标设备在接收完所有的 升级数据之后, 检查接收到的该升级数据是否正确, 若检查接收到的该升级 数据正确, 则执行步骤 305 ; 若检查接收到的该升级数据不正确, 则执行步 骤 303, 通过串行接口发送升级数据, 并依此执行步骤 306 以检查升级数据 是否正确。 After the upgrade data is sent to the target device through the power line, after receiving all the upgrade data, the target device checks whether the received upgrade data is correct. If the received upgrade data is correct, step 305 is performed; If the upgrade data is incorrect, execute the step. In step 303, the upgrade data is sent through the serial interface, and step 306 is performed accordingly to check whether the upgrade data is correct.
步骤 305、 备份电力线载波通信装置升级前的数据, 并更新电力线载波 通信装置的升级后数据;  Step 305: Back up data before the power line carrier communication device is upgraded, and update the upgraded data of the power line carrier communication device;
需要说明的是, 在接收数据正确之后, 可以备份电力线载波通信装置升 级前的数据, 并在备份升级前数据之后, 可以保存升级后数据。  It should be noted that after the data is received correctly, the data before the upgrade of the power line carrier communication device can be backed up, and after the data before the upgrade is backed up, the upgraded data can be saved.
图 4为本发明另一实施例的电力线载波通信方法的流程示意图。 如图 4 所示, 电力线载波通信装置可以根据在应用层获得的控制信号, 确定工作模 式, 若工作模式为主站模式, 则在上述实施例的基础上, 具体步骤还可以包 括:  FIG. 4 is a schematic flow chart of a power line carrier communication method according to another embodiment of the present invention. As shown in FIG. 4, the power line carrier communication device may determine the working mode according to the control signal obtained at the application layer. If the working mode is the master mode, the specific steps may further include:
在步骤 101、 获取电力线的信道质量之前, 还可以包括:  Before the obtaining the channel quality of the power line, the method may further include:
步骤 401、 确定主站模式中的服务项目。  Step 401: Determine a service item in the master station mode.
具体的, 本步骤可以执行在应用层, 首先电力线载波通信装置根据在应 用层接收的控制信号, 确定工作模式为主站模式, 接着, 主站需要与上一级 集中器或上位机进行连接, 并确定主站模式中的服务项目, 例如, 抄当日电 量、 上一日零点电量或对目标设备进行升级等。  Specifically, the step may be performed at the application layer. First, the power line carrier communication device determines the working mode as the master station mode according to the control signal received at the application layer, and then the master station needs to connect with the upper concentrator or the upper computer. And determine the service items in the master mode, for example, copy the daily power, zero power on the previous day, or upgrade the target device.
步骤 402、 电力线载波通信装置根据在应用层接收到的数据包进行构建, 并将构建的数据帧传输给介质访问控制层。  Step 402: The power line carrier communication device constructs according to the data packet received at the application layer, and transmits the constructed data frame to the medium access control layer.
电力线载波通信装置确定主站模式中的服务项目之后, 根据从上一级集 中器或上位机接收的数据包,构建从应用层发送到介质访问控制层的数据帧, 图 5为本发明一实施例的数据帧的格式示意图, 如图 5所示, 该数据帧具体 可以包括: 帧头信息、 地址域和数据域, 其中, 帧头信息可以为帧起始符、 帧格式或帧长度的其中之一或任意组合, 地址域可以为源地址、 目标地址或 路由地址的其中之一或任意组合, 数据域可以为数据域起始符或命令数据的 其中之一或任意组合。 需要说明, 该数据帧还可以适用于从介质访问控制层 向物理层的传输, 即在图 1所示实施例中的步骤 102与步骤 103之间, 电力 线载波通信装置将传输参数从介质访问控制层发送到物理层是, 可以将该传 输参数添加在数据帧的帧头信息中。  After the power line carrier communication device determines the service item in the master station mode, the data frame transmitted from the application layer to the medium access control layer is constructed according to the data packet received from the upper concentrator or the upper computer, and FIG. 5 is an implementation of the present invention. As shown in FIG. 5, the data frame may include: a frame header information, an address field, and a data field, where the frame header information may be a frame start character, a frame format, or a frame length. In one or any combination, the address field may be one or any combination of a source address, a destination address, or a routing address, and the data field may be one or any combination of data field start symbols or command data. It should be noted that the data frame may also be applicable to the transmission from the medium access control layer to the physical layer, that is, between step 102 and step 103 in the embodiment shown in FIG. 1, the power line carrier communication device transmits the transmission parameter from the medium access control. The layer is sent to the physical layer, and the transmission parameter can be added to the header information of the data frame.
在介质访问控制层接收到从应用层发送的数据帧之后, 电力线载波通信 装置可以根据该数据帧确定是否进行目标设备的升级, 例如, 根据数据帧中 携带的数据升级参数确定对目标设备进行升级。 如果需要目标设备的升级, 则可以将该数据包分割为更短的数据包, 以保证通信的正确性。 After the medium access control layer receives the data frame sent from the application layer, the power line carrier communication device may determine whether to perform the upgrade of the target device according to the data frame, for example, according to the data frame. The carried data upgrade parameters determine the upgrade of the target device. If an upgrade of the target device is required, the packet can be divided into shorter packets to ensure the correctness of the communication.
在上述实施例的基础上, 图 6为本发明再一实施例的数据帧的格式示意 图, 如图 6所示, 该介质访问控制层中数据帧的数据域的结构可以包括: 段 落控制信息主要包括段落控制信息、 序列号、 数据域和校验码, 其中, 段落 控制信息可以为音调映射响应标识、 音调映射请求标识、 段落编号、 段落长 度或末帧标识的其中之一或任意组合。 序列号为数据帧的编号, 可以与段落 编号一起作为数据重复接收检测的判断,从而确保不会重复接收相同的数据。 校验码为数据帧开始到数据域结束的数据的校验编码。  On the basis of the foregoing embodiment, FIG. 6 is a schematic diagram of a format of a data frame according to another embodiment of the present invention. As shown in FIG. 6, the structure of a data field of a data frame in the medium access control layer may include: The paragraph control information, the serial number, the data field, and the check code are included, wherein the paragraph control information may be one or any combination of a tone mapping response identifier, a tone mapping request identifier, a paragraph number, a paragraph length, or a last frame identifier. The serial number is the number of the data frame, which can be used together with the paragraph number as a judgment to repeatedly receive the detection of the data, thereby ensuring that the same data is not repeatedly received. The check code is the check code of the data from the beginning of the data frame to the end of the data field.
在本实施例中, 若需要目标设备升级, 则在进行目标设备升级之后, 或 者, 若不需要目标设备升级时, 则在介质访问控制层接收到从应用层发送的 数据帧之后, 电力线载波通信装置可以构建从介质访问控制层向物理层发送 的数据帧, 并在构建完数据帧之后计算在物理层进行传输的数据包的传输参 数, 接着, 将用于物理层传输的传输参数和数据帧发送给物理层, 在物理层 根据该传输参数将数据包发送给目标设备。 具体可以执行上述实施例的步骤 101、 步骤 102、 步骤 103。  In this embodiment, if the target device upgrade is required, after the target device upgrade is performed, or if the target device upgrade is not required, after the media access control layer receives the data frame sent from the application layer, the power line carrier communication The device may construct a data frame sent from the medium access control layer to the physical layer, and calculate a transmission parameter of the data packet transmitted at the physical layer after the data frame is constructed, and then transmit parameters and data frames for the physical layer transmission. Sent to the physical layer, and the physical layer sends the data packet to the target device according to the transmission parameter. Specifically, step 101, step 102, and step 103 of the foregoing embodiment may be performed.
在步骤 103、 通过电力线将该数据包发送给目标设备之后, 若电力线载 波通信装置接收到的目标设备的响应消息中携带的误包率超过预设值时, 则 确定为需要对该电力线的信道质量进行测量, 以获取该电力线的信道质量, 同时, 将获取的信道质量发送至介质访问控制层, 其中, 对电力线的信道质 量进行测量可以发送测量命令, 以获得关于信道质量的测量结果。  After the data packet is sent to the target device by the power line, if the error packet carried in the response message of the target device received by the power line carrier communication device exceeds a preset value, it is determined that the channel needs to be the power line. The quality is measured to obtain the channel quality of the power line, and at the same time, the acquired channel quality is transmitted to the medium access control layer, wherein measuring the channel quality of the power line may send a measurement command to obtain a measurement result regarding the channel quality.
电力线载波通信装置可以在介质访问控制层中根据测量结果, 即当前该 电力线的信道质量, 确定在电力线中进行数据包传输的传输参数。 例如, 电 力线载波通信装置可以根据测量结果, 即信噪比 SNR结果更改传输参数, 具 体可以选择可用子载波、 调整循环前缀的长度或最佳段落长度, 从而对数据 包的分割、 传输带宽和传输速率进行实时的调整, 以适应信道变化。  The power line carrier communication device may determine a transmission parameter for data packet transmission in the power line based on the measurement result, that is, the channel quality of the current power line, in the medium access control layer. For example, the power line carrier communication device may change the transmission parameter according to the measurement result, that is, the signal to noise ratio SNR result, and specifically may select available subcarriers, adjust the length of the cyclic prefix or the optimal paragraph length, thereby dividing the data packet, transmitting bandwidth, and transmitting. The rate is adjusted in real time to accommodate channel changes.
需要说明的是, 根据控制信号确定工作模式之后, 即工作模式为主站 模式的情况下, 在电力线进行数据包传输时, 电力线载波通信装置可以通 过至少两种方式来更改现在正在执行的工作模式。  It should be noted that, after the working mode is determined according to the control signal, that is, when the working mode is the master mode, when the power line transmits the data packet, the power line carrier communication device can change the working mode that is currently being executed in at least two ways. .
第一种方式, 电力线载波通信装置可以通过串行通信接口或其它通信 接口的中断处理程序, 确定是否对工作模式进行切换, 例如, 将正在执行的 主站模式切换为升级模式, 或者, 主站模式切换为测试模式等。 需要说明的 是, 本实施例可以根据串行接口或其它接口确定是否切换工作模式, 其中, 该第一工作模式为与现在正在进行的工作模式不同的工作模式; 若是, 则 将工作模式切换为第一工作模式; 若否, 则继续执行当前的工作模式, 在此 实施例中, 询问工作模式的周期和每次询问维持的时间可以由本领域技术 人员根据实际情况具体设置。 In the first way, the power line carrier communication device can communicate via a serial communication interface or other communication The interrupt handler of the interface determines whether to switch the working mode, for example, switching the executing master mode to the upgrade mode, or switching the master mode to the test mode. It should be noted that, in this embodiment, whether to switch the working mode according to the serial interface or other interfaces may be determined, where the first working mode is a working mode different from the working mode currently in progress; if yes, the working mode is switched to The first working mode; if not, the current working mode is continued. In this embodiment, the period of the inquiry working mode and the time of each inquiry maintenance can be specifically set by a person skilled in the art according to actual conditions.
第二种方式, 电力线载波通信装置可以根据在电力线中传输的数据包 确定是否切换工作模式, 其中, 数据包中携带有工作模式传输参数, 该第 一工作模式为与现在正在进行的工作模式不同的工作模式; 若是, 则进行 工作模式的切换; 若否, 则继续执行当前的工作模式。  In a second mode, the power line carrier communication device can determine whether to switch the working mode according to the data packet transmitted in the power line, where the data packet carries the working mode transmission parameter, and the first working mode is different from the working mode currently in progress. The working mode; if yes, the working mode is switched; if not, the current working mode is continued.
在电力线上进行数据传输的同时,可以通过上述两种方式来更改当前正在 进行的工作模式, 其中, 电力线载波通信装置优先执行通过串行通信接口获 取的控制信号, 即串行通信接口通信中断优先级高于物理层电力线载波通信 中断, 从而可以保证在串行接口或其它接口中断和载波中断同时发生时系统 首先响应串行接口或其它接口中断, 以确保工作模式的选择可以优先进行。  While data transmission is performed on the power line, the current working mode can be changed by the above two methods, wherein the power line carrier communication device preferentially executes the control signal acquired through the serial communication interface, that is, the serial communication interface communication interruption priority The level is higher than the physical layer power line carrier communication interruption, so that the system can first respond to the serial interface or other interface interruption when the serial interface or other interface interruption and carrier interruption occur simultaneously, to ensure that the selection of the working mode can be prioritized.
系统也可通过电力线通信数据判断是否需要进行工作模式的切换,可以在 传输的数据帧中加入工作模式切换字节, 目标设备接收到数据后根据该数据 字节调整工作模式。  The system can also determine whether the working mode is required to be switched through the power line communication data. The working mode switching byte can be added to the transmitted data frame, and the target device adjusts the working mode according to the data byte after receiving the data.
图 7为本发明另一实施例的电力线载波通信方法的流程示意图。 如图 7 所示, 电力线载波通信装置可以根据在应用层获得的控制信号, 确定工作模 式, 若工作模式为从站模式, 具体步骤还可以包括:  FIG. 7 is a schematic flowchart diagram of a power line carrier communication method according to another embodiment of the present invention. As shown in FIG. 7, the power line carrier communication device can determine the working mode according to the control signal obtained at the application layer. If the working mode is the slave mode, the specific steps may further include:
步骤 701、 电力线载波通信装置等待接收其他设备的数据, 接收后在需要 的情况下对数据进行重组并区分是否为主站命令。 若是, 则执行步骤 702, 若否, 则执行步骤 703。  Step 701: The power line carrier communication device waits to receive data of other devices, and after receiving, reassembles the data if necessary and distinguishes whether it is a master station command. If yes, go to step 702. If no, go to step 703.
步骤 702、 读取需要从应用层发送给介质访问控制层的数据。  Step 702: Read data that needs to be sent from the application layer to the medium access control layer.
步骤 703、 确定是上行路由还是下行路由, 并构建相应数据以及对应的路 由数据。  Step 703: Determine whether it is an uplink route or a downlink route, and construct corresponding data and corresponding routing data.
在步骤 702或 703之后, 执行步骤 704。  After step 702 or 703, step 704 is performed.
步骤 704、电力线载波通信装置将上述数据从应用层传输给介质访问控制 层。 Step 704: The power line carrier communication device transmits the foregoing data from the application layer to the medium access control Floor.
本实施例中的步骤 704与上述图 4所示实施例的步骤 402类似,在此不再 赘述。  The step 704 in this embodiment is similar to the step 402 in the embodiment shown in FIG. 4, and details are not described herein again.
步骤 705、 电力线载波通信装置接收目标设备的响应消息, 该响应消息 中携带的误包率超过预设值时, 电力线载波通信装置向目标设备发送测量 命令, 并获得目标设备返回的电力线的信道质量。  Step 705: The power line carrier communication device receives the response message of the target device. When the error packet rate carried in the response message exceeds a preset value, the power line carrier communication device sends a measurement command to the target device, and obtains a channel quality of the power line returned by the target device. .
步骤 706、根据当前电力线的信道质量和电力线中准备传输的数据包大小 进行计算, 获得用于在电力线中进行数据包传输的传输参数。  Step 706: Calculate according to the channel quality of the current power line and the size of the data packet to be transmitted in the power line, and obtain a transmission parameter for performing data packet transmission in the power line.
步骤 707、 载波通信装置根据该传输参数在电力线中传输数据包。  Step 707: The carrier communication device transmits the data packet in the power line according to the transmission parameter.
步骤 705、 706、 707的实施方式与步骤 101、 102、 103的具体实施方式类 似, 在此不再赘述。  The implementation of the steps 705, 706, and 707 is similar to the specific implementation of the steps 101, 102, and 103, and details are not described herein again.
在本实施例中,通过电力线载波通信装置在主站模式和从站模式的选择, 增强了自由改变网络结构的可能, 并且增加了复杂信道情况下系统的适应能 力。  In the present embodiment, the selection of the master station mode and the slave mode by the power line carrier communication apparatus enhances the possibility of freely changing the network structure and increases the adaptability of the system in the case of complex channels.
图 8为本发明一实施例的电力线载波通信装置的示意图。如图 8所示, 本实施例提供的电力线载波通信装置具体可以实现本发明任意实施例提 供的电力线载波通信方法的各个步骤, 在此不再赘述。 该电力线载波通信 装置可以设置在电力线中。  FIG. 8 is a schematic diagram of a power line carrier communication apparatus according to an embodiment of the present invention. As shown in FIG. 8, the power line carrier communication apparatus provided in this embodiment may specifically implement various steps of the power line carrier communication method provided by any embodiment of the present invention, and details are not described herein again. The power line carrier communication device can be placed in the power line.
本实施例提供的电力线载波通信装置具体包括:  The power line carrier communication device provided in this embodiment specifically includes:
获取模块 801, 用于接收的目标设备的响应消息, 该响应消息中携带的 误包率超过预设值时, 电力线载波通信装置向目标设备发送测量命令, 并 获得目标设备返回的电力线的信道质量, 测量命令用以指示测量电力线的 信道质量;  The obtaining module 801 is configured to receive a response message of the target device. When the error packet rate carried in the response message exceeds a preset value, the power line carrier communication device sends a measurement command to the target device, and obtains a channel quality of the power line returned by the target device. The measurement command is used to indicate the channel quality of the measured power line;
处理模块 802,用于根据当前电力线的信道质量和电力线中准备传输的数 据包大小进行计算, 获得用于在电力线中进行数据包传输的传输参数;  The processing module 802 is configured to calculate, according to a channel quality of the current power line and a data packet size to be transmitted in the power line, to obtain a transmission parameter for performing data packet transmission in the power line;
发送模块 803, 用于根据传输参数在电力线中传输数据包。  The sending module 803 is configured to transmit the data packet in the power line according to the transmission parameter.
本发明实施例提供的电力线载波通信装置, 通过电力线载波通信装置 接收目标设备的响应消息, 该响应消息中携带的误包率超过预设值时, 电 力线载波通信装置向目标设备发送测量命令, 并获得目标设备返回的电力 线的信道质量, 该测量命令用以指示测量电力线的信道质量, 电力线载波 通信装置根据当前电力线的信道质量和电力线中准备传输的数据包大小进行 计算, 获得用于在该电力线中进行数据包传输的传输参数, 接着, 根据该传 输参数在该电力线中传输数据包, 从而可以根据当前的信道质量, 实时的对 用于在该电力线中进行数据包传输的传输参数进行调整, 进而提高了信道的 利用率, 并保证了在电力线上进行数据包传输的成功率。 The power line carrier communication device provided by the embodiment of the present invention receives the response message of the target device by using the power line carrier communication device, and when the error packet rate carried in the response message exceeds a preset value, the power line carrier communication device sends a measurement command to the target device, and Obtaining a channel quality of a power line returned by the target device, the measurement command is used to indicate channel quality of the measured power line, the power line carrier The communication device calculates, according to the channel quality of the current power line and the size of the data packet to be transmitted in the power line, obtains a transmission parameter for performing packet transmission in the power line, and then transmits the data packet in the power line according to the transmission parameter, thereby According to the current channel quality, the transmission parameters for data packet transmission in the power line can be adjusted in real time, thereby improving the channel utilization rate and ensuring the success rate of data packet transmission on the power line.
进一步的, 向目标设备发送测量命令, 以获得目标设备返回的电力线 的信道质量可以在物理层执行;  Further, sending a measurement command to the target device to obtain a channel quality of the power line returned by the target device may be performed at the physical layer;
根据当前电力线的信道质量和准备在电力线中传输的数据包大小进行计 算在介质访问控制层执行;  Calculated at the medium access control layer according to the channel quality of the current power line and the size of the data packet to be transmitted in the power line;
根据传输参数在电力线中传输数据包在物理层执行。  The transmission of data packets in the power line according to the transmission parameters is performed at the physical layer.
进一步的, 介质访问控制层向物理层发送数据帧, 其中, 该数据帧的帧 头信息中包含有传输参数。  Further, the medium access control layer sends a data frame to the physical layer, where the frame header information of the data frame includes a transmission parameter.
获取模块 801, 还用于获取上位机从串行通信接口或电力线发送的控制 信号, 并根据控制信号确定工作模式, 工作模式包括: 主站模式、 从站模式、 测试模式或升级模式。  The obtaining module 801 is further configured to obtain a control signal sent by the host computer from the serial communication interface or the power line, and determine an operating mode according to the control signal, and the working mode includes: a master mode, a slave mode, a test mode, or an upgrade mode.
处理模块 802, 还用于根据控制信号中携带的工作模式参数确定工作模 式。  The processing module 802 is further configured to determine a working mode according to the working mode parameter carried in the control signal.
处理模块 802, 还用于根据从串行通信接口或从电力线中获取的控制信 号确定是否切换工作模式。  The processing module 802 is further configured to determine whether to switch the operating mode based on a control signal obtained from the serial communication interface or from the power line.
需要说明的是, 电力线载波通信装置优先执行通过串行通信接口获取的 控制信号。  It should be noted that the power line carrier communication device preferentially executes the control signal acquired through the serial communication interface.
传输参数包括: 调制方式、 子载波选择、 帧的重复次数或循环前缀的长 度的其中任一或组合。  The transmission parameters include: any one or combination of modulation mode, subcarrier selection, number of repetitions of the frame, or length of the cyclic prefix.
进一步的, 处理模块, 具体可以用于若信道传播的路径数大于第一阈值 时, 增加循环前缀的长度; 若信道的噪声大于第二阈值时, 增加帧的重复次 数; 若信道的噪声阴影效应在任一频点的干扰超过第三阈值时, 对子载波进 行调整。  Further, the processing module may be specifically configured to: if the number of paths of the channel propagation is greater than the first threshold, increase the length of the cyclic prefix; if the noise of the channel is greater than the second threshold, increase the number of repetitions of the frame; if the noise shadow effect of the channel The subcarriers are adjusted when the interference at any frequency exceeds the third threshold.
本实施例的执行方法及效果与上述实施例的方法及效果类似, 在此不再 赘述。  The execution method and effect of the embodiment are similar to those of the foregoing embodiment, and are not described herein again.
本领域普通技术人员可以理解: 实现上述各方法实施例的全部或部分 步骤可以通过程序指令相关的硬件来完成。 前述的程序可以存储于一计算 机可读取存储介质中。 该程序在执行时, 执行包括上述各方法实施例的步 骤; 而前述的存储介质包括: ROM、 RAM, 磁碟或者光盘等各种可以存 储程序代码的介质。 One of ordinary skill in the art can understand that all or part of the above method embodiments are implemented. The steps can be completed by the hardware associated with the program instructions. The aforementioned program can be stored in a computer readable storage medium. When the program is executed, the steps including the foregoing method embodiments are performed; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
最后应说明的是: 以上各实施例仅用以说明本发明的技术方案, 而非 对其限制; 尽管参照前述各实施例对本发明进行了详细的说明, 本领域的 普通技术人员应当理解: 其依然可以对前述各实施例所记载的技术方案进 行修改, 或者对其中部分或者全部技术特征进行等同替换; 而这些修改或 者替换, 并不使相应技术方案的本质脱离本发明各实施例技术方案的范 围。  It should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art The technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present invention. range.

Claims

权 利 要 求 书 claims
1、 一种电力线载波通信方法, 其特征在于, 包括: 1. A power line carrier communication method, characterized by including:
步骤 1、 电力线载波通信装置接收目标设备的响应消息, 所述响应消息 中携带的误包率超过预设值时, 所述电力线载波通信装置向所述目标设备 发送测量命令, 并获得所述目标设备返回的所述电力线的信道质量, 所述 测量命令用以指示测量所述电力线的信道质量; Step 1. The power line carrier communication device receives a response message from the target device. When the packet error rate carried in the response message exceeds a preset value, the power line carrier communication device sends a measurement command to the target device and obtains the target The channel quality of the power line returned by the device, and the measurement command is used to instruct to measure the channel quality of the power line;
步骤 2、所述电力线载波通信装置根据当前所述电力线的信道质量和所述 电力线中准备传输的数据包大小进行计算, 获得用于在所述电力线中进行所 述数据包传输的传输参数; Step 2. The power line carrier communication device calculates based on the current channel quality of the power line and the size of the data packet to be transmitted in the power line, and obtains the transmission parameters for transmitting the data packet in the power line;
步骤 3、所述电力线载波通信装置根据所述传输参数在所述电力线中传输 所述数据包。 Step 3. The power line carrier communication device transmits the data packet in the power line according to the transmission parameters.
2、 根据权利要求 1所述的电力线载波通信方法, 其特征在于, 所述电 力线载波通信装置跨层设置在应用层、 介质访问控制层和物理层上, 且通 过物理层执行所述步骤 1和所述步骤 3, 通过介质访问控制层执行所述步 骤 2。 2. The power line carrier communication method according to claim 1, characterized in that the power line carrier communication device is cross-layered on the application layer, the medium access control layer and the physical layer, and the steps 1 and 1 are performed through the physical layer. The step 3 is performed through the media access control layer.
3、 根据权利要求 2 所述的电力线载波通信方法, 其特征在于, 在执行 所述步骤 3之前, 还包括: 3. The power line carrier communication method according to claim 2, characterized in that, before performing step 3, it further includes:
所述介质访问控制层向所述物理层发送数据帧, 所述数据帧的帧头信息 中包含所述传输参数。 The medium access control layer sends a data frame to the physical layer, and the frame header information of the data frame includes the transmission parameter.
4、根据权利要求 1-3任一项所述的电力线载波通信方法,其特征在于, 所述获得用于在所述电力线中进行所述数据包传输的传输参数之前,还包括: 所述电力线载波通信装置获取上位机从串行通信接口或电力线发送的控 制信号; 4. The power line carrier communication method according to any one of claims 1 to 3, characterized in that, before obtaining the transmission parameters for transmitting the data packet in the power line, it further includes: the power line The carrier communication device obtains the control signal sent by the host computer from the serial communication interface or power line;
所述电力线载波通信装置根据所述控制信号确定工作模式, 所述工作模 式包括: 主站模式、 从站模式、 测试模式或升级模式; 且在所述工作模式为 主站模式时, 执行所述步骤 2和所述步骤 3。 The power line carrier communication device determines a working mode according to the control signal, and the working mode includes: master station mode, slave station mode, test mode or upgrade mode; and when the working mode is the master station mode, execute the Step 2 and Step 3.
5、 根据权利要求 4所述的电力线载波通信方法, 其特征在于, 所述电 力线载波通信装置优先执行通过所述串行通信接口获取的所述控制信号。 5. The power line carrier communication method according to claim 4, wherein the power line carrier communication device preferentially executes the control signal obtained through the serial communication interface.
6、 根据权利要求 5所述的电力线载波通信方法, 其特征在于, 所述电 力线载波通信装置根据所述控制信号确定工作模式之后, 还包括: 电力线载波通信装置根据从所述串行通信接口或所述电力线获取的所述 控制信号确定是否切换所述工作模式。 6. The power line carrier communication method according to claim 5, characterized in that, after the power line carrier communication device determines the working mode according to the control signal, it further includes: The power line carrier communication device determines whether to switch the operating mode according to the control signal obtained from the serial communication interface or the power line.
7、 根据权利要求 6 所述的电力线载波通信方法, 其特征在于, 所述传 输参数包括: 调制方式、 子载波选择、 帧的重复次数或循环前缀的长度的其 中任一或其组合。 7. The power line carrier communication method according to claim 6, wherein the transmission parameters include: any one or a combination of modulation mode, subcarrier selection, number of frame repetitions or length of cyclic prefix.
8、 根据权利要求 7所述的电力线载波通信方法, 其特征在于, 所述电力 线载波通信装置根据当前所述电力线的信道质量和准备在所述电力线传输的 数据包大小进行计算, 获得用于在所述电力线中进行所述数据包传输的传输 参数, 包括: 8. The power line carrier communication method according to claim 7, characterized in that, the power line carrier communication device calculates based on the current channel quality of the power line and the size of the data packet to be transmitted on the power line to obtain the The transmission parameters for the data packet transmission in the power line include:
若所述信道传播的路径数大于第一阈值时, 增加循环前缀的长度; 若所述信道的噪声大于第二阈值时, 增加帧的重复次数; If the number of paths propagated by the channel is greater than the first threshold, increase the length of the cyclic prefix; if the noise of the channel is greater than the second threshold, increase the number of frame repetitions;
若所述信道的噪声阴影效应在任一频点的干扰超过第三阈值时, 对子载 波进行调整。 If the noise shadow effect of the channel exceeds the third threshold at any frequency point, the subcarriers are adjusted.
9、 一种电力线载波通信装置, 其特征在于, 包括: 9. A power line carrier communication device, characterized by including:
获取模块, 用于接收目标设备的响应消息, 所述响应消息中携带的误 包率超过预设值时, 向所述目标设备发送测量命令, 并获得所述目标设备 返回的所述电力线的信道质量, 所述测量命令用以指示测量所述电力线的 信道质量; An acquisition module configured to receive a response message from a target device, and when the packet error rate carried in the response message exceeds a preset value, send a measurement command to the target device, and obtain the channel of the power line returned by the target device. Quality, the measurement command is used to instruct to measure the channel quality of the power line;
处理模块, 用于根据当前所述电力线的信道质量和所述电力线中准备传 输的数据包大小进行计算, 获得用于在所述电力线中进行所述数据包传输的 传输参数; A processing module configured to perform calculations based on the current channel quality of the power line and the size of the data packet to be transmitted in the power line, and obtain transmission parameters for transmitting the data packet in the power line;
发送模块, 用于根据所述传输参数在所述电力线中传输所述数据包。 A sending module, configured to transmit the data packet in the power line according to the transmission parameter.
10、 根据权利要求 9所述的电力线载波通信装置, 其特征在于, 所述 向所述目标设备发送测量命令, 以获得所述目标设备返回的所述电力线的 信道质量在物理层执行; 10. The power line carrier communication device according to claim 9, wherein the sending a measurement command to the target device to obtain the channel quality of the power line returned by the target device is performed at the physical layer;
所述根据当前所述电力线的信道质量和准备在所述电力线中传输的数据 包大小进行计算在介质访问控制层执行; The calculation is performed at the media access control layer based on the current channel quality of the power line and the size of the data packet to be transmitted in the power line;
所述根据所述传输参数在所述电力线中传输所述数据包在物理层执行。 The transmission of the data packet in the power line according to the transmission parameters is performed at the physical layer.
11、 根据权利要求 10所述的电力线载波通信装置, 其特征在于, 所述 介质访问控制层向所述物理层发送数据帧, 所述数据帧的帧头信息中包含有 所述传输参数。 11. The power line carrier communication device according to claim 10, wherein the medium access control layer sends a data frame to the physical layer, and the frame header information of the data frame contains The transmission parameters.
12、根据权利要求 9-11任一项所述的电力线载波通信装置,其特征在 于, 所述获取模块, 还用于获取上位机从串行通信接口或电力线发送的控 制信号, 并根据所述控制信号确定工作模式, 所述工作模式包括: 主站模 式、 从站模式、 测试模式或升级模式。 12. The power line carrier communication device according to any one of claims 9 to 11, characterized in that the acquisition module is also used to acquire the control signal sent by the host computer from the serial communication interface or the power line, and according to the The control signal determines the working mode, and the working mode includes: master mode, slave mode, test mode or upgrade mode.
13、 根据权利要求 12所述的电力线载波通信装置, 其特征在于, 优先 执行通过所述串行通信接口获取的所述控制信号。 13. The power line carrier communication device according to claim 12, wherein the control signal obtained through the serial communication interface is executed with priority.
14、 根据权利要求 13所述的电力线载波通信装置, 其特征在于, 所述 处理模块, 还用于根据从所述串行通信接口或所述电力线获取的所述控制信 号确定是否切换所述工作模式。 14. The power line carrier communication device according to claim 13, wherein the processing module is further configured to determine whether to switch the operation based on the control signal obtained from the serial communication interface or the power line. model.
15、 根据权利要求 14所述的电力线载波通信装置, 其特征在于, 所述传 输参数包括: 调制方式、 子载波选择、 帧的重复次数或循环前缀的长度的其 中任一或组合。 15. The power line carrier communication device according to claim 14, wherein the transmission parameters include: any one or a combination of modulation mode, subcarrier selection, number of frame repetitions or length of cyclic prefix.
16、 根据权利要求 15所述的电力线载波通信装置, 其特征在于, 所述处 理模块, 具体用于若所述信道传播的路径数大于第一阈值时, 增加循环前缀 的长度; 若所述信道的噪声大于第二阈值时, 增加帧的重复次数; 若所述信 道的噪声阴影效应在任一频点的干扰超过第三阈值时, 对子载波进行调整。 16. The power line carrier communication device according to claim 15, wherein the processing module is specifically configured to increase the length of the cyclic prefix if the number of paths propagated by the channel is greater than the first threshold; if the channel When the noise of is greater than the second threshold, increase the number of frame repetitions; if the interference of the noise shadow effect of the channel at any frequency point exceeds the third threshold, adjust the subcarriers.
PCT/CN2014/070109 2013-05-08 2014-01-03 Power line carrier communication method and apparatus WO2014180170A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310167189.9 2013-05-08
CN201310167189.9A CN104143999B (en) 2013-05-08 2013-05-08 Power-line carrier communication method and device

Publications (1)

Publication Number Publication Date
WO2014180170A1 true WO2014180170A1 (en) 2014-11-13

Family

ID=51853077

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/070109 WO2014180170A1 (en) 2013-05-08 2014-01-03 Power line carrier communication method and apparatus

Country Status (2)

Country Link
CN (1) CN104143999B (en)
WO (1) WO2014180170A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106487421B (en) * 2015-08-31 2019-05-31 上海东软载波微电子有限公司 Power line carrier communication test macro and its test method
CN106685482B (en) * 2017-02-24 2020-02-14 北京智芯微电子科技有限公司 Power line carrier communication method, device and system with dynamically adjustable speed
CN109039528A (en) * 2017-06-08 2018-12-18 袁兵 The communication means of flight control panel and host computer
CN107682047B (en) * 2017-10-12 2021-06-25 国网湖南省电力公司 Channel-aware medium-voltage power line communication data transmission method
CN108541055B (en) * 2018-03-02 2019-09-20 珠海格力电器股份有限公司 Power regulating method and device, the power regulating method based on power line carrier
CN110190935A (en) * 2019-06-18 2019-08-30 王涛 A kind of transmission method and device of mobile car networking and the anti-interference decaying in cloud
CN110768695B (en) * 2019-10-15 2021-12-17 青岛海信日立空调系统有限公司 Transmission power configuration method, head end equipment, electrical system and chip
CN115580516A (en) * 2021-06-21 2023-01-06 中兴通讯股份有限公司 Signal processing method, receiving end, transmitting end and storage medium
CN113438253B (en) * 2021-07-20 2022-03-25 哈尔滨工业大学 Adaptive firewall system for power line carrier communication

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006126738A1 (en) * 2005-05-26 2006-11-30 Matsushita Electric Industrial Co., Ltd. Communication apparatus, integrated circuit and communication method
CN101814935A (en) * 2009-02-25 2010-08-25 谢炜 Self-adaptive modulator in power line communication system
CN102594406A (en) * 2012-02-17 2012-07-18 钜泉光电科技(上海)股份有限公司 Power line carrier communication system and communication method
CN102946260A (en) * 2012-12-04 2013-02-27 湖南大学 Automatic meter reading system and communication link quality detecting method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006126738A1 (en) * 2005-05-26 2006-11-30 Matsushita Electric Industrial Co., Ltd. Communication apparatus, integrated circuit and communication method
CN101814935A (en) * 2009-02-25 2010-08-25 谢炜 Self-adaptive modulator in power line communication system
CN102594406A (en) * 2012-02-17 2012-07-18 钜泉光电科技(上海)股份有限公司 Power line carrier communication system and communication method
CN102946260A (en) * 2012-12-04 2013-02-27 湖南大学 Automatic meter reading system and communication link quality detecting method thereof

Also Published As

Publication number Publication date
CN104143999A (en) 2014-11-12
CN104143999B (en) 2016-09-21

Similar Documents

Publication Publication Date Title
WO2014180170A1 (en) Power line carrier communication method and apparatus
KR101299874B1 (en) Pseudo wires for mobility management
US9883541B2 (en) Communication switching and establishing method and device
JP2009515487A5 (en)
KR101527825B1 (en) Transmit power control information and power control method, system and device
JP2020510383A5 (en)
WO2010105398A1 (en) Method, equipment and network device for controlling power
WO2015180170A1 (en) Transmit power control method and device in d2d communication
JPWO2019161008A5 (en)
JP2017532911A (en) Method and apparatus for uplink power control in a multi-user unlicensed wireless network
RU2019128270A (en) DATA TRANSMISSION METHOD, COMMUNICATION DEVICE, TERMINAL DEVICE AND BASE STATION
WO2018082012A1 (en) Method and device for sending rrc message
US20100039982A1 (en) Wireless Communication Device, Communication System, Communication Control Method, and Program
JP2022087113A (en) Method and device for identifying information domain value in dci
US20230147845A1 (en) Preventing / mitigating packet loss in iab systems
TW200937895A (en) Wireless communication control method and radio terminal
WO2016082647A1 (en) Method and apparatus for determining transmission power
KR20210138767A (en) Logical Channel Prioritization for Preemption
WO2014205630A1 (en) Method, device, and system for radio communications
CN113647181A (en) Multiple grant handling in hybrid service scenarios
WO2020085969A1 (en) Methods for handling link failures in integrated access backhaul (iab) networks
WO2015018354A1 (en) Antenna calibrating method and device
CN114731624A (en) Transmission scheduling in a wireless communication network
WO2017157306A1 (en) Distance measurement method using wireless fidelity (wi-fi), related device, and system
WO2014121442A1 (en) Method for allocating communication resources, base station and user equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14794437

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14794437

Country of ref document: EP

Kind code of ref document: A1