Navigation

    全志在线开发者论坛

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

    【FAQ】全志R328如何进入monitor模式

    其它全志芯片讨论区
    r329 r328 r818 faq 技术支持
    3
    3
    269
    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.
    • q1215200171
      budbool LV 8 last edited by xiaowenge

      【问题背景】
      硬件:R328+ Wi-Fi模组(XR829)
      软件:Tina
      说明:该FAQ旨在记录在Tina系统上XR829如何进入monitor模式

      【问题简述】
      我们知道xradio的xconfig配网方式,会自动切到monitor模式,那么驱动如何手动设置进入monitor模式呢?

      【问题分析】
      1.既然xconfig配网可以进入monitor模式,那么直接分析代码就可以找到对应的操作。
      2.可以通过添加打印来跟踪xconfig的调用流程。

      echo 0xff > /sys/kernel/debug/xradio_host_dbg/dbg_common
      echo 0xff > /sys/kernel/debug/xradio_host_dbg/dbg_sta
      

      【解决方法】

      手动设置进入monitor模式:

      insmod /system/vendor/modules/xradio_wlan.ko  //加载xr829.ko
      ifconfig wlan0 down                           //可能系统起来会默认进入sta模式,所以先down掉
      iw wlan0 set type monitor                     //最关键的,设置进入monitor模式
      iw wlan0 info                                 //获取wlan0网卡信息
      ifconfig wlan0 up                             //up wlan0
      iw wlan0 set channel 6                        //设置信道
      echo 0xffff,0xffff > /sys/kernel/debug/ieee80211/phy0/xradio/parse_flags   //打开收发帧调试,可以分析monitor模式
      
      1 Reply Last reply Reply Quote Share 0
      • Referenced by  q1215200171 q1215200171 
      • Referenced by  q1215200171 q1215200171 
      • tigger
        tigger LV 7 last edited by

        这是配网模式吧,支持什么协议呢?支持哪些app呢?

        xiaowenge 1 Reply Last reply Reply Quote Share 0
        • xiaowenge
          DOT小文哥 LV 8 @tigger last edited by

          @tigger 在 【FAQ】全志R328如何进入monitor模式 中说:

          这是配网模式吧,支持什么协议呢?支持哪些app呢?

          tina sdk里有个安卓app

          1 Reply Last reply Reply Quote Share 0
          • Referenced by  q1215200171 q1215200171 
          • Referenced by  q1215200171 q1215200171 
          • Referenced by  q1215200171 q1215200171 
          • 1 / 1
          • First post
            Last post

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

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