WO2013000201A1 - 一种通信接口的多速率自适应方法及系统 - Google Patents

一种通信接口的多速率自适应方法及系统 Download PDF

Info

Publication number
WO2013000201A1
WO2013000201A1 PCT/CN2011/079660 CN2011079660W WO2013000201A1 WO 2013000201 A1 WO2013000201 A1 WO 2013000201A1 CN 2011079660 W CN2011079660 W CN 2011079660W WO 2013000201 A1 WO2013000201 A1 WO 2013000201A1
Authority
WO
WIPO (PCT)
Prior art keywords
rate
interface
master device
slave device
slave
Prior art date
Application number
PCT/CN2011/079660
Other languages
English (en)
French (fr)
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 WO2013000201A1 publication Critical patent/WO2013000201A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • H04L5/14Two-way operation using the same type of signal, i.e. duplex
    • H04L5/1438Negotiation of transmission parameters prior to communication
    • H04L5/1446Negotiation of transmission parameters prior to communication of transmission speed

Definitions

  • the present invention belongs to the field of communication interface technologies, and in particular, to a multi-rate adaptive method and system for a communication interface between a master device and a slave device. Background technique
  • the technical problem to be solved by the present invention is to provide a multi-rate adaptive method and system for a communication interface in view of the above-mentioned drawbacks of the prior art.
  • the technical solution adopted by the present invention is a multi-rate adaptive method for a communication interface, the method comprising: detecting a synchronization state of an interface between a master device and a slave device; detecting that the master device and the slave device are in an asynchronous state
  • the interface rate adaptation process is started, and the master device and the slave device sequentially try various preset rates; until the interface rates between the master device and the slave device are consistent, the interface rate adaptation process is completed.
  • the master device and the slave device try a rate, configure the parameters of the rate to be set.
  • the current parameters of the standby interface are used to determine the synchronization status between the interface of the device.
  • the rate matching failure counter is automatically incremented by 1 each time a rate matching is attempted between the master device and the slave device, and the matching is unsuccessful; If the match is successful, the rate match attempt is exited.
  • the master device and the slave device output a result of the matching failure to the background.
  • the master device and the slave device output the matching failure result to the background, wait for the background restart rate matching command.
  • the restart rate matching command is received, the rate adaptation process is restarted between the master device and the slave device.
  • the interface synchronizes the state between the master device and the slave device, and when the master device and the slave device are detected to be in an asynchronous state, Then, the interface rate adaptation process is started.
  • the synchronization state of the interface between the master device and the slave device is determined by a flag register.
  • the flag register value is "true”, it indicates that the interface rates of the master device and the slave device are consistent, when the flag register value is When "false”, it indicates that the interface rates of the master device and the slave device are inconsistent.
  • the interface between the master device and the slave device is first matched with the parameter configuring the default interface rate when the master device and the slave device are powered on.
  • the master device and the slave device perform a switching, and the original master device is converted into a slave device, and the original slave device is converted into a master device. , the rate adaptation process initiated by the new master device and the slave device.
  • the invention also provides a multi-rate adaptive system for communication interface, which is suitable for including a main a communication system between the device and the plurality of slave devices, further comprising:
  • a synchronization state detecting device configured to detect a synchronization state of an interface between the master device and the slave device to determine whether the interface rate of the master device and the slave device is consistent
  • the adaptive rate matching device is configured to sequentially try the preset rates of the master device and the slave device until the interface rates between the master device and the slave device are consistent, and complete the interface rate adaptation process.
  • the invention has the beneficial effects that: intelligent docking and data transmission of multiple interface rates between the master device and the slave device of the communication system are realized, in particular, the dynamic reconfiguration principle is utilized to enable the device to be powered down.
  • the slave device can automatically adapt to the master device rate, or when the master device and the slave device are connected to each other, the peer device rate can be automatically adapted to each other, which greatly reduces the user's speed. Maintenance workload.
  • the method of the present invention determines whether the interface rate of the master device is consistent with the interface rate of the slave device by cyclically detecting the synchronization state of the master device and the slave device, thereby determining whether the rate adaptation process needs to be started according to the result of the detection until the master device
  • the interface rate is consistent with the interface rate of the slave device, so that the interface rate of the slave device can automatically adapt to the interface rate of the master device, or the master device and the slave device can automatically adapt to each other's interface device rate without Knowing the rate of the peer device interface in advance does not require manual configuration.
  • FIG. 1 is a schematic diagram of connection between a master device and a slave device in an embodiment of the present invention
  • FIG. 2 is a schematic diagram showing a connection between a master device and a slave device connected in a cascade manner in an embodiment of the present invention
  • FIG. 3 is a flow chart of adaptive rate matching in an embodiment of the present invention (taking three rates as an example;);
  • FIG. 1 is a schematic diagram of a connection between a master device and a slave device in an embodiment of the present invention.
  • the multi-rate adaptive system of the communication interface of the present invention is applicable to include a master device 1 and several
  • the communication system between the slave devices 2 further includes:
  • the synchronization state detecting device 12, (22,) is configured to detect the synchronization state of the interface between the master device 1 and the slave device 2 to determine whether the interface rates of the master device 1 and the slave device 2 are consistent;
  • the adaptive rate matching device 11, (21') is used to sequentially match the parameters of the N rates preset between the master device 1 and the slave device 2 until the interface rates of the master device 1 and the slave device 2 are consistent. So far, where N is a natural number greater than one.
  • FIG. 2 is a schematic diagram of a connection between a master device and a slave device in a cascade mode according to an embodiment of the present invention.
  • the master device 1 provides two The interface is divided into a master interface and a slave interface.
  • the slave device also provides two interfaces, which are divided into a master interface and a slave interface.
  • the master device 1 master interface is connected to the slave interface of the first slave device 2 ( 1 ), and the master device 1 slave interface. Connected to the master interface of the last slave 2 ( n ), in the case where one of the slaves 2 (x) is disconnected, the slave 2 (nl) that has been disconnected since the slave 2 (x) is automatically When the switchover occurs, the original slave interface of device 2 (nl) is switched to the master interface, and the original master interface is switched to the slave interface, which automatically adapts to the slave interface of the master device, thereby maintaining the original chain shape before the disconnected slave node. Link, disconnected After the slave node, another chain cascade link is formed.
  • the main idea is to detect the synchronization status of the interface between the master device and the slave device to determine whether the interface rate of the master device is the interface speed with the slave device. The rate is consistent. If yes, the process ends; otherwise, the master device and the slave device sequentially try to match the preset N rate parameters until the interface rate of the master device and the interface rate of the slave device are consistent.
  • N is a natural number greater than 1, and the value of N depends on the requirements of the device interface.
  • Step 1 Power on the master and slave.
  • Step 2 Configure parameters for the default interface rate.
  • Step 3 Determine whether the interface rate is synchronized with the rate of the peer device interface. If the synchronization is successful, the default interface rate and the peer device interface rate are matched. The adaptive process does not need to be started, and the process continues to loop to detect the synchronization state. If it is not synchronized, go to step 4.
  • Step 4 Clear the number of adaptive unsuccessful times, then start the adaptive process, and start to try various rate configurations in turn.
  • the three rates are taken as an example.
  • the actual situation can be N, N is a natural number greater than 1. ).
  • Step 5 Configure the parameters of the first rate
  • Step 6 Determine the synchronization status of the interface.
  • step 7 if the synchronization status is normal, it means that the interface rate with the peer device has reached the synchronization, then jump back to step 3, otherwise go to step 7.
  • Step 7 Configure parameters for the second rate.
  • the configuration method is the same as step 5.
  • Step 8 Determine the synchronization status of the interface
  • step 9 if the synchronization status is normal, it means that the interface rate with the peer device has reached the synchronization, then jump back to step 3, otherwise go to step 9.
  • Step 9 Configure parameters for the third rate.
  • the configuration method is the same as step 5.
  • Step 10 Determine the synchronization status of the interface.
  • step 11 if the synchronization status is normal, the interface rate with the peer device has reached the same level. Step, then jump back to step 3, otherwise it means that this adaptation is unsuccessful, go to step 11.
  • Step 11 Determine whether the number of adaptive unsuccessful times exceeds the set value. If the set value is not exceeded, proceed to step 13; if the number of adaptive unsuccessful times exceeds the set value, exit the loop and proceed to step 12.
  • Step 12 The number of adaptive unsuccessful times is increased by 1. After a certain time delay, jump to the start of the adaptive process to restart the adaptive process (ie, proceed to step 5).
  • Step 13 Output an adaptive unsuccessful result to the system or directly to the user, and proceed to step 14.
  • Step 14 Detect whether the user receives the command to restart the adaptive process. If the user does not receive the command and waits for the result of the unsuccessful adaptation, the process proceeds to step 4 to start the start of the adaptive process. The number of adaptive unsuccessful times is cleared, and the adaptive process is started.
  • the synchronization status of the interface between the master device and the slave device is determined by the flag register.
  • the flag register When the value of the flag register is "true”, it indicates that the interface rate of the master device and the interface rate of the slave device are consistent.
  • the register value When the register value is "false”, it indicates that the interface rate of the master device is inconsistent with the interface rate of the slave device.
  • the rate matching counter is automatically incremented by 1 each time a rate match is attempted between the master device and the slave device.
  • Figure 4 is a dynamic reconfiguration flowchart. The specific process is as follows:
  • Step 1 Open the enable signal DEN ( Dynamic Enable ) of the dynamic configuration interface.
  • Step 2 Determine whether the number of parameters to be configured is 0. If 0 indicates that the dynamic configuration has been completed, go to step 11. If not, go to step 3.
  • Step 3 Turn on the write enable signal DWE (Dynamic Write Enable).
  • Step 4. Write the address of the parameter to be configured.
  • Step 5 Write the parameter data.
  • Step 6 Check if the DRDY (Data Ready) signal is valid (here the detection is invalid) Effective jump), if the valid indicates that the parameter has been effectively written, the DRDY signal will be valid for a period of time. At this time, the write operation cannot be performed, but the read operation can be performed. The parameter to be read can be read to check whether it is correct.
  • DRDY Data Ready
  • Step 7 Turn off the write enable signal DWE.
  • Step 8 Read the parameter values assigned.
  • Step 9 Check whether the DRDY signal is valid. When the DRDY signal is invalid (here, the detection is from valid to invalid), go to step 10.
  • Step 10 The value of the parameter to be configured is decremented by 1, and then jump to step 2. Determine whether the parameter quantity to be configured is 0. If not 0, the next parameter can be configured to configure the second parameter.
  • the method sequentially configures a set of interface rate parameters, and resets the interface of the device after the configuration is completed.
  • the reset also includes four parts in sequence: the entire interface resets -> the digital part of the transmit channel is reset -> the analog part of the receive channel is reset -> The digital portion of the receiving channel is reset.
  • the high-speed communication interface serdes serial and deserial
  • the reset process needs to go through these four steps in sequence. After the reset is completed, the dynamic configuration completion signal is given and the entire dynamic reconfiguration process ends.
  • Step 11 Reset the entire interface.
  • Step 12. Reset the digital part of the transmit channel.
  • Step 13 Reset the analog portion of the receive channel.
  • Step 14 The digital part of the receiving channel is reset.
  • Step 15 The reset completes to give the dynamic configuration completion signal, and then ends the dynamic configuration operation.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Communication Control (AREA)

