Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    【网络Tips10】Tina网络XR829的基本调试节点

    MR Series
    1
    1
    1212
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • RCfly
      三颗芋圆 LV 4 last edited by

      大家好,我是三颗芋圆,始于LWIP,陷于TCP/IP,忠于80211。
      本次Tips介绍一下XR829的几个关键调试节点
      xradio调试节点:
      1.版本信息和帧交互控制

      /sys/kernel/debug/ieee80211/phy0/xradio/
      

      2.设置打印等级
      xr829的打印不同于一般驱动统一按照warning,error,info...,而是针对每个流程都加入了控制,例如,扫描,连接,数据收发。

      /sys/kernel/debug/xradio_host_dbg/
      dbg_sta  dbg_scan dbg_tx dbg_ap ...
      

      3.数据收发帧的打印

      echo 0x5143,0x5143 > /sys/kernel/debug/ieee80211/phy0/xradio/parse_flags //xr829打开tx rx log
      echo 0x40 0x40 > /sys/kernel/debug/ieee80211/phy0/xradio/parse_flags   //dhcp交互帧
      

      具体bit表示的帧类型参考如下:

      0x1 显示控制帧
      0x2 显示管理帧(扫描相关帧除外)
      0x4 显示数据帧
      0x8 显示扫描相关帧
      0x10 显示 TCP 协议帧
      0x20 显示 UDP 协议帧
      0x40 显示 DHCP 协议帧
      0x80 显示 ICMP 协议帧(包含 ping 协议
      0x100 显示 PF_8021X 协议帧
      0x200 在信息中显示 MAC 层的序列号
      0x400 在信息中显示自身 MAC 地址
      0x800 在信息中显示源 MAC 地址和目标 MAC 地址
      0x1000 在信息中显示无线层对端 MAC 地址
      0x2000 在信息中显示 IP 地址
      0x4000 显示未知协议的帧
      

      4.模式和速率查看
      跑吞吐前先cat一次清零,跑完再cat一次,就可以知道用了什么速率跑

      root@TinaLinux:/sys/kernel/debug/ieee80211/phy0/xradio# cat ratemap 
      
      TxRateMap:
           [20SGI TX][20LGI TX] [40SGI TX][40LGI TX]      [DSSS  TX]     [OFDM  TX]
      MCS7:[       0][       0] [       0][       0] 11MS:[       0] 54M:[       0]
      MCS6:[       0][       0] [       0][       0] 11ML:[       0] 48M:[       0]
      MCS5:[       0][       0] [       0][       0] 5M5S:[       0] 36M:[       0]
      MCS4:[       0][       0] [       0][       0] 5M5L:[       0] 24M:[       0]
      MCS3:[       0][       0] [       0][       0]  2MS:[       0] 18M:[       0]
      MCS2:[       0][       0] [       0][       0]  2ML:[       0] 12M:[       0]
      MCS1:[       3][       0] [       0][       0] ----:[       0]  9M:[       0]
      MCS0:[       0][       0] [       0][       0]  1ML:[       0]  6M:[       0]
      
      RxRateMap:
           [20SGI RX][20LGI RX] [40SGI RX][40LGI RX]      [DSSS  RX]     [OFDM  RX]
      MCS7:[       2][       0] [       0][       0] 11MS:[       0] 54M:[       0]
      MCS6:[       0][       0] [       0][       0] 11ML:[       0] 48M:[       0]
      MCS5:[       0][       0] [       0][       0] 5M5S:[       0] 36M:[       0]
      MCS4:[       0][       0] [       0][       0] 5M5L:[       0] 24M:[       0]
      MCS3:[       0][       0] [       0][       0]  2MS:[       0] 18M:[       0]
      MCS2:[       0][       0] [       0][       0]  2ML:[       0] 12M:[       0]
      MCS1:[       0][       0] [       0][       0] ----:[       0]  9M:[       0]
      MCS0:[       0][       0] [       0][       0]  1ML:[       4]  6M:[       0]
      
      1 Reply Last reply Reply Quote Share 0
      • 1 / 1
      • First post
        Last post

      Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

      行为准则 | 用户协议 | 隐私权政策