学者之家电子论坛--打造电子工程师共同致富的平台's Archiver

max 发表于 2009-12-3 13:03

GSM0710协议

英文版[attach]3395[/attach]


------------------------------------
中文翻译版
[b][size=26.0pt]CMUX[/size][/b][b][font=宋体][size=26.0pt]协议文档[/size][/font][/b][size=12.0pt] [/size][size=12.0pt]

[/size][font=宋体]修订情况记录:[/font][table] [tr][td]  [font=宋体]版本号[/font]  [/td][td]  [font=宋体]修订人[/font]  [/td][td=1,1,86]  [font=宋体]修订原因[/font]  [/td][td]  [font=宋体]修订日期[/font]  [/td][td=1,1,60]  [font=宋体]审核[/font]  [/td][td]  [font=宋体]测试[/font]  [/td][td=1,1,96]  [font=宋体]签收[/font]  [/td][/tr][tr][td]  V0.8  [/td][td]  [font=宋体]徐兵林[/font]  [/td][td]  [font=宋体]新建[/font]  [/td][td=1,1,84]  2008-11-4  [/td][td]     [/td][td=1,1,72]     [/td][td]     [/td][/tr][tr][td]  V1.0  [/td][td]  [font=宋体]高金山[/font]  [/td][td=1,1,86]  [font=宋体]完成[/font]  [/td][td]  2009-2-11  [/td][td=1,1,60]     [/td][td]     [/td][td=1,1,96]     [/td][/tr][/table] 
[b][font=宋体][size=16.0pt]目录[/size][/font][/b] [url=#_Toc222626664][b]CMUX[/b][b][font=宋体]协议文档[/font][/b][color=windowtext]
[/color][color=windowtext]1[/color][/url][url=#_Toc222626666][b]1. [/b][b][font=宋体]引言[/font][/b][color=windowtext]
[/color][color=windowtext]4[/color][/url][url=#_Toc222626667][b]1.1. [/b][b][font=宋体]编写目的[/font][/b][color=windowtext]
[/color][color=windowtext]4[/color][/url][url=#_Toc222626668][b]1.2. [/b][b][font=宋体]编写背景[/font][/b][color=windowtext]
[/color][color=windowtext]4[/color][/url][url=#_Toc222626669][b]1.3. [/b][b][font=宋体]参考资料[/font][/b][color=windowtext]
[/color][color=windowtext]4[/color][/url][url=#_Toc222626670][b]1.4. [/b][b][font=宋体]名字解释[/font][/b][color=windowtext]
[/color][color=windowtext]4[/color][/url][url=#_Toc222626671]2. CMUX[font=宋体]协议框架[/font][color=windowtext]
[/color][color=windowtext]5[/color][/url][url=#_Toc222626672]3. Non Error RecoveryMode[color=windowtext]
[/color][color=windowtext]8[/color][/url][url=#_Toc222626673]3.1. [font=宋体]服务接口定义[/font][color=windowtext]
[/color][color=windowtext]8[/color][/url][url=#_Toc222626674]3.1.1. [font=宋体]服务模型[/font][color=windowtext]... [/color][color=windowtext]8[/color][/url][url=#_Toc222626675]3.1.2. [font=宋体]启动[/font]CMUX[font=宋体]服务模式[/font][color=windowtext]... [/color][color=windowtext]9[/color][/url][url=#_Toc222626676]3.1.3. [font=宋体]建立[/font]DLC[font=宋体]服务[/font][color=windowtext]... [/color][color=windowtext]9[/color][/url][url=#_Toc222626677]3.1.4. [font=宋体]数据服务[/font][color=windowtext]... [/color][color=windowtext]10[/color][/url][url=#_Toc222626678]3.1.5. [font=宋体]功耗控制[/font][color=windowtext]... [/color][color=windowtext]10[/color][/url][url=#_Toc222626679]3.1.5.1. Sleep[font=宋体]模式[/font][color=windowtext]... [/color][color=windowtext]11[/color][/url][url=#_Toc222626680]3.1.5.2. Wake up[font=宋体]模式[/font][color=windowtext]... [/color][color=windowtext]11[/color][/url][url=#_Toc222626681]3.1.6. [font=宋体]释放[/font]DLC[font=宋体]服务[/font][color=windowtext]... [/color][color=windowtext]11[/color][/url][url=#_Toc222626682]3.1.7. [font=宋体]关闭服务[/font][color=windowtext]... [/color][color=windowtext]11[/color][/url][url=#_Toc222626683]3.1.8. [font=宋体]控制服务[/font][color=windowtext]... [/color][color=windowtext]11[/color][/url][url=#_Toc222626684]3.1.8.1. 07.10[font=宋体]协议服务[/font][color=windowtext]... [/color][color=windowtext]12[/color][/url][url=#_Toc222626685]3.1.8.2 [font=宋体]虚拟端口服务[/font][color=windowtext]... [/color][color=windowtext]13[/color][/url][url=#_Toc222626686]3.2. [font=宋体]数据帧结构[/font][color=windowtext]
[/color][color=windowtext]14[/color][/url][url=#_Toc222626687]3.2.1. [font=宋体]帧域[/font][color=windowtext]... [/color][color=windowtext]14[/color][/url][url=#_Toc222626688]3.2.1.1. [font=宋体]标志域([/font]Flag Sequence Field[font=宋体])[/font][color=windowtext]... [/color][color=windowtext]14[/color][/url][url=#_Toc222626689]3.2.1.2. [font=宋体]地址域([/font]Address Field[font=宋体])[/font][color=windowtext]... [/color][color=windowtext]14[/color][/url][url=#_Toc222626690]3.2.1.3. [font=宋体]控制域([/font]Control Field[font=宋体])[/font][color=windowtext]... [/color][color=windowtext]15[/color][/url][url=#_Toc222626691]3.2.1.4. [font=宋体]信息域([/font]Information Field[font=宋体])[/font][color=windowtext]... [/color][color=windowtext]15[/color][/url][url=#_Toc222626692]3.2.1.5. [font=宋体]长度指示域([/font]Length Indicator[font=宋体])[/font][color=windowtext]... [/color][color=windowtext]15[/color][/url][url=#_Toc222626693]3.2.1.6. FCS[font=宋体]域([/font]Frame Checking Sequence Field[font=宋体])[/font][color=windowtext]... [/color][color=windowtext]15[/color][/url][url=#_Toc222626694]3.2.2. [font=宋体]格式约定[/font][color=windowtext]... [/color][color=windowtext]16[/color][/url][url=#_Toc222626695]3.2.3. [font=宋体]帧有效性[/font][color=windowtext]... [/color][color=windowtext]16[/color][/url][url=#_Toc222626696]3.2.4. [font=宋体]帧中止[/font][color=windowtext]... [/color][color=windowtext]16[/color][/url][url=#_Toc222626697]3.2.5. [font=宋体]数据帧之间的填充[/font][color=windowtext]... [/color][color=windowtext]16[/color][/url][url=#_Toc222626698]3.2.6. [font=宋体]基本[/font]Basic[color=windowtext]. [/color][color=windowtext]16[/color][/url][url=#_Toc222626699]3.2.6.1. [font=宋体]约束[/font][color=windowtext]... [/color][color=windowtext]17[/color][/url][url=#_Toc222626700]3.2.7. [font=宋体]高级[/font]Advanced[color=windowtext]. [/color][color=windowtext]17[/color][/url][url=#_Toc222626701]3.2.7.1. [font=宋体]控制字节透明[/font][color=windowtext]... [/color][color=windowtext]17[/color][/url][url=#_Toc222626702]3.2.7.2. [font=宋体]开始[/font]/[font=宋体]停止传输[/font]-[font=宋体]扩展透明[/font][color=windowtext]... [/color][color=windowtext]17[/color][/url][url=#_Toc222626703]3.2.7.3. [font=宋体]流控([/font]Flow-control[font=宋体])透明[/font][color=windowtext]... [/color][color=windowtext]18[/color][/url][url=#_Toc222626704]3.2.7.4. [font=宋体]帧的结构[/font][color=windowtext]... [/color][color=windowtext]18[/color][/url][url=#_Toc222626705]3.3. [font=宋体]帧类型[/font][color=windowtext]
[/color][color=windowtext]18[/color][/url][url=#_Toc222626706]3.4. [font=宋体]过程和状态[/font][color=windowtext]
[/color][color=windowtext]19[/color][/url][url=#_Toc222626707]3.4.1. [font=宋体]建立[/font]DLC[font=宋体]链路[/font][color=windowtext]... [/color][color=windowtext]19[/color][/url][url=#_Toc222626708]3.4.2. [font=宋体]释放[/font]DLC[font=宋体]链路[/font][color=windowtext]... [/color][color=windowtext]20[/color][/url][url=#_Toc222626709]3.4.3. [font=宋体]信息传输[/font][color=windowtext]... [/color][color=windowtext]20[/color][/url][url=#_Toc222626710]3.4.4. [font=宋体]帧变量[/font][color=windowtext]... [/color][color=windowtext]21[/color][/url][url=#_Toc222626711]3.4.5. [font=宋体]超时的考虑[/font][color=windowtext]... [/color][color=windowtext]21[/color][/url][url=#_Toc222626712]3.4.6. [font=宋体]多路控制通道[/font][color=windowtext]... [/color][color=windowtext]21[/color][/url][url=#_Toc222626713]3.4.6.1. [font=宋体]控制消息格式[/font][color=windowtext]... [/color][color=windowtext]22[/color][/url][url=#_Toc222626714]3.4.6.2. [font=宋体]控制消息类型参数[/font][color=windowtext]... [/color][color=windowtext]22[/color][/url][url=#_Toc222626715]3.4.7. [font=宋体]电源控制与唤醒机制[/font][color=windowtext]... [/color][color=windowtext]29[/color][/url][url=#_Toc222626716]3.4.8. [font=宋体]流控[/font][color=windowtext]... [/color][color=windowtext]29[/color][/url][url=#_Toc222626717]3.5. [font=宋体]集成层[/font]ConvergenceLayer[color=windowtext]
[/color][color=windowtext]29[/color][/url][url=#_Toc222626718]3.5.1. [font=宋体]类型[/font]1-[font=宋体]未结构化的字节流[/font][color=windowtext]... [/color][color=windowtext]29[/color][/url][url=#_Toc222626719]3.5.2. [font=宋体]类型[/font]2-[font=宋体]带参数的未结构化的字节流[/font][color=windowtext]... [/color][color=windowtext]30[/color][/url][url=#_Toc222626720]3.5.3. [font=宋体]类型[/font]3-[font=宋体]不可中断的帧数据[/font][color=windowtext]... [/color][color=windowtext]31[/color][/url][url=#_Toc222626721]3.5.4. [font=宋体]类型[/font]4-[font=宋体]可中断的帧数据[/font][color=windowtext]... [/color][color=windowtext]31[/color][/url][url=#_Toc222626722]3.6. DLCI[font=宋体]值[/font][color=windowtext]
[/color][color=windowtext]32[/color][/url][url=#_Toc222626723]3.7. [font=宋体]系统参数[/font][color=windowtext]
[/color][color=windowtext]33[/color][/url][url=#_Toc222626724]3.7.1. [font=宋体]确认时间[/font]T1[color=windowtext]. [/color][color=windowtext]33[/color][/url][url=#_Toc222626725]3.7.2. [font=宋体]帧的最大长度[/font]N1[color=windowtext]. [/color][color=windowtext]33[/color][/url][url=#_Toc222626726]3.7.3. [font=宋体]最大重发次数[/font]N2[color=windowtext]. [/color][color=windowtext]33[/color][/url][url=#_Toc222626727]3.7.4. [font=宋体]窗口大小[/font]k[color=windowtext]. [/color][color=windowtext]33[/color][/url][url=#_Toc222626728]3.7.5. [font=宋体]控制通道的响应时间[/font]T2[color=windowtext]. [/color][color=windowtext]33[/color][/url][url=#_Toc222626729]3.7.6. [font=宋体]唤醒流程的响应时间[/font]T3[color=windowtext]. [/color][color=windowtext]34[/color][/url][url=#_Toc222626730]3.8. [font=宋体]启动和关闭[/font]MUX[color=windowtext]
[/color][color=windowtext]34[/color][/url][url=#_Toc222626731]4. Error Recovery Mode[color=windowtext]
[/color][color=windowtext]34[/color][/url][size=12.0pt] [/size][b]
[/b][b][size=22.0pt]1. [/size][/b][b][font=宋体][size=22.0pt]引言[/size][/font][/b][b][size=16.0pt]1.1. [/size][/b][b][font=宋体][size=16.0pt]编写目的[/size][/font][/b][b][size=10.5pt] [/size][/b][font=宋体][size=10.5pt]本文档根据[/size][/font][size=10.5pt]GSM07.10[/size][font=宋体][size=10.5pt]协议同时结合[/size][/font][size=10.5pt]E901 Mobile[/size][font=宋体][size=10.5pt]参考代码,对[/size][/font][size=10.5pt]CMUX[/size][font=宋体][size=10.5pt]多串口协议进行了大致的描述。由于[/size][/font][size=10.5pt]7.10[/size][font=宋体][size=10.5pt]协议可以使用两种传输模式[/size][/font][size=10.5pt]non-error[/size][font=宋体][size=10.5pt]和[/size][/font][size=10.5pt]error[/size][font=宋体][size=10.5pt]模式,本文档只介绍[/size][/font][size=10.5pt]non-error[/size][font=宋体][size=10.5pt]模式。[/size][/font][size=10.5pt] [/size][b][size=16.0pt]1.2. [/size][/b][b][font=宋体][size=16.0pt]编写背景[/size][/font][/b][size=10.5pt]1[/size][font=宋体][size=10.5pt].希望[/size][/font][size=10.5pt]CMUX[/size][font=宋体][size=10.5pt]协议有一个总体框架;[/size][/font][size=10.5pt]2[/size][font=宋体][size=10.5pt].想要了解[/size][/font][size=10.5pt]CMUX[/size][font=宋体][size=10.5pt]多串口协议的通讯设计;[/size][/font][size=10.5pt] [/size][b][size=16.0pt]1.3. [/size][/b][b][font=宋体][size=16.0pt]参考资料[/size][/font][/b][size=10.5pt]1[/size][font=宋体][size=10.5pt].[/size][/font][size=10.5pt]GSM07.10[/size][font=宋体][size=10.5pt]协议[/size][/font][size=10.5pt]2[/size][font=宋体][size=10.5pt].[/size][/font][size=10.5pt]E901Mobile[/size][font=宋体][size=10.5pt]参考[/size][/font][size=10.5pt]CMUX[/size][font=宋体][size=10.5pt]通讯代码[/size][/font][b][size=10.5pt] [/size][/b][b][size=16.0pt]1.4. [/size][/b][b][font=宋体][size=16.0pt]名词解释[/size][/font][/b][size=10.5pt]1[/size][font=宋体][size=10.5pt].[/size][/font][size=10.5pt]CMUX
[/size][font=宋体][size=10.5pt]多串口协议[/size][/font][size=10.5pt]2[/size][font=宋体][size=10.5pt].[/size][/font][size=10.5pt]ABM
[/size][size=10.0pt]Asynchronous BalancedMode[/size][font=宋体][size=10.5pt]异步平衡模式[/size][/font][size=10.5pt]3[/size][font=宋体][size=10.5pt].[/size][/font][size=10.5pt]ERM
Error-Recovery Mode[/size][font=宋体][size=10.5pt]错误校验模式[/size][/font][size=10.5pt]4[/size][font=宋体][size=10.5pt].[/size][/font][size=10.5pt]DLC
[/size][size=10.5pt]Data Link Connection[/size][font=宋体][size=10.5pt]数据链路连接[/size][/font][size=10.5pt]5[/size][font=宋体][size=10.5pt].[/size][/font][size=10.5pt]FCS
[/size][size=10.0pt]Frame Check Sequence[/size][font=宋体][size=10.5pt]帧校验序列[/size][/font][size=10.5pt]6[/size][font=宋体][size=10.5pt].[/size][/font][size=10.5pt]SARM
Set [/size][size=10.0pt]Asynchronous Balanced Mode[/size][font=宋体][size=10.5pt]设置[/size][/font][font=宋体][size=10.5pt]异步平衡模式[/size][/font][size=10.5pt]7[/size][font=宋体][size=10.5pt].[/size][/font][size=10.5pt]UAU
[/size][size=10.0pt]Unnumbered Acknowledgement[/size][font=宋体][size=10.5pt]未编号的确认信息[/size][/font][size=10.5pt]8[/size][font=宋体][size=10.5pt].[/size][/font][size=10.5pt]DM
[/size][size=10.0pt]Disconnected Mode[/size][font=宋体][size=10.5pt]断开模式[/size][/font][size=10.5pt]9[/size][font=宋体][size=10.5pt].[/size][/font][size=10.5pt]UIH
[/size][size=10.0pt]Unnumbered Information with HeaderCheck[/size][font=宋体][size=10.5pt]未编号的带校验头的信息[/size][/font][size=10.5pt]10[/size][font=宋体][size=10.5pt].[/size][/font][size=10.5pt]UI
[/size][size=10.0pt]Unnumbered Information[/size][font=宋体][size=10.5pt]未编号的信息[/size][/font][size=10.5pt]11[/size][font=宋体][size=10.5pt].[/size][/font][size=10.5pt]PSC
[/size][size=10.0pt]Power Saving Control[/size][font=宋体][size=10.5pt]省电控制[/size][/font][size=10.5pt]12[/size][font=宋体][size=10.5pt].[/size][/font][size=10.5pt]MSC
Modem[/size][font=宋体][size=10.5pt]状态命令[/size][/font][size=10.5pt]13[/size][font=宋体][size=10.5pt].[/size][/font][size=10.5pt]HDLC
High-level data link control[/size][font=宋体][size=10.5pt]高级数据链路控制[/size][/font][b]
[/b]2. CMUX[font=宋体]协议框架[/font][font=宋体]多路复用协议提供在单个物理通信通道之上虚拟出多个并行的逻辑通信通道的能力,一般应用于[/font]TE(Terminal Equipment)[font=宋体]与[/font]MS(Mobile Station)[font=宋体]之间,[/font]TE[font=宋体]相当于智能手机的[/font]AP[font=宋体]端,[/font]MS[font=宋体]相当于智能手机的[/font]MODEM[font=宋体]端,下图给出了典型的协议层次关系:[/font][img=553,218]file:///C:\DOCUME~1\chen\LOCALS~1\Temp\msohtml1\01\clip_image002.jpg[/img][font=宋体]蓝色部分就是[/font]MUX[font=宋体]多路复用层,它利用底层的物理串口链接收发数据,同时向上层提供若干个逻辑上独立使用的收发通道(上图中提供了四个逻辑通道,不同颜色表示)。每个逻辑通道独立创建,可以拥有软件流控制。在实际使用中,[/font]TE[font=宋体]端的[/font]MUX[font=宋体]向[/font]MS[font=宋体]端的[/font]MUX[font=宋体]发起通道建立请求,设置通道参数等,是主动的一方;[/font]MS[font=宋体]端的[/font]MUX[font=宋体]等待[/font]TE[font=宋体]端的服务请求,根据自身能力提供相应服务。也就是说,两者的角色是不对称的。[/font][img=440,607]file:///C:\DOCUME~1\chen\LOCALS~1\Temp\msohtml1\01\clip_image004.jpg[/img]GSM07.10[font=宋体]协议就是一个提供[/font]MUX[font=宋体]功能的标准协议,也是实际中较广泛使用的协议。在[/font]E901[font=宋体]项目中,[/font]NXP[font=宋体]的[/font]5209 MODEM[font=宋体]软件提供标准的[/font]07.10 MUX[font=宋体]功能,[/font]AP[font=宋体]端开发了[/font]07.10 MUX[font=宋体]的驱动,如上图所示,[/font]AP [font=宋体]端的[/font]MUX[font=宋体]驱动利用了物理串口[/font]FFUART(COM1:),[font=宋体]同时向系统提供了三个逻辑串口[/font](COM7[font=宋体]:[/font] COM9[font=宋体]:[/font]COM8[font=宋体]:[/font])[font=宋体],其中[/font]COM7:[font=宋体]是[/font]AT[font=宋体]命令口[/font]TE<[font=Wingdings][font=Wingdings]à[/font][/font]MS[font=宋体];[/font]COM9:[font=宋体]是[/font]URC[font=宋体]口[/font] TE[font=Wingdings][font=Wingdings]ß[/font][/font]MS[font=宋体];[/font]COM8:[font=宋体]是数据端口[/font]TE<[font=Wingdings][font=Wingdings]à[/font][/font]MS[font=宋体],当建立[/font]GPRS/EDGE[font=宋体]数据连接时使用。这样对[/font]RIL[font=宋体]驱动而言,只看到[/font]COM7[font=宋体]和[/font]COM9[font=宋体]这两个虚拟串口,对[/font]PPP[font=宋体]模块而言,只看到[/font]COM8[font=宋体]虚拟口,真正的物理串口[/font]COM1[font=宋体]只对[/font]MUX[font=宋体]驱动有意义,其他驱动看不到也不关心[/font]COM1[font=宋体]。[/font] [size=10.5pt]TE[/size][font=宋体][size=10.5pt]终端和[/size][/font][size=10.5pt]MS[/size][font=宋体][size=10.5pt]终端之间的每个通道,称作一个[/size][/font][size=10.5pt]DLC[/size][font=宋体][size=10.5pt]链路,它们是先后相互独立的建立起来的。其数据传输采用[/size][/font][size=10.5pt]8BIT[/size][font=宋体][size=10.5pt]字符的[/size][/font][size=10.5pt]Start-Stop[/size][font=宋体][size=10.5pt]的方式进行传输,双方的数据交互使用了后面定义的帧结构。出于缓冲区管理的目的,每条[/size][/font][size=10.5pt]DLC[/size][font=宋体][size=10.5pt]链路都有各自的流控。总的链路也有全面的流控的机制。[/size][/font][size=10.5pt]DLC[/size][font=宋体][size=10.5pt]有两种工作模式[/size][/font][size=10.5pt]Error-Recovery Mode[/size][font=宋体][size=10.5pt]([/size][/font][size=10.5pt]ERM[/size][font=宋体][size=10.5pt])错误校验模式和[/size][/font][size=10.5pt]Non-Error-RecoveryMode (non-ERM)[/size][font=宋体][size=10.5pt]模式。在[/size][/font][size=10.5pt]DLC[/size][font=宋体][size=10.5pt]链路上可以同时使用[/size][/font][size=10.5pt]ERM[/size][font=宋体][size=10.5pt]和[/size][/font][size=10.5pt]nor-ERM[/size][font=宋体][size=10.5pt]模式。采用哪种模式,在[/size][/font][size=10.5pt]DLC[/size][font=宋体][size=10.5pt]建立的时候就决定好了。如果使用[/size][/font][size=10.5pt]ERM[/size][font=宋体][size=10.5pt]校验模式,必须把[/size][/font][size=10.5pt]DLC[/size][font=宋体][size=10.5pt]配置成[/size][/font][size=10.5pt]ISO HDLC[/size][font=宋体][size=10.5pt]透明机制,但是否使用[/size][/font][size=10.5pt]ERM[/size][font=宋体][size=10.5pt]校验模式,是可选的。[/size][/font][size=10.5pt]non-ERM[/size][font=宋体][size=10.5pt]模式使用[/size][/font][size=10.5pt]UI[/size][font=宋体][size=10.5pt]帧和[/size][/font][size=10.5pt]UIH[/size][font=宋体][size=10.5pt]帧来装载用户数据。而[/size][/font][size=10.5pt]ERM[/size][font=宋体][size=10.5pt]模式使用[/size][/font][size=10.5pt]I[/size][font=宋体][size=10.5pt]帧装载用户数据。[/size][/font][size=10.5pt]CMUX[/size][font=宋体][size=10.5pt]支持三种操作选项[/size][/font][size=10.5pt],[/size][font=宋体][size=10.5pt]分别是[/size][/font][size=10.5pt]Basic[/size][font=宋体][size=10.5pt],[/size][/font][size=10.5pt]Advanced[/size][size=10.5pt] without Error Recovery[/size][font=宋体][size=10.5pt]和[/size][/font][size=10.5pt]Advance with [/size][size=10.5pt]Error Recovery[/size][font=宋体][size=10.5pt]。其中前两种不支持错误纠正。[/size][/font][size=10.5pt]Basic[/size][font=宋体][size=10.5pt]:[/size][/font][size=10.5pt]1[/size][font=宋体][size=10.5pt])数据长度指示器代替[/size][/font][size=10.5pt]HDLC[/size][font=宋体][size=10.5pt]的透明机制;[/size][/font][size=10.5pt]2[/size][font=宋体][size=10.5pt])与[/size][/font][size=10.5pt]HDLC[/size][font=宋体][size=10.5pt]的[/size][/font][size=10.5pt]flag[/size][font=宋体][size=10.5pt]标志位不同;[/size][/font][size=10.5pt]3[/size][font=宋体][size=10.5pt])不能在数据链路上使用[/size][/font][size=10.5pt]XON/XOFF[/size][font=宋体][size=10.5pt]流控[/size][/font][size=10.5pt]4[/size][font=宋体][size=10.5pt])从数据同步丢失中恢复,需要比较长的时间。[/size][/font][size=10.5pt]Advanced [/size][size=10.5pt]without Error Recovery[/size][size=10.5pt]1[/size][font=宋体][size=10.5pt])异步的[/size][/font][size=10.5pt]HDLC[/size][font=宋体][size=10.5pt]跟[/size][/font][size=10.5pt]ISO/IEC 13239[/size][size=10.0pt].[/size][font=宋体][size=10.0pt]协议一致;[/size][/font][size=10.5pt]2[/size][font=宋体][size=10.5pt])[/size][/font][font=宋体][size=10.0pt]可以[/size][/font][font=宋体][size=10.5pt]在数据链路上使用[/size][/font][size=10.5pt]XON/XOFF [/size][font=宋体][size=10.5pt]流程控制;[/size][/font][size=10.5pt]3[/size][font=宋体][size=10.5pt])[/size][/font][font=宋体][size=10.5pt]从数据同步丢失中恢复,很快。[/size][/font][size=10.5pt]Advance with [/size][size=10.5pt]ErrorRecovery[/size][size=10.5pt]1[/size][font=宋体][size=10.5pt])[/size][/font][font=宋体][size=10.5pt]使用[/size][/font][size=10.5pt]HDLC [/size][size=10.5pt]ERM[/size][font=宋体][size=10.5pt]流程[/size][/font][font=宋体][size=10.5pt]。[/size][/font][size=10.5pt] [/size][b]
[/b]3. NonError Recovery Mode[font=Arial][size=10.5pt]NonError Recovery[/size][/font][font=宋体][size=10.5pt]用在[/size][/font][size=10.5pt]Basic[/size][font=宋体][size=10.5pt]模式和[/size][/font][size=10.5pt]Advanced[/size][font=宋体][size=10.5pt]模式,它是一种不可靠的数据传输,所以在链路很可靠的情况下才使用它。它有一套简单的流程;[/size][/font][size=10.5pt]Advanced[/size][font=宋体][size=10.5pt]提供了数据透明机制:它可以传输管理和控制信息;它允许[/size][/font][size=10.5pt]MS[/size][font=宋体][size=10.5pt]或[/size][/font][size=10.5pt]TE[/size][font=宋体][size=10.5pt]进入省电模式;它分了几个层,可以原封不动的装载不同类型的数据。[/size][/font][font=宋体][size=10.5pt]透明机制必须在[/size][/font][size=10.5pt]MUX[/size][font=宋体][size=10.5pt]会话开始的时候建立,它是整个[/size][/font][size=10.5pt]MUX[/size][font=宋体][size=10.5pt]会话的一个特征。[/size][/font][font=宋体][size=10.5pt]这套简单的流程,使用[/size][/font][size=10.5pt]UIH[/size][font=宋体][size=10.5pt]帧装载传输数据。这些帧比较容易处理,因为它使用的[/size][/font][size=10.5pt] Frame Check Sequence[/size][font=宋体][size=10.5pt]([/size][/font][size=10.5pt]FCS[/size][font=宋体][size=10.5pt])校验机制,可以事先计算,而不需要一个字节一个自己的去计算。这套流程的使用是很直接的,不需要实现[/size][/font][size=10.5pt]HDLC[/size][font=宋体][size=10.5pt]的状态机。[/size][/font][font=宋体][size=10.5pt]与可靠性相比,当及时的传递数据更重要时,该通道[/size][/font][size=10.5pt]UI[/size][font=宋体][size=10.5pt]帧或[/size][/font][size=10.5pt]UIH[/size][font=宋体][size=10.5pt]帧,都可以用。当对可靠性要求比较高时,那就采用[/size][/font][size=10.5pt]UI[/size][font=宋体][size=10.5pt]帧吧。[/size][/font]3.1. [font=黑体]服务接口定义[/font][font=宋体][size=10.5pt]服务接口用在数据链路层与上层应用之间。这些接口由原语和参数界定。[/size][/font]3.1.1. [font=宋体]服务模型[/font][b][size=10.5pt][img=553,395]file:///C:\DOCUME~1\chen\LOCALS~1\Temp\msohtml1\01\clip_image006.jpg[/img][/size][/b][size=10.5pt] [/size][font=宋体][size=10.5pt]从图中可以看到双方通讯的两端都需要串口模拟实体,在实体和逻辑层之间建立的数据流通道和控制通道。图中的左端是主动请求发起端。右端是接收方。[/size][/font][size=10.5pt] [/size]3.1.2. [font=宋体]启动[/font]CMUX[font=宋体]服务模式[/font][b][i][size=10.5pt]mode[/size][/i][/b][i]
[/i][size=10.5pt]= [Basic |HDLC - UIH frames | HDLC - UI frames | HDLC - frames].[/size][font=宋体][size=10.5pt],如果控制通道用了[/size][/font][size=10.5pt]HDLC[/size][font=宋体][size=10.5pt]模式,那么其它用了[/size][/font][size=10.5pt]DLC[/size][font=宋体][size=10.5pt]模式的参数配置可以忽略。[/size][/font][size=10.5pt] [/size][b][i][size=10.5pt]system_parameter[/size][/i][/b][i][size=10.5pt]s = [/size][/i][b][size=10.5pt]Port speed[/size][/b][size=10.5pt] [9,6 | 19,2 | 38,4 |57,6 | 115,2 |[/size][size=10.5pt]230,4 kBit/s],[/size][b][size=10.5pt]Maximum FrameSize[/size][/b][size=10.5pt] [1 – 128 in Basicmode,[/size][size=10.5pt]1 – 512 inHDLC modes[/size][size=10.5pt]default: 31 for the basic[/size][size=10.5pt]option and 64 for the[/size][size=10.5pt]advanced option][/size][b][size=10.5pt]AcknowledgementTimer[/size][/b][size=10.5pt] [0,01s-2,55s,[/size][size=10.5pt]default: 0,1s][/size][b][size=10.5pt]Maximumnumber of retransmissions[/size][/b][size=10.5pt] [0 – 100,[/size][size=10.5pt]default : 3][/size][b][size=10.5pt]Responsetimer for the multiplexer control channel[/size][/b][size=10.5pt] [0,01s-2,55s,[/size][size=10.5pt]default: 0,3s][/size][b][size=10.5pt]Wake upresponse timer[/size][/b][size=10.5pt] [1s – 255s, default 10s][/size][b][size=10.5pt]Window sizefor error recovery mode[/size][/b][size=10.5pt] [1 – 7,[/size][size=10.5pt]default : 2][/size][b][i][size=10.5pt]accept[/size][/i][/b][i]
[/i][size=10.5pt]= [true |false][/size][size=10.5pt] [/size][font=宋体][size=10.5pt]一点要注意的是各个虚拟通道的一些参数可以不同。根据(图[/size][/font][font=Arial][size=10.5pt]2[/size][/font][font=宋体][size=10.5pt])中,启动[/size][/font][font=Arial][size=10.5pt]CMUX[/size][/font][font=宋体][size=10.5pt]服务,需要双方(左边是发起方,右边是接收方)建立[/size][/font][font=Arial][size=10.5pt]4[/size][/font][font=宋体][size=10.5pt]条消息,[/size][/font][font=Arial][size=10.5pt]1)
[/size][/font][font=宋体][size=10.5pt]发起方:[/size][/font][size=10.5pt]TS0710_START.request([i]mode, system_parameters[/i])[/size][size=10.5pt]
2[/size][font=宋体][size=10.5pt])[/size][/font][font=宋体][size=10.5pt]发起方:[/size][/font][size=10.5pt]TS0710_START.indication([i]mode, system_parameters[/i][/size][size=10.5pt]3[/size][font=宋体][size=10.5pt])接收方:[/size][/font][size=10.5pt]TS0710_START.response([i]mode, system_parameters[/i], [i]accept[/i])[/size][size=10.5pt]4[/size][font=宋体][size=10.5pt])接收方:[/size][/font][size=10.5pt]TS0710_START.confirm([i]mode, system_parameters, accept[/i])[/size][font=宋体][size=10.5pt]这[/size][/font][size=10.5pt]4[/size][font=宋体][size=10.5pt]条消息建立过程大致如下:[/size][/font][font=宋体][size=10.5pt]首先[/size][/font][font=宋体][size=10.5pt]发起方发起[/size][/font][size=10.5pt]request[/size][font=宋体][size=10.5pt](请求)消息,接着,接收方接到[/size][/font][size=10.5pt]indication[/size][font=宋体][size=10.5pt](指示)消息,马上接收方发出[/size][/font][size=10.5pt]response[/size][font=宋体][size=10.5pt](反馈)消息,最后,[/size][/font][font=宋体][size=10.5pt]发起方收到[/size][/font][size=10.5pt]confirm[/size][font=宋体][size=10.5pt](确认)消息。这个过程做一些系统参数配置。[/size][/font][size=10.5pt] [/size]3.1.3. [font=宋体]建立[/font]DLC[font=宋体]服务[/font][b][i][size=10.5pt]DLCI[/size][/i][/b][i][size=10.5pt] = [/size][/i][size=10.5pt]1-63 (DLCInumber)[/size][b][i][size=10.5pt]Systemparameters[/size][/i][/b][i][size=10.5pt] = [/size][/i][b][size=10.5pt]Type of frame[/size][/b][size=10.5pt] [UIH | UI |I, default: UIH],[/size][b][size=10.5pt]Convergencelayer[/size][/b][size=10.5pt] [1 - 4, default: 1][/size][b][size=10.5pt]Priority[/size][/b][size=10.5pt] [0-63][/size][b][size=10.5pt]AcknowledgementTimer[/size][/b][size=10.5pt] [0,01s-2,55s,[/size][size=10.5pt]default: 0,1s][/size][b][size=10.5pt]Maximum FrameSize[/size][/b][size=10.5pt] [1 – 32768,[/size][size=10.5pt]default: 31 for the basic option and[/size][size=10.5pt]64 for the advanced option][/size][b][size=10.5pt]Maximumnumber of retransmissions[/size][/b][size=10.5pt] [0 – 255,[/size][size=10.5pt]default : 3][/size][b][size=10.5pt]Window sizefor error recovery mode[/size][/b][size=10.5pt] [1 – 7,[/size][size=10.5pt]default : 2][/size][b][i][size=10.5pt]Accept[/size][/i][/b][i][size=10.5pt] = [/size][/i][size=10.5pt][true |false][/size][size=10.5pt][b] [/b][/size][font=宋体][size=10.5pt]建立服务,是配置各个通道的参数,让通道能工作。它需要[/size][/font][size=10.5pt][b]4[/b][/size][font=宋体][size=10.5pt]条消息:[/size][/font][size=10.5pt][b] [/b][/size][size=10.0pt]1)
[/size][font=宋体][size=10.5pt]发起方:[/size][/font][size=10.0pt]TS_0710_DLC_ESTABLISHMENT.request(DLCI,system_parameters)[/size][size=10.5pt]2)
[/size][font=宋体][size=10.5pt]发起方:[/size][/font][size=10.5pt]TS_0710_DLC_ESTABLISHMENT.indication(DLCI,system_parameters)[/size][size=10.5pt]3)
[/size][font=宋体][size=10.5pt]接收方:[/size][/font][size=10.5pt]TS_0710_DLC_ESTABLISHMENT.response(DLCI,system_parameters, accept)[/size][size=10.0pt]4[/size][font=宋体][size=10.0pt])[/size][/font]
[font=宋体][size=10.5pt]接收方:[/size][/font][size=10.0pt]TS_0710_DLC_ESTABLISHMENT.confirm(DLCI,system_parameters, accept)[/size][size=10.5pt] [/size][size=10.5pt] [/size][font=宋体][size=10.5pt]大致的过程和启动服务的流程差不多。建立服务是建立通道,当然是配置通道参数,后者是配置系统参数。[/size][/font][size=10.0pt] [/size]3.1.4. [font=宋体]数据服务[/font][font=宋体][size=10.5pt]数据服务使用了两条消息:[/size][/font][size=10.5pt][b] [/b][/size][size=10.5pt]1)
[/size][size=10.5pt]TS_0710_DATA.request(DLCI, User_data)[/size][size=10.5pt]2)
[/size][size=10.5pt]TS_0710_DATA.indication(DLCI, User_data)[/size][size=10.5pt] [/size][i][size=10.5pt]DLCI [/size][/i][size=10.5pt]= [1 – 63] DLC over which the data is to betransmitted.[/size][i][size=10.5pt]User_data= [/size][/i][size=10.5pt]Data to be transferred organised in accordancewith the[/size][size=10.5pt]convergence layer of the DLC[/size][size=10.5pt] [/size]3.1.5. [font=宋体]功耗控制[/font][font=宋体][size=10.5pt]功耗控制包括[/size][/font][size=10.5pt]sleep[/size][font=宋体][size=10.5pt]模式和[/size][/font][size=10.5pt]wake up[/size][font=宋体][size=10.5pt]模式[/size][/font][size=10.0pt] [/size]3.1.5.1. Sleep[font=黑体]模式[/font][font=宋体][size=10.5pt]有三条消息:[/size][/font][size=10.5pt]1)
[/size][size=10.5pt]TS_0710_SLEEP.[i]request[/i][/size][size=10.5pt]2[/size][font=宋体][size=10.5pt])[/size][/font][size=10.5pt]TS_0710_SLEEP.[i]indication[/i][/size][size=10.5pt]3[/size][font=宋体][size=10.5pt])[/size][/font][size=10.5pt]TS_0710_SLEEP.[i]confirm[/i][/size][font=宋体][size=10.0pt]注意的是这里不需要接收方发出反馈([/size][/font][size=10.0pt]Respone[/size][font=宋体][size=10.0pt])消息,当然有这种情况,就是接收方没有进入[/size][/font][size=10.0pt]Sleep[/size][font=宋体][size=10.0pt]模式,也被认为是进入[/size][/font][size=10.0pt]Sleep[/size][font=宋体][size=10.0pt]模式。[/size][/font][size=10.5pt][b] [/b][/size]3.1.5.2. Wake up[font=黑体]模式[/font][font=宋体][size=10.5pt]有两条消息:[/size][/font][size=10.5pt]1[/size][font=宋体][size=10.5pt])[/size][/font][size=10.5pt]TS_0710_WAKEUP.[i]indication[/i][/size][size=10.5pt]2[/size][font=宋体][size=10.5pt])[/size][/font][size=10.5pt]TS_0710_WAKEUP.[i]response[/i][/size][i][size=10.0pt] [/size][/i]3.1.6. [font=宋体]释放[/font]DLC[font=宋体]服务[/font][font=宋体][size=10.5pt]用来断开[/size][/font][size=10.5pt][i]DLC[/i][/size][font=宋体][size=10.5pt]通道,有两条消息[/size][/font][size=10.5pt][i]1[/i][/size][font=宋体][size=10.5pt])[/size][/font]
[size=10.0pt]TS_0710_DLC_RELEASE.[i]request(DLCI)[/i][/size][size=10.5pt]2[/size][font=宋体][size=10.5pt])[/size][/font]
[size=10.0pt]TS_0710_DLC_RELEASE.[i]indication(DLCI)[/i][/size][size=10.0pt] [/size][font=宋体][size=10.5pt]参数:[/size][/font][i][size=10.0pt]DLCI [/size][/i][size=10.0pt]= [1 – 63] Number of the DLC to be released.[/size][font=宋体][size=10.0pt]同建立通道一样,最大的可以有[/size][/font][size=10.0pt]63[/size][font=宋体][size=10.0pt]个通道。[/size][/font][size=10.5pt] [/size]3.1.7. [font=宋体]关闭服务[/font][font=宋体][size=10.5pt]两条消息:[/size][/font][size=10.5pt]1)
[/size][size=10.5pt]TS_0710_CLOSE.[i]request[/i][/size][size=10.5pt]2)
[/size][size=10.5pt]TS_0710_CLOSE.[i]indication[/i][/size][font=宋体][size=10.5pt]关闭[/size][/font][size=10.5pt]CMUX[/size][font=宋体][size=10.5pt]服务,和启动[/size][/font][size=10.5pt]CMUX[/size][font=宋体][size=10.5pt]对应。[/size][/font]3.1.8. [font=宋体]控制服务[/font][font=宋体][size=10.5pt]这里把控制服务分成独立的一段。主要是控制服务比较复杂。分作两部分:[/size][/font][size=10.5pt]07.10[/size][font=宋体][size=10.5pt]协议服务和[/size][/font][font=Arial][size=12.0pt]PortEmulation [/size][/font][font=宋体][size=12.0pt]服务。[/size][/font]3.1.8.1. 07.10[font=黑体]协议服务[/font][font=Wingdings][size=12.0pt]n
[/size][/font][b][size=12.0pt]DLC [/size][/b][b][font=宋体][size=12.0pt]参数判定[/size][/font][/b][b][size=12.0pt]
[/size][/b][size=10.5pt]DLC [/size][font=宋体][size=10.5pt]参数判定用来设置具体[/size][/font][size=10.5pt]DLC[/size][font=宋体][size=10.5pt]参数,有四个消息;[/size][/font][size=10.0pt]1)
[/size][size=10.0pt]TS0710_PARNEG.request ([i]DLC, DLC parameters[/i])[/size][size=10.0pt]2)
[/size][size=10.0pt]TS0710_PARNEG.indication (DLC[i], DLC_parameters[/i])[/size][size=10.0pt]3)
[/size][size=10.0pt]TS0710_PARNEG.response (DLC[i], DLC_parameters[/i], [i]accept[/i])[/size][size=10.0pt]4)
[/size][size=10.0pt]TS0710_PARNEG.confirm ([i]DLC, [/i]DLC[i]_parameters,accept[/i])[/size][font=宋体][size=10.0pt]用来改变一个具体的[/size][/font][size=10.0pt]DLC[/size][font=宋体][size=10.0pt]通道的参数。[/size][/font][size=10.0pt] [/size][size=10.0pt] [/size][b][i][size=10.0pt]DLC_parameters[/size][/i][/b][i][size=10.0pt]= [/size][/i][b][size=10.0pt]frame type[/size][/b][size=10.0pt] [ UIH | UI | I ,[/size][size=10.0pt]default: UIH ][/size][b][size=10.0pt]Convergence Layer Type[/size][/b][size=10.0pt] [ Type 1 | Type 2 |Type 3 | Type 4,[/size][size=10.0pt]default: Type 1][/size][b][size=10.0pt]Priority[/size][/b][size=10.0pt] [1-63,[/size][size=10.0pt]default: according to table in subclause 5.6][/size][b][size=10.0pt]Acknowledgement timer[/size][/b][size=10.0pt] [10 ms - 25.5 sec,[/size][size=10.0pt]deault: 100 ms][/size][b][size=10.0pt]Maximum Frame Size[/size][/b][size=10.0pt] [1 – 32768,[/size][size=10.0pt]default: 31 for the basic option and[/size][size=10.0pt]64 for the advanced option][/size][b][size=10.0pt]Maximum number ofretransmissions[/size][/b][size=10.0pt] [0 – 100,[/size][size=10.0pt]default : 3][/size][size=10.0pt]Response timer for the multiplexor control[/size][b][size=10.0pt]channel[/size][/b][size=10.0pt] [0,01s-2,55s,default: 0,3s][/size][b][size=10.0pt]Wake up response timer[/size][/b][size=10.0pt] [1s – 255s, default10s][/size][b][size=10.0pt]Window size for errorrecovery mode[/size][/b][size=10.0pt] [1 – 7,[/size][size=10.0pt]default : 2][/size][b][i][size=10.0pt]accept[/size][/i][/b][i]
[/i][size=10.0pt]= [true | false][/size][size=10.0pt] [/size][font=Wingdings][size=12.0pt]n
[/size][/font][b][size=12.0pt]DLC [/size][/b][b][font=宋体][size=12.0pt]服务判定服务[/size][/font][/b][b][size=12.0pt] [/size][/b][font=宋体][size=10.5pt]用来判别[/size][/font][size=10.5pt]DLC [/size][font=宋体][size=10.5pt]服务是那一项具体的服务。[/size][/font][size=10.0pt]1)
[/size][size=10.0pt]TS0710_SERVNEG.request ([i]DLC, Service_parameters[/i])[/size][size=10.0pt]2)
[/size][size=10.0pt]TS0710_SERVNEG.indication (DLC[i], Service_parameters[/i])[/size][size=10.0pt]3)
[/size][size=10.0pt]TS0710_SERVNEG.response (DLC[i], Service parameters[/i], [i]accept[/i])[/size][size=10.0pt]4[/size][font=宋体][size=10.0pt])[/size][/font][size=10.0pt]TS0710_SERVNEG.confirm([i]DLC, Service_parameters, accept[/i])[/size][size=10.0pt] [/size][b][i][size=10.5pt]service_parameter[/size][/i][/b][i][size=10.5pt]s = [b]Service[/b] [/size][/i][size=10.5pt][ data | voice 64kbit/sA-law PCM | reserved 1 | reserved 2 ],[/size][b][size=10.5pt]voice codec[/size][/b][size=10.5pt] [ GSM 06.21| 64kbit/s u-law PCM | coded ADPCM 32kbit/s | coded half rate |[/size][size=10.5pt]128 kbit/s PCM | reserved ][/size][size=10.5pt] [/size][font=Wingdings][size=12.0pt]n
[/size][/font][b][font=宋体][size=12.0pt]测试服务[/size][/font][/b][size=10.5pt]1[/size][font=宋体][size=10.5pt])[/size][/font][size=10.5pt]TS0710_TEST.request ([i]Testdata[/i])[/size][size=10.5pt]2[/size][font=宋体][size=10.5pt])[/size][/font][size=10.5pt]TS0710_TEST.confirm ([i]Testdata[/i])[/size][size=10.5pt] [/size][font=Wingdings][size=12.0pt]n
[/size][/font][b][font=宋体][size=12.0pt]流程控制[/size][/font][/b][size=10.5pt]1[/size][font=宋体][size=10.5pt])[/size][/font][size=10.0pt]TS_0710_FLOW.request(DLCI,State)[/size][size=10.5pt]2[/size][font=宋体][size=10.5pt])[/size][/font][size=10.0pt]TS_0710_FLOW.indication(DLCI,State)[/size][i][size=10.5pt]DLCI [/size][/i][size=10.5pt]= [1 – 63] DLC over which the data is to betransmitted.[/size][i][size=10.5pt]State = enabled [/size][/i][size=10.5pt](data may betransferred), [i]disabled [/i](data may not be transferred)[/size][font=宋体][size=10.5pt]控制使能或者不使能数据传输。[/size][/font][size=10.0pt] [/size]3.1.8.2 [font=黑体]虚拟端口服务[/font][font=Wingdings][size=12.0pt]n
[/size][/font][b][font=宋体][size=12.0pt]移动[/size][/font][/b][b][size=12.0pt]DLC[/size][/b][b][font=宋体][size=12.0pt]参数判定服务[/size][/font][/b][size=10.5pt]1)
[/size][size=10.5pt]TS0710_PORTNEG.request ([i]DLC, Port_parameters[/i])[/size][size=10.5pt]2[/size][font=宋体][size=10.5pt])[/size][/font][size=10.5pt]TS0710_PORTNEG.indication(DLC[i], Port_parameters[/i])[/size][size=10.5pt]3[/size][font=宋体][size=10.5pt])[/size][/font][size=10.5pt]TS0710_PORTNEG.response(DLC[i], Port parameters[/i], [i]accept[/i])[/size][size=10.5pt]4[/size][font=宋体][size=10.5pt])[/size][/font][size=10.5pt]TS0710_PORTNEG.confirm ([i]DLC,Port_parameters, accept[/i])[/size][size=10.5pt] [/size][b][i][size=10.5pt]port_parameters[/size][/i][/b][i][size=10.5pt] = [/size][/i][b][size=10.5pt]Port speed[/size][/b][size=10.5pt] [2,4 | 4,8 | 7,2 | 9,6| 19,2 | 38,4 | 57,6 | 115,2 |[/size][size=10.5pt]230,4 kBit/s],[/size][b][i][size=10.5pt]Data bits[/size][/i][/b][i]
[/i][size=10.5pt][ 5 | 6 | 7 |8,[/size][size=10.5pt]default: 8 bits |[/size][b][size=10.5pt]Stop bits[/size][/b][size=10.5pt] [ 1 | 1,5,[/size][size=10.5pt]default: 1 bit |[/size][b][size=10.5pt]Parity[/size][/b][size=10.5pt] [ no parity| parity,[/size][size=10.5pt]default: no parity |[/size][b][size=10.5pt]Parity Type[/size][/b][size=10.5pt] [ odd | even| mark | space][/size][b][i][size=10.5pt]accept[/size][/i][/b][i]
[/i][size=10.5pt]= [true |false][/size][size=10.5pt] [/size][font=Wingdings][size=12.0pt]n
[/size][/font][b][font=宋体][size=12.0pt]控制参数服务[/size][/font][/b][size=10.0pt]1[/size][font=宋体][size=10.0pt])[/size][/font][size=10.0pt]TS0710_CONTROL.request([i]DLC, Control_parameters[/i])[/size][size=10.0pt]2[/size][font=宋体][size=10.0pt])[/size][/font][size=10.0pt]TS0710_CONTROL.indication(DLC[i], Contol_parameters[/i])[/size][size=10.0pt]3[/size][font=宋体][size=10.0pt])[/size][/font][size=10.0pt]TS0710_CONTROL.response(DLC[i], Contro_parameters[/i])[/size][size=10.0pt]4[/size][font=宋体][size=10.0pt])[/size][/font][size=10.0pt]TS0710_CONTROL.confirm([i]DLC, Control_parameters[/i])[/size][size=10.0pt] [/size][b][i][size=10.5pt]system_parameters[/size][/i][/b][i][size=10.5pt] = [/size][/i][size=10.5pt]Modem Signal[DTR/DSR | RTS/CTS | RI | DCD ],[/size][b][size=10.5pt]Break Signal[/size][/b][size=10.5pt] [0—3 s insteps of 200 ms,[/size][size=10.5pt]default 0ms ],[/size][b][size=10.5pt]Buffers[/size][/b][size=10.5pt] [do notdiscard buffers, discard buffer[/size][size=10.5pt]default: do not discard buffers],[/size][b][size=10.5pt]Break signalsequence[/size][/b][size=10.5pt] [ as soon as possible | in sequence,[/size][size=10.5pt]default: in sequence][/size][b][size=10.5pt] [/size][/b][font=Wingdings][size=12.0pt]n
[/size][/font][b][size=12.0pt]DLC[/size][/b][b][font=宋体][size=12.0pt]通道指示服务[/size][/font][/b][size=10.5pt]1[/size][font=宋体][size=10.5pt])[/size][/font][size=10.0pt]TS0710_PORTNEG.request (DLC[i],Line Status parameter[/i])[/size][size=10.5pt]2[/size][font=宋体][size=10.5pt])[/size][/font][size=10.0pt]TS0710_PORTNEG.indication (DLC[i],Line Status parameter[/i])[/size][size=10.5pt] [/size][b][i][size=10.5pt]Line statusparameter[/size][/i][/b][i][size=10.5pt] = [/size][/i][size=10.5pt]Port speed [no errors, overrun error, parityerror, framing error][/size][b][size=12.0pt] [/size][/b]3.2. [font=黑体]数据帧结构[/font]3.2.1. [font=宋体]帧域[/font][size=10.0pt]Flag(1B) Address (1B) Control(1B)Length(1~2B) Info(Length[/size][font=宋体][size=10.0pt]长度,可变[/size][/font][size=10.0pt]) FCS(1B) Flag(1B)[/size][font=宋体][size=10.0pt]注意:数据长度指示域,可能有,可能没有,如果没有采用透明机制,则有数据长度指示域。[/size][/font]3.2.1.1. [font=黑体]标志域([/font]Flag Sequence Field[font=黑体])[/font][font=宋体][size=10.5pt]每一帧开始和结束都有一个标识[/size][/font][font=Arial][size=10.5pt]flag[/size][/font][font=宋体][size=10.5pt],[/size][/font][font=宋体][size=10.5pt]基本模式[/size][/font][size=10.5pt][b]Flag[/b][/size][font=宋体][size=10.5pt]固定为[/size][/font][size=10.5pt][b]0xF9[/b][/size][font=宋体][size=10.5pt]。高级模式为[/size][/font][size=10.5pt][b]0x7E[/b][/size][font=宋体][size=10.5pt]。[/size][/font]3.2.1.2. [font=黑体]地址域([/font]Address Field[font=黑体])[/font][align=center][table] [tr][td]  Bit No.  [/td][td]  1  [/td][td]  2  [/td][td]  3  [/td][td]  4  [/td][td]  5  [/td][td]  6  [/td][td]  7  [/td][td]  8  [/td][/tr][tr][td]  [font=Arial][size=10.0pt]Signal[/size][/font]  [/td][td]  EA  [/td][td]  C/R  [/td][td=6,1]  DLCI  [/td][/tr][/table][/align][font=宋体][size=10.0pt]图[/size][/font][font=Arial][size=10.0pt]2[/size][/font][font=宋体][size=10.0pt]:地址域的格式[/size][/font][font=Arial][size=10.5pt]DLCI[/size][/font][font=宋体][size=10.5pt]是[/size][/font][font=Arial][size=10.5pt]DLC[/size][/font][font=宋体][size=10.5pt]([/size][/font][font=Arial][size=10.5pt]Data Link Control[/size][/font][font=宋体][size=10.5pt]数据链路控制)的标识号([/size][/font][font=Arial][size=10.5pt]identify[/size][/font][font=宋体][size=10.5pt])。[/size][/font][size=10.5pt]EA[/size][font=宋体][size=10.5pt]位表示该域是否只有本字节。为[/size][/font][size=10.5pt]1[/size][font=宋体][size=10.5pt]表示本字节就是长度域,为[/size][/font][size=10.5pt]0[/size][font=宋体][size=10.5pt]表示后续还有一个字节。[/size][/font][font=宋体][size=10.5pt]这里只能为[/size][/font][size=10.5pt][b]1[/b][/size][font=宋体][size=10.5pt],以后扩展协议后,会有为[/size][/font][size=10.5pt][b]0[/b][/size][font=宋体][size=10.5pt]的情况。[/size][/font][size=10.5pt][b]C/R[/b][/size][font=宋体][size=10.5pt]([/size][/font][size=10.5pt][b]Command/Response[/b][/size][font=宋体][size=10.5pt])用来指示是命令还是响应。[/size][/font][size=10.5pt][b]Initiator[/b][/size][font=宋体][size=10.5pt]是指[/size][/font][size=10.5pt][b]MUX[/b][/size][font=宋体][size=10.5pt]初始化的那一方,而[/size][/font][size=10.5pt][b]responder[/b][/size][font=宋体][size=10.5pt]是响应[/size][/font][size=10.5pt][b]MUX[/b][/size][font=宋体][size=10.5pt]初始化的那一方。[/size][/font][font=宋体][size=10.5pt]表[/size][/font][size=10.5pt][b]1[/b][/size][font=宋体][size=10.5pt]:[/size][/font][size=10.5pt][b]C/R[/b][/size][font=宋体][size=10.5pt]位的用法[/size][/font][align=center][table] [tr][td]  Command/response  [/td][td]  Direction   [/td][td]  C/R value  [/td][/tr][tr][td=1,2]  Command   [/td][td]  Initiator -> Responder   [/td][td]  1  [/td][/tr][tr][td]  Responder -> Initiator   [/td][td]  0  [/td][/tr][tr][td]  Response   [/td][td]  Initiator -> Responder   [/td][td]  0  [/td][/tr][tr][td]  Responder -> Initiator   [/td][td]  1  [/td][/tr][/table][/align][font=宋体][size=10.5pt]如主机建立的[/size][/font][size=10.5pt][b]MUX,[/b][/size][font=宋体][size=10.5pt]主机发命令包时,[/size][/font][size=10.5pt][b]Address[/b][/size][font=宋体][size=10.5pt]为[/size][/font][size=10.5pt][b]0x7[/b][/size][font=宋体][size=10.5pt],猫响应[/size][/font][size=10.5pt][b]Address[/b][/size][font=宋体][size=10.5pt]也是[/size][/font][size=10.5pt][b]0x7[/b][/size][font=宋体][size=10.5pt]。[/size][/font][b][size=10.5pt] [/size][/b]3.2.1.3. [font=黑体]控制域([/font]Control Field[font=黑体])[/font][font=宋体][size=10.5pt]表[/size][/font][font=Arial][size=10.5pt]2[/size][/font][font=宋体][size=10.5pt]:控制域的编码[/size][/font][table] [tr][td]  [font=Arial]Frame Type[/font]  [/td][td]  1  [/td][td]  2  [/td][td]  3  [/td][td]  4  [/td][td]  5  [/td][td]  6  [/td][td]  7  [/td][td]  8  [/td][td]  [font=宋体]备注[/font]  [/td][/tr][tr][td]  [font=Arial][size=10.5pt]SABM (Set Asynchronous Balanced Mode)[/size][/font]  [/td][td]  1  [/td][td]  1  [/td][td]  1  [/td][td]  1  [/td][td]  P/F  [/td][td]  1  [/td][td]  0  [/td][td]  0  [/td][td]  [font=Arial][size=10.5pt] [/size][/font]  [/td][/tr][tr][td]  [font=Arial][size=10.5pt]UA (Unnumbered Acknowledgement)[/size][/font]  [/td][td]  1  [/td][td]  1  [/td][td]  0  [/td][td]  0  [/td][td]  P/F  [/td][td]  1  [/td][td]  1  [/td][td]  0  [/td][td]  [font=Arial][size=10.5pt] [/size][/font]  [/td][/tr][tr][td]  [font=Arial][size=10.5pt]DM (Disconnected Mode)[/size][/font]  [/td][td]  1  [/td][td]  1  [/td][td]  1  [/td][td]  1  [/td][td]  P/F  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][td]  [font=Arial][size=10.5pt] [/size][/font]  [/td][/tr][tr][td]  [font=Arial][size=10.5pt]DISC (Disconnect)[/size][/font]  [/td][td]  1  [/td][td]  1  [/td][td]  0  [/td][td]  0  [/td][td]  P/F  [/td][td]  0  [/td][td]  1  [/td][td]  0  [/td][td]  [font=Arial][size=10.5pt] [/size][/font]  [/td][/tr][tr][td]  [font=Arial][size=10.5pt]UIH(Unnumbered Information with Header check)[/size][/font]  [/td][td]  1  [/td][td]  1  [/td][td]  1  [/td][td]  1  [/td][td]  P/F  [/td][td]  1  [/td][td]  1  [/td][td]  1  [/td][td]  [font=Arial][size=10.5pt] [/size][/font]  [/td][/tr][tr][td]  [font=Arial][size=10.5pt]UI (Unnumbered Information)[/size][/font]  [/td][td]  1  [/td][td]  1  [/td][td]  0  [/td][td]  0  [/td][td]  P/F  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][td]  [font=宋体][size=10.5pt]可选[/size][/font]  [/td][/tr][/table][size=10.5pt]P/F[/size][font=宋体][size=10.5pt]是[/size][/font][size=10.5pt]Poll/Final[/size][font=宋体][size=10.5pt]位,表示测试[/size][/font][size=10.5pt]/[/size][font=宋体][size=10.5pt]返回。后续会介绍。[/size][/font][font=宋体][size=10.5pt]比如建立[/size][/font][size=10.5pt]DLC[/size][font=宋体][size=10.5pt]的时候,主机发[/size][/font][size=10.5pt]SABM[/size][font=宋体][size=10.5pt]帧[/size][/font][size=10.5pt], [/size][font=宋体][size=10.5pt]并把[/size][/font][size=10.5pt]P[/size][font=宋体][size=10.5pt]置[/size][/font][size=10.5pt]1[/size][font=宋体][size=10.5pt],如果成功,对方返回[/size][/font][size=10.5pt]UA[/size][font=宋体][size=10.5pt]帧,并把[/size][/font][size=10.5pt]F[/size][font=宋体][size=10.5pt]置[/size][/font][size=10.5pt]1[/size][font=宋体][size=10.5pt],否则返回[/size][/font][size=10.5pt]DM[/size][font=宋体][size=10.5pt]帧,并把[/size][/font][size=10.5pt]P[/size][font=宋体][size=10.5pt]置[/size][/font][size=10.5pt]1[/size][font=宋体][size=10.5pt]。[/size][/font][font=Arial][size=10.5pt] [/size][/font]3.2.1.4. [font=黑体]信息域([/font]Information Field[font=黑体])[/font][font=宋体][size=10.5pt]信息域,它是实际数据域。[/size][/font][size=10.5pt]UI[/size][font=宋体][size=10.5pt]帧或[/size][/font][size=10.5pt]UIH[/size][font=宋体][size=10.5pt]帧,才有该域。[/size][/font]3.2.1.5. [font=黑体]长度指示域([/font]Length Indicator[font=黑体])[/font][font=宋体][size=10.5pt]只有在基本模式下,该域才存在。可以是[/size][/font][font=Arial][size=10.5pt]1[/size][/font][font=宋体][size=10.5pt]个字节,也可以是[/size][/font][font=Arial][size=10.5pt]2[/size][/font][font=宋体][size=10.5pt]个字节长度;[/size][/font][align=center][table] [tr][td]  Bit No.  [/td][td]  1  [/td][td]  2  [/td][td]  3  [/td][td]  4  [/td][td]  5  [/td][td]  6  [/td][td]  7  [/td][td]  8  [/td][/tr][tr][td]  [font=Arial][size=10.0pt]Signal[/size][/font]  [/td][td]  E/A  [/td][td]  L1  [/td][td]  L2  [/td][td]  L3  [/td][td]  L4  [/td][td]  L5  [/td][td]  L6  [/td][td]  L7  [/td][/tr][/table][/align][font=宋体][size=10.5pt]图[/size][/font][font=Arial][size=10.5pt]3[/size][/font][font=宋体][size=10.5pt]:长度域的首字节[/size][/font][align=center][table] [tr][td]  Bit No.  [/td][td]  1  [/td][td]  2  [/td][td]  3  [/td][td]  4  [/td][td]  5  [/td][td]  6  [/td][td]  7  [/td][td]  8  [/td][/tr][tr][td]  [font=Arial][size=10.0pt]Signal[/size][/font]  [/td][td]  L8  [/td][td]  L9  [/td][td]  L10  [/td][td]  L11  [/td][td]  L12  [/td][td]  L13  [/td][td]  L14  [/td][td]  L15  [/td][/tr][/table][/align][font=宋体][size=10.5pt]图[/size][/font][font=Arial][size=10.5pt]4[/size][/font][font=宋体][size=10.5pt]:长度域的第二个字节[/size][/font][size=10.5pt]EA[/size][font=宋体][size=10.5pt]位表示该域是否只有本字节。为[/size][/font][size=10.5pt]1[/size][font=宋体][size=10.5pt]表示本字节就是长度域,为[/size][/font][size=10.5pt]0[/size][font=宋体][size=10.5pt]表示后续还有一个字节。[/size][/font]3.2.1.6. [font=黑体]校验域([/font]Frame Checking Sequence Field[font=黑体])[/font][font=宋体][size=10.5pt]帧的校验序列。它是两个[/size][/font][size=10.5pt]CRC[/size][font=宋体][size=10.5pt]校验码,异或后,再取反的结果。这两个[/size][/font][size=10.5pt]CRC[/size][font=宋体][size=10.5pt]校验码,都是[/size][/font][size=10.5pt]8[/size][font=宋体][size=10.5pt]位的,生成的多项式为[/size][/font][i][size=10.5pt]x[/size][/i][size=10.5pt]8 + [i]x[/i]2+ [i]x [/i]+ 1[/size][font=宋体][size=10.5pt]。一个是[/size][/font][size=10.5pt]xk*(x7+x6+x5+x4+x3+x2+x1+1)[/size][font=宋体][size=10.5pt],其中[/size][/font][size=10.5pt]k[/size][font=宋体][size=10.5pt]是校验数据的[/size][/font][size=10.5pt]BIT[/size][font=宋体][size=10.5pt]位的数目,一个是[/size][/font][size=10.5pt]x8*([/size][font=宋体][size=10.5pt]校验数据[/size][/font][size=10.5pt])[/size][font=宋体][size=10.5pt],校验数据,就是该帧的实际数据。由于比较复杂,可以参考[/size][/font][size=10.5pt]CRC[/size][font=宋体][size=10.5pt]校验原理。在包为[/size][/font][size=10.5pt]UIH[/size][font=宋体][size=10.5pt]帧时,实际数据域,不参与校验,只校验[/size][/font][size=10.5pt]Address[/size][font=宋体][size=10.5pt],[/size][/font][size=10.5pt]Control[/size][font=宋体][size=10.5pt]和[/size][/font][size=10.5pt]Length[/size][font=宋体][size=10.5pt]这几个域。[/size][/font]3.2.2. [font=宋体]格式约定[/font]
[font=宋体][size=10.5pt]所有传输的字符以“一个起始位,八个数据位,无奇偶校验位和一个停止位”进行传输。[/size][/font][font=宋体][size=10.5pt]所有的域,先传输域的第[/size][/font][size=10.5pt]1[/size][font=宋体][size=10.5pt]位。对于字节而言,也就是低位先传。[/size][/font][font=宋体][size=10.5pt]地址,命令,响应和序列数,都先传低位。[/size][/font][size=10.5pt]FCS[/size][font=宋体][size=10.5pt]序列,先传高次方的项的系数。[/size][/font][font=宋体][size=10.5pt]注意:这些约定意味着常常需要转换[/size][/font][size=10.5pt]BIT[/size][font=宋体][size=10.5pt]位顺序。[/size][/font]3.2.3. [font=宋体][size=12.0pt]帧有效性[/size][/font][font=宋体][size=10.5pt]检验数据传输是否正确,可以根据下面的条件判断:[/size][/font][size=10.5pt]1[/size][font=宋体][size=10.5pt])[/size][/font][size=10.5pt]is notproperly bounded by two flags[/size][font=宋体][size=10.5pt]不正确的边界条件位;[/size][/font][size=10.5pt]2[/size][font=宋体][size=10.5pt])在两个边界条件位([/size][/font][size=10.5pt]flags[/size][font=宋体][size=10.5pt])之间,至少有三个字节。[/size][/font][size=10.5pt]3[/size][font=宋体][size=10.5pt])[/size][/font][size=10.5pt]FCS[/size][font=宋体][size=10.5pt]的[/size][/font][size=10.5pt]CRC[/size][font=宋体][size=10.5pt]校验错误;[/size][/font][size=10.5pt]4[/size][font=宋体][size=10.5pt])地址域大于一个字节。[/size][/font][font=宋体][size=10.5pt]无效帧,通常会在不通知发送方的情况下被丢弃。[/size][/font][size=10.5pt]Multiplexer[/size][font=宋体][size=10.5pt]的[/size][/font][size=10.5pt]MS[/size][font=宋体][size=10.5pt]或[/size][/font][size=10.5pt]TE[/size][font=宋体][size=10.5pt]端接收到无效帧后,所要做的处理,由它的实现者去考虑。然而,接收到[/size][/font][size=10.5pt]FCS[/size][font=宋体][size=10.5pt]校验域错误的帧的提示信息,对音频[/size][/font][size=10.5pt]/[/size][font=宋体][size=10.5pt]视频的[/size][/font][size=10.5pt]DLC[/size][font=宋体][size=10.5pt]或许很有用。[/size][/font]3.2.4. [font=宋体]帧中止[/font][font=宋体][size=10.5pt]不支持帧的中止。[/size][/font]3.2.5. [font=宋体]数据帧之间的填充[/font][font=宋体][size=10.5pt]除了省电模式唤醒的过程,在数据帧与数据帧之间,需要填充一些[/size][/font][font=Arial][size=10.5pt]stop[/size][/font][font=宋体][size=10.5pt]标识。这种填充了标识字符的情况下,接收方应该能正确处理。如果接收端,收到了多于[/size][/font][font=Arial][size=10.5pt]3[/size][/font][font=宋体][size=10.5pt]个连续的标识,它在第一时间开始传输连续的标识(参见省电部分)。[/size][/font]3.2.6. [font=宋体]基本[/font]Basic
[align=center][table] [tr][td]  [font=Arial][size=9.0pt]Flag[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]Address[/size][/font]  [/td][td=1,1,65]  [font=Arial][size=9.0pt]Control[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]Length Indicator[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]Information[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]FCS[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]Flag[/size][/font]  [/td][/tr][tr][td]  [font=Arial][size=10.5pt]1B[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]1B[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]1B[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]1B/2B[/size][/font]  [/td][td]  [font=宋体][size=10.5pt]长度不确定[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]1B[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]1B[/size][/font]  [/td][/tr][/table][/align][font=宋体][size=10.5pt]图[/size][/font][font=Arial][size=10.5pt]5[/size][/font][font=宋体][size=10.5pt]:[/size][/font][font=Arial][size=10.5pt]basic[/size][/font][font=宋体][size=10.5pt]模式的帧的结构[/size][/font][font=宋体][size=10.5pt]在基本模式下的[/size][/font][font=Arial][size=10.5pt]flag[/size][/font][font=宋体][size=10.5pt]为下面的格式:[/size][/font][font=Arial][size=10.5pt]=0xF9[/size][/font][align=center][table] [tr][td]  [font=Arial][size=9.0pt]Bit[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]1[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]2[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]3[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]4[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]5[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]6[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]7[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]8[/size][/font]  [/td][/tr][tr][td]  [font=Arial][size=10.5pt]Data[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]1[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]0[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]0[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]1[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]1[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]1[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]1[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]1[/size][/font]  [/td][/tr][/table][/align][font=宋体][size=10.5pt]图[/size][/font][font=Arial][size=10.5pt]6[/size][/font][font=宋体][size=10.5pt]:[/size][/font][font=Arial][size=10.5pt]basic[/size][/font][font=宋体][size=10.5pt]模式的标识域[/size][/font]3.2.6.1. [font=黑体]约束[/font][font=Arial][size=10.5pt]1[/size][/font][font=宋体][size=10.5pt])结束[/size][/font][font=Arial][size=10.5pt]flag[/size][/font][font=宋体][size=10.5pt]也可能是下一帧的开始标志。[/size][/font][font=Arial][size=10.5pt]2[/size][/font][font=宋体][size=10.5pt])在高级的模式中[/size][/font][font=Arial][size=10.5pt]flag[/size][/font][font=宋体][size=10.5pt]不一样。[/size][/font][font=Arial][size=10.5pt]3[/size][/font][font=宋体][size=10.5pt])不支持[/size][/font][size=10.5pt]DC1/XON[/size][font=宋体][size=10.5pt]和[/size][/font][size=10.5pt]DC3/XOFF[/size][font=宋体][size=10.5pt]的控制字符。[/size][/font]3.2.7. [font=宋体]高级[/font]Advanced[font=宋体][size=10.5pt]如果[/size][/font][size=10.5pt]MUX[/size][font=宋体][size=10.5pt]会话开始,就使用了高级模式,那么,它就可以用于各种数据帧了。这种机制基于控制字节透明([/size][/font][size=10.5pt]a controloctet transparency[/size][font=宋体][size=10.5pt])。它基于每帧的开([/size][/font][size=10.5pt]Opening[/size][font=宋体][size=10.5pt])和闭([/size][/font][size=10.5pt]Closing[/size][font=宋体][size=10.5pt])的[/size][/font][size=10.5pt]Flag[/size][font=宋体][size=10.5pt]标志的出现是唯一的。这些标志不可能出现在数据帧的信息域。如果在[/size][/font][size=10.5pt]TE-MS[/size][font=宋体][size=10.5pt]链路上,出现了同步的丢失,这种机制允许快速的同步恢复。[/size][/font]3.2.7.1. [font=黑体]控制字节透明[/font][font=宋体][size=10.5pt]下面的透明机制应用于每个数据帧,从地址域到[/size][/font][font=Arial][size=10.5pt]FCS[/size][/font][font=宋体][size=10.5pt]域(含)。[/size][/font][font=Arial][size=10.5pt]ESC[/size][/font][font=宋体][size=10.5pt]控制字节,是一个透明标识符,它标识了应用了下面透明流程的数据帧的一个字节。[/size][/font][font=Arial][size=10.5pt]ESC[/size][/font][font=宋体][size=10.5pt]控制字节编码如下:[/size][/font][font=Arial][size=10.5pt][img=347,99]file:///C:\DOCUME~1\chen\LOCALS~1\Temp\msohtml1\01\clip_image008.jpg[/img][/size][/font][font=宋体][size=10.5pt]传输器([/size][/font][font=Arial][size=10.5pt]transmitter[/size][/font][font=宋体][size=10.5pt])将检查从开标识到闭标识的一个数据帧,包括地址域,控制域,[/size][/font][font=Arial][size=10.5pt]FCS[/size][/font][font=宋体][size=10.5pt]域。[/size][/font][font=Arial][size=10.5pt]FCS[/size][/font][font=宋体][size=10.5pt]域是这样计算的:[/size][/font][font=Arial][size=10.5pt]
-[/size][/font][font=宋体][size=10.5pt]当出现了标识或[/size][/font][font=Arial][size=10.5pt]ESC[/size][/font][font=宋体][size=10.5pt]控制字节时,补足该字节的第[/size][/font][font=Arial][size=10.5pt]6[/size][/font][font=宋体][size=10.5pt]位,并且[/size][/font][font=Arial][size=10.5pt]
-[/size][/font][font=宋体][size=10.5pt]在传输的前一个字节与本字节中间,插入一个[/size][/font][font=Arial][size=10.5pt]ESC[/size][/font][font=宋体][size=10.5pt]控制字节([/size][/font][font=Arial][size=10.5pt]Insert a control escape octet immediately preceding the octet resultingfrom the above prior to transmission[/size][/font][font=宋体][size=10.5pt])。[/size][/font][font=宋体][size=10.5pt]接收器([/size][/font][font=Arial][size=10.5pt]receiver[/size][/font][font=宋体][size=10.5pt])将检查两个标识字节之间的数据帧,收到一个[/size][/font][font=Arial][size=10.5pt]ESC[/size][/font][font=宋体][size=10.5pt]控制字节,并且预先进行[/size][/font][font=Arial][size=10.5pt]FCS[/size][/font][font=宋体][size=10.5pt]计算:[/size][/font][font=Arial][size=10.5pt]
-[/size][/font][font=宋体][size=10.5pt]丢弃[/size][/font][font=Arial][size=10.5pt]ESC[/size][/font][font=宋体][size=10.5pt]控制字节,并且[/size][/font][font=Arial][size=10.5pt]
-[/size][/font][font=宋体][size=10.5pt]通过补足它的第[/size][/font][font=Arial][size=10.5pt]6[/size][/font][font=宋体][size=10.5pt]位,恢复紧接着的字节。[/size][/font][font=宋体][size=10.5pt]其他字节值也可通过传输器,包含在透明流程中。因此,包含哪些东西,取决于前述的系统和应用程序的约定。[/size][/font]3.2.7.2. [font=黑体]开始[/font]/[font=黑体]停止传输[/font]-[font=黑体]扩展透明[/font][font=宋体][size=10.5pt]传输器([/size][/font][font=Arial][size=10.5pt]transmitter[/size][/font][font=宋体][size=10.5pt])对追加到标志域和[/size][/font][font=Arial][size=10.5pt]ESC[/size][/font][font=宋体][size=10.5pt]控制字节上的其他字节应用上述的透明流程。目前,仅有的其他字节是流控([/size][/font][font=Arial][size=10.5pt]flow-control[/size][/font][font=宋体][size=10.5pt])字符。流程参见[/size][/font][font=Arial][size=10.5pt]3.2.6[/size][/font][font=Arial][size=10.5pt].3[/size][/font][font=宋体][size=10.5pt]。[/size][/font]3.2.7.3. [font=黑体]流控([/font]Flow-control[font=黑体])透明[/font][font=宋体][size=10.5pt]流控([/size][/font][font=Arial][size=10.5pt]Flow-control[/size][/font][font=宋体][size=10.5pt])透明选项,为[/size][/font][font=Arial][size=10.5pt]ISO/IEC646[/size][/font][font=宋体][size=10.5pt](例如[/size][/font][font=Arial][size=10.5pt]1000100x[/size][/font][font=宋体][size=10.5pt]和[/size][/font][font=Arial][size=10.5pt]1100100x[/size][/font][font=宋体][size=10.5pt]分别表示[/size][/font][font=Arial][size=10.5pt]x[/size][/font][font=宋体][size=10.5pt]可以是[/size][/font][font=Arial][size=10.5pt]0[/size][/font][font=宋体][size=10.5pt]或者[/size][/font][font=Arial][size=10.5pt]1[/size][/font][font=宋体][size=10.5pt])[/size][/font][font=Arial][size=10.5pt]DC1/XON[/size][/font][font=宋体][size=10.5pt]和[/size][/font][font=Arial][size=10.5pt]DC3/XOFF[/size][/font][font=宋体][size=10.5pt]控制字符,提供了透明的流程。这就确保了字节流不包含像流控字符(不管奇偶校验)那样,能被中间设备打断的数值。[/size][/font]3.2.7.4. [font=黑体]帧的结构[/font][font=宋体][size=10.5pt]帧的结构如图[/size][/font][size=10.5pt]7[/size][font=宋体][size=10.5pt]所示。注意,这种结构不包括同步(例如,开始和停止位)或者透明目的所增加的信息。传输的顺序从左往右。[/size][/font][font=宋体][size=10.0pt]透明机制被激活的情况下,帧的结构如下所示:[/size][/font]
[align=center][table] [tr][td]  [font=Arial][size=9.0pt]Flag[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]Address[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]Control[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]Information[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]FCS[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]Flag[/size][/font]  [/td][/tr][tr][td]  [font=Arial][size=10.5pt]1B[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]1B[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]1B[/size][/font]  [/td][td]  [font=宋体][size=10.5pt]长度不确定[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]1B[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]1B[/size][/font]  [/td][/tr][/table][/align][font=宋体][size=10.5pt]图[/size][/font][font=Arial][size=10.5pt]7[/size][/font][font=宋体][size=10.5pt]:[/size][/font][font=Arial][size=10.5pt]advanced[/size][/font][font=宋体][size=10.5pt]模式的帧结构[/size][/font][font=宋体][size=10.5pt]在高级模式下的[/size][/font][font=Arial][size=10.5pt]flag[/size][/font][font=宋体][size=10.5pt]为下面的格式:[/size][/font][font=Arial][size=10.5pt]=0x7E[/size][/font][align=center][table] [tr][td]  [font=Arial][size=9.0pt]Bit[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]1[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]2[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]3[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]4[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]5[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]6[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]7[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]8[/size][/font]  [/td][/tr][tr][td]  [font=Arial][size=10.5pt]Data[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]0[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]1[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]1[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]1[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]1[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]1[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]1[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]0[/size][/font]  [/td][/tr][/table][/align][font=宋体][size=10.5pt]图[/size][/font][font=Arial][size=10.5pt]8[/size][/font][font=宋体][size=10.5pt]:[/size][/font][font=Arial][size=10.5pt]advanced[/size][/font][font=宋体][size=10.5pt]模式的标识域[/size][/font][font=宋体][size=10.5pt]注意:结束[/size][/font][font=Arial][size=10.5pt]flag[/size][/font][font=宋体][size=10.5pt]也可能是下一帧的开始标志。[/size][/font]3.3. [font=黑体]帧类型[/font][b][size=10.5pt]
[/size][/b][size=10.5pt]
1)[/size][font=Arial][size=10.5pt] Set Asynchronous Balanced Mode (SABM) command[/size][/font][font=Arial][size=10.5pt]