Abstract

本发明公开了一种通信接口的多速率自适应方法及系统,该方法包括:检测主设备和从设备之间接口的同步状态,当检测到主设备和从设备处于非同步状态时,则启动接口速率自适应流程,主设备和从设备依次尝试预先设置的各种速率,直至主设备和从设备之间的接口速率一致,完成接口速率自适应流程。通过本方案,实现了在通信系统的主设备和从设备之间的多种接口速率的智能化对接和数据传输,尤其是利用了动态重配置原理使得能够在不掉电的情况下在主设备速率变化时从设备能自动地适应主设备速率,或者在主设备和从设备连接时互相都不知道对端设备速率时,能互相自动地适应对端设备速率,大大减少了用户的维护工作量。

Description

一种通信接口的多速率自适应方法及系统 技术领域
本发明属于通信接口技术领域, 更具体地, 涉及一种主设备和从设备 之间通信接口的多速率自适应方法及系统。 背景技术
近年来, 随着通信系统设备间传输数据的带宽容量越来越大和越来越 灵活, 通信系统的设备间的接口速率不再是原来的固定速率, 而是上升到 更高的速率, 甚至是需要实现多种速率的通信, 在这种情况下, 按照现有 的方法就需要在设备间为每种速率配置一个软件版本, 而且接口速率一旦 固定如果需要修改速率就必须升级版本, 这样就大大增加了维护的工作量, 而且也不利于版本的移植, 设备接口技术的智能化程度低。 发明内容
本发明所要解决的技术问题是针对现有技术存在的上述缺陷 , 提供一 种通信接口的多速率自适应方法及系统。
本发明所采用的技术方案是一种通信接口的多速率自适应方法, 该方 法包括: 检测主设备和从设备之间接口的同步状态; 当检测到所述主设备 和从设备处于非同步状态时, 则启动接口速率自适应流程, 所述主设备和 从设备依次尝试预先设置的各种速率; 直至主设备和从设备之间的接口速 率一致, 完成接口速率自适应流程。
进一步地, 其特征在于, 所述主设备和从设备依次尝试预先设置的各 种速率的方法为:
所述主设备和从设备每尝试一种速率时, 把该种速率的参数配置成设 备接口的当前参数, 再去判断设备接口之间的同步状态。
进一步地, 在所述主设备和从设备依次尝试预先设置的各种速率时, 主设备和从设备之间每尝试一种速率匹配, 并且匹配不成功时, 速率匹配 失败计数器自动加 1; 如果匹配成功, 则退出速率匹配尝试。
进一步地, 当所述的速率匹配失败计数器的值达到预设的数值, 且主 设备和从设备之间接口的速率没有成功匹配时, 主设备和从设备向后台输 出匹配失败的结果。
进一步地, 主设备和从设备向后台输出匹配失败结果后, 等待后台的 重新启动速率匹配命令 , 当收到重新启动速率匹配命令时 , 主设备和从设 备之间重新启动速率自适应流程。
进一步地, 所述主设备和从设备之间的接口速率匹配成功并退出速率 匹配尝试后, 循环检测主设备和从设备之间的接口同步状态, 当检测到主 设备和从设备处于非同步状态时, 则再启动接口速率自适应流程。
进一步地, 所述的主设备和从设备之间接口的同步状态由 flag寄存器 确定, 当 flag寄存器值为 "真" 时, 表示主设备和从设备的接口速率达到 了一致, 当 flag寄存器值为 "假" 时, 表示主设备和从设备的接口速率不 一致。
进一步地, 在所述的检测主设备和从设备之间接口的同步状态之前, 在主设备和从设备上电时主设备和从设备之间的接口首先以配置默认接口 速率的参数进行匹配。
进一步地, 当所述的主设备和从设备之间出现连接故障或者外部中断 要求时, 主设备和从设备之间进行倒换, 原来的主设备转变为从设备, 原 来的从设备转变为主设备, 由新的主设备发起和从设备的接口速率自适应 流程。
本发明还提供一种通信接口的多速率自适应系统, 适用于包括一个主 设备和若干个从设备之间的通信系统, 其进一步包括:
同步状态检测装置, 用于检测主设备和从设备之间接口的同步状态来 判断主设备和从设备的接口速率是否达到了一致;
自适应速率匹配装置, 用于所述主设备和从设备依次尝试预先设置的 各种速率, 直至主设备和从设备之间的接口速率一致, 完成接口速率自适 应流程。
本发明的有益效果是: 实现了在通信系统的主设备和从设备之间的多 种接口速率的智能化对接和数据传输, 尤其是利用了动态重配置原理使得 能够在不掉电的情况下在主设备速率变化时, 从设备能自动地适应主设备 速率, 或者在主设备和从设备连接时互相都不知道对端设备速率时, 能互 相自动地适应对端设备速率, 大大减少了用户的维护工作量。 本发明方法 通过循环检测主设备和从设备的同步状态来判定主设备的接口速率是否和 从设备的接口速率达到了一致, 从而根据检测的结果来确定是否需要启动 速率自适应流程, 直到主设备的接口速率和从设备的接口速率达到了一致, 从而达到从设备的接口速率能够自动与主设备接口速率相适应, 或主设备 和从设备能够互相自动适应对端设备接口速率的效果, 而无需事先知道对 端设备接口的速率, 也无需人工去配置。 附图说明
图 1是本发明实施方案中的主设备和从设备连接示意图;
图 2是本发明实施方案中采用级联方式连接的主设备和从设备连接示 意图;
图 3是本发明实施方案中的自适应速率匹配的流程图 (以三种速率为 例;);
图 4是本发明实施方案中的动态重配置流程图。 具体实施方式
为了使本发明所要解决的技术问题、 技术方案及有益效果更加清楚、 明白, 以下结合附图和实施例, 对本发明进行进一步详细说明。 应当理解, 此处所描述的具体实施例仅仅用以解释本发明, 并不用于限定本发明。
如图 1所示,图 1是本发明实施方案中的主设备和从设备连接示意图, 由图可以看出, 本发明的通信接口的多速率自适应系统, 适用于包括一个 主设备 1和若干个从设备 2之间的通信系统, 进一步包括:
同步状态检测装置 12,( 22,), 用于检测主设备 1和从设备 2之间接口 的同步状态来判断主设备 1和从设备 2的接口速率是否达到了一致;
自适应速率匹配装置 11, ( 21 ' ), 用于主设备 1和从设备 2之间依次尝 试预先设置的 N种速率的参数进行匹配, 直至主设备 1和从设备 2的接口 速率达到了一致为止, 其中, N为大于 1的自然数。
除此之外, 本发明能够在多种通信设备的接口之间实现, 并且能实现 在多个设备级联的情况下, 多个从设备去自动适应主设备接口速率的情况, 级联又包括链形和环形级联的情况, 图 2是本发明实施方案中级联方式的 主设备和从设备连接示意图, 从图中可以看出, 在环形级联的情况下, 主 设备 1 提供两个接口, 分为主接口和从接口, 从设备也提供两个接口, 分 为主接口和从接口, 主设备 1主接口接第一个从设备 2 ( 1 ) 的从接口, 主 设备 1从接口接最后一个从设备 2 ( n ) 的主接口, 在其中的某一个从设备 2(x)断掉的情况下, 断掉的从设备 2(x)之后开始的从设备 2(n-l)都会自动发 生倒换,从设备 2(n-l)原来的从接口转为主接口,原来的主接口转为从接口, 自动地适应主设备的从接口, 从而在断开的从设备节点前保持原来的链形 链路, 在断开的从设备节点后形成另外一条链形级联链路。
对于通信接口的多速率自适应方法来说, 主要思路是检测主设备和从 设备之间接口的同步状态来判断主设备的接口速率是否和从设备的接口速 率达到了一致, 如果是, 则结束流程; 否则, 主设备和从设备之间依次尝 试预先设置的 N种速率的参数进行匹配, 直至主设备的接口速率和从设备 的接口速率达到了一致为止, 其中, N为大于 1 的自然数, N的取值根据 设备接口的需求而定。
详细技术方案如图 3所示, 主要工作流程是:
步驟 1 : 上电启动主设备和从设备。
步驟 2: 配置默认接口速率的参数。
步驟 3: 判断接口速率是否和对端设备接口速率同步上,如果同步上则 表示默认接口速率和对端设备接口速率是匹配的, 不需要启动自适应流程, 流程会一直循环下去检测同步状态, 如果未同步上则进入步驟 4。
步驟 4: 把自适应不成功次数清零, 然后启动自适应流程, 开始依次尝 试各种速率的配置(这里以 3种速率为例, 其实际情况理论上可以是 N, N 为大于 1的自然数)。
步驟 5: 配置第一种速率的参数;
本步驟中, 速率的参数配置通过动态配置接口模块配置进设备接口。 步驟 6: 判断接口的同步状态;
本步驟中, 如果同步状态正常则表示与对端设备接口速率已经达到同 步, 则跳回到步驟 3 , 否则进入步驟 7。
步驟 7: 配置第二种速率的参数, 配置方法同步驟 5。
步驟 8: 判断接口的同步状态;
本步驟中, 如果同步状态正常则表示与对端设备接口速率已经达到同 步, 则跳回到步驟 3 , 否则进入步驟 9。
步驟 9: 配置第三种速率的参数, 配置方法同步驟 5。
步驟 10: 判断接口的同步状态;
本步驟中, 如果同步状态正常则表示与对端设备接口速率已经达到同 步, 则跳回到步驟 3 , 否则表示本次自适应不成功, 进入步驟 11。
步驟 11 : 判断自适应不成功次数是否超过设定的值, 如果未超过设定 的值, 则进入步驟 13; 如果自适应不成功次数超过设定的值则退出该循环, 进入步驟 12。
步驟 12: 自适应不成功次数加 1 , 延时一定的时间后跳转到启动自适 应流程的开始重新开始一次自适应流程 (即进入步驟 5 )。
步驟 13: 向系统或者直接向用户输出自适应不成功的结果, 并进入步 驟 14。
步驟 14: 检测是否收到用户的重新启动自适应流程的命令, 如果未收 到一直等待, 并一直输出自适应不成功的结果, 收到则跳转到步驟 4启动 自适应流程的开始, 把自适应不成功次数清零, 启动自适应流程。
需要补充说明的是: 主设备和从设备之间接口的同步状态由 flag寄存 器确定, 当 flag寄存器值为 "真" 时, 表示主设备的接口速率和从设备的 接口速率达到了一致, 当 flag寄存器值为 "假" 时, 表示主设备的接口速 率和从设备的接口速率不一致。
主设备和从设备之间依次尝试预先设置的 N种速率的参数进行匹配 时, 主设备和从设备之间每尝试一种速率匹配, 速率匹配计数器自动加 1。
如图 4所示, 图 4是动态重配置流程图, 具体流程如下:
步驟 1、 打开动态配置接口的使能信号 DEN ( Dynamic Enable )。
步驟 2、 判断要配置的参数数量是否为 0, 如果为 0表示动态配置已经 完成, 进入步驟 11 , 如不为 0则进入步驟 3。
步驟 3、 打开写使能信号 DWE ( Dynamic Write Enable )。
步驟 4、 写入要配置的参数的地址。
步驟 5、 写入参数数据。
步驟 6、 检测 DRDY ( Data Ready )信号是否有效(这里检测从无效到 有效的跳变), 如果有效表示参数已经有效写进去, DRDY信号会有效持续 一段时间, 这个时候不能进行写操作, 但可以进行读操作, 可以把配进去 的参数读出来检查是否正确。
步驟 7、 关闭写使能信号 DWE。
步驟 8、 读出配入的参数值。
步驟 9、 检测 DRDY信号是否有效, 当 DRDY信号无效后 (这里检测 从有效到无效的跳变 )跳转到步驟 10。
步驟 10、 需要配置的参数数量值减 1 , 再跳转到步驟 2、 判断需要配置 的参数数量值是否为 0,如果不为 0可以进行下一次写操作配置第二个参数, 用这种操作方法依次将一组接口速率参数配置进去, 配置完成后对设备的 接口进行复位, 复位也顺序包括四个部分: 整个接口复位- >发送通道的数 字部分复位- >接收通道的模拟部分复位- >接收通道的数字部分复位,本实施 例是以高速通信接口 serdes ( serial and deserial ) 为例, 复位流程需要顺序 经过这 4步, 复位完成后给出动态配置完成信号整个动态重配置流程结束。
步驟 11、 使整个接口复位。
步驟 12、 发送通道的数字部分复位。
步驟 13、 接收通道的模拟部分复位。
步驟 14、 接收通道的数字部分复位。
步驟 15、 复位完成给出动态配置完成信号, 然后结束本次动态配置操 作。
上述说明示出并描述了本发明的一个优选实施例, 但如前所述, 应当 理解本发明并非局限于本文所披露的形式, 不应看作是对其他实施例的排 除, 而可用于各种其他组合、 修改和环境, 并能够在本文所述发明构想范 围内, 通过上述教导或相关领域的技术或知识进行改动。 而本领域人员所 进行的改动和变化不脱离本发明的精神和范围, 则都应在本发明所附权利 要求的保护范围内。

Claims

权利要求书
1、 一种通信接口的多速率自适应方法, 其特征在于, 包括:
检测主设备和从设备之间接口的同步状态;
当检测到所述主设备和从设备处于非同步状态时, 则启动接口速率自 适应流程, 所述主设备和从设备依次尝试预先设置的各种速率;
直至主设备和从设备之间的接口速率一致, 完成接口速率自适应流程。
2、根据权利要求 1所述的通信接口的多速率自适应方法,其特征在于, 所述主设备和从设备依次尝试预先设置的各种速率的方法为:
所述主设备和从设备每尝试一种速率时, 把该种速率的参数配置成设 备接口的当前参数, 再去判断设备接口之间的同步状态。
3、根据权利要求 1所述的通信接口的多速率自适应方法,其特征在于, 在所述主设备和从设备依次尝试预先设置的各种速率时, 主设备和从设备 之间每尝试一种速率匹配, 并且匹配不成功时, 速率匹配失败计数器自动 加 1 ; 如果匹配成功, 则退出速率匹配尝试。
4、根据权利要求 3所述的通信接口的多速率自适应方法,其特征在于, 当所述的速率匹配失败计数器的值达到预设的数值, 且主设备和从设备之 间接口的速率没有成功匹配时, 主设备和从设备向后台输出匹配失败的结 果。
5、根据权利要求 4所述的通信接口的多速率自适应方法,其特征在于, 主设备和从设备向后台输出匹配失败结果后, 等待后台的重新启动速率匹 配命令, 当收到重新启动速率匹配命令时, 主设备和从设备之间重新启动 速率自适应流程。
6、 根据权利要求 1-3任一项所述的通信接口的多速率自适应方法, 其 特征在于 , 所述主设备和从设备之间的接口速率匹配成功并退出速率匹配 尝试后, 循环检测主设备和从设备之间的接口同步状态, 当检测到主设备 和从设备处于非同步状态时, 则再启动接口速率自适应流程。
7、根据权利要求 1所述的通信接口的多速率自适应方法,其特征在于, 所述的主设备和从设备之间接口的同步状态由 flag寄存器确定, 当 flag寄 存器值为 "真" 时, 表示主设备和从设备的接口速率达到了一致, 当 flag 寄存器值为 "假" 时, 表示主设备和从设备的接口速率不一致。
8、根据权利要求 1所述的通信接口的多速率自适应方法,其特征在于, 在所述的检测主设备和从设备之间接口的同步状态之前, 在主设备和从设 备上电时主设备和从设备之间的接口首先以配置默认接口速率的参数进行 匹配。
9、根据权利要求 1所述的通信接口的多速率自适应方法,其特征在于, 当所述的主设备和从设备之间出现连接故障或者外部中断要求时, 主设备 和从设备之间进行倒换, 原来的主设备转变为从设备, 原来的从设备转变 为主设备, 由新的主设备发起和从设备的接口速率自适应流程。
10、 一种通信接口的多速率自适应系统, 适用于包括一个主设备和若 干个从设备之间的通信系统, 其特征在于, 该系统进一步包括:
同步状态检测装置, 用于检测主设备和从设备之间接口的同步状态来 判断主设备和从设备的接口速率是否达到了一致;
自适应速率匹配装置, 用于所述主设备和从设备依次尝试预先设置的 各种速率, 直至主设备和从设备之间的接口速率一致, 完成接口速率自适 应流程。
11、 根据权利要求 10所述的通信接口的多速率自适应系统, 其特征在 于, 该系统进一步包括 flag寄存器, 用来记录和表征主设备和从设备之间 接口的同步状态。
12、 根据权利要求 10所述的通信接口的多速率自适应系统, 其特征在 于, 该系统进一步包括速率匹配计数器, 用来记录主设备和从设备之间尝 试速率匹配的次数。
PCT/CN2011/079660 2011-06-29 2011-09-15 一种通信接口的多速率自适应方法及系统 WO2013000201A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2011101798829A CN102355321A (zh) 2011-06-29 2011-06-29 一种通信接口的多速率自适应方法及系统
CN201110179882.9 2011-06-29

Publications (1)

Publication Number Publication Date
WO2013000201A1 true WO2013000201A1 (zh) 2013-01-03

Family

ID=45578822

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/079660 WO2013000201A1 (zh) 2011-06-29 2011-09-15 一种通信接口的多速率自适应方法及系统

Country Status (2)

Country Link
CN (1) CN102355321A (zh)
WO (1) WO2013000201A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104038275A (zh) * 2014-06-07 2014-09-10 深圳市共进电子股份有限公司 一种网络设备接口自适应光模块的方法及网络设备
CN108400881A (zh) * 2017-02-08 2018-08-14 阿里巴巴集团控股有限公司 基于状态机的消息引擎动态调整方法、装置及电子设备
CN111579973A (zh) * 2019-02-19 2020-08-25 深圳市汇顶科技股份有限公司 芯片同步测试方法、芯片、电子设备及存储介质

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103391329B (zh) * 2013-07-12 2017-06-20 青岛海信宽带多媒体技术有限公司 一种接口模块及其支持多接口标准的方法
CN106330628B (zh) * 2015-06-29 2020-05-22 中兴通讯股份有限公司 基于以太网的接口速率控制方法及装置
CN108075937A (zh) * 2016-11-16 2018-05-25 深圳市中兴微电子技术有限公司 一种自适应网速匹配方法的方法和装置
CN106951646A (zh) * 2017-03-23 2017-07-14 南方电网科学研究院有限责任公司 一种电力系统实时仿真中的多速率接口方法和装置
CN112636861A (zh) * 2020-12-31 2021-04-09 深圳市英特瑞半导体科技有限公司 一种时钟同步方法、装置、设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1909418A (zh) * 2006-08-01 2007-02-07 华为技术有限公司 通用无线接口的时钟分配装置及实现速率切换的方法
CN101075855A (zh) * 2006-05-19 2007-11-21 深圳迈瑞生物医疗电子股份有限公司 主机与不同外设之间串行通信自适应速率的方法
CN101442781A (zh) * 2007-11-23 2009-05-27 大唐移动通信设备有限公司 远端设备传输速率自适应方法及装置
CN101998675A (zh) * 2009-08-14 2011-03-30 华为技术有限公司 无线设备接入方法、装置和通信系统

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100403822C (zh) * 2005-06-30 2008-07-16 华为技术有限公司 一种速率自适应协商装置及方法
CN101610116B (zh) * 2009-07-17 2012-09-05 深圳市巨联光电技术有限公司 光口自适应以太网光纤收发器及其自适应方法
CN101795200B (zh) * 2010-01-28 2015-05-20 中国电子科技集团公司第五十四研究所 一种多速率pos接口自适应传输方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075855A (zh) * 2006-05-19 2007-11-21 深圳迈瑞生物医疗电子股份有限公司 主机与不同外设之间串行通信自适应速率的方法
CN1909418A (zh) * 2006-08-01 2007-02-07 华为技术有限公司 通用无线接口的时钟分配装置及实现速率切换的方法
CN101442781A (zh) * 2007-11-23 2009-05-27 大唐移动通信设备有限公司 远端设备传输速率自适应方法及装置
CN101998675A (zh) * 2009-08-14 2011-03-30 华为技术有限公司 无线设备接入方法、装置和通信系统

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104038275A (zh) * 2014-06-07 2014-09-10 深圳市共进电子股份有限公司 一种网络设备接口自适应光模块的方法及网络设备
CN108400881A (zh) * 2017-02-08 2018-08-14 阿里巴巴集团控股有限公司 基于状态机的消息引擎动态调整方法、装置及电子设备
CN108400881B (zh) * 2017-02-08 2021-11-05 阿里巴巴集团控股有限公司 基于状态机的消息引擎动态调整方法、装置及电子设备
CN111579973A (zh) * 2019-02-19 2020-08-25 深圳市汇顶科技股份有限公司 芯片同步测试方法、芯片、电子设备及存储介质
CN111579973B (zh) * 2019-02-19 2022-03-08 深圳市汇顶科技股份有限公司 芯片同步测试方法、芯片、电子设备及存储介质

Also Published As

Publication number Publication date
CN102355321A (zh) 2012-02-15

Similar Documents

Publication Publication Date Title
WO2013000201A1 (zh) 一种通信接口的多速率自适应方法及系统
TWI733752B (zh) 用於旁波帶通訊之系統及方法、以及實體非暫時性計算機可讀媒體
CN101989248A (zh) 一种usb设备和usb设备重启的方法
KR20200109931A (ko) 차량 네트워크에서 웨이크업 신호의 송수신을 위한 방법 및 장치
TWI512449B (zh) 用於減少嵌入式系統中耗電量之方法與裝置
WO2014114094A1 (zh) 光口速率自适应的方法和光网络设备
JP2010500228A (ja) 通信システムを起動させる方法、通信媒体とそれに接続されている複数の加入者とを有する通信システム及びこの種の通信システムの加入者
WO2017041069A1 (en) Override subsystems for rapid recovery from serial-link errors
US20170099371A1 (en) Method and apparatus for sas open address frame processing in sas expanders
US20120076139A1 (en) Node, switch, and system
TW202105193A (zh) 積體電路間裝置
TW201731272A (zh) 具有自動從屬選擇產生之串列週邊介面
CN103176931B (zh) 一种改进的dma通信方法及装置
JP3387464B2 (ja) 通信制御システムとその制御方法
US9298370B2 (en) Methods and structure for selective propagation of SAS broadcast (change) primitives
JP2001111567A (ja) ネットワーク制御方法及びその装置
WO2020059054A1 (ja) 通信装置、通信システム、方法、及びプログラム
JP2008022078A (ja) 通信ネットワークシステム及びそのスタートアップ方法
WO2002056547A1 (fr) Système et dispositif d'acheminement par commutation
TWI814454B (zh) 用於同步乙太網路的裝置
JP3593882B2 (ja) 印刷装置及びインターフェース制御方法
JP3996304B2 (ja) 非同期データ通信方法,非同期データ通信装置,及び非同期データ通信システム
TWI689190B (zh) 同步傳輸裝置與同步傳輸方法
WO2009095969A1 (ja) データ転送装置、データ転送システム、及びデータ転送方法
JP2006005646A (ja) ネットワーク通信方法

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: 11868558

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: 11868558

Country of ref document: EP

Kind code of ref document: A1