论坛风格切换切换到宽版
  • 3147阅读
  • 2回复

求kiss协议解析 [复制链接]

上一主题 下一主题
离线BG6MGD
 
发帖
353
只看楼主 倒序阅读 0楼 发表于: 2016-12-26
              通过arduino tnc得到一组数据C0 00 82 A0 88 AE 62 66 E0 84 8E 6C 9A 8E 88 FC AE 92 88 8A 62 40 62 AE 92 88 8A 64 40 63 03 F0 21 33 34 34 38 2E 33 34 4E 52 31 31 33 33 39 2E 31 36 45 23 50 48 47 31 31 34 30 44 49 47 49 20 44 69 72 65 77 6F 6C 66 2D 50 49 20 75 76 32 C0,
              ascii转换得到        ? ????bf???l????????b@b????d@c?!3448.34NR11339.16E#PHG1140DIGI Direwolf-PI uv2?
                             请问       ? ????bf???l????????b@b????d@c?   是什么东西?
                                                                                                                                                                             谢谢!


请大佬帮忙分析一下,怎么理解以下的内容。


<pre>Command        Function         Comments  
   0           Data frame       The  rest  of the frame is data to
                                be sent on the HDLC channel.  

   1           TXDELAY          The next  byte  is  the  transmitter
                                keyup  delay  in  10 ms units.  
                        The default start-up value is 50
                                (i.e., 500 ms).

   2           P                The next byte  is  the  persistence
                                parameter,  p, scaled to the range
                                0 - 255 with the following
                                formula:

                                         P = p * 256 - 1

                                The  default  value  is  P  =  63  
                                (i.e.,  p  =  0.25).  

   3           SlotTime         The next byte is the slot interval
                                in 10 ms units.
                                The default is 10 (i.e., 100ms).

   4           TXtail           The next byte is the time to hold
                                up the TX after the FCS has been
                                sent, in 10 ms units.  This command
                                is obsolete, and is included  here
                                only for  compatibility  with  some
                                existing  implementations.  

   5          FullDuplex        The next byte is 0 for half duplex,
                                nonzero  for full  duplex.  
                                The  default  is  0  
                                (i.e.,  half  duplex).  

   6          SetHardware       Specific for each TNC.  In the
                                TNC-1, this command  sets  the
                                modem speed.  Other implementations
                                may use this function  for   other
                                hardware-specific   functions.  
    
   FF         Return            Exit KISS and return control to a
                                higher-level program. This is useful
                                only when KISS is  incorporated  
                                into  the TNC along with other
                                applications.  
</pre>
    <p>The following types are defined in frames to the host: </p>
    <pre>Type            Function        Comments  
    
  0                 Data frame       Rest of frame is data from
                                     the HDLC channel.
</pre>
    <p>
        No other types are defined; in particular, there is no provision for
acknowledging data or command frames sent to the TNC. KISS implementations must
ignore any unsupported command types. All KISS implementations must implement
commands 0,1,2,3 and 5; the others are optional.
    </p>


[ 此帖被BG6MGD在2016-12-26 15:33重新编辑 ]
开拓视野,开创未来,君子慎独,活在当下。
离线bh2rey
发帖
48
只看该作者 1楼 发表于: 2016-12-27
我看看  好像和普通封包协议差不多
离线bh2rey
发帖
48
只看该作者 2楼 发表于: 2016-12-27
英文那段是说KISS协议的前8个字节数据标定了通讯协议配置,比如总计数据长度、发射延迟、结束延迟什么的。第8个字节用FF表示结束配置段。
我认为你上面列出的数据已经是去掉配置码的正文了。前面乱码部分看不出什么有效信息。
英文部分似乎没有提到数据部分如何编码。如果有更多数据样本的话可以尝试分析。