2) Unnumbered Acknowledgement (UA) response[/size][/font][font=Arial][size=10.5pt]3) Disconnected Mode (DM) response[/size][/font][font=Arial][size=10.5pt]4) Disconnect (DISC) command[/size][/font][font=Arial][size=10.5pt]5) Unnumbered information with header check (UIH) command and response[/size][/font][font=Arial][size=10.5pt]6) Unnumbered Information (UI) command and response[/size][/font]3.3.1. SABM command[font=Arial][size=10.5pt]SABM[/size][/font][font=宋体][size=10.5pt]命令帧用来把指定的一端设置成异步平衡模式([/size][/font][font=Arial][size=10.5pt]ABM[/size][/font][font=宋体][size=10.5pt]),这种模式下,所有的控制域的长度都是一个字节。另外一端接收到[/size][/font][font=Arial][size=10.5pt]SABM[/size][/font][font=宋体][size=10.5pt]命令帧后,第一时间发送一个[/size][/font][font=Arial][size=10.5pt]UA[/size][/font][font=宋体][size=10.5pt]回应帧,作为确认。接收到该命令,[/size][/font][font=Arial][size=10.5pt]DLC[/size][/font][font=宋体][size=10.5pt]发送和接收的状态,都将被置[/size][/font][font=Arial][size=10.5pt]0[/size][/font][font=宋体][size=10.5pt]。[/size][/font]3.3.2. UA response[font=Arial][size=10.5pt]UA[/size][/font][font=宋体][size=10.5pt]回应帧,是对[/size][/font][size=10.5pt]SABM[/size][font=宋体][size=10.5pt]和[/size][/font][size=10.5pt]DISC[/size][font=宋体][size=10.5pt]这两个命令帧的确认。[/size][/font]3.3.3. DM response[font=宋体][size=10.5pt]它用于报告一端([/size][/font][font=Arial][size=10.5pt]station[/size][/font][font=宋体][size=10.5pt])逻辑上从数据链路上断开的状态。链路断开后,将收不到任何命令,直到收到[/size][/font][font=Arial][size=10.5pt]SABM[/size][/font][font=宋体][size=10.5pt]重新建立通道为止。如果在链路断开状态,收到[/size][/font][font=Arial][size=10.5pt]DISC[/size][/font][font=宋体][size=10.5pt]命令,就应该发一个[/size][/font][font=Arial][size=10.5pt]DM[/size][/font][font=宋体][size=10.5pt]作为响应。[/size][/font]3.3.4. DISC command[font=Arial][size=10.5pt]DISC[/size][/font][font=宋体][size=10.5pt]命令用于终止通道。一端用它通知另外一端,它正在挂起操作并且将进入逻辑断开模式。在处理这个命令以前,接收一端,用[/size][/font][font=Arial][size=10.5pt]UA[/size][/font][font=宋体][size=10.5pt]命令去回应,作为对收到[/size][/font][font=Arial][size=10.5pt]DISC[/size][/font][font=宋体][size=10.5pt]命令的确认。[/size][/font][font=宋体][size=10.5pt]用[/size][/font][font=Arial][size=10.5pt]DLCI 0[/size][/font][font=宋体][size=10.5pt]通道传送的[/size][/font][font=Arial][size=10.5pt]DISC[/size][/font][font=宋体][size=10.5pt]命令,跟[/size][/font][font=Arial][size=10.5pt]MUX[/size][/font][font=宋体][size=10.5pt]的关闭命令(见[/size][/font][font=Arial][size=10.5pt]3.4.6[/size][/font][font=Arial][size=10.5pt].3[/size][/font][font=宋体][size=10.5pt])具有相同的意思。关于关闭流程的更多信息,参加[/size][/font][font=Arial][size=10.5pt]3.8.2[/size][/font][font=宋体][size=10.5pt]。[/size][/font]3.3.5. UIH command/response
[font=Arial][size=10.5pt]UIH[/size][/font][font=宋体][size=10.5pt]命令帧[/size][/font][font=Arial][size=10.5pt]/[/size][/font][font=宋体][size=10.5pt]响应帧,用来传递不带有能影响任何一端的[/size][/font][font=Arial][size=10.5pt]V[/size][/font][font=宋体][size=10.5pt]([/size][/font][font=Arial][size=10.5pt]S[/size][/font][font=宋体][size=10.5pt])和[/size][/font][font=Arial][size=10.5pt]V[/size][/font][font=宋体][size=10.5pt]([/size][/font][font=Arial][size=10.5pt]R[/size][/font][font=宋体][size=10.5pt])变量的信息。被传输的信息的完整性与传输到正确的[/size][/font][font=Arial][size=10.5pt]DLCI[/size][/font][font=宋体][size=10.5pt]相比,不太重要时,可以用[/size][/font][font=Arial][size=10.5pt]UIH[/size][/font][font=宋体][size=10.5pt]。[/size][/font][font=Arial][size=10.5pt]UIH[/size][/font][font=宋体][size=10.5pt]的帧,[/size][/font][font=Arial][size=10.5pt]FCS[/size][/font][font=宋体][size=10.5pt]只对地址域,控制域和长度域,进行计算。[/size][/font][font=Arial][size=10.5pt]
UIH[/size][/font][font=宋体][size=10.5pt]命令帧[/size][/font][font=Arial][size=10.5pt]/[/size][/font][font=宋体][size=10.5pt]响应帧的接收,不是顺序的编号(被数据链路流程检验)。因此,假如数据链路在受保护的该命令部分的传输过程中发生了异常,[/size][/font][font=Arial][size=10.5pt]UIH[/size][/font][font=宋体][size=10.5pt]数据帧可能丢失;假如对该命令的回复过程中出现了异常,[/size][/font][font=Arial][size=10.5pt]UI[/size][/font][font=宋体][size=10.5pt]数据帧可能会重复。[/size][/font][font=Arial][size=10.5pt]UIH[/size][/font][font=宋体][size=10.5pt]命令帧[/size][/font][font=Arial][size=10.5pt]/[/size][/font][font=宋体][size=10.5pt]响应帧,没有指明回应帧。[/size][/font]3.3.6. UI command/response[font=Arial][size=10.5pt]UI[/size][/font][font=宋体][size=10.5pt]命令帧[/size][/font][font=Arial][size=10.5pt]/[/size][/font][font=宋体][size=10.5pt]响应帧,用来传递不带有能影响任何一端的[/size][/font][font=Arial][size=10.5pt]V[/size][/font][font=宋体][size=10.5pt]([/size][/font][font=Arial][size=10.5pt]S[/size][/font][font=宋体][size=10.5pt])和[/size][/font][font=Arial][size=10.5pt]V[/size][/font][font=宋体][size=10.5pt]([/size][/font][font=Arial][size=10.5pt]R[/size][/font][font=宋体][size=10.5pt])变量的信息。[/size][/font][font=Arial][size=10.5pt]UI[/size][/font][font=宋体][size=10.5pt]命令帧[/size][/font][font=Arial][size=10.5pt]/[/size][/font][font=宋体][size=10.5pt]响应帧的接收,不是顺序的编号(被数据链路流程检验)。因此,假如数据链路在受保护的该命令部分的传输过程中发生了异常,[/size][/font][font=Arial][size=10.5pt]UI[/size][/font][font=宋体][size=10.5pt]数据帧可能丢失;假如对该命令的回复过程中出现了异常,[/size][/font][font=Arial][size=10.5pt]UI[/size][/font][font=宋体][size=10.5pt]数据帧可能会重复。[/size][/font][font=Arial][size=10.5pt]UI[/size][/font][font=宋体][size=10.5pt]命令帧[/size][/font][font=Arial][size=10.5pt]/[/size][/font][font=宋体][size=10.5pt]响应帧,没有指明回应帧。[/size][/font][font=宋体][size=10.5pt]对[/size][/font][font=Arial][size=10.5pt]UI[/size][/font][font=宋体][size=10.5pt]数据帧来说,[/size][/font][font=Arial][size=10.5pt]FCS[/size][/font][font=宋体][size=10.5pt]对所有域(地址域,控制域,长度域,信息域)进行计算。是否支持[/size][/font][font=Arial][size=10.5pt]UI[/size][/font][font=宋体][size=10.5pt]数据帧,是可选的。[/size][/font]3.4. [font=黑体]过程和状态[/font][img=552,408]file:///C:\DOCUME~1\chen\LOCALS~1\Temp\msohtml1\01\clip_image009.gif[/img]3.4.1. [font=宋体]建立[/font]DLC[font=宋体]链路[/font][font=宋体][size=10.5pt]多数情况,[/size][/font][font=Arial][size=10.5pt]DLC[/size][/font][font=宋体][size=10.5pt]链路是由[/size][/font][font=Arial][size=10.5pt]TE[/size][/font][font=宋体][size=10.5pt]建立的,然而,协议上是对等的,[/size][/font][font=Arial][size=10.5pt]MS[/size][/font][font=宋体][size=10.5pt]也可以建立它,但本文不叙述这种情况。[/size][/font][font=宋体][size=10.5pt]建立过程如下:首先发起方发送[/size][/font][font=Arial][size=10.5pt]P[/size][/font][font=宋体][size=10.5pt]位为[/size][/font][font=Arial][size=10.5pt]1[/size][/font][font=宋体][size=10.5pt]的[/size][/font][font=Arial][size=10.5pt]SABM[/size][/font][font=宋体][size=10.5pt]命令,地址域是通道的编号。响应方发[/size][/font][font=Arial][size=10.5pt]F[/size][/font][font=宋体][size=10.5pt]位为[/size][/font][font=Arial][size=10.5pt]1[/size][/font][font=宋体][size=10.5pt]的[/size][/font][font=Arial][size=10.5pt]UA[/size][/font][font=宋体][size=10.5pt]作为回应。如果响应方没准备好,或者不愿意建立,那么,它就回一个[/size][/font][font=Arial][size=10.5pt]F[/size][/font][font=宋体][size=10.5pt]位为[/size][/font][font=Arial][size=10.5pt]1[/size][/font][font=宋体][size=10.5pt]的[/size][/font][font=Arial][size=10.5pt]DM[/size][/font][font=宋体][size=10.5pt]帧。[/size][/font][font=宋体][size=10.5pt]一旦[/size][/font][font=Arial][size=10.5pt]DLC[/size][/font][font=宋体][size=10.5pt]建立成功,就意味着进入了连接状态,可以传输数据了。[/size][/font][font=宋体][size=10.5pt]如果[/size][/font][font=Arial][size=10.5pt]T1[/size][/font][font=宋体][size=10.5pt]时间以内,收不到[/size][/font][font=Arial][size=10.5pt]UA[/size][/font][font=宋体][size=10.5pt]或[/size][/font][font=Arial][size=10.5pt]DM[/size][/font][font=宋体][size=10.5pt]的响应,就重发[/size][/font][font=Arial][size=10.5pt]SABM[/size][/font][font=宋体][size=10.5pt]。这个动作可以一直重复,直到得到响应,或者上层应用采取了其他措施。[/size][/font][font=宋体][size=10.5pt]如果没有协商过程,[/size][/font][font=Arial][size=10.5pt]DLC[/size][/font][font=宋体][size=10.5pt]的参数就是默认的。[/size][/font]3.4.2. [font=宋体]释放[/font]DLC[font=宋体]链路[/font][font=宋体][size=10.5pt]双方都可以发送[/size][/font][size=10.5pt]P[/size][font=宋体][size=10.5pt]位为[/size][/font][size=10.5pt]1[/size][font=宋体][size=10.5pt]的[/size][/font][size=10.5pt]DISC[/size][font=宋体][size=10.5pt]命令,来释放[/size][/font][size=10.5pt]DLC[/size][font=宋体][size=10.5pt]链路。另外一方回应[/size][/font][size=10.5pt]F[/size][font=宋体][size=10.5pt]位为[/size][/font][size=10.5pt]1[/size][font=宋体][size=10.5pt]的[/size][/font][size=10.5pt]UA[/size][font=宋体][size=10.5pt]帧。如果释放成功,[/size][/font][size=10.5pt]DLC[/size][font=宋体][size=10.5pt]就进入断开状态。[/size][/font][font=宋体][size=10.5pt]如果收到[/size][/font][size=10.5pt]DISC[/size][font=宋体][size=10.5pt]命令时,发现已经是断开状态了,就发一个[/size][/font][size=10.5pt]DM[/size][font=宋体][size=10.5pt]作为回应。[/size][/font][font=宋体][size=10.5pt]如果[/size][/font][size=10.5pt]T1[/size][font=宋体][size=10.5pt]时间内,没有收到[/size][/font][size=10.5pt]UA[/size][font=宋体][size=10.5pt]或者[/size][/font][size=10.5pt]DM[/size][font=宋体][size=10.5pt]的响应,就重发[/size][/font][size=10.5pt]DISC[/size][font=宋体][size=10.5pt]命令。[/size][/font][font=宋体][size=10.0pt]这个动作可以一直重复,直到得到响应,或者上层应用采取了其他措施。[/size][/font]3.4.3.
[font=宋体]信息传输[/font]3.4.3.1. [font=黑体]信息数据[/font][font=宋体][size=10.5pt]信息使用[/size][/font][font=Arial][size=10.5pt]UI[/size][/font][font=宋体][size=10.5pt]或[/size][/font][font=Arial][size=10.5pt]UIH[/size][/font][font=宋体][size=10.5pt]进行传输。[/size][/font][font=Arial][size=10.5pt]UIH[/size][/font][font=宋体][size=10.5pt]一定要支持,[/size][/font][font=Arial][size=10.5pt]UI[/size][/font][font=宋体][size=10.5pt]是可选的。[/size][/font][font=宋体][size=10.5pt]当知道数据被正确的接收非常重要时,就采用[/size][/font][font=Arial][size=10.5pt]UI[/size][/font][font=宋体][size=10.5pt],例如[/size][/font][font=Arial][size=10.5pt]IP[/size][/font][font=宋体][size=10.5pt]业务包。传输出错无所谓时,使用[/size][/font][font=Arial][size=10.5pt]UIH[/size][/font][font=宋体][size=10.5pt]。由于及时性的关系,不能采用差错恢复的机制时,可以使用[/size][/font][font=Arial][size=10.5pt]UI[/size][/font][font=宋体][size=10.5pt]或[/size][/font][font=Arial][size=10.5pt]UIH[/size][/font][font=宋体][size=10.5pt],比如音频数据。[/size][/font][font=宋体][size=10.5pt]双方都要把[/size][/font][font=Arial][size=10.5pt]P[/size][/font][font=宋体][size=10.5pt]位置[/size][/font][font=Arial][size=10.5pt]0[/size][/font][font=宋体][size=10.5pt]。[/size][/font][font=Arial][size=10.5pt]C/R[/size][/font][font=宋体][size=10.5pt]位,参见上面的描述。[/size][/font][font=宋体][size=10.5pt]信息的最大长度,受系统的参数所限制。[/size][/font]3.4.3.2. [font=黑体]优先级[/font][font=宋体][size=10.5pt]每个数据流,都有对应的优先级。总共有[/size][/font][font=Arial][size=10.5pt]0-63[/size][/font][font=宋体][size=10.5pt]级别的优先级,数字越小,表示优先级越高。[/size][/font][font=Arial][size=10.5pt]TE[/size][/font][font=宋体][size=10.5pt]位每个[/size][/font][font=Arial][size=10.5pt]DLC[/size][/font][font=宋体][size=10.5pt]指定一个优先级,并且,用控制通道,通知[/size][/font][font=Arial][size=10.5pt]MS[/size][/font][font=宋体][size=10.5pt]。[/size][/font][font=宋体][size=10.5pt]如果一条消息缺省优先级,[/size][/font][font=Arial][size=10.5pt]DLC[/size][/font][font=宋体][size=10.5pt]将根据[/size][/font][font=Arial][size=10.5pt]3.6[/size][/font][font=宋体][size=10.5pt]中的[/size][/font][font=Arial][size=10.5pt]DLCI[/size][/font][font=宋体][size=10.5pt]分配表指定它的优先级。传输器([/size][/font][font=Arial][size=10.5pt]transmitter[/size][/font][font=宋体][size=10.5pt])控制哪些帧要传输,以及对它们按何种结构进行封装,并且不描述这些工作是如何完成的。假如比现在正在传输的数据的优先级更高的数据正在等待,传输器有如下几个可以采用的选项:[/size][/font][font=Arial][size=10.5pt]a)
[/size][/font][font=宋体][size=10.5pt]先传输完当前帧。[/size][/font][font=Arial][size=10.5pt]b)
[/size][/font][font=宋体][size=10.5pt]中止对当前帧的打包,传输当前的[/size][/font][font=Arial][size=10.5pt]FCS[/size][/font][font=宋体][size=10.5pt]和终止标识[/size][/font][font=Arial][size=10.5pt]Flag[/size][/font][font=宋体][size=10.5pt](只对[/size][/font][font=Arial][size=10.5pt]advanced[/size][/font][font=宋体][size=10.5pt]),并且开始传输更高优先级的数据。[/size][/font][font=宋体][size=10.5pt]带有更高优先级数据的[/size][/font][font=Arial][size=10.5pt]DLC[/size][/font][font=宋体][size=10.5pt],不会阻止任何低优先级的[/size][/font][font=Arial][size=10.5pt]DLC[/size][/font][font=宋体][size=10.5pt]。高优先级和低优先级的帧的交叉,是必要的,因为这能避免低优先级通道被永远堵塞。[/size][/font]3.4.4. [font=宋体]帧变量[/font][size=10.5pt]P[/size][font=宋体][size=10.5pt]位置[/size][/font][size=10.5pt]1[/size][font=宋体][size=10.5pt],表示通道的一端向另外一端请求一个或者一组回应([/size][/font][size=10.5pt]response[/size][font=宋体][size=10.5pt])。[/size][/font][size=10.5pt]F[/size][font=宋体][size=10.5pt]位置[/size][/font][size=10.5pt]1[/size][font=宋体][size=10.5pt],表示通道一端指明发一个响应帧,对另外一端的[/size][/font][size=10.5pt]P[/size][font=宋体][size=10.5pt]命令进行回应。[/size][/font][font=宋体][size=10.5pt]在命令帧和响应帧里,[/size][/font][size=10.5pt]P/F[/size][font=宋体][size=10.5pt]位,最好用一个函数进行设置。[/size][/font]3.4.4.1. P[font=黑体]位函数[/font][size=10.5pt]P[/size][font=宋体][size=10.5pt]位置[/size][/font][size=10.5pt]1[/size][font=宋体][size=10.5pt],向另外一端请求[/size][/font][size=10.5pt]F[/size][font=宋体][size=10.5pt]位置[/size][/font][size=10.5pt]1[/size][font=宋体][size=10.5pt]的响应帧。[/size][/font][font=宋体][size=10.5pt]在一个特别的[/size][/font][size=10.5pt]DLCI[/size][font=宋体][size=10.5pt],在给定的时间和给定的方向,只有一个[/size][/font][size=10.5pt]P[/size][font=宋体][size=10.5pt]位置[/size][/font][size=10.5pt]1[/size][font=宋体][size=10.5pt]的帧。[/size][/font][font=宋体][size=10.5pt]接收到一个[/size][/font][size=10.5pt]P[/size][font=宋体][size=10.5pt]位置[/size][/font][size=10.5pt]0[/size][font=宋体][size=10.5pt]的[/size][/font][size=10.5pt]SABM[/size][font=宋体][size=10.5pt]或者[/size][/font][size=10.5pt]DISC[/size][font=宋体][size=10.5pt]命令帧,接收到的帧,将被丢弃。[/size][/font][font=宋体][size=10.5pt]如果接收到未被请求的[/size][/font][size=10.5pt]DM[/size][font=宋体][size=10.5pt]响应,这个帧要做与[/size][/font][size=10.5pt]P/F[/size][font=宋体][size=10.5pt]设置无关的处理。[/size][/font][font=宋体][size=10.5pt]通道的一端在发送另外一个[/size][/font][size=10.5pt]P[/size][font=宋体][size=10.5pt]位置[/size][/font][size=10.5pt]1[/size][font=宋体][size=10.5pt]的帧之前,它会从另外一端收到一个[/size][/font][size=10.5pt]F[/size][font=宋体][size=10.5pt]位置[/size][/font][size=10.5pt]1[/size][font=宋体][size=10.5pt]的回应帧。如果在系统定义的时间段以内,没有收到回应帧,重发一个[/size][/font][size=10.5pt]P[/size][font=宋体][size=10.5pt]位置[/size][/font][size=10.5pt]1[/size][font=宋体][size=10.5pt]的帧,用于错误恢复的目的,是允许的。[/size][/font][font=Arial][size=10.5pt] [/size][/font]3.4.4.2. F[font=黑体]位函数[/font][size=10.5pt]F[/size][font=宋体][size=10.5pt]位置[/size][/font][size=10.5pt]1[/size][font=宋体][size=10.5pt]的回应帧,一端回应另外一端的[/size][/font][size=10.5pt]P[/size][font=宋体][size=10.5pt]位置[/size][/font][size=10.5pt]1[/size][font=宋体][size=10.5pt]的命令帧时,使用它。要求在第一时间回应。[/size][/font][font=宋体][size=10.5pt]一端可以随时异步发送[/size][/font][size=10.5pt]F[/size][font=宋体][size=10.5pt]位置[/size][/font][size=10.5pt]0[/size][font=宋体][size=10.5pt]的回应帧。但如果接收到的是[/size][/font][size=10.5pt]F[/size][font=宋体][size=10.5pt]位置[/size][/font][size=10.5pt]0[/size][font=宋体][size=10.5pt]的[/size][/font][size=10.5pt]UA[/size][font=宋体][size=10.5pt]回应帧,接受的帧,将被丢弃。[/size][/font][font=宋体][size=10.5pt]如果接收到未被请求的[/size][/font][size=10.5pt]DM[/size][font=宋体][size=10.5pt]响应,这个帧要做与[/size][/font][size=10.5pt]P/F[/size][font=宋体][size=10.5pt]设置无关的处理。[/size][/font][font=宋体][size=10.5pt]假如一端接收到一个[/size][/font][size=10.5pt]P[/size][font=宋体][size=10.5pt]位置[/size][/font][size=10.5pt]1[/size][font=宋体][size=10.5pt]的命令帧,[/size][/font][size=10.5pt]F[/size][font=宋体][size=10.5pt]位置[/size][/font][size=10.5pt]1[/size][font=宋体][size=10.5pt]的回应帧的传输,将优先于其他命令。但模式设置命令([/size][/font][size=10.5pt]SABM[/size][font=宋体][size=10.5pt]或者[/size][/font][size=10.5pt]DISC[/size][font=宋体][size=10.5pt])是个例外。[/size][/font]3.4.5. [font=宋体]超时的考虑[/font][font=宋体][size=10.5pt]为了检测无回应或者回应丢失的情况,每端都应该提供一个响应超时的函数([/size][/font][size=10.5pt]T1[/size][font=宋体][size=10.5pt])。超时后,应该启动错误恢复的流程。[/size][/font][font=宋体][size=10.5pt]为了解决争夺的情况,超时函数的时长,在两端最好不要相等。[/size][/font][font=宋体][size=10.5pt]一端传输过一帧,等待回应时,超时函数就应该启动。收到回应,则停止计时。[/size][/font][font=宋体][size=10.5pt]如果响应超时函数超时了,重发[/size][/font][size=10.5pt]P[/size][font=宋体][size=10.5pt]位置[/size][/font][size=10.5pt]1[/size][font=宋体][size=10.5pt]的命令帧,超时函数重新开始计时。[/size][/font]3.4.6. [font=宋体]多路控制通道[/font][font=宋体][size=10.5pt]在[/size][/font][size=10.5pt]TE[/size][font=宋体][size=10.5pt]和[/size][/font][size=10.5pt]MS[/size][font=宋体][size=10.5pt]通信开始时,使用[/size][/font][size=10.5pt]3.8.1[/size][font=宋体][size=10.5pt]的流程,建立了[/size][/font][size=10.5pt]DLCI 0[/size][font=宋体][size=10.5pt]通道作为控制通道。它用来在两个[/size][/font][size=10.5pt]MUX[/size][font=宋体][size=10.5pt]([/size][/font][size=10.5pt]multiplexer[/size][font=宋体][size=10.5pt])之间传递信息。它用[/size][/font][size=10.5pt]ERM[/size][font=宋体][size=10.5pt]模式或者[/size][/font][size=10.5pt]non-ERM[/size][font=宋体][size=10.5pt]模式的流程,这个在用[/size][/font][size=10.5pt]+CMUX[/size][font=宋体][size=10.5pt]命令的时候,就决定了的。如果[/size][/font][size=10.5pt]ERM[/size][font=宋体][size=10.5pt]的流程是可用的,就用它们。[/size][/font][size=10.5pt] [/size]3.4.6.1. [font=黑体]消息格式[/font][align=center][table] [tr][td]  [size=10.5pt]Type[/size]  [/td][td]  [size=10.5pt]Length[/size]  [/td][td]  [size=10.5pt]Value1[/size]  [/td][td]  [size=10.5pt]Value2[/size]  [/td][td]  [size=10.5pt]…[/size]  [/td][td]  [size=10.5pt]Value n[/size]  [/td][/tr][/table][/align][size=10.5pt]
[/size][font=宋体][size=10.5pt]所有在多个[/size][/font][size=10.5pt]MUX[/size][font=宋体][size=10.5pt]之间被传递的信息,都使用上述的[/size][/font][size=10.5pt]type[/size][font=宋体][size=10.5pt],[/size][/font][size=10.5pt]length[/size][font=宋体][size=10.5pt],[/size][/font][size=10.5pt]value[/size][font=宋体][size=10.5pt]的格式。[/size][/font][size=10.5pt]
[/size][font=宋体][size=10.5pt]上述的每个单元格至少占用[/size][/font][size=10.5pt]1[/size][font=宋体][size=10.5pt]个字节,[/size][/font][size=10.5pt]type[/size][font=宋体][size=10.5pt]和[/size][/font][size=10.5pt]length[/size][font=宋体][size=10.5pt]有扩展位,所以,它们有可能多于[/size][/font][size=10.5pt]1[/size][font=宋体][size=10.5pt]个字节。[/size][/font][size=10.5pt]type[/size][font=宋体][size=10.5pt]域的第一个字节的[/size][/font][font=Arial][size=10.5pt]bit[/size][/font][font=宋体][size=10.5pt]位[/size][/font][font=宋体][size=10.5pt]格式如下:[/size][/font][align=center][table] [tr][td]  [font=Arial][size=10.5pt]Bit No.[/size][/font]  [/td][td]  [size=10.5pt]1[/size]  [/td][td]  [size=10.5pt]2[/size]  [/td][td]  [size=10.5pt]3[/size]  [/td][td]  [size=10.5pt]4[/size]  [/td][td]  [size=10.5pt]5[/size]  [/td][td]  [size=10.5pt]6[/size]  [/td][td]  [size=10.5pt]7[/size]  [/td][td]  [size=10.5pt]8[/size]  [/td][/tr][tr][td]  [font=Arial][size=10.5pt]Value[/size][/font]  [/td][td]  [size=10.5pt]EA[/size]  [/td][td]  [size=10.5pt]C\R[/size]  [/td][td]  [size=10.5pt]T1[/size]  [/td][td]  [size=10.5pt]T2[/size]  [/td][td]  [size=10.5pt]T3[/size]  [/td][td]  [size=10.5pt]T4[/size]  [/td][td]  [size=10.5pt]T5[/size]  [/td][td]  [size=10.5pt]T6[/size]  [/td][/tr][/table][/align][font=宋体][size=10.5pt]考虑[/size][/font][font=Arial][size=10.5pt]EA=1[/size][/font][font=宋体][size=10.5pt]时,长度域的扩展字节的[/size][/font][font=Arial][size=10.5pt]bit[/size][/font][font=宋体][size=10.5pt]位格式如下:[/size][/font][align=center][table] [tr][td]  [font=Arial][size=10.5pt]Bit No[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]1[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]2[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]3[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]4[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]5[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]6[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]7[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]8[/size][/font]  [/td][/tr][tr][td]  [font=Arial][size=10.5pt]Value[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]EA[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]T7[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]T8[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]T9[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]T10[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]T11[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]T12[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]T13[/size][/font]  [/td][/tr][/table][/align][font=Arial][size=10.5pt]
EA[/size][/font][font=宋体][size=10.5pt]位就是扩展位,其值为[/size][/font][font=Arial][size=10.5pt]1[/size][/font][font=宋体][size=10.5pt]表示当前就是本域的最后一个字节。[/size][/font][font=Arial][size=10.5pt]
C/R[/size][/font][font=宋体][size=10.5pt]位指示该信息是命令帧,还是回应帧。[/size][/font][font=Arial][size=10.5pt]
T[/size][/font][font=宋体][size=10.5pt]位表示类型编码。每个命令都有自己独特的编码方法。[/size][/font][font=Arial][size=10.5pt]2^6=64[/size][/font][font=宋体][size=10.5pt],这就是说一个字节的[/size][/font][font=Arial][size=10.5pt]type[/size][/font][font=宋体][size=10.5pt]域,能表式[/size][/font][font=Arial][size=10.5pt]63[/size][/font][font=宋体][size=10.5pt]种不同的信息类型。单字节的信息类型,在本文档中已经定义。[/size][/font][size=10.5pt]length[/size][font=宋体][size=10.5pt]的第一个字节的[/size][/font][font=Arial][size=10.5pt]bit[/size][/font][font=宋体][size=10.5pt]位格式如下:[/size][/font][align=center][table] [tr][td]  [font=Arial][size=10.5pt]Bit No.[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]1[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]2[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]3[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]4[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]5[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]6[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]7[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]8[/size][/font]  [/td][/tr][tr][td]  [font=Arial][size=10.5pt]Value[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]EA[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]L1[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]L2[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]L3[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]L4[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]L5[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]L6[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]L7[/size][/font]  [/td][/tr][/table][/align][font=Arial][size=10.5pt]
[/size][/font][font=宋体][size=10.5pt]后续字节,也是类似的格式。[/size][/font][font=Arial][size=10.5pt]EA[/size][/font][font=宋体][size=10.5pt]的意义跟上面的相同。[/size][/font][font=Arial][size=10.5pt]
L1[/size][/font][font=宋体][size=10.5pt]是最低位,[/size][/font][font=Arial][size=10.5pt]L7[/size][/font][font=宋体][size=10.5pt]是最高位。[/size][/font][font=Arial][size=10.5pt]2^7=128[/size][/font][font=宋体][size=10.5pt],也就是一条信息最大可以有[/size][/font][font=Arial][size=10.5pt]127[/size][/font][font=宋体][size=10.5pt]个字节的[/size][/font][font=Arial][size=10.5pt]value[/size][/font][font=宋体][size=10.5pt]值。[/size][/font][font=Arial][size=10.5pt]
[/size][/font][font=宋体][size=10.5pt]在不超过最大长度的情况下,一帧可以包含多条信息。但一条信息不能分割封装在多帧中。[/size][/font]3.4.6.2. [font=黑体]操作流程[/font]
[font=宋体]消息都是成对存在的,一个命令消息和一个相应的回应消息。假如[/font]C/R[font=宋体]位置为[/font]1[font=宋体],消息是命令,假如它置[/font]0[font=宋体],消息是回应。一个回应消息,跟引发它的命令一样,拥有同样的[/font]T[font=宋体]位。[/font]
[font=宋体]假如在[/font]T2[font=宋体]的时间内,一个命令没有产生一个回应,命令将被重新发送[/font]N2[font=宋体]次。假如[/font]N2[font=宋体]次的发送,都没有收到回应,[/font]MUX[font=宋体]([/font]multiplexer[font=宋体])的控制通道被认为有错,并且发出一个警报。错误情况的解决方法,相应的执行。[/font]3.4.6.3. [font=黑体]消息类型和处理([/font]Action[font=黑体])[/font]
[b][font=Arial][size=12.0pt]3.4.6[/size][/font][/b][b][font=Arial][size=12.0pt].3.1. [/size][/font][/b][b][font=宋体][size=12.0pt]参数协商[/size][/font][/b][b][font=Arial][size=12.0pt]PN[/size][/font][/b][b][font=宋体][size=12.0pt]([/size][/font][/b][b][font=Arial][size=12.0pt]ParameterNegotiation[/size][/font][/b][b][font=宋体][size=12.0pt])[/size][/font][/b][font=宋体][size=10.5pt]这个流程是可选的。如果这个命令不支持,[/size][/font][font=Arial][size=10.5pt]DLC[/size][/font][font=宋体][size=10.5pt]都使用默认值。[/size][/font][font=宋体][size=10.5pt]在一个[/size][/font][font=Arial][size=10.5pt]DLC[/size][/font][font=宋体][size=10.5pt]用[/size][/font][font=Arial][size=10.5pt]3.4.1[/size][/font][font=宋体][size=10.5pt]的机制建立之前,[/size][/font][font=Arial][size=10.5pt]TE[/size][/font][font=宋体][size=10.5pt]和[/size][/font][font=Arial][size=10.5pt]MS[/size][/font][font=宋体][size=10.5pt]必须对本[/size][/font][font=Arial][size=10.5pt]DLC[/size][/font][font=宋体][size=10.5pt]使用的参数进行协商。这些参数都由[/size][/font][font=Arial][size=10.5pt]PN[/size][/font][font=宋体][size=10.5pt]决定。[/size][/font][font=Arial][size=10.5pt]PN[/size][/font][font=宋体][size=10.5pt]使用下面的[/size][/font][font=Arial][size=10.5pt]type[/size][/font][font=宋体][size=10.5pt]域字节:[/size][/font][align=center][table] [tr][td]  [font=Arial][size=10.5pt]Bit No.[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]1[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]2[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]3[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]4[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]5[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]6[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]7[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]8[/size][/font]  [/td][/tr][tr][td]  [font=Arial][size=10.5pt]Value[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]EA[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]C\R[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]0[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]0[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]0[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]0[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]0[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]1[/size][/font]  [/td][/tr][/table][/align][font=Arial][size=10.5pt]Length[/size][/font][font=宋体][size=10.5pt]域字节包括值[/size][/font][font=Arial][size=10.5pt]8[/size][/font][font=宋体][size=10.5pt]和下面[/size][/font][font=Arial][size=10.5pt]8[/size][/font][font=宋体][size=10.5pt]个值字节。值字节包括表[/size][/font][font=Arial][size=10.5pt]3[/size][/font][font=宋体][size=10.5pt]的信息。[/size][/font][font=宋体][size=10.5pt]表[/size][/font][font=Arial][size=10.5pt]3[/size][/font][font=宋体][size=10.5pt]:[/size][/font][font=Arial][size=10.5pt]PN[/size][/font][align=center][table] [tr][td]  Value Octet  [/td][td]  Bit1  [/td][td]  Bit2  [/td][td]  Bit3  [/td][td]  Bit4  [/td][td]  Bit5  [/td][td]  Bit6  [/td][td]  Bit7  [/td][td]  Bit8  [/td][/tr][tr][td]  1  [/td][td]  D1  [/td][td]  D2  [/td][td]  D3  [/td][td]  D4  [/td][td]  D5  [/td][td]  D6  [/td][td]  0  [/td][td]  0  [/td][/tr][tr][td]  2  [/td][td]  I1  [/td][td]  I2  [/td][td]  I3  [/td][td]  I4  [/td][td]  CL1  [/td][td]  CL2  [/td][td]  CL3  [/td][td]  CL4  [/td][/tr][tr][td]  3  [/td][td]  P1  [/td][td]  P2  [/td][td]  P3  [/td][td]  P4  [/td][td]  P5  [/td][td]  P6  [/td][td]  0  [/td][td]  0  [/td][/tr][tr][td]  4  [/td][td]  T1  [/td][td]  T2  [/td][td]  T3  [/td][td]  T4  [/td][td]  T5  [/td][td]  T6  [/td][td]  T7  [/td][td]  T8  [/td][/tr][tr][td]  5  [/td][td]  N1  [/td][td]  N2  [/td][td]  N3  [/td][td]  N4  [/td][td]  N5  [/td][td]  N6  [/td][td]  N7  [/td][td]  N8  [/td][/tr][tr][td]  6  [/td][td]  N9  [/td][td]  N10  [/td][td]  N11  [/td][td]  N12  [/td][td]  N13  [/td][td]  N14  [/td][td]  N15  [/td][td]  N16  [/td][/tr][tr][td]  7  [/td][td]  NA1  [/td][td]  NA2  [/td][td]  NA3  [/td][td]  NA4  [/td][td]  NA5  [/td][td]  NA6  [/td][td]  NA7  [/td][td]  NA8  [/td][/tr][tr][td]  8  [/td][td]  K1  [/td][td]  K2  [/td][td]  K3  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][/tr][/table][/align][font=宋体][size=10.5pt]各个域的编码如下:[/size][/font][b][font=Arial][size=10.5pt]D[/size][/font][/b][b][font=宋体][size=10.5pt]位[/size][/font][/b][font=宋体][size=10.5pt]定义了其他信息提及的[/size][/font][b][font=Arial][size=10.5pt]DLCI[/size][/font][/b][font=宋体][size=10.5pt],[/size][/font][font=Arial][size=10.5pt]D1[/size][/font][font=宋体][size=10.5pt]是最低有效位。[/size][/font][b][font=Arial][size=10.5pt]I[/size][/font][/b][b][font=宋体][size=10.5pt]位[/size][/font][/b][font=宋体][size=10.5pt]定义了用来在特殊[/size][/font][font=Arial][size=10.5pt]DLC[/size][/font][font=宋体][size=10.5pt]装载信息的[b]数据帧的类型[/b]。见表[/size][/font][font=Arial][size=10.5pt]4[/size][/font][font=宋体][size=10.5pt]。[/size][/font][font=宋体][size=10.5pt]表[/size][/font][font=Arial][size=10.5pt]4[/size][/font][font=宋体][size=10.5pt]:[/size][/font][font=Arial][size=10.5pt]I[/size][/font][font=宋体][size=10.5pt]位的含义[/size][/font][align=center][table] [tr][td]  Meaning  [/td][td]  I1  [/td][td]  I2  [/td][td]  I3  [/td][td]  I4  [/td][/tr][tr][td]  [font=Arial][size=10.5pt]Use UIH frames[/size][/font]  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][/tr][tr][td]  [font=Arial][size=10.5pt]Use UI frames[/size][/font]  [/td][td]  1  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][/tr][tr][td]  [font=Arial][size=10.5pt]Use I frames (note)[/size][/font]  [/td][td]  0  [/td][td]  1  [/td][td]  0  [/td][td]  0  [/td][/tr][/table][/align][font=Arial][size=10.5pt]
[/size][/font][font=宋体][size=10.5pt]其他值保留。默认值是[/size][/font][font=Arial][size=10.5pt]0000[/size][/font][font=宋体][size=10.5pt]。缺省协商的情况下,(为[/size][/font][font=Arial][size=10.5pt]DLCI>0[/size][/font][font=宋体][size=10.5pt])使用的帧类型,跟[/size][/font][font=Arial][size=10.5pt]MUX[/size][/font][font=宋体][size=10.5pt]控制通道使用的相同。[/size][/font][font=Arial][size=10.5pt]
[b]CL[/b][/size][/font][b][font=宋体][size=10.5pt]位[/size][/font][/b][font=宋体][size=10.5pt]定义了特殊[/size][/font][font=Arial][size=10.5pt]DLC[/size][/font][font=宋体][size=10.5pt]使用的[b]集成层的类型[/b]。参见表[/size][/font][font=Arial][size=10.5pt]5[/size][/font][font=宋体][size=10.5pt]。[/size][/font][font=宋体][size=10.5pt]表[/size][/font][font=Arial][size=10.5pt]5[/size][/font][font=宋体][size=10.5pt]:[/size][/font][font=Arial][size=10.5pt]CL[/size][/font][font=宋体][size=10.5pt]位的含义[/size][/font][align=center][table] [tr][td]  Meaning  [/td][td]  CL1  [/td][td]  CL2  [/td][td]  CL3  [/td][td]  CL4  [/td][/tr][tr][td]  Type1  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][/tr][tr][td]  Type2  [/td][td]  1  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][/tr][tr][td]  Type3  [/td][td]  0  [/td][td]  1  [/td][td]  0  [/td][td]  0  [/td][/tr][/table][/align][font=Arial][size=10.5pt]
[/size][/font][font=宋体][size=10.5pt]其他值保留。默认值是[/size][/font][font=Arial][size=10.5pt]0000[/size][/font][font=宋体][size=10.5pt]。[/size][/font][font=Arial][size=10.5pt]
[b]P[/b][/size][/font][b][font=宋体][size=10.5pt]位[/size][/font][/b][font=宋体][size=10.5pt]定义了指派给特殊[/size][/font][b][font=Arial][size=10.5pt]DLC[/size][/font][/b][b][font=宋体][size=10.5pt]的优先级[/size][/font][/b][font=宋体][size=10.5pt]。范围是[/size][/font][font=Arial][size=10.5pt]0-63[/size][/font][font=宋体][size=10.5pt],[/size][/font][font=Arial][size=10.5pt]0[/size][/font][font=宋体][size=10.5pt]是最低的优先级。[/size][/font][font=Arial][size=10.5pt]P1[/size][/font][font=宋体][size=10.5pt]是最低有效位。默认值由[/size][/font][font=Arial][size=10.5pt]DLCI[/size][/font][font=宋体][size=10.5pt]的值给定,参见[/size][/font][font=Arial][size=10.5pt]3.6[/size][/font][font=宋体][size=10.5pt]。[/size][/font][font=Arial][size=10.5pt]
[b]T[/b][/size][/font][b][font=宋体][size=10.5pt]位[/size][/font][/b][font=宋体][size=10.5pt]定义了确认[b]时间[/b][/size][/font][b][font=Arial][size=10.5pt]T1[/size][/font][/b][font=宋体][size=10.5pt],参见[/size][/font][font=Arial][size=10.5pt]3.7.1[/size][/font][font=宋体][size=10.5pt]。单位是毫秒,[/size][/font][font=Arial][size=10.5pt]T1[/size][/font][font=宋体][size=10.5pt]是最低有效位。[/size][/font][font=Arial][size=10.5pt]
[b]N[/b][/size][/font][b][font=宋体][size=10.5pt]位[/size][/font][/b][font=宋体][size=10.5pt]定义了最大帧的[b]大小[/b][/size][/font][b][font=Arial][size=10.5pt]N1[/size][/font][/b][font=宋体][size=10.5pt],参见[/size][/font][font=Arial][size=10.5pt]3.7.2[/size][/font][font=宋体][size=10.5pt]。该参数是六位的数字,[/size][/font][font=Arial][size=10.5pt]N1[/size][/font][font=宋体][size=10.5pt]是最低有效位。[/size][/font][font=Arial][size=10.5pt]
[b]NA[/b][/size][/font][b][font=宋体][size=10.5pt]位[/size][/font][/b][font=宋体][size=10.5pt]定义了重发的[b]最大次数[/b][/size][/font][b][font=Arial][size=10.5pt]N2[/size][/font][/b][font=宋体][size=10.5pt],参见[/size][/font][font=Arial][size=10.5pt]3.7.3[/size][/font][font=宋体][size=10.5pt]。该参数是八位数字,[/size][/font][font=Arial][size=10.5pt]K1[/size][/font][font=宋体][size=10.5pt]是最低有效位。[/size][/font][font=Arial][size=10.5pt]
TE[/size][/font][font=宋体][size=10.5pt]向[/size][/font][font=Arial][size=10.5pt]MS[/size][/font][font=宋体][size=10.5pt]传输一个参数协商([/size][/font][font=Arial][size=10.5pt]PN[/size][/font][font=宋体][size=10.5pt])命令,该命令的域里,赋值成[/size][/font][font=Arial][size=10.5pt]TE[/size][/font][font=宋体][size=10.5pt]想要为特殊[/size][/font][font=Arial][size=10.5pt]DLCI[/size][/font][font=宋体][size=10.5pt]使用的值。[/size][/font][font=Arial][size=10.5pt]MS[/size][/font][font=宋体][size=10.5pt]回应一个参数协商([/size][/font][font=Arial][size=10.5pt]PN[/size][/font][font=宋体][size=10.5pt])回应,该回应带有[/size][/font][font=Arial][size=10.5pt]MS[/size][/font][font=宋体][size=10.5pt]提议的值。[/size][/font][font=Arial][size=10.5pt]MS[/size][/font][font=宋体][size=10.5pt]构建回应时,参照下面的规则:[/size][/font][font=Arial][size=10.5pt]-
[/size][/font][font=Arial][size=10.5pt]DLCI[/size][/font][font=宋体][size=10.5pt]值不变。[/size][/font][font=Arial][size=10.5pt]-
[/size][/font][font=宋体][size=10.5pt]使用[/size][/font][font=Arial][size=10.5pt]I[/size][/font][font=宋体][size=10.5pt]帧或[/size][/font][font=Arial][size=10.5pt]UI[/size][/font][font=宋体][size=10.5pt]帧,是可选的,因此,没实现[/size][/font][font=Arial][size=10.5pt]UI[/size][/font][font=宋体][size=10.5pt]帧或[/size][/font][font=Arial][size=10.5pt]I[/size][/font][font=宋体][size=10.5pt]帧,[/size][/font][font=Arial][size=10.5pt]MS[/size][/font][font=宋体][size=10.5pt]采用[/size][/font][font=Arial][size=10.5pt]UIH[/size][/font][font=宋体][size=10.5pt]帧回应。[/size][/font][font=Arial][size=10.5pt]-
[/size][/font][font=Arial][size=10.5pt]MS[/size][/font][font=宋体][size=10.5pt]不会改变被[/size][/font][font=Arial][size=10.5pt]TE[/size][/font][font=宋体][size=10.5pt]提议的集成层。[/size][/font][font=Arial][size=10.5pt]-
[/size][/font][font=Arial][size=10.5pt]MS[/size][/font][font=宋体][size=10.5pt]不会改变被[/size][/font][font=Arial][size=10.5pt]TE[/size][/font][font=宋体][size=10.5pt]提议的优先级。[/size][/font][font=Arial][size=10.5pt]-
[/size][/font][font=Arial][size=10.5pt]T1[/size][/font][font=宋体][size=10.5pt]值是[/size][/font][font=Arial][size=10.5pt]TE[/size][/font][font=宋体][size=10.5pt]使用的,是不可协商的;[/size][/font][font=Arial][size=10.5pt]MS[/size][/font][font=宋体][size=10.5pt]将插入它自己的[/size][/font][font=Arial][size=10.5pt]T1[/size][/font][font=宋体][size=10.5pt]。建议每方使用不同的[/size][/font][font=Arial][size=10.5pt]T1[/size][/font][font=宋体][size=10.5pt]。[/size][/font][font=Arial][size=10.5pt]-
[/size][/font][font=宋体][size=10.5pt]假如没有足够的内存,[/size][/font][font=Arial][size=10.5pt]MS[/size][/font][font=宋体][size=10.5pt]将为最大帧的大小[/size][/font][font=Arial][size=10.5pt]N1[/size][/font][font=宋体][size=10.5pt],提议一个更小的值。[/size][/font][font=Arial][size=10.5pt]-
[/size][/font][font=Arial][size=10.5pt]N2[/size][/font][font=宋体][size=10.5pt]是[/size][/font][font=Arial][size=10.5pt]TE[/size][/font][font=宋体][size=10.5pt]使用的,是不可协商的;[/size][/font][font=Arial][size=10.5pt]MS[/size][/font][font=宋体][size=10.5pt]将插入它自己的[/size][/font][font=Arial][size=10.5pt]N2[/size][/font][font=宋体][size=10.5pt]值。[/size][/font][font=Arial][size=10.5pt]-
[/size][/font][font=宋体][size=10.5pt]假如没有足够的内存,[/size][/font][font=Arial][size=10.5pt]MS[/size][/font][font=宋体][size=10.5pt]将为窗口大小[/size][/font][font=Arial][size=10.5pt]k[/size][/font][font=宋体][size=10.5pt],提议一个更小的值。[/size][/font][font=宋体][size=10.5pt]假如[/size][/font][font=Arial][size=10.5pt]TE[/size][/font][font=宋体][size=10.5pt]认为[/size][/font][font=Arial][size=10.5pt]MS[/size][/font][font=宋体][size=10.5pt]的回应是可以接受的,[/size][/font][font=Arial][size=10.5pt]TE[/size][/font][font=宋体][size=10.5pt]将根据[/size][/font][font=Arial][size=10.5pt]3.3.1[/size][/font][font=宋体][size=10.5pt]的流程,建立[/size][/font][font=Arial][size=10.5pt]DLC[/size][/font][font=宋体][size=10.5pt]。假如回应是不可接受的,[/size][/font][font=Arial][size=10.5pt]TE[/size][/font][font=宋体][size=10.5pt]将发起另一个带有新参数的[/size][/font][font=Arial][size=10.5pt]PN[/size][/font][font=宋体][size=10.5pt]命令,或者向上层传递失败信息。[/size][/font][font=宋体][size=10.5pt]假如网络上有一个来电到达[/size][/font][font=Arial][size=10.5pt]MS[/size][/font][font=宋体][size=10.5pt],这时没有已经建立好的[/size][/font][font=Arial][size=10.5pt]DLC[/size][/font][font=宋体][size=10.5pt],[/size][/font][font=Arial][size=10.5pt]MS[/size][/font][font=宋体][size=10.5pt]将发起[/size][/font][font=Arial][size=10.5pt]PN[/size][/font][font=宋体][size=10.5pt]流程,并建立一个[/size][/font][font=Arial][size=10.5pt]DLC[/size][/font][font=宋体][size=10.5pt]。这种情况实际上是不会发生的,因为[/size][/font][font=Arial][size=10.5pt]TE[/size][/font][font=宋体][size=10.5pt]通常为各种功能建立[/size][/font][font=Arial][size=10.5pt]DLC[/size][/font][font=宋体][size=10.5pt],在容量交换后,它与[/size][/font][font=Arial][size=10.5pt]MS[/size][/font][font=宋体][size=10.5pt]所共享。来电的提示,将抛出([/size][/font][font=Arial][size=10.5pt]be through[/size][/font][font=宋体][size=10.5pt]?)一个[/size][/font][font=Arial][size=10.5pt]07.07[/size][/font][font=宋体][size=10.5pt]或者[/size][/font][font=Arial][size=10.5pt]07.05[/size][/font][font=宋体][size=10.5pt]的结果代码([/size][/font][font=Arial][size=10.5pt]result code[/size][/font][font=宋体][size=10.5pt])。[/size][/font][b][font=Arial][size=12.0pt]3.4.6[/size][/font][/b][b][font=Arial][size=12.0pt].3.2. [/size][/font][/b][b][font=宋体][size=12.0pt]省电控制[/size][/font][/b][b][font=Arial][size=12.0pt]PSC[/size][/font][/b][b][font=宋体][size=12.0pt]([/size][/font][/b][b][font=Arial][size=12.0pt]PowerSaving Control[/size][/font][/b][b][font=宋体][size=12.0pt])[/size][/font][/b][font=宋体][size=10.5pt]参见[/size][/font][font=Arial][size=10.5pt]3.4.7[/size][/font][font=宋体][size=10.5pt]。省电控制消息使用如下的[/size][/font][font=Arial][size=10.5pt]type[/size][/font][font=宋体][size=10.5pt]域字节:[/size][/font][align=center][table] [tr][td]  [font=Arial][size=10.5pt]Bit No.[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]1[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]2[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]3[/size][/font]  [/td][td=1,1,34]  [font=Arial][size=10.5pt]4[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]5[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]6[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]7[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]8[/size][/font]  [/td][/tr][tr][td]  [font=Arial][size=10.5pt]Value[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]EA[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]C\R[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]0[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]0[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]0[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]0[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]1[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]0[/size][/font]  [/td][/tr][/table][/align][font=Arial][size=10.5pt]
Length[/size][/font][font=宋体][size=10.5pt]字节包含值[/size][/font][font=Arial][size=10.5pt]0[/size][/font][font=宋体][size=10.5pt],没有无值字节。[/size][/font][font=Arial][size=10.5pt]
[/size][/font][font=宋体][size=10.5pt]假如一端想进入省电状态,它传输一个[/size][/font][font=Arial][size=10.5pt]PSC[/size][/font][font=宋体][size=10.5pt]命令;另一端回复一个[/size][/font][font=Arial][size=10.5pt]PSC[/size][/font][font=宋体][size=10.5pt]回应。[/size][/font][font=Arial][size=10.5pt]
[/size][/font][font=宋体][size=10.5pt]假如一端想请求让另外一端进入省电状态,它传输一个[/size][/font][font=Arial][size=10.5pt]PSC[/size][/font][font=宋体][size=10.5pt]命令;另外一端回复一个[/size][/font][font=Arial][size=10.5pt]PSC[/size][/font][font=宋体][size=10.5pt]回应。响应端可以进入省电状态,但这不是必须的。[/size][/font][b][font=Arial][size=12.0pt]3.4.6[/size][/font][/b][b][font=Arial][size=12.0pt].3.3. [/size][/font][/b][b][font=宋体][size=12.0pt]关闭[/size][/font][/b][b][font=Arial][size=12.0pt]MUX[/size][/font][/b][b][font=宋体][size=12.0pt]([/size][/font][/b][b][font=Arial][size=12.0pt]MultiplexerClose Down[/size][/font][/b][b][font=宋体][size=12.0pt])[/size][/font][/b][font=Arial][size=10.5pt]
[/size][/font][font=宋体][size=10.5pt]参见[/size][/font][font=Arial][size=10.5pt]3.8.2[/size][/font][font=宋体][size=10.5pt]。[/size][/font][font=Arial][size=10.5pt]
MUX[/size][/font][font=宋体][size=10.5pt]的[/size][/font][font=Arial][size=10.5pt]CLD[/size][/font][font=宋体][size=10.5pt]命令用于重置链路为非多串口的正常[/size][/font][font=Arial][size=10.5pt]AT[/size][/font][font=宋体][size=10.5pt]命令模式。它的[/size][/font][font=Arial][size=10.5pt]type[/size][/font][font=宋体][size=10.5pt]域字节如下:[/size][/font][align=center][table] [tr][td]  [font=Arial][size=10.5pt]Bit No.[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]1[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]2[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]3[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]4[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]5[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]6[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]7[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]8[/size][/font]  [/td][/tr][tr][td]  [font=Arial][size=10.5pt]Value[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]EA[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]C/R[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]0[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]0[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]0[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]0[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]1[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]1[/size][/font]  [/td][/tr][/table][/align][font=Arial][size=10.5pt]
Length[/size][/font][font=宋体][size=10.5pt]字节包含[/size][/font][font=Arial][size=10.5pt]0[/size][/font][font=宋体][size=10.5pt]值,没有值([/size][/font][font=Arial][size=10.5pt]value[/size][/font][font=宋体][size=10.5pt])字节。[/size][/font][b][font=Arial][size=12.0pt]3.4.6[/size][/font][/b][b][font=Arial][size=12.0pt].3.4. [/size][/font][/b][b][font=宋体][size=12.0pt]测试命令[/size][/font][/b][b][font=Arial][size=12.0pt]
[/size][/font][/b][font=宋体][size=10.5pt]测试命令用来测试[/size][/font][font=Arial][size=10.5pt]TE[/size][/font][font=宋体][size=10.5pt]和[/size][/font][font=Arial][size=10.5pt]MS[/size][/font][font=宋体][size=10.5pt]的链接。[/size][/font][font=Arial][size=10.5pt]Length[/size][/font][font=宋体][size=10.5pt]字节描述了值的字节数量,它用于验证模型。对端将回应具备相同的值的字节。它的[/size][/font][font=Arial][size=10.5pt]type[/size][/font][font=宋体][size=10.5pt]域字节的格式如下:[/size][/font][align=center][table] [tr][td]  [font=Arial][size=10.5pt]Bit No.[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]1[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]2[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]3[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]4[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]5[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]6[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]7[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]8[/size][/font]  [/td][/tr][tr][td]  [font=Arial][size=10.5pt]Value[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]EA[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]C\R[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]0[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]0[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]0[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]1[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]0[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]0[/size][/font]  [/td][/tr][/table][/align][font=Arial][size=10.5pt] [/size][/font][b][font=Arial][size=12.0pt]3.4.6[/size][/font][/b][b][font=Arial][size=12.0pt].3.5. [/size][/font][/b][b][font=宋体][size=12.0pt]流控开[/size][/font][/b][b][font=Arial][size=12.0pt]FCon[/size][/font][/b][b][font=宋体][size=12.0pt]([/size][/font][/b][b][font=Arial][size=12.0pt]FlowControl On[/size][/font][/b][b][font=宋体][size=12.0pt])[/size][/font][/b][font=Arial][size=10.5pt]
[/size][/font][font=宋体][size=10.5pt]流控命令用来处理聚集的流([/size][/font][font=Arial][size=10.5pt]aggregate flow[/size][/font][font=宋体][size=10.5pt])。当任何一端可以接收新信息的时候,它发送这个命令。[/size][/font][font=Arial][size=10.5pt]
Length[/size][/font][font=宋体][size=10.5pt]字节包含值[/size][/font][font=Arial][size=10.5pt]0[/size][/font][font=宋体][size=10.5pt],没有值([/size][/font][font=Arial][size=10.5pt]value[/size][/font][font=宋体][size=10.5pt])字节。它的[/size][/font][font=Arial][size=10.5pt]type[/size][/font][font=宋体][size=10.5pt]域字节如下:[/size][/font][align=center][table] [tr][td]  [font=Arial][size=10.5pt]Bit No.[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]1[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]2[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]3[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]4[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]5[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]6[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]7[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]8[/size][/font]  [/td][/tr][tr][td]  [font=Arial][size=10.5pt]Value[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]EA[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]C\R[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]0[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]0[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]0[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]1[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]0[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]1[/size][/font]  [/td][/tr][/table][/align][font=Arial][size=10.5pt]
[/size][/font][b][font=Arial][size=12.0pt]3.4.6[/size][/font][/b][b][font=Arial][size=12.0pt].3.6. [/size][/font][/b][b][font=宋体][size=12.0pt]流控关[/size][/font][/b][b][font=Arial][size=12.0pt]FCoff[/size][/font][/b][b][font=宋体][size=12.0pt]([/size][/font][/b][b][font=Arial][size=12.0pt]FlowControl Off[/size][/font][/b][b][font=宋体][size=12.0pt])[/size][/font][/b][font=宋体][size=10.5pt]流控命令用来处理聚集的流([/size][/font][font=Arial][size=10.5pt]aggregate flow[/size][/font][font=宋体][size=10.5pt])。当任何一端不能接收新信息的时候,它发送这个命令。另外一端不能发送数据帧,除了用控制通道([/size][/font][font=Arial][size=10.5pt]DLC=0[/size][/font][font=宋体][size=10.5pt])。[/size][/font][font=Arial][size=10.5pt]Length[/size][/font][font=宋体][size=10.5pt]字节包含[/size][/font][font=Arial][size=10.5pt]0[/size][/font][font=宋体][size=10.5pt]值,没有值([/size][/font][font=Arial][size=10.5pt]value[/size][/font][font=宋体][size=10.5pt])字节。它的[/size][/font][font=Arial][size=10.5pt]type[/size][/font][font=宋体][size=10.5pt]域字节如下:[/size][/font][align=center][table] [tr][td]  [font=Arial][size=10.5pt]Bit No.[/size][/font]  [/td][td]  [size=10.5pt]1[/size]  [/td][td]  [size=10.5pt]2[/size]  [/td][td]  [size=10.5pt]3[/size]  [/td][td]  [size=10.5pt]4[/size]  [/td][td]  [size=10.5pt]5[/size]  [/td][td]  [size=10.5pt]6[/size]  [/td][td]  [size=10.5pt]7[/size]  [/td][td]  [size=10.5pt]8[/size]  [/td][/tr][tr][td]  [font=Arial][size=10.5pt]Value[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]EA[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]C/R[/size][/font]  [/td][td]  [size=10.5pt]0[/size]  [/td][td]  [size=10.5pt]0[/size]  [/td][td]  [size=10.5pt]0[/size]  [/td][td]  [size=10.5pt]1[/size]  [/td][td]  [size=10.5pt]1[/size]  [/td][td]  [size=10.5pt]0[/size]  [/td][/tr][/table][/align][size=10.5pt] [/size][b][font=Arial][size=12.0pt]3.4.6[/size][/font][/b][b][font=Arial][size=12.0pt].3.7. [/size][/font][/b][b][font=宋体][size=12.0pt]猫状态命令[/size][/font][/b][b][font=Arial][size=14.0pt]MSC[/size][/font][/b][b][font=宋体][size=12.0pt]([/size][/font][/b][b][font=Arial][size=14.0pt]ModemStatus Command[/size][/font][/b][b][font=宋体][size=14.0pt])[/size][/font][/b][font=宋体][size=10.5pt]想往一个数据流中传送[/size][/font][font=Arial][size=10.5pt]V.24[/size][/font][font=宋体][size=10.5pt]控制信号,这是通过发送[/size][/font][font=Arial][size=10.5pt]MSC[/size][/font][font=宋体][size=10.5pt]命令来完成的。[/size][/font][font=Arial][size=10.5pt]MSC[/size][/font][font=宋体][size=10.5pt]命令有一个强制的控制信号字节和一个可选的中止信号字节。当[/size][/font][font=Arial][size=10.5pt]basic[/size][/font][font=宋体][size=10.5pt]模式时,这个命令才有效([/size][/font][font=Arial][size=10.5pt]relevant[/size][/font][font=宋体][size=10.5pt])。[/size][/font][font=宋体][size=10.5pt]这个命令将在[/size][/font][font=Arial][size=10.5pt]DLC[/size][/font][font=宋体][size=10.5pt]建立之后,优先于任何用数据,进行传输。[/size][/font][align=center][table] [tr][td]  [font=Arial][size=9.0pt]Command[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]Length[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]DLCI[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]V.24 signals[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]Break Signals(optional)[/size][/font]  [/td][/tr][/table][/align][font=Arial][size=10.5pt]
[/size][/font][font=宋体][size=10.5pt]这个命令包含值[/size][/font][font=Arial][size=10.5pt]2[/size][/font][font=宋体][size=10.5pt]或值[/size][/font][font=Arial][size=10.5pt]3[/size][/font][font=宋体][size=10.5pt],并且有[/size][/font][font=Arial][size=10.5pt]2[/size][/font][font=宋体][size=10.5pt]或[/size][/font][font=Arial][size=10.5pt]3[/size][/font][font=宋体][size=10.5pt]个值字节。[/size][/font][font=Arial][size=10.5pt]
DTE[/size][/font][font=宋体][size=10.5pt]和[/size][/font][font=Arial][size=10.5pt]DCE[/size][/font][font=宋体][size=10.5pt]都使用这个命令,相互通知它们自己[/size][/font][font=Arial][size=10.5pt]V.24[/size][/font][font=宋体][size=10.5pt]控制信号的状态。[/size][/font][font=Arial][size=10.5pt]MSC[/size][/font][font=宋体][size=10.5pt]命令的长度是[/size][/font][font=Arial][size=10.5pt]4[/size][/font][font=宋体][size=10.5pt]或[/size][/font][font=Arial][size=10.5pt]5[/size][/font][font=宋体][size=10.5pt]字节,这依赖于中止信号。[/size][/font][font=Arial][size=10.5pt]
Command[/size][/font][font=宋体][size=10.5pt]域字节的格式如下:[/size][/font][align=center][table] [tr][td]  [font=Arial][size=10.5pt]Bit No.[/size][/font]  [/td][td]  [size=10.5pt]1[/size]  [/td][td]  [size=10.5pt]2[/size]  [/td][td]  [size=10.5pt]3[/size]  [/td][td]  [size=10.5pt]4[/size]  [/td][td]  [size=10.5pt]5[/size]  [/td][td]  [size=10.5pt]6[/size]  [/td][td]  [size=10.5pt]7[/size]  [/td][td]  [size=10.5pt]8[/size]  [/td][/tr][tr][td]  [font=Arial][size=10.5pt]Value[/size][/font]  [/td][td]  [size=10.5pt]EA[/size]  [/td][td]  [size=10.5pt]C\R[/size]  [/td][td]  [size=10.5pt]0[/size]  [/td][td]  [size=10.5pt]0[/size]  [/td][td]  [size=10.5pt]0[/size]  [/td][td]  [size=10.5pt]1[/size]  [/td][td]  [size=10.5pt]1[/size]  [/td][td]  [size=10.5pt]1[/size]  [/td][/tr][/table][/align][font=Arial][size=10.5pt]
C/R[/size][/font][font=宋体][size=10.5pt]位用来指示它是命令还是回应。[/size][/font][font=Arial][size=10.5pt]
[/size][/font][font=宋体][size=10.5pt]每当信号改变,[/size][/font][font=Arial][size=10.5pt]DTE[/size][/font][font=宋体][size=10.5pt]或[/size][/font][font=Arial][size=10.5pt]DCE[/size][/font][font=宋体][size=10.5pt]发送这个命令,来指明每个信号的当前的状态。当[/size][/font][font=Arial][size=10.5pt]DTE[/size][/font][font=宋体][size=10.5pt]或[/size][/font][font=Arial][size=10.5pt]DCE[/size][/font][font=宋体][size=10.5pt]接收到猫命令,它总是发送回一个回应。接收方或发送方的[/size][/font][font=Arial][size=10.5pt]V.24[/size][/font][font=宋体][size=10.5pt]信号到控制信号字节里的[/size][/font][font=Arial][size=10.5pt]BIT[/size][/font][font=宋体][size=10.5pt]位的映射表,分别在表[/size][/font][font=Arial][size=10.5pt]6[/size][/font][font=宋体][size=10.5pt]和表[/size][/font][font=Arial][size=10.5pt]7[/size][/font][font=宋体][size=10.5pt]中给出。[/size][/font][font=Arial][size=10.5pt]
MSC[/size][/font][font=宋体][size=10.5pt]命令中,发送方自己的[/size][/font][font=Arial][size=10.5pt]V.24[/size][/font][font=宋体][size=10.5pt]信号,将被发送;但在回应中,它复制了从将被送回的命令帧里,接收到的[/size][/font][font=Arial][size=10.5pt]V.24[/size][/font][font=宋体][size=10.5pt]信号。[/size][/font][font=Arial][size=10.5pt]
DLCI[/size][/font][font=宋体][size=10.5pt]域标识了该命令应用的([/size][/font][font=Arial][size=10.5pt]specific[/size][/font][font=宋体][size=10.5pt])[/size][/font][font=Arial][size=10.5pt]DLC[/size][/font][font=宋体][size=10.5pt]。第[/size][/font][font=Arial][size=10.5pt]2[/size][/font][font=宋体][size=10.5pt]位总被置[/size][/font][font=Arial][size=10.5pt]1[/size][/font][font=宋体][size=10.5pt],[/size][/font][font=Arial][size=10.5pt]EA[/size][/font][font=宋体][size=10.5pt]位根据[/size][/font][font=Arial][size=10.5pt]3.2.1[/size][/font][font=Arial][size=10.5pt].2[/size][/font][font=宋体][size=10.5pt]的描述设置。[/size][/font][font=Arial][size=10.5pt]
[/size][/font][align=center][table] [tr][td]  [font=Arial][size=10.5pt]Bit No.[/size][/font]  [/td][td]  [size=10.5pt]1[/size]  [/td][td]  [size=10.5pt]2[/size]  [/td][td]  [size=10.5pt]3[/size]  [/td][td]  [size=10.5pt]4[/size]  [/td][td]  [size=10.5pt]5[/size]  [/td][td]  [size=10.5pt]6[/size]  [/td][td]  [size=10.5pt]7[/size]  [/td][td]  [size=10.5pt]8[/size]  [/td][/tr][tr][td]  [font=Arial][size=10.5pt]Value[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]EA[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]1[/size][/font]  [/td][td=6,1]  [font=Arial][size=10.5pt]DLCI[/size][/font]  [/td][/tr][/table][/align][font=宋体][size=10.5pt]图[/size][/font][font=Arial][size=10.5pt]9[/size][/font][font=宋体][size=10.5pt]:地址域的格式[/size][/font][font=Arial][size=10.5pt]
[/size][/font][font=宋体][size=10.5pt]紧跟着[/size][/font][font=Arial][size=10.5pt]DLCI[/size][/font][font=宋体][size=10.5pt]域的是控制信号域,它包含信号状态的表现([/size][/font][font=Arial][size=10.5pt]representation[/size][/font][font=宋体][size=10.5pt]),见图[/size][/font][font=Arial][size=10.5pt]10[/size][/font][font=宋体][size=10.5pt]。扩展位的使用,允许添加其他字节,以满足其他情况。目前,可选的第二个字节被定义为用来处理中止信号的传输。[/size][/font][align=center][table] [tr][td]  [font=Arial][size=10.5pt]Bit No.[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]1[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]2[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]3[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]4[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]5[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]6[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]7[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]8[/size][/font]  [/td][/tr][tr][td]  [font=Arial][size=10.5pt]Value[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]EA[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]FC[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]RTC[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]RTR[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]Reserved0[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]Reserved0[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]IC[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]DV[/size][/font]  [/td][/tr][/table][/align][font=宋体][size=10.5pt]图[/size][/font][font=Arial][size=10.5pt]10[/size][/font][font=宋体][size=10.5pt]:控制信号字节的格式[/size][/font][font=Arial][size=10.5pt]
[/size][/font][font=宋体][size=10.5pt]控制信号字节的描述如下:[/size][/font][font=Arial][size=10.5pt]
EA[/size][/font][font=宋体][size=10.5pt]位就是扩展位,其值为[/size][/font][font=Arial][size=10.5pt]1[/size][/font][font=宋体][size=10.5pt],[/size][/font][font=宋体][size=10.5pt]表示当前就是本域的最后一个字节。[/size][/font][size=10.5pt]FC[/size][font=宋体][size=10.5pt]([/size][/font][size=10.5pt]Flow Control[/size][font=宋体][size=10.5pt])流控位,[/size][/font][font=宋体][size=10.5pt]其值为[/size][/font][font=Arial][size=10.5pt]1[/size][/font][font=宋体][size=10.5pt],[/size][/font][font=宋体][size=10.5pt]表示[/size][/font][font=宋体][size=10.5pt]不能接收数据帧。[/size][/font][size=10.5pt]RTC[/size][font=宋体][size=10.5pt]([/size][/font][size=10.5pt]Ready ToCommunicate[/size][font=宋体][size=10.5pt])位。[/size][/font][font=宋体][size=10.5pt]其值为[/size][/font][font=Arial][size=10.5pt]1[/size][/font][font=宋体][size=10.5pt],[/size][/font][font=宋体][size=10.5pt]表示[/size][/font][font=宋体][size=10.5pt]设备准备好发送数据。[/size][/font][size=10.5pt]RTR[/size][font=宋体][size=10.5pt]([/size][/font][size=10.5pt]Ready ToReceive[/size][font=宋体][size=10.5pt])位。[/size][/font][font=宋体][size=10.5pt]其值为[/size][/font][font=Arial][size=10.5pt]1[/size][/font][font=宋体][size=10.5pt],[/size][/font][font=宋体][size=10.5pt]表示[/size][/font][font=宋体][size=10.5pt]设备准备好接收数据。[/size][/font][size=10.5pt]Bit5/Bit6[/size][font=宋体][size=10.5pt],保留位,以后使用。发送方置[/size][/font][size=10.5pt]0[/size][font=宋体][size=10.5pt],接收方忽略它。[/size][/font][size=10.5pt]IC[/size][font=宋体][size=10.5pt]([/size][/font][size=10.5pt]Incoming Call[/size][font=宋体][size=10.5pt])位。[/size][/font][font=宋体][size=10.5pt]其值为[/size][/font][font=Arial][size=10.5pt]1[/size][/font][font=宋体][size=10.5pt],表示一个来电。[/size][/font][size=10.0pt]DV[/size][font=宋体][size=10.0pt]([/size][/font][size=10.0pt]Data Valid[/size][font=宋体][size=10.0pt])位。[/size][/font][font=宋体][size=10.5pt]其值为[/size][/font][font=Arial][size=10.5pt]1[/size][/font][font=宋体][size=10.5pt],表示有效数据正在发送。[/size][/font][size=10.0pt]
[/size][font=宋体][size=10.0pt]控制字节映射到[/size][/font][size=10.0pt]V.24[/size][font=宋体][size=10.0pt]信号,根据下表:[/size][/font][font=宋体][size=10.0pt]表[/size][/font][size=10.0pt]6[/size][font=宋体][size=10.0pt]:接收[/size][/font][font=宋体][size=10.5pt]时转[/size][/font][size=10.0pt]V.24[/size][font=宋体][size=10.0pt]信号的映射表[/size][/font][align=center][table] [tr][td]  Control Signal Byte   [/td][td]  DTE receiving   [/td][td=2,1]  DCE receiving  [/td][/tr][tr][td]  bit number, name   [/td][td]  signal V.24   [/td][td]  circuit   [/td][td]  signal   [/td][td]  V.24 circuit  [/td][/tr][tr][td]  3, RTC   [/td][td]  DSR   [/td][td]  107   [/td][td]  DTR   [/td][td]  108/2  [/td][/tr][tr][td]  4, RTR   [/td][td]  CTS   [/td][td]  106   [/td][td]  RFR (note)   [/td][td]  133  [/td][/tr][tr][td]  7, IC   [/td][td]  RI   [/td][td]  125   [/td][td]  -ignored   [/td][td]  -  [/td][/tr][tr][td]  8, DV   [/td][td]  DCD   [/td][td]  109   [/td][td]  -ignored   [/td][td]  -  [/td][/tr][/table][/align][size=10.5pt]NOTE Circuit133, RFR (Ready for Receiving) is commonly assigned to the connector pin thatis alternatively used for circuit 105, RTS. It is sometimes referred to by thatname.[/size][font=宋体][size=10.5pt]表[/size][/font][size=10.5pt]7[/size][font=宋体][size=10.5pt]:发送时转[/size][/font][size=10.0pt]V.24[/size][font=宋体][size=10.0pt]信号的映射表[/size][/font][align=center][table] [tr][td]  Control Signal Byte   [/td][td]  DTE sending   [/td][td=2,1]  DCE sending  [/td][/tr][tr][td]  bit number, name   [/td][td]  signal   [/td][td]  V.24 circuit   [/td][td]  signal   [/td][td]  V.24 circuit  [/td][/tr][tr][td]  3, RTC   [/td][td]  DTR   [/td][td]  108/2   [/td][td]  DSR   [/td][td]  107  [/td][/tr][tr][td]  4, RTR   [/td][td]  RFR (note)   [/td][td]  133   [/td][td]  CTS   [/td][td]  106  [/td][/tr][tr][td]  7, IC   [/td][td]  always 0-   [/td][td]  -   [/td][td]  RI   [/td][td]  125  [/td][/tr][tr][td]  8, DV   [/td][td]  always 1-   [/td][td]  -   [/td][td]  DCD   [/td][td]  109  [/td][/tr][/table][/align][size=10.5pt]NOTE Circuit133, RFR (Ready for Receiving) is commonly assigned to the connector pin thatis alternatively used for circuit 105, RTS. It is sometimes referred to by thatname.[/size][font=宋体][size=10.0pt]假如一端由于流控的原因,不能传输数据帧,但它想自己停止接收更多的帧,它为了发送流控信号,可以继续发送不包含用户数据的帧(比如,只有控制信号字节和可选的中止信号字节)。[/size][/font][font=Arial][size=10.5pt]EA[/size][/font][font=宋体][size=10.5pt]位就是扩展位,其值为[/size][/font][font=Arial][size=10.5pt]1[/size][/font][font=宋体][size=10.5pt],[/size][/font][font=宋体][size=10.5pt]表示当前就是本域的最后一个字节。[/size][/font][align=center][table] [tr][td]  [b][font=Arial][size=9.0pt]Bit No[/size][/font][/b]  [/td][td]  [font=Arial][size=10.5pt]1[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]2[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]3[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]4[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]5[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]6[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]7[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]8[/size][/font]  [/td][/tr][tr][td]  [font=Arial][size=10.5pt]signal[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]EA[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]B1[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]B2[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]B3[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]L1[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]L2[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]L3[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]L4[/size][/font]  [/td][/tr][/table][/align][font=宋体][size=10.5pt]图[/size][/font][font=Arial][size=10.5pt]11[/size][/font][font=宋体][size=10.5pt]:中止信号字节的格式(可选的)[/size][/font][font=Arial][size=10.5pt]
[/size][/font][font=宋体][size=10.5pt]中止信号字节通过数据流能携带被[/size][/font][font=Arial][size=10.5pt]DLC[/size][/font][font=宋体][size=10.5pt]检测到的中止信号的信息。每个位的含义如下表:[/size][/font][font=宋体][size=10.5pt]表[/size][/font][font=Arial][size=10.5pt]8[/size][/font][font=宋体][size=10.5pt]:中止信号字节的含义[/size][/font][align=center][table] [tr][td]  Bit   [/td][td]  Value   [/td][td]  Meaning  [/td][/tr][tr][td]  B1   [/td][td]  1   [/td][td]  [font=宋体]字节编码了一个中止信号[/font]  [/td][/tr][tr][td]     [/td][td]  0   [/td][td]  [font=宋体]字节没编中止信号[/font]  [/td][/tr][tr][td]  B2   [/td][td]  0   [/td][td]  [font=宋体]保留,发送方置[/font]0[font=宋体],接收方忽略[/font]  [/td][/tr][tr][td]  B3   [/td][td]  0   [/td][td]  [font=宋体]保留,发送方置[/font]0[font=宋体],接收方忽略[/font]  [/td][/tr][tr][td]  L1-L4   [/td][td]  4-bit value  [/td][td]  Length of break in units of 200ms  [/td][/tr][/table][/align][font=Arial][size=10.5pt]
L1-L4[/size][/font][font=宋体][size=10.5pt]是中止的长度([/size][/font][font=Arial][size=10.5pt]break length[/size][/font][font=宋体][size=10.5pt]),[/size][/font][font=Arial][size=10.5pt]L1[/size][/font][font=宋体][size=10.5pt]是最低有效位,[/size][/font][font=Arial][size=10.5pt]L4[/size][/font][font=宋体][size=10.5pt]是最高有效位。[/size][/font][font=Arial][size=10.5pt]
[/size][/font][font=宋体][size=10.5pt]当一端接收到一个中止字节,它将处理接收到的信息,并且通过适当的途径传递它。这不在本文档的描述范围内。[/size][/font][size=10.5pt] [/size][b][font=Arial][size=12.0pt]3.4.6[/size][/font][/b][b][font=Arial][size=12.0pt].3.8. [/size][/font][/b][b][font=宋体][size=14.0pt]不支持命令[/size][/font][/b][b][size=14.0pt]NSC[/size][/b][b][font=宋体][size=14.0pt]([/size][/font][/b][b][size=14.0pt]Non Support Command[/size][/b][b][font=宋体][size=14.0pt])[/size][/font][/b][size=10.5pt]
[/size][font=宋体][size=10.5pt]当接收端不支持某种类型的命令时,发该命令帧作为回应。[/size][/font][size=10.5pt]
Length[/size][font=宋体][size=10.5pt]字节不含值[/size][/font][size=10.5pt]1[/size][font=宋体][size=10.5pt],并且只有一个值字节。[/size][/font][size=10.5pt]
Type[/size][font=宋体][size=10.5pt]域字节格式如下:[/size][/font]
[align=center][table] [tr][td]  [font=Arial][size=9.0pt][b]Bit No.[/b][/size][/font]  [/td][td]  [size=10.5pt]1[/size]  [/td][td]  [size=10.5pt]2[/size]  [/td][td]  [size=10.5pt]3[/size]  [/td][td]  [size=10.5pt]4[/size]  [/td][td]  [size=10.5pt]5[/size]  [/td][td]  [size=10.5pt]6[/size]  [/td][td]  [size=10.5pt]7[/size]  [/td][td]  [size=10.5pt]8[/size]  [/td][/tr][tr][td]  [font=Arial][size=10.5pt]signal[/size][/font]  [/td][td]  [size=10.5pt]EA[/size]  [/td][td]  [size=10.5pt]C\R[/size]  [/td][td]  [size=10.5pt]0[/size]  [/td][td]  [size=10.5pt]0[/size]  [/td][td]  [size=10.5pt]1[/size]  [/td][td]  [size=10.5pt]0[/size]  [/td][td]  [size=10.5pt]0[/size]  [/td][td]  [size=10.5pt]0[/size]  [/td][/tr][/table][/align][size=10.5pt]
[/size][font=宋体][size=10.5pt]值字节包含不支持命令的命令格式。[/size][/font][font=宋体][size=10.5pt]值字节([/size][/font][size=10.5pt]value octet[/size][font=宋体][size=10.5pt])格式如下:[/size][/font][align=center][table] [tr][td]  [font=Arial][size=9.0pt][b]Bit No.[/b][/size][/font]  [/td][td]  [size=10.5pt]1[/size]  [/td][td]  [size=10.5pt]2[/size]  [/td][td]  [size=10.5pt]3[/size]  [/td][td]  [size=10.5pt]4[/size]  [/td][td]  [size=10.5pt]5[/size]  [/td][td]  [size=10.5pt]6[/size]  [/td][td]  [size=10.5pt]7[/size]  [/td][td]  [size=10.5pt]8[/size]  [/td][/tr][tr][td]  [font=Arial][size=10.5pt]signal[/size][/font]  [/td][td]  [size=10.5pt]EA[/size]  [/td][td]  [size=10.5pt]C\R[/size]  [/td][td]  [size=10.5pt]
Command  type[/size]  [/td][/tr][/table][/align][size=10.5pt]
[/size][b][font=Arial][size=12.0pt]3.4.6[/size][/font][/b][b][font=Arial][size=12.0pt].3.9. [/size][/font][/b][b][font=宋体][size=14.0pt]远程端口协商[/size][/font][/b][b][font=Arial][size=14.0pt]RPN[/size][/font][/b][b][font=宋体][size=14.0pt]([/size][/font][/b][b][font=Arial][size=14.0pt]RemotePort Negotiation[/size][/font][/b][b][font=宋体][size=14.0pt])[/size][/font][/b][font=宋体][size=10.5pt]这个命令是可选的。这个命令用来配置远程端口通信设置的。[/size][/font][font=宋体][size=10.5pt]所以的设备都要保证在发送数据前,通信设置被正确的配置。如果协商没完成,将对所有参数采用默认值。[/size][/font][font=宋体][size=10.5pt]在连接状态,当通信设置变动后,设备必须发送[/size][/font][size=10.5pt]PRN[/size][font=宋体][size=10.5pt]。端口线路状态([/size][/font][size=10.5pt]Port LineStatus[/size][font=宋体][size=10.5pt])变动后,也一样要发[/size][/font][size=10.5pt]PRN[/size][font=宋体][size=10.5pt]。[/size][/font][table] [tr][td]  [size=9.0pt]Command[/size]  [size=9.0pt]RPN[/size]  [/td][td]  [size=9.0pt]Length[/size]  [size=9.0pt]1 or 8[/size]  [/td][td]  [size=9.0pt]Value[/size]  [size=9.0pt]octet1[/size]  [size=9.0pt]optional[/size]
  [size=9.0pt](DLCI)[/size]  [/td][td]  [size=9.0pt]Value[/size]  [size=9.0pt]octet2[/size]  [size=9.0pt]optional[/size]  [/td][td]  [size=9.0pt]Value[/size]  [size=9.0pt]octet3[/size]  [size=9.0pt]optional[/size]  [/td][td]  [size=9.0pt]Value[/size]  [size=9.0pt]octet4[/size]  [size=9.0pt]optional[/size]  [/td][td]  [size=9.0pt]Value[/size]  [size=9.0pt]octet5[/size]  [size=9.0pt]optional[/size]  [/td][td]  [size=9.0pt]Value[/size]  [size=9.0pt]octet6[/size]  [size=9.0pt]optional[/size]  [/td][td]  [size=9.0pt]Value[/size]  [size=9.0pt]octet7[/size]  [size=9.0pt]optional[/size]  [/td][td]  [size=9.0pt]Value[/size]  [size=9.0pt]octet8[/size]  [size=9.0pt]optional[/size]  [/td][/tr][/table][size=10.5pt]RPN[/size][font=宋体][size=10.5pt]的[/size][/font][size=10.5pt]type[/size][font=宋体][size=10.5pt]域字节格式如下:[/size][/font]
