WIFI/蓝牙模块 RLT8723bu 扫描蓝牙设备出现信号断链问题

前言:

        BUG情况简述

安装测试apk-->nRF Master Control Panel.apk

发现测试信号强弱时候,竟然出现信号断链问题,情况如下图;

        

WIFI/蓝牙模块 RLT8723bu 扫描蓝牙设备出现信号断链问题_第1张图片

1.查看模块版本信息:

# cat /proc/net/rtl8723bu/ver_info
Kernel Version: 3.10.0
Driver Version: v5.2.17.1_26947.20180307_COEX20180201-6f52
------------------------------------------------
CFG80211
RTW_USE_CFG80211_STA_EVENT
DBG:1
CONFIG_RTW_DEBUG
CONFIG_CONCURRENT_MODE
CONFIG_POWER_SAVING
LOAD_PHY_PARA_FROM_FILE - REALTEK_CONFIG_PATH=b/firmware/
RTW_DEF_MODULE_REGULATORY_CERT=0x00
CONFIG_TXPWR_BY_RATE_EN=0
CONFIG_TXPWR_LIMIT_EN=0
CONFIG_RTW_ADAPTIVITY_EN = 0
CONFIG_RTW_WIFI_HAL
CONFIG_USB_TX_AGGREGATION
CONFIG_USB_RX_AGGREGATION
CONFIG_PREALLOC_RECV_SKB


=== XMIT-INFO ===
NR_XMITFRAME = 256
NR_XMITBUFF = 4
MAX_XMITBUF_SZ = 20480
NR_XMIT_EXTBUFF = 32
MAX_XMIT_EXTBUF_SZ = 1536
MAX_CMDBUF_SZ = 5120


=== RECV-INFO ===
NR_RECVFRAME = 256
NR_RECVBUFF = 8
MAX_RECVBUF_SZ = 15360

2.查看wifi和BT是否驱动一致

cat /proc/net/rtl8723bu/wlan0/btcoex
============[BT Coexist info 8723B]============
Ant PG Num/ Mech/ Pos               = 1/ Shared/ 2
CoexVer WL/  BT_Desired/ BT_Report  = 20180201_6f/ 0x6d/ 0xff (Unknown)
W_FW/ B_FW/ Phy/ Kt                 = 0x290000/ 0x26b7/ v29/ E
Wifi channel informed to BT         = 00 03 20
WifibHiPri/ Ccklock/ CckEverLock    = No/ No/ No
============[Wifi Status]============
STA/vWifi/HS/p2pGo/p2pGc            = 1/ 0/ 0/ 0/ 0 (mcc+2band = 0)
Link/ Roam/ Scan                    = 0/ 0/ 0
IQK All/ OK/ Fail/AutoLoad/FWDL     = 0/ 0/ 0 ok ok
IOT Peer                            = RALINK
RSSI/ STA_Chnl/ P2P_Chnl/ BI        = -45 dBm/ 3/ 0/ 100
Band/ BW/ Traffic/ APCnt            = 2.4G / HT20/ idle/ 6
Power Status                        = IPS OFF, LPS ON
Power mode cmd(lps/rpwm)            = 01 21 02 00 00 40 (0x0/0x0)
============[BT Status]============
BT Abnormal scan                    = No
BT [status/ rssi/ retryCnt/ popCnt] = [non-connected idle/ -90/ 0/ 0]
SCO/HID/PAN/A2DP/NameReq/WHQL       = 0 / 0 / 0 / 0 / 0 / 0
BT Role                             = Master
A2DP Rate/Bitpool                   = EDR/ 0
BT Info[bt rsp]                     = 01 00 40 00 00 07 00(9669)
BT Info[bt auto report]             = 02 00 40 00 00 07 00(60)
============[mechanisms]============
SM[LowPenaltyRA]                    = 0
PS TDMA                             = 08 00 00 00 00 case-8 (Off,Fix)
Coex Table Type                     = 2
IgnWlanAct                          = 0
============[Hw setting]============
backup ARFR1/ARFR2/RL/AMaxTime      = 0x1000000/0x8070504/0x3030/0x5e
0x430/0x434/0x42a/0x456             = 0x1000000/0x8070504/0x3030/0x5e
0x778/0x6cc/0x880[29:25]            = 0x1/ 0x10000003/ 0x18
0x948/ 0x67[5] / 0x764 / 0x76e      = 0x80/ 0x1/ 0x0/ 0xc
0x92c[1:0]/ 0x930[7:0]/0x944[1:0]   = 0x0/ 0x77/ 0x3
0x38[11]/0x40/0x4c[24:23]/0x64[0]   = 0x1/ 0x2c/ 0x1/ 0x0
0x550(bcn ctrl)/0x522               = 0x1009/ 0xff
0xc50(dig)/0x49c(null-drop)         = 0x3a/ 0x0
CCK-CCA/CCK-FA/OFDM-CCA/OFDM-FA     = 0x21/ 0x3/ 0x0/ 0x0
CRC_OK CCK/11g/11n/11n-agg          = 17/ 4/ 4/ 0
CRC_Err CCK/11g/11n/11n-agg         = 1/ 0/ 0/ 0
0x6c0/0x6c4/0x6c8(coexTable)        = 0x5a5a5a5a/ 0x5a5a5a5a/ 0xffffff
0x770(high-pri rx/tx)               = 4/ 0
0x774(low-pri rx/tx)                = 0/ 0
============[Coex Status]============
IsBtDisabled                        = 0
IsBtControlLps                      = 0

发现从 CoexVer WL/  BT_Desired/ BT_Report  = 20180201_6f/ 0x6d/ 0xff (Unknown) 来看,

当前WiFi 与蓝牙 共存不匹配,则需要更新蓝牙驱动

3.修改扫描搜索参数

diff --git a/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ScanManager.java b/packages/apps/Bluetooth/src/com/android/bluet
index af5eeb0..dfa7d8f 100644
--- a/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ScanManager.java
+++ b/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ScanManager.java
@@ -307,12 +307,12 @@ public class ScanManager {
         /**
          * Scan params corresponding to regular scan setting
          */
-        private static final int SCAN_MODE_LOW_POWER_WINDOW_MS = 500;
-        private static final int SCAN_MODE_LOW_POWER_INTERVAL_MS = 5000;
-        private static final int SCAN_MODE_BALANCED_WINDOW_MS = 2000;
-        private static final int SCAN_MODE_BALANCED_INTERVAL_MS = 5000;
-        private static final int SCAN_MODE_LOW_LATENCY_WINDOW_MS = 5000;
-        private static final int SCAN_MODE_LOW_LATENCY_INTERVAL_MS = 5000;
+        private static final int SCAN_MODE_LOW_POWER_WINDOW_MS = 20;
+        private static final int SCAN_MODE_LOW_POWER_INTERVAL_MS = 200;
+        private static final int SCAN_MODE_BALANCED_WINDOW_MS = 20;
+        private static final int SCAN_MODE_BALANCED_INTERVAL_MS = 50;
+        private static final int SCAN_MODE_LOW_LATENCY_WINDOW_MS = 20;
+        private static final int SCAN_MODE_LOW_LATENCY_INTERVAL_MS = 20;


         /**
          * Scan params corresponding to batch scan setting

4.问题解决

 

 

你可能感兴趣的:(WIFI模块)