[align=center][table] [tr][td]  [font=Arial][size=9.0pt][b]Bit No.[/b][/size][/font]  [/td][td]  [size=10.5pt]1[/size]  [/td][td]  [size=10.5pt]2[/size]  [/td][td]  [size=10.5pt]3[/size]  [/td][td]  [size=10.5pt]4[/size]  [/td][td]  [size=10.5pt]5[/size]  [/td][td]  [size=10.5pt]6[/size]  [/td][td]  [size=10.5pt]7[/size]  [/td][td]  [size=10.5pt]8[/size]  [/td][/tr][tr][td]  [font=Arial][size=10.5pt]signal[/size][/font]  [/td][td]  [size=10.5pt]EA[/size]  [/td][td]  [size=10.5pt]C\R[/size]  [/td][td]  [size=10.5pt]0[/size]  [/td][td]  [size=10.5pt]0[/size]  [/td][td]  [size=10.5pt]1[/size]  [/td][td]  [size=10.5pt]0[/size]  [/td][td]  [size=10.5pt]0[/size]  [/td][td]  [size=10.5pt]1[/size]  [/td][/tr][/table][/align][size=10.5pt]
Length[/size][font=宋体][size=10.5pt]字节包含值[/size][/font][size=10.5pt]1[/size][font=宋体][size=10.5pt]或[/size][/font][size=10.5pt]8[/size][font=宋体][size=10.5pt],并且它有[/size][/font][size=10.5pt]1[/size][font=宋体][size=10.5pt]个或[/size][/font][size=10.5pt]8[/size][font=宋体][size=10.5pt]个值字节。[/size][/font][font=Arial][size=10.5pt]DLCI[/size][/font][font=宋体][size=10.5pt]字节格式如下:[/size][/font][align=center][table] [tr][td]  [font=Arial][size=9.0pt][b]Bit No.[/b][/size][/font]  [/td][td]  [font=Arial][size=10.5pt]1[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]2[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]3[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]4[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]5[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]6[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]7[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]8[/size][/font]  [/td][/tr][tr][td]  [font=Arial][size=10.5pt]signal[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]EA[/size][/font]  [/td][td]  [font=Arial][size=10.5pt]1[/size][/font]  [/td][td=6,1]  [font=Arial][size=10.5pt]DLCI[/size][/font]  [/td][/tr][/table][/align][size=10.5pt]DLCI[/size][font=宋体][size=10.5pt]字节的第[/size][/font][size=10.5pt]2[/size][font=宋体][size=10.5pt]位没用,固定为[/size][/font][size=10.5pt]1[/size][font=宋体][size=10.5pt]。[/size][/font][size=10.5pt]EA[/size][font=宋体][size=10.5pt]位,依据[/size][/font][size=10.5pt]3.2.1[/size][size=10.5pt].2[/size][font=宋体][size=10.5pt]的描述。[/size][/font][size=10.5pt]Value[/size][font=宋体][size=10.5pt]数组:[/size][/font][font=宋体][size=10.5pt]端口值字节([/size][/font][size=10.5pt]Port Value Octet[/size][font=宋体][size=10.5pt])格式如下:[/size][/font][align=center][table] [tr][td]  [size=10.5pt]Value  Octet[/size]  [/td][td]  Bit1  [/td][td]  Bit2  [/td][td]  Bit3  [/td][td]  Bit4  [/td][td]  Bit5  [/td][td]  Bit6  [/td][td]  Bit7  [/td][td]  Bit8  [/td][/tr][tr][td]  2  [/td][td]  B1  [/td][td]  B2  [/td][td]  B3  [/td][td]  B4  [/td][td]  B5  [/td][td]  B6  [/td][td]  B7  [/td][td]  B8  [/td][/tr][tr][td]  3  [/td][td]  D1  [/td][td]  D2  [/td][td]  S  [/td][td]  P  [/td][td]  PT1  [/td][td]  PT2  [/td][td]  res  [/td][td]  res  [/td][/tr][tr][td]  4  [/td][td]  FLC1  [/td][td]  FLC2  [/td][td]  FLC3  [/td][td]  FLC4  [/td][td]  FLC5  [/td][td]  FLC6  [/td][td]  res  [/td][td]  res  [/td][/tr][tr][td]  5  [/td][td]  XON1  [/td][td]  XON2  [/td][td]  XON3  [/td][td]  XON4  [/td][td]  XON5  [/td][td]  XON6  [/td][td]  XON7  [/td][td]  XON8  [/td][/tr][tr][td]  6  [/td][td]  XOF1  [/td][td]  XOF2  [/td][td]  XOF3  [/td][td]  XOF4  [/td][td]  XOF5  [/td][td]  XOF6  [/td][td]  XOF7  [/td][td]  XOF8  [/td][/tr][tr][td]  7  [/td][td]  PM1  [/td][td]  PM2  [/td][td]  PM3  [/td][td]  PM4  [/td][td]  PM5  [/td][td]  PM6  [/td][td]  PM7  [/td][td]  PM8  [/td][/tr][tr][td]  8  [/td][td]  PM9  [/td][td]  PM10  [/td][td]  PM11  [/td][td]  PM12  [/td][td]  PM13  [/td][td]  PM14  [/td][td]  PM15  [/td][td]  PM16  [/td][/tr][/table][/align][font=宋体][size=10.5pt]一端向另外一端发送一条[/size][/font][size=10.5pt]RPN[/size][font=宋体][size=10.5pt]命令,它的各个域,都设置了想要的值的,参数掩码指明了哪些参数被设置了值。[/size][/font][font=宋体][size=10.5pt]当另一端接收到[/size][/font][size=10.5pt]RPN[/size][font=宋体][size=10.5pt]命令后,将根据下面的规则,作回应:[/size][/font][b][size=10.5pt]DLCI[/size][/b][b][font=宋体][size=10.5pt]值不能变[/size][/font][/b][font=宋体][size=10.5pt]。[/size][/font][font=宋体][size=10.5pt]接收方将接收到发送方提议([/size][/font][size=10.5pt]proposed[/size][font=宋体][size=10.5pt])的端口值字节,并且回复一个把所有能接受参数的参数掩码置[/size][/font][size=10.5pt]1[/size][font=宋体][size=10.5pt]的数据帧。假如接收方不接受任何提议的值,它回复一个把不支持参数的参数掩码都置[/size][/font][size=10.5pt]0[/size][font=宋体][size=10.5pt]的帧。对这些参数掩码置[/size][/font][size=10.5pt]1[/size][font=宋体][size=10.5pt]的参数,新的值,将被接受并且被使用。[/size][/font][font=宋体][size=10.5pt]假如命令里只包含了一个值字节,它被解释位一个请求,接收方将用当前的端口值的设置,进行回应。[/size][/font][font=宋体][size=10.5pt]假如发送方认为回应是可以接受的,也就是说,各比特位相匹配([/size][/font][size=10.5pt]match[/size][font=宋体][size=10.5pt]),发送方将开始根据端口值字节使用[/size][/font][size=10.5pt]DLC[/size][font=宋体][size=10.5pt]。假如回应是不可接受的,发送方将启动另一个参数修改了的[/size][/font][size=10.5pt]RPN[/size][font=宋体][size=10.5pt]命令,直到最终协商好,或者向更高层传递失败的信息。[/size][/font][size=10.5pt]B1-B8[/size][font=宋体][size=10.5pt]指明了波特率,见下表。[/size][/font][font=宋体][size=10.5pt]表[/size][/font][size=10.5pt]12[/size][font=宋体][size=10.5pt]:[/size][/font][size=10.5pt]B[/size][font=宋体][size=10.5pt]位的含义[/size][/font][align=center][table] [tr][td]  Meaning  [/td][td]  B1  [/td][td]  B2  [/td][td]  B3  [/td][td]  B4  [/td][td]  B5  [/td][td]  B6  [/td][td]  B7  [/td][td]  B8  [/td][/tr][tr][td]  2400bit/s  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][/tr][tr][td]  4800bit/s  [/td][td]  1  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][/tr][tr][td]  7200bit/s  [/td][td]  0  [/td][td]  1  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][/tr][tr][td]  9600bit/s  [/td][td]  1  [/td][td]  1  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][/tr][tr][td]  19200bit/s  [/td][td]  0  [/td][td]  0  [/td][td]  1  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][/tr][tr][td]  38400bit/s  [/td][td]  1  [/td][td]  0  [/td][td]  1  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][/tr][tr][td]  57600bit/s  [/td][td]  0  [/td][td]  1  [/td][td]  1  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][/tr][tr][td]  115200bit/s  [/td][td]  1  [/td][td]  1  [/td][td]  1  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][/tr][tr][td]  230400bit/s  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][td]  1  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][td]  0  [/td][/tr][/table][/align][font=宋体][size=10.5pt]所有其他的[/size][/font][size=10.5pt]B[/size][font=宋体][size=10.5pt]位的值都是保留的。默认值是[/size][/font][size=10.5pt]1100 0000[/size][font=宋体][size=10.5pt]([/size][/font][size=10.5pt]9600[/size][font=宋体][size=10.5pt])。[/size][/font][size=10.5pt]D1-D2[/size][font=宋体][size=10.5pt]指示了数据位的数量。[/size][/font][align=center][table] [tr][td]  D1  [/td][td]  
D2  [/td][/tr][tr][td]  00   [/td][td]  5 bits  [/td][/tr][tr][td]  01   [/td][td]  6 bits  [/td][/tr][tr][td]  10   [/td][td]  7 bits  [/td][/tr][tr][td]  11   [/td][td]  8 bits - default  [/td][/tr][/table][/align][size=10.5pt]S[/size][font=宋体][size=10.5pt]位指明了停止位的数量。[/size][/font][size=10.5pt]S=0[/size][font=宋体][size=10.5pt]:[/size][/font][size=10.5pt]1[/size][font=宋体][size=10.5pt]停止位,[/size][/font][size=10.5pt]S=1[/size][font=宋体][size=10.5pt]:[/size][/font][size=10.5pt]1[/size][font=宋体][size=10.5pt]、[/size][/font][size=10.5pt]5[/size][font=宋体][size=10.5pt]停止位。默认值[/size][/font][size=10.5pt]S=0[/size][font=宋体][size=10.5pt]。[/size][/font][size=10.5pt]P[/size][font=宋体][size=10.5pt]位指明了奇偶校验。[/size][/font][size=10.5pt]P=0[/size][font=宋体][size=10.5pt]:无校验,[/size][/font][size=10.5pt]P=1[/size][font=宋体][size=10.5pt],有校验。默认值[/size][/font][size=10.5pt]P=0[/size][font=宋体][size=10.5pt]。[/size][/font][size=10.5pt]PT1-PT2[/size][font=宋体][size=10.5pt]指明了了校验的类型。[/size][/font][align=center][table] [tr][td]  PT1  [/td][td]  PT2  [/td][/tr][tr][td]  00   [/td][td]  odd parity  [/td][/tr][tr][td]  01   [/td][td]  even parity  [/td][/tr][tr][td]  10   [/td][td]  mark parity  [/td][/tr][tr][td]  11   [/td][td]  space parity  [/td][/tr][/table][/align][size=10.5pt]FLC1-FLC6[/size][font=宋体][size=10.5pt],默认值为[/size][/font][size=10.5pt]0[/size][font=宋体][size=10.5pt],没有流控。[/size][/font][align=center][table] [tr][td]  Bit1   [/td][td]  XON/XOFF on input  [/td][/tr][tr][td]  Bit2   [/td][td]  XON/XOFF on output  [/td][/tr][tr][td]  Bit3   [/td][td]  RTR on input  [/td][/tr][tr][td]  Bit4   [/td][td]  RTR on output  [/td][/tr][tr][td]  Bit5   [/td][td]  RTC on input  [/td][/tr][tr][td]  Bit6   [/td][td]  RTC on output  [/td][/tr][/table][/align][size=10.5pt]Note. The RTR is mapped to eitherCTS (circuit 106) or RFR (circuit 133). The RTC is mapped to either DTR(circuit 108/2) or DSR (circuit 107). (Circuit 133, RFR(Ready for Receiving) iscommonly assigned to the connector pin that is alternatively used for circuit105, RTS. It is sometimes referred to by that name)[/size][size=10.5pt]XON1-XON8[/size][font=宋体][size=10.5pt],[/size][/font][size=10.5pt]XON[/size][font=宋体][size=10.5pt]字符(默认值[/size][/font][size=10.5pt]DC1[/size][font=宋体][size=10.5pt])。[/size][/font][size=10.5pt]XOF1-XOF8[/size][font=宋体][size=10.5pt],[/size][/font][size=10.5pt]XOFF[/size][font=宋体][size=10.5pt]字符(默认值[/size][/font][size=10.5pt]DC3[/size][font=宋体][size=10.5pt])。[/size][/font][size=10.5pt]PM1-PM8[/size][font=宋体][size=10.5pt],参数掩码。[/size][/font][font=宋体][size=10.5pt]参数掩码用来指明哪些参数被[/size][/font][size=10.5pt]RPN[/size][font=宋体][size=10.5pt]命令所协商。对一个命令来说,参数掩码将被理解为:[/size][/font][size=10.5pt]0=[/size][font=宋体][size=10.5pt]没改变;[/size][/font][size=10.5pt]1=[/size][font=宋体][size=10.5pt]有改变。对应一个回应来说,[/size][/font][size=10.5pt]0=[/size][font=宋体][size=10.5pt]不可接收的;[/size][/font][size=10.5pt]1=[/size][font=宋体][size=10.5pt]可以接收并且使用的。[/size][/font][font=宋体][size=10.5pt]值字节[/size][/font][size=10.5pt]7[/size][font=宋体][size=10.5pt]和[/size][/font][size=10.5pt]8[/size][font=宋体][size=10.5pt]的比特位掩码如下:[/size][/font][align=center][table] [tr][td]  Bit1   [/td][td]  bit rate  [/td][/tr][tr][td]  Bit2   [/td][td]  data bits  [/td][/tr][tr][td]  Bit3   [/td][td]  stop bits  [/td][/tr][tr][td]  Bit4   [/td][td]  Parity  [/td][/tr][tr][td]  Bit5   [/td][td]  parity type  [/td][/tr][tr][td]  Bit6   [/td][td]  XON character  [/td][/tr][tr][td]  Bit7   [/td][td]  XOF character  [/td][/tr][tr][td]  Bit8   [/td][td]  reserved  [/td][/tr][/table][/align][size=10.5pt]PM9-PM16[/size][font=宋体][size=10.5pt],也是参数掩码。[/size][/font][align=center][table] [tr][td]  Bit1   [/td][td]  XON/XOFF on input  [/td][/tr][tr][td]  Bit2   [/td][td]  XON/XOFF on output  [/td][/tr][tr][td]  Bit3   [/td][td]  RTR on input  [/td][/tr][tr][td]  Bit4   [/td][td]  RTR on output  [/td][/tr][tr][td]  Bit5   [/td][td]  RTC on input  [/td][/tr][tr][td]  Bit6   [/td][td]  RTC on output  [/td][/tr][/table][/align][font=宋体][size=10.5pt]所以保留的值,都被发送方设置为[/size][/font][size=10.5pt]0[/size][font=宋体][size=10.5pt],被接收方所忽略。[/size][/font][font=宋体][size=10.5pt]远程线路状态[/size][/font][size=10.5pt]RLS[/size][font=宋体][size=10.5pt]([/size][/font][size=10.5pt]RemoteLine Status[/size][font=宋体][size=10.5pt])[/size][/font][b][font=Arial][size=12.0pt]3.4.6[/size][/font][/b][b][font=Arial][size=12.0pt].3.10. [/size][/font][/b][b][font=宋体][size=14.0pt]远程线路状态[/size][/font][/b][b][font=Arial][size=14.0pt]RLS[/size][/font][/b][b][font=宋体][size=14.0pt]([/size][/font][/b][b][font=Arial][size=14.0pt]RemoteLine Status[/size][/font][/b][b][font=宋体][size=14.0pt])[/size][/font][/b][font=宋体][size=10.5pt]这个命令是可选的。[/size][/font][font=宋体][size=10.5pt]这个命令指明了远程端口线路的状态。[/size][/font][font=宋体][size=10.5pt]连接状态下,当远程端口线路状态改变时,设备必须发送[/size][/font][size=10.5pt]RLS[/size][font=宋体][size=10.5pt]命令。[/size][/font][size=10.5pt]RLS[/size][font=宋体][size=10.5pt]命令使用如下的[/size][/font][size=10.5pt]type[/size][font=宋体][size=10.5pt]域格式:[/size][/font][font=宋体][size=10.5pt]表[/size][/font][size=10.5pt]13[/size][font=宋体][size=10.5pt]:[/size][/font][size=10.5pt]type[/size][font=宋体][size=10.5pt]域字节[/size][/font][align=center][table] [tr][td]  [font=Arial][size=9.0pt][b]Bit No.[/b][/size][/font]  [/td][td]  1  [/td][td]  2  [/td][td]  3  [/td][td]  4  [/td][td]  5  [/td][td]  6  [/td][td]  7  [/td][td]  8  [/td][/tr][tr][td]  [font=Arial][size=10.5pt]signal[/size][/font]  [/td][td]  EA  [/td][td]  C/R  [/td][td]  0  [/td][td]  0  [/td][td]  1  [/td][td]  0  [/td][td]  1  [/td][td]  0  [/td][/tr][/table][/align][size=10.5pt]Length[/size][font=宋体][size=10.5pt]字节包含值[/size][/font][size=10.5pt]2[/size][font=宋体][size=10.5pt],它有两个值字节。[/size][/font][font=宋体][size=10.5pt]表[/size][/font][size=10.5pt]14[/size][font=宋体][size=10.5pt]:[/size][/font][size=10.5pt]DLCI[/size][font=宋体][size=10.5pt]字节[/size][/font][align=center][table] [tr][td]  [font=Arial][size=9.0pt][b]Bit No.[/b][/size][/font]  [/td][td]  1  [/td][td]  2  [/td][td]  3  [/td][td]  4  [/td][td]  5  [/td][td]  6  [/td][td]  7  [/td][td]  8  [/td][/tr][tr][td]  [font=Arial][size=10.5pt]signal[/size][/font]  [/td][td]  EA  [/td][td]  1  [/td][td]  D  L C I  [/td][/tr][/table][/align][size=10.5pt]DLCI[/size][font=宋体][size=10.5pt]字节的第[/size][/font][size=10.5pt]2[/size][font=宋体][size=10.5pt]位没用,固定为[/size][/font][size=10.5pt]1[/size][font=宋体][size=10.5pt]。[/size][/font][size=10.5pt]EA[/size][font=宋体][size=10.5pt]位,依据[/size][/font][size=10.5pt]3.2.1[/size][size=10.5pt].2[/size][font=宋体][size=10.5pt]的描述。[/size][/font][font=宋体][size=10.5pt]表[/size][/font][size=10.5pt]15[/size][font=宋体][size=10.5pt]:[/size][/font][size=10.5pt]RLS[/size][font=宋体][size=10.5pt]字节[/size][/font][align=center][table] [tr][td]  [font=Arial][size=9.0pt][b]Value Octet[/b][/size][/font]  [/td][td]  Bit1  [/td][td]  Bit2  [/td][td]  Bit3  [/td][td]  Bit4  [/td][td]  Bit5  [/td][td]  Bit6  [/td][td]  Bit7  [/td][td]  Bit8  [/td][/tr][tr][td]  [font=Arial][size=10.5pt]1[/size][/font]  [/td][td]  L1  [/td][td]  L2  [/td][td]  L3  [/td][td]  L4  [/td][td]  res  [/td][td]  res  [/td][td]  res  [/td][td]  res  [/td][/tr][/table][/align][font=宋体][size=10.5pt]一端向另外一端发送一条[/size][/font][size=10.5pt]RLS[/size][font=宋体][size=10.5pt]命令,它的各个域,都设置了想要的值的。当另外一端接收到[/size][/font][size=10.5pt]RLS[/size][font=宋体][size=10.5pt]命令后,它必须用包含它接收到的值的[/size][/font][size=10.5pt]RLS[/size][font=宋体][size=10.5pt]回应帧回应。[/size][/font][size=10.5pt]L1-L4[/size][font=宋体][size=10.5pt]位指明了线路状态。[/size][/font][size=10.5pt]L1[/size][font=宋体][size=10.5pt]置[/size][/font][size=10.5pt]0[/size][font=宋体][size=10.5pt],表示没出现错误。[/size][/font][size=10.5pt]L1[/size][font=宋体][size=10.5pt]置[/size][/font][size=10.5pt]1[/size][font=宋体][size=10.5pt],指明了如下的错误:[/size][/font][size=10.5pt]L2-L4:[/size][size=10.5pt]100 [/size][font=宋体][size=10.5pt]越界错误([/size][/font][size=10.5pt]OverrunError[/size][font=宋体][size=10.5pt])[/size][/font][size=10.5pt] - [/size][font=宋体][size=10.5pt]接收到的字符有不可读的字符[/size][/font][size=10.5pt]010 [/size][font=宋体][size=10.5pt]校验错误([/size][/font][size=10.5pt]ParityError[/size][font=宋体][size=10.5pt])[/size][/font][size=10.5pt] - [/size][font=宋体][size=10.5pt]接收到的字符的校验位不正确[/size][/font][size=10.5pt]001 [/size][font=宋体][size=10.5pt]装配错误([/size][/font][size=10.5pt]FramingError[/size][font=宋体][size=10.5pt])[/size][/font][size=10.5pt] - [/size][font=宋体][size=10.5pt]一个字符不是以停止符结束的[/size][/font][size=10.5pt]Res[/size][font=宋体][size=10.5pt]位,由发送方置[/size][/font][size=10.5pt]0[/size][font=宋体][size=10.5pt],被接收方忽略。[/size][/font][b][font=Arial][size=12.0pt]3.4.6[/size][/font][/b][b][font=Arial][size=12.0pt].3.11.[/size][/font][/b][b]
[/b][b][font=宋体][size=14.0pt]服务协商命令[/size][/font][/b][b][font=Arial][size=14.0pt]SNC[/size][/font][/b][b][font=宋体][size=14.0pt]([/size][/font][/b][b][font=Arial][size=14.0pt]ServiceNegotiation Command[/size][/font][/b][b][font=宋体][size=14.0pt])[/size][/font][/b][font=宋体][size=10.5pt]这个命令用来查询和设置特殊[/size][/font][size=10.5pt]DLC[/size][font=宋体][size=10.5pt]的特殊服务的。它以特殊的数字视频类型为例子。[/size][/font][font=宋体][size=10.5pt]在一些情况下,[/size][/font][size=10.5pt]AT[/size][font=宋体][size=10.5pt]命令和原始数据在同一个[/size][/font][size=10.5pt]DLC[/size][font=宋体][size=10.5pt]上混合,是不太合适的。这些情况下,可以建立一些特殊的[/size][/font][size=10.5pt]DLC[/size][font=宋体][size=10.5pt],传输一些特殊的数据类型。这种情况的例子,尤其对视频传输更有用,当[/size][/font][size=10.5pt]AT[/size][font=宋体][size=10.5pt]命令控制了链接,在[/size][/font][size=10.5pt]DLC[/size][font=宋体][size=10.5pt]上传输时,音频数据可以由另一个[/size][/font][size=10.5pt]DLC[/size][font=宋体][size=10.5pt]运载。在数据流里,用[/size][/font][size=10.5pt]AT[/size][font=宋体][size=10.5pt]命令发送[/size][/font][size=10.5pt]ESC[/size][font=宋体][size=10.5pt]序列,这种机制是可供选择的。假如这个命令没被用,[/size][/font][size=10.5pt]DLC[/size][font=宋体][size=10.5pt]默认设置为正常的[/size][/font][size=10.5pt]AT[/size][font=宋体][size=10.5pt]命令模式。假如这个命令使用了,在[/size][/font][size=10.5pt]DLCI[/size][font=宋体][size=10.5pt]字节指明的[/size][/font][size=10.5pt]DLC[/size][font=宋体][size=10.5pt],修改为用来运载特殊字节类型。这个命令的发起方,也可以查询每个[/size][/font][size=10.5pt]DLCI[/size][font=宋体][size=10.5pt]的特殊服务。[/size][/font][size=10.5pt]SNC[/size][font=宋体][size=10.5pt]的格式如下:[/size][/font][font=宋体][size=10.5pt]表[/size][/font][size=10.5pt]16[/size][font=宋体][size=10.5pt]:[/size][/font][size=10.5pt]SNC[/size][font=宋体][size=10.5pt]格式[/size][/font][align=center][table] [tr][td]  [font=Arial][size=9.0pt]Byte No. [/size][/font]  [/td][td]  [font=Arial][size=9.0pt]1[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]2[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]3[/size][/font]  [/td][td=1,1,118]  [font=Arial][size=9.0pt]4[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]5[/size][/font]  [/td][/tr][tr][td]  [font=Arial][size=9.0pt]Meaning[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]Type field code[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]Length[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]DLCI[/size][/font]  [/td][td=1,1,118]  [font=Arial][size=9.0pt]Service Value octet (optional)[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]Voice Codec Value octet (optional)[/size][/font]  [/td][/tr][/table][/align][size=10.5pt]Type[/size][font=宋体][size=10.5pt]域字节格式:[/size][/font][font=宋体][size=10.5pt]表[/size][/font][size=10.5pt]17[/size][font=宋体][size=10.5pt]:[/size][/font][size=10.5pt]type[/size][font=宋体][size=10.5pt]域字节[/size][/font][align=center][table] [tr][td]  [font=Arial][size=9.0pt][b]Bit No.[/b][/size][/font]  [/td][td]  1  [/td][td]  2  [/td][td]  3  [/td][td]  4  [/td][td]  5  [/td][td]  6  [/td][td]  7  [/td][td]  8  [/td][/tr][tr][td]  [font=Arial][size=10.5pt]signal[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]EA[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]C/R[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]0[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]0[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]1[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]0[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]1[/size][/font]  [/td][td]  [font=Arial][size=9.0pt]1[/size][/font]  [/td][/tr][/table][/align][size=10.5pt]Length[/size][font=宋体][size=10.5pt]字节包含值[/size][/font][size=10.5pt]1[/size][font=宋体][size=10.5pt]或值[/size][/font][size=10.5pt]3[/size][font=宋体][size=10.5pt],它有一个或三个值字节。[/size][/font][font=宋体][size=10.5pt]表[/size][/font][size=10.5pt]18[/size][font=宋体][size=10.5pt]:[/size][/font][size=10.5pt]DLCI[/size][font=宋体][size=10.5pt]字节[/size][/font][align=center][table] [tr][td]  [font=Arial][size=9.0pt][b]Bit No.[/b][/size][/font]  [/td][td]  1  [/td][td]  2  [/td][td]  3  [/td][td]  4  [/td][td]  5  [/td][td]  6  [/td][td]  7  [/td][td]  8  [/td][/tr][tr][td]  [font=Arial][size=10.5pt]signal[/size][/font]  [/td][td]  EA  [/td][td]  1  [/td][td=6,1]  D  L C I  [/td][/tr][/table][/align][size=10.5pt]DLCI[/size][font=宋体][size=10.5pt]字节的第[/size][/font][size=10.5pt]2[/size][font=宋体][size=10.5pt]位没用,固定为[/size][/font][size=10.5pt]1[/size][font=宋体][size=10.5pt]。[/size][/font][size=10.5pt]EA[/size][font=宋体][size=10.5pt]位,依据[/size][/font][size=10.5pt]3.2.1[/size][size=10.5pt].2[/size][font=宋体][size=10.5pt]的描述。[/size][/font][font=宋体][size=10.5pt]表[/size][/font][size=10.5pt]19[/size][font=宋体][size=10.5pt]:服务值字节[/size][/font][align=center][table] [tr][td]  [font=Arial][size=9.0pt][b]Value Octet[/b][/size][/font]  [/td][td]  Bit1  [/td][td]  Bit2  [/td][td]  Bit3  [/td][td]  Bit4  [/td][td]  Bit5  [/td][td]  Bit6  [/td][td]  Bit7  [/td][td]  Bit8  [/td][/tr][tr][td]  1  [/td][td]  EA  [/td][td]  S1  [/td][td]  S2  [/td][td]  S3  [/td][td]  S4  [/td][td]  S5  [/td][td]  S6  [/td][td]  S7  [/td][/tr][/table][/align][size=10.5pt]EA[/size][font=宋体][size=10.5pt]位,依据[/size][/font][size=10.5pt]3.2.1[/size][size=10.5pt].2[/size][font=宋体][size=10.5pt]的描述。[/size][/font][font=宋体][size=10.5pt]表[/size][/font][size=10.5pt]20[/size][font=宋体][size=10.5pt]:音频编码值字节[/size][/font][align=center][table] [tr][td]  [font=Arial][size=9.0pt][b]Value Octet[/b][/size][/font]  [/td][td]  Bit1  [/td][td]  Bit2  [/td][td]  Bit3  [/td][td]  Bit4  [/td][td]  Bit5  [/td][td]  Bit6  [/td][td]  Bit7  [/td][td]  Bit8  [/td][/tr][tr][td]  1  [/td][td]  EA  [/td][td]  V1  [/td][td]  V2  [/td][td]  V3  [/td][td]  V4  [/td][td]  V5  [/td][td]  V6  [/td][td]  V7  [/td][/tr][/table][/align][size=10.5pt]EA[/size][font=宋体][size=10.5pt]位,依据[/size][/font][size=10.5pt]3.2.1[/size][size=10.5pt].2[/size][font=宋体][size=10.5pt]的描述。[/size][/font][font=宋体][size=10.5pt]表[/size][/font][size=10.5pt]21[/size][font=宋体][size=10.5pt]:服务值的各个比特位[/size][/font][align=center][table] [tr][td]  Value Bit  [/td][td]  Service  [/td][/tr][tr][td]  S1  [/td][td]  Data  [/td][/tr][tr][td]  S2  [/td][td]  Voice  [/td][/tr][tr][td]  S3  [/td][td]  Reserved  [/td][/tr][tr][td]  S4  [/td][td]  Reserved  [/td][/tr][tr][td]  S5  [/td][td]  Reserved  [/td][/tr][tr][td]  S6  [/td][td]  Reserved  [/td][/tr][tr][td]  S7  [/td][td]  Reserved  [/td][/tr][/table][/align][font=宋体][size=10.5pt]表[/size][/font][size=10.5pt]22[/size][font=宋体][size=10.5pt]:音频编码值的各个比特位[/size][/font][align=center][table] [tr][td]  Value Bit  [/td][td]  Service  [/td][/tr][tr][td]  V1   [/td][td]  Voice (coded – GSM 06.21)  [/td][/tr][tr][td]  V2   [/td][td]  Voice (coded - PCM 64 kbit/s U-law)  [/td][/tr][tr][td]  V3   [/td][td]  Voice (coded ADPCM 32kbit/s) ITU-T G.726  [/td][/tr][tr][td]  V4   [/td][td]  Voice (coded halfrate)  [/td][/tr][tr][td]  V5   [/td][td]  Voice (coded - PCM 64kbit/s A-law)  [/td][/tr][tr][td]  V6   [/td][td]  Voice (coded PCM 128kbit/s)  [/td][/tr][tr][td]  V7   [/td][td]  Reserved  [/td][/tr][/table][/align][font=宋体][size=10.5pt]发送方传输一个[/size][/font][size=10.5pt]SNC[/size][font=宋体][size=10.5pt]命令,它的各个域,都设置成该特殊[/size][/font][size=10.5pt]DLC[/size][font=宋体][size=10.5pt]可以使用的所有可能的服务的值。接收方用它选择的值的集合,以一个[/size][/font][size=10.5pt]SN[/size][font=宋体][size=10.5pt]回应帧回复它。接收方构建回应帧的时候,必须遵守如下的规则:[/size][/font][b][size=10.5pt]DLCI[/size][/b][b][font=宋体][size=10.5pt]值不能变[/size][/font][/b][font=宋体][size=10.5pt]。[/size][/font][b][font=宋体][size=10.5pt]接收方可以而选择发送方提议的服务的子集,但不能是超集。接收方所选择的,才是有效的。假如接收方不支持发送方提议的任何服务,它把服务字节置回复。[/size][/font][/b][b][font=宋体][size=10.5pt]即使选择了数据服务,音频编码值字节也总要出现的([/size][/font][/b][b][size=10.5pt]present[/size][/b][b][font=宋体][size=10.5pt])。这种情况下,该字节的[/size][/font][/b][b][size=10.5pt]V1-V7[/size][/b][b][font=宋体][size=10.5pt]比特位,都置[/size][/font][/b][b][size=10.5pt]0[/size][/b][b][font=宋体][size=10.5pt]。[/size][/font][/b][size=10.5pt]0[/size][font=宋体][size=10.5pt]值,意味着标准[/size][/font][size=10.5pt]AT[/size][font=宋体][size=10.5pt]命令模式。[/size][/font][font=宋体][size=10.5pt]假如命令里没有包含值字节,它被解释位一个请求,并且接收方用所有可能的服务回应。[/size][/font][font=宋体][size=10.5pt]假如发送方认为回应是可以接收,也就是说,服务别特务都匹配([/size][/font][size=10.5pt]match[/size][font=宋体][size=10.5pt]),发送方根据服务,开始使用[/size][/font][size=10.5pt]DLC[/size][font=宋体][size=10.5pt]。假如回应是不可接受的,发送方将发起另外一个修改了参数的[/size][/font][size=10.5pt]PNC[/size][font=宋体][size=10.5pt]命令,直到最终协商好,或者向更高层传递失败的信息。[/size][/font][font=宋体][size=10.5pt]假如[/size][/font][size=10.5pt]DLC[/size][font=宋体][size=10.5pt]上没有执行过服务协商,它在标准[/size][/font][size=10.5pt]AT[/size][font=宋体][size=10.5pt]模式下运行。这种情况下,一个来电的指示,在另一个([/size][/font][size=10.5pt]that[/size][font=宋体][size=10.5pt])[/size][/font][size=10.5pt]DLC[/size][font=宋体][size=10.5pt]上。[/size][/font][font=宋体][size=10.5pt]发送方把保留位置[/size][/font][size=10.5pt]0[/size][font=宋体][size=10.5pt],接收方忽略这些保留位。[/size][/font]3.4.7. [font=宋体]电源控制与唤醒机制[/font]
[font=宋体]对各种类型的[/font]MS[font=宋体]和一些[/font]TE[font=宋体]来说,设备耗电非常少,这是非常重要的。比如,在非激活的条件下,进入各种省电状态,就能达到这个目标。假如[/font]TE[font=宋体]和[/font]MS[font=宋体]都希望进入省电状态,[/font]MUX[font=宋体]系统必须能够完全关闭。通过使用[/font]MUX[font=宋体]的控制通道,来达到这个功能。[/font]
[font=宋体]假如[/font]TE[font=宋体]和[/font]MS[font=宋体]都希望进入省电状态,一个[/font]PSC[font=宋体]命令在[/font]MUX[font=宋体]的控制通道上,发送到另外一端。接收端接收到这个消息,将完全传输当前进行中的所有的帧,向上层报告一个忙或者电源关闭的情况,冻结所有的定时器,发送回一个[/font]PSC[font=宋体]回应帧。当[/font]PSC[font=宋体]命令的发起方,收到确认后,它就可以进入省电状态了。[/font]
[font=宋体]每一端都可以发送[/font]PSC[font=宋体]命令,请求另外一端进入省电状态。接收方必须用[/font]PSC[font=宋体]回应帧,确认[/font]PSC[font=宋体]命令帧,但不一定要遵从命令而进入省电状态。如果没有收到回应帧,发送方重发命令帧,但是,必须先执行唤醒流程。[/font]
[font=宋体]每一端都可以从省电状态,通过发送由连续的标识字符组成的唤醒信号,发起唤醒流程。当另一端收到标识字符时,如果必要它将醒来([/font]wake-up[font=宋体]),并且发送标识字符。当发起端接收到这些字符后,它停止发送标识字符,并且开始传输第一个数据帧。当接收端检测到有效帧后,它将停止发送标识字符。两端都解冻它们的定时器,像以前一样继续运行。[/font]
[font=宋体]假如[/font]T3[font=宋体]时间内,唤醒流程收不到回应帧(连续的标识字符),将向上层发出一个警告,并且停止标识字符的传输。[/font]3.4.8. [font=宋体]流控[/font]3.4.8.1. RTR[font=黑体]流控[/font]
[font=宋体]图[/font]12[font=宋体]显示了[/font]DTE[font=宋体]到[/font]DCE[font=宋体]的链接。本段定义的流控方案,同样适用于[/font]DTE-DTE[font=宋体]的链接。[/font]07.10[font=宋体]的两端都用[/font]RTR[font=宋体]([/font]RFR/CTS[font=宋体])流控配置过。对本地应用程序来说,流控信号就是其他三个流控信号和对方设备的[/font]RTR[font=宋体]信号的联合。标签为[/font]FCS1-FCS3[font=宋体]的流控信号定义如下:[/font]FCS1
MSC[font=宋体]命令或者[/font]type2[font=宋体]的集成层的控制信号字节的第[/font]2[font=宋体]位。每个[/font]DLCI[font=宋体]都流控。[/font]FCS2
07.10[font=宋体]通过控制通道命令[/font]Fcon[font=宋体]和[/font]Fcoff[font=宋体]([/font]basic[font=宋体]模式)聚合的流控。[/font]FCS3
07.10[font=宋体]内部的缓冲区管理[/font](implementation specific)
[font=宋体]流控信号[/font]FCS1-FCS3[font=宋体]跟对端的[/font]RTR[font=宋体]信号组合在一起,产生了本地的[/font]RTR[font=宋体]输入信号。比如,为了模拟[/font]DTE[font=宋体]串口的[/font]CTS[font=宋体]信号的表达式是:[/font]
DTE.CTS=DCE.RTRAND FCS1 AND FCS2 AND FCS3
[font=宋体]在[/font]moden[font=宋体]状态命令(当使用集成层[/font]1[font=宋体],[/font]3[font=宋体]和[/font]4[font=宋体])的第[/font]2[font=宋体]位([/font]FC[font=宋体])和第[/font]4[font=宋体]位([/font]RTR[font=宋体]),或控制信号字节(当使用集成层[/font]2[font=宋体])的第[/font]2[font=宋体]位([/font]FC[font=宋体])和第[/font]4[font=宋体]位([/font]RTR[font=宋体])[/font], [font=宋体]流控模拟器复制了发送的[/font]RTR[font=宋体]信号。[/font][img=553,343]file:///C:\DOCUME~1\chen\LOCALS~1\Temp\msohtml1\01\clip_image011.jpg[/img]3.4.8.2. XON/XOFF[font=黑体]流控[/font]
[font=宋体]当嵌入了[/font]XON/XOFF[font=宋体]字符,一些[/font]07.10[font=宋体]的实例可以检测来自本地应用程序的[/font]XON/XOFF[font=宋体]字符。这种情况下,字符遵照[/font]07.10[font=宋体],但不发送给对端的[/font]07.10[font=宋体]实例,比如[/font]XON/XOFF[font=宋体]字符被过滤出来,流控信号作为[/font]07.10[font=宋体]流信号传送,见图[/font]13[font=宋体]。[/font][img=377,260]file:///C:\DOCUME~1\chen\LOCALS~1\Temp\msohtml1\01\clip_image013.jpg[/img]
[font=宋体]如果输出([/font]output[font=宋体])使用了[/font]XON/XOFF[font=宋体]流控,[/font]07.10[font=宋体]将用[/font]XON/XOFF[font=宋体]字符实现本地应用程序的流控,比如,[/font]XON/XOFF[font=宋体]字符根据[/font]07.10[font=宋体]流控信号(参见图[/font]14[font=宋体]),被插进数据流。[/font][img=375,304]file:///C:\DOCUME~1\chen\LOCALS~1\Temp\msohtml1\01\clip_image015.jpg[/img]3.5. [font=黑体]集成层[/font]Convergence Layer
[font=宋体]集成层的定义,允许带结构的数据,通过[/font]MUX[font=宋体]传输,不丢失结构和其他与数据流相关的参数。集成层通常用来通过一个[/font]DLC[font=宋体],运载[/font]V.24[font=宋体]的状态,或者用来确保一个声音编码帧的边界受到保护。[/font]
[font=宋体]集成层决定数据是否被[/font]ERM[font=宋体]模式或者[/font]non-ERM[font=宋体]模式的流程所运载。[/font]
[font=宋体]特殊的集成层用于连接被使用的[/font]DLCI[font=宋体],但是可能通过[/font]MUX[font=宋体]控制信道的使用,跟这些默认的[/font]DLCI[font=宋体]进行协商。[/font]3.5.1. [font=宋体]类型[/font]1-[font=宋体]未结构化的字节流[/font]
[font=宋体]未结构化的字节流数据,比如[/font]64kbit/s[font=宋体]的未编码的声音或者不带[/font]V.24[font=宋体]控制信号的常规异步数据,被直接插入到[/font]I[font=宋体]域。这种情况下,可以这样说,集成层是空的。[/font]
Type1[font=宋体]是每个[/font]DLC[font=宋体]的默认的集成层。[/font]3.5.2. [font=宋体]类型[/font]2-[font=宋体]带参数的未结构化的字节流[/font]
[font=宋体]传输[/font]V.24[font=宋体]控制信号相关的一个数据流,它每个[/font]I[font=宋体]域的第一个字节包括信号的状态,见下图。扩展位的使用,允许添加其他字节来满足其他的情况。目前,可选的第二个字节,被定义为处理中断信号的传输。[/font][align=center][table] [tr][td]  Bit No  [/td][td]  1  [/td][td]  2  [/td][td]  3  [/td][td]  4  [/td][td]  5  [/td][td]  6  [/td][td]  7  [/td][td]  8  [/td][/tr][tr][td]  Signal  [/td][td]  EA  [/td][td]  FC  [/td][td]  RTC  [/td][td]  RTR  [/td][td]  Reserved 0  [/td][td]  Reserved 0  [/td][td]  IC  [/td][td]  DV  [/td][/tr][/table][/align][font=宋体]图[/font]15[font=宋体]:控制信号的字节格式[/font]
[font=宋体]控制信号字节的描述如下:[/font]
Bit1[font=宋体]。[/font]EA[font=宋体]为[/font]1[font=宋体]表示本字节是该域的最后一个字节,其他字节[/font]EA[font=宋体]位为[/font]0[font=宋体]。[/font]
Bit2[font=宋体]。[/font]DLC[font=宋体]的流控([/font]Flow Control[font=宋体])。[/font]Non-ERM[font=宋体]模式下,设备不能接收帧时,置[/font]1[font=宋体]。[/font]ERM[font=宋体]模式下,发送方,永远置[/font]0[font=宋体],接收方忽略它。[/font]
Bit3[font=宋体]。准备好发送([/font]Ready To Communicate[font=宋体])。设备准备好发送的时候,置[/font]1[font=宋体]。[/font]Bit4[font=宋体]。准备好接收([/font]Ready To Receive[font=宋体])。设备准备好接收数据的时候,置[/font]1[font=宋体]。[/font]Bit5/6[font=宋体]。保留。发送方要置[/font]0[font=宋体],接收方忽略它。[/font]Bit7[font=宋体]。来电([/font]Incoming Call[font=宋体])标识。该位置[/font]1[font=宋体]指明有个来电。[/font]Bit8[font=宋体]。数据有效([/font]Data Valid[font=宋体])。该位置[/font]1[font=宋体]指明有效的数据正被传送。[/font][font=宋体]接收方和发送方的[/font]V.24[font=宋体]控制信号字节的各[/font]BIT[font=宋体]位,分别在表[/font]23[font=宋体]和表[/font]24[font=宋体]中。[/font]Table23: Mapping from the control signal octet by a receiving entity[align=center][table] [tr][td]  Control Signal Byte   [/td][td]  DTE receiving   [/td][td=2,1]  DCE receiving  [/td][/tr][tr][td]  bit number, name   [/td][td]  signal   [/td][td]  V.24 circuit   [/td][td]  signal   [/td][td]  V.24 circuit  [/td][/tr][tr][td]  2, FC   [/td][td]  DLC flow control   [/td][td]  -   [/td][td]  DLC flow control   [/td][td]  -  [/td][/tr][tr][td]  3, RTC   [/td][td]  DSR   [/td][td]  107   [/td][td]  DTR   [/td][td]  108/2  [/td][/tr][tr][td]  4, RTR   [/td][td]  CTS   [/td][td]  106   [/td][td]  RFR (note)   [/td][td]  133  [/td][/tr][tr][td]  7, IC   [/td][td]  RI   [/td][td]  125   [/td][td]  ignored   [/td][td]  -  [/td][/tr][tr][td]  8, DV   [/td][td]  DCD   [/td][td]  109   [/td][td]  ignored   [/td][td]  -  [/td][/tr][tr][td]  NOTE Circuit 133, RFR (Ready for  Receiving) is commonly assigned to the connector pin that is alternatively  used for circuit 105, RTS. It is sometimes referred to by that name.  [/td][/tr][/table][/align] Table24: Mapping to the control signal octet by a sending entity[align=center][table] [tr][td]  Control Signal Byte  [/td][td=2,1]  DTE sending  [/td][td]  DCE sending  [/td][/tr][tr][td]  bit number, name  [/td][td]  signal  [/td][td]  V.24 circuit  [/td][td]  signal  [/td][td]  V.24 circuit  [/td][/tr][tr][td]  2,FC  [/td][td]  frame flow control  [/td][td]  -  [/td][td]  frame flow control  [/td][td]  -  [/td][/tr][tr][td]  3,RTC  [/td][td]  DTR  [/td][td]  108/2  [/td][td]  DSR  [/td][td]  107  [/td][/tr][tr][td]  4,RTR  [/td][td]  RFR (note)  [/td][td]  133   [/td][td]  CTS   [/td][td]  106  [/td][/tr][tr][td]  7,IC  [/td][td]  always 0   [/td][td]  -   [/td][td]  RI   [/td][td]  125  [/td][/tr][tr][td]  8,DV  [/td][td]  always 1   [/td][td]  -   [/td][td]  DCD   [/td][td]  109  [/td][/tr][tr][td=5,1]  NOTE. Circuit 133, RFR (Ready for  Receiving) is commonly assigned to the connector pin that is alternatively  used for circuit 105, RTS. It is sometimes referred to by that name.  [/td][/tr][/table][/align] Non-ERM[font=宋体]模式下,[/font]FC[font=宋体]位为[/font]DLC[font=宋体]提供帧的流控。如果一端不能接收数据帧了,比如,由于缓冲区管理的问题,它将置[/font]FC[font=宋体]位为[/font]1[font=宋体]。当它又能接收数据帧了,它将置[/font]FC[font=宋体]位为[/font]0[font=宋体]。如果一端接收一个[/font]FC[font=宋体]位置[/font]1[font=宋体]的数据帧,它将停止传输数据帧,直到收到一个[/font]FC[font=宋体]位置[/font]0[font=宋体]的数据帧。[/font][font=宋体]如果一端由于流控的原因,不能传输数据帧了,但它想自己停止接收数据帧,或者想在控制信号中发送一个改变信号或者想发送一个中止状态,它要继续发送不包含用户数据(比如只包括控制信号的字节和可选的中止信号的字节)的帧。[/font]ERM[font=宋体]模式下,[/font]FC[font=宋体]位没有用,将被发送方置[/font]0[font=宋体],被接收方忽略。如果一端已经不再(被防止)发送[/font]I[font=宋体]帧,例如,正接收一个[/font]RNR[font=宋体]帧,如果它想在控制信号中发送一个改变信号,或者想发送一个中止状态,它要继续发生一个不包含用户数据的[/font]UI[font=宋体]或者[/font]UIH[font=宋体]帧。[/font][align=center][table] [tr][td]  Bit No  [/td][td]  1  [/td][td]  2  [/td][td]  3  [/td][td]  4  [/td][td]  5  [/td][td]  6  [/td][td]  7  [/td][td]  8  [/td][/tr][tr][td]  Signal  [/td][td]  EA  [/td][td]  B1  [/td][td]  B2  [/td][td]  B3  [/td][td]  L1  [/td][td]  L2  [/td][td]  L3  [/td][td]  L4  [/td][/tr][/table][/align][font=宋体]图[/font]16[font=宋体]:中止信号的字节格式[/font][font=宋体]中止信号字节携带能让[/font]DLC[font=宋体]检测出来的中止信息。其意义如表[/font]25[font=宋体]。[/font][font=宋体]表[/font]25[font=宋体]:中止信号的字节的含义[/font][align=center][table] [tr][td]  Bit  [/td][td]  Value  [/td][td]  Meaning  [/td][/tr][tr][td]  B1  [/td][td]  1  [/td][td]  Octet encodes a break signal  [/td][/tr][tr][td]     [/td][td]  0  [/td][td]  Octet does not encode a break signal  [/td][/tr][tr][td]  B2  [/td][td]  1  [/td][td]  Discard data in buffers  [/td][/tr][tr][td]     [/td][td]  0  [/td][td]  Do not discard data in buffers  [/td][/tr][tr][td]  B3  [/td][td]  1  [/td][td]  Transmit break signal onwards as soon as  possible  [/td][/tr][tr][td]     [/td][td]  0  [/td][td]  Transmit break signal onwards in sequence  [/td][/tr][tr][td]  L1-L4  [/td][td]  4-bit value  [/td][td]  Length of break in units of 200ms  [/td][/tr][/table][/align] L1[font=宋体]是[/font]break length[font=宋体]的最低位,[/font]L4[font=宋体]是最高位。[/font][font=宋体]当一端接收到中止字节([/font]break octet[font=宋体]),它将处理这个信息,并用适当的方法传递它。这不在本文档论述范围之内。[/font]I[font=宋体]域的其他字节包括该[/font]DLC[font=宋体]所需的数据。[/font]3.5.3. [font=宋体]类型[/font]3-[font=宋体]不可中断的帧数据[/font]
[font=宋体]一个不可中断的帧数据的例子就是由连续的音频数据帧组成的音频编码数据。音频编码数据数据帧,带有完整的帧结构,在尽可能短的时延下,到达音频解码器,是非常重要的。最简单的把办法是确保把一个完整的音频数据帧放进一个[/font]I[font=宋体]域中。在传输过程中,即使高优先级的数据在等待,这个数据帧也不能变短([/font]shortened[font=宋体]压缩?)。[/font]
[font=宋体]在传输器([/font]transmitter[font=宋体])那,数据的每个帧,都被插进一个[/font]I[font=宋体]帧,[/font]UI[font=宋体]帧或[/font]UIH[font=宋体]帧的[/font]I[font=宋体]域中。接收器作为完整帧,处理数据,传输它。[/font]
[font=宋体]音频编码数据应该使用[/font]UI[font=宋体]帧或[/font]UIH[font=宋体]帧传输,因为重新传输的延时,通常是不能接受的。[/font]3.5.4. [font=宋体]类型[/font]4-[font=宋体]可中断的帧数据[/font]
[font=宋体]当时延不像[/font]type3[font=宋体]那么重要时,这种类型的集成层,被用来传输有结构的数据。结构化的数据可以被分割成多帧,并且可以在另外一端重新装配。按[/font]PPP[font=宋体]封装的[/font]IP[font=宋体]数据,就是一个例子,它的数据可以运载在[/font]Type4[font=宋体]的集成层上。[/font]
[font=宋体]每个[/font]type4[font=宋体]的数据帧的第一个字节是一个控制字节,如下图[/font]17[font=宋体]。[/font][align=center][table] [tr][td]  Bit  [/td][td]  No  [/td][td]  1  [/td][td]  2  [/td][td]  3  [/td][td]  4  [/td][td]  5  [/td][td]  6  [/td][td]  7  [/td][/tr][tr][td]  Signal  [/td][td]  EA  [/td][td]  -  [/td][td]  -  [/td][td]  -  [/td][td]  -  [/td][td]  -  [/td][td]  B  [/td][td]  F  [/td][/tr][/table][/align]Figure17: Format of Type 4 octet
EA[font=宋体]位以后扩展,如果需要用到多个字节时。这里设置为[/font]1[font=宋体]。[/font]
B[font=宋体]和[/font]F[font=宋体]位用来指示该数据帧是一个序列的第一个数据帧,中间的数据帧或者最后一个数据帧。它的含义如下面表[/font]26[font=宋体]所示。[/font][font=宋体]表[/font]26[font=宋体]:[/font]B[font=宋体]位和[/font]F[font=宋体]位的含义[/font][align=center][table] [tr][td]  B[font=宋体]位[/font]  [/td][td]  F[font=宋体]位[/font]  [/td][td]  [font=宋体]含义[/font]  [/td][/tr][tr][td]  1  [/td][td]  0  [/td][td]  [font=宋体]一个序列的第一帧[/font]  [/td][/tr][tr][td]  0  [/td][td]  0  [/td][td]  [font=宋体]一个序列的中间帧[/font]  [/td][/tr][tr][td]  0  [/td][td]  1  [/td][td]  [font=宋体]一个序列的最后一帧[/font]  [/td][/tr][tr][td]  1  [/td][td]  1  [/td][td]  [font=宋体]数据完全被包含在一个数据帧中[/font]  [/td][/tr][/table][/align]
[font=宋体]注意[/font]1[font=宋体]:假如其他的帧结构,比如第二层协议,已经包含在数据流中,按[/font]PPP[font=宋体]封装的[/font]IP[font=宋体]数据可以使用[/font]type1[font=宋体]的集成层运载。[/font]
[font=宋体]注意[/font]2[font=宋体]:如果一个数据帧作为最后一个数据帧进行编码,或者所有的数据包含在一个数据帧中,数据帧不能被压缩,因为,压缩会导致帧头([/font]header[font=宋体])含义的错误。构造不包含任何数据的数据帧作为最后一个数据帧,或者当数据帧需要压缩时避免使用[/font]11[font=宋体]编码([/font]11 code[font=宋体]),是明智的。[/font]3.6. DLCI[font=黑体]值[/font]
[font=宋体]默认情况下,所有[/font]DLC[font=宋体]使用了[/font]type1[font=宋体]的集成层。其他层的使用,可以通过[/font]MUX[font=宋体]的控制通道进行协商。[/font][font=宋体]表[/font]27[font=宋体]:[/font]DLCI[font=宋体]分配表[/font][align=center][table] [tr][td]  [font=宋体]用法[/font]Usage  [/td][td]  DLCI[font=宋体]编号([/font]10[font=宋体]进制)[/font]  [/td][td]  Priority[font=宋体]优先级[/font]  [/td][/tr][tr][td]  Multiplexer control channel  [/td][td]  0  [/td][td]  0  [/td][/tr][tr][td]  AT commands (07.07 and 07.05)  [/td][td]  1-7  [/td][td]  7  [/td][/tr][tr][td]  AT commands (07.07 and 07.05)  [/td][td]  8-15  [/td][td]  15  [/td][/tr][tr][td]  AT commands (07.07 and 07.05)  [/td][td]  16-23  [/td][td]  23  [/td][/tr][tr][td]  AT commands (07.07 and 07.05)  [/td][td]  24-31  [/td][td]  31  [/td][/tr][tr][td]  AT commands (07.07 and 07.05)  [/td][td]  32-39  [/td][td]  39  [/td][/tr][tr][td]  AT commands (07.07 and 07.05)  [/td][td]  40-47  [/td][td]  47  [/td][/tr][tr][td]  AT commands (07.07 and 07.05)  [/td][td]  48-55  [/td][td]  55  [/td][/tr][tr][td]  AT commands (07.07 and 07.05)  [/td][td]  56-61  [/td][td]  61  [/td][/tr][tr][td]  Reserved  [/td][td]  62-63  [/td][td]     [/td][/tr][/table][/align] 
DLCI0[font=宋体]为控制通道保留。[/font]
DLCI62[font=宋体]为[/font]basic[font=宋体]模式下[/font]BOFC[font=宋体]和[/font]EOFC[font=宋体]的[/font]ETSI[font=宋体]目的保留,也只能这么用。[/font]
DLCI63[font=宋体]为[/font]HDLC[font=宋体]模式下的[/font]ETSI[font=宋体]目的保留(由于特别的含义),也只能这么用。[/font]
[font=宋体]在[/font]DLC[font=宋体]指定优先级的信息的缺省情况下,使用这个表。[/font]3.7. [font=黑体]系统参数[/font]
MUX[font=宋体]定义了下面这些的系统的参数。[/font]T1[font=宋体],[/font]N1[font=宋体],[/font]N2[font=宋体]和[/font]k[font=宋体]可以通过控制通道进行协商,或者用这里给的默认值。[/font]T2[font=宋体]和[/font]T3[font=宋体]通过[/font]AT+CMUX[font=宋体]命令进行设置。[/font]3.7.1. [font=宋体]确认时间[/font]T1
T1[font=宋体]就是通道一端在采取其他动作(比如重发)之前,等待确认信息的时间。通道两端可以有不同的[/font]T1[font=宋体]值。[/font]
[font=宋体]单位是毫秒。[/font][size=10.5pt]Times of up to 2.55 seconds may be used.[/size][font=宋体]默认值是[/font]100ms[font=宋体],最小值是[/font]10ms[font=宋体]。[/font]3.7.2. [font=宋体]帧的最大长度[/font]N1
N1[font=宋体]定义了帧的信息域,能容纳的字节的最大数量。它不包括为了透明而增加的字节。[/font]
[font=宋体]默认值是[/font]64[font=宋体]字节([/font]advanced[font=宋体])或者[/font]31[font=宋体]字节([/font]basic[font=宋体]),范围是[/font]1-32768[font=宋体]。[/font]
[font=宋体]注意:如果使用了[/font]a [size=10.5pt]Type 2 convergence layer[/size][font=宋体][size=10.5pt],[/size][/font][size=10.5pt]N1[/size][font=宋体][size=10.5pt]要小心选择了。帧必须足够大,以包含完整的协议帧。[/size][/font]3.7.3. [font=宋体]最大重发次数[/font]N2
N2[font=宋体]定义了重发的次数。通道两端可以有各自不同的[/font]N2[font=宋体]值。[/font][font=宋体]默认值是[/font]3[font=宋体],范围是[/font]0-255[font=宋体]。[/font]3.7.4. [font=宋体]窗口大小[/font]k
[font=宋体]窗口大小参数[/font]k[font=宋体]定义了一个[/font]DLC[font=宋体]能理解的最大的[/font]I[font=宋体]帧的数目。不同的方向,需要用同一个值。窗口大小不能大于[/font]7[font=宋体]。[/font]
[font=宋体]这个参数只使用于错误恢复模式激活的情况下。[/font]
[font=宋体]默认值是[/font]2[font=宋体],范围是[/font]1-7[font=宋体]。[/font]3.7.5. [font=宋体]控制通道的响应时间[/font]T2
T2[font=宋体]就是[/font]MUX[font=宋体]的控制通道重发一个命令前的等待时间。[/font]T2[font=宋体]必须大于[/font]T1[font=宋体]。单位也是毫秒。[/font][size=10.5pt]Times of upto 2.55 seconds may be used.[/size]
[font=宋体]默认值是[/font]300ms[font=宋体],最小值是[/font]20ms[font=宋体]。[/font]3.7.6. [font=宋体]唤醒流程的响应时间[/font]T3
T3[font=宋体]就是发送端在无响应报警之前,对省电唤醒命令所等待的时间。[/font]
[font=宋体]单位是秒。[/font][size=10.5pt]Times of up to 2.55 seconds may be used.[/size][size=10.5pt]
[/size][font=宋体][size=10.5pt]默认值是[/size][/font][size=10.5pt]10s[/size][font=宋体][size=10.5pt],最小值是[/size][/font][size=10.5pt]1s[/size][font=宋体][size=10.5pt]。[/size][/font]3.8. [font=黑体]启动和关闭[/font]MUX
[font=宋体]启动[/font]MUX[font=宋体]使用[/font]+CMUX[font=宋体]命令。这个命令指明了启动[/font]MUX[font=宋体],使用的[/font]ERM[font=宋体]还是[/font]non-ERM[font=宋体]。发送[/font]SABM[font=宋体],初始化[/font]DLCI 0[font=宋体]。然后,使用同样的[/font]3.4.1[font=宋体]的流程,建立其他的[/font]DLC[font=宋体]。[/font]MUX[font=宋体]可以跟已经建立的[/font]DLC[font=宋体],协商参数。[/font]
[font=宋体]关闭[/font]MUX[font=宋体],可能有[/font]TE[font=宋体]或[/font]MS[font=宋体]端发起。先要用[/font]3.4.2[font=宋体]的流程,释放除了[/font]DLC 0[font=宋体]的所有[/font]DLC[font=宋体]。然后,[/font]MUX[font=宋体]通过控制通道,发送一个关闭的消息。这个消息被双方确认后,就退出了多串口模式。如果在[/font]T2[font=宋体]时间内收不到对方对关闭命令的回应,发起方必须重发关闭命令,如果在[/font]T3[font=宋体]的时间内还收不到,必须强行关闭。[/font]4. Error Recovery Mode[font=宋体][size=10.5pt]错误覆盖模式,用的不多,但是比没有覆盖模式安全,并且只能在高级模式中使用。帧模式是[/size][/font][font=Arial][size=10.5pt]I[/size][/font][font=宋体][size=10.5pt]帧。在这里不做介绍。[/size][/font][size=10.5pt] [/size]

涛行九天 发表于 2009-12-3 13:07

在高级模式下编辑,不会有乱码

woshichuanqi 发表于 2009-12-19 13:02

头晕 。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。

tomsu 发表于 2009-12-19 13:06

天啊  格式乱掉了 {:3_44:}

max 发表于 2009-12-19 13:50

:)是在高级模式下拷贝的

测试了帖子内容可以多长?:D

涛行九天 发表于 2009-12-19 13:53

帖子内容现在是50000字节,够不

max 发表于 2009-12-19 13:57

:)够了,太壮观了, 我的电脑打开都要 发几个呆 才出的来。

peterzhu0503 发表于 2010-1-9 10:59

天啊  格式乱掉了

max 发表于 2010-1-9 14:41

啊胡~~~这个帖子,我算是不想再进来了,Ca Ca Ca

页: [1]

Powered by Discuz! Archiver 7.1  © 2001-2009 Comsenz Inc.

302 Found

302 Found


nginx/1.8.0