在測試 Blufi Sample code 時發現一個問題
就是當我 WiFi 基地台設定好並且也連上線之後
會報 BT 底層錯誤,然後 APP 就無法連上 device
Code: Select all
I (485) boot: Loaded app from partition at offset 0x10000
I (485) boot: Disabling RNG early entropy source...
I (486) cpu_start: Pro cpu up.
I (489) cpu_start: Application information:
I (494) cpu_start: Project name: blufi_demo
I (500) cpu_start: App version:
I (504) cpu_start: Compile time: 15:02:19
I (509) cpu_start: Compile date: Dec 21 2018
I (514) cpu_start: ESP-IDF: v3.3-beta1-44-gda2116f55-dirty
I (521) cpu_start: Starting app cpu, entry point is 0x40081058
I (0) cpu_start: App cpu up.
I (532) heap_init: Initializing. RAM available for dynamic allocation:
I (538) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM
I (545) heap_init: At 3FFB6388 len 00001C78 (7 KiB): DRAM
I (551) heap_init: At 3FFB9A20 len 00004108 (16 KiB): DRAM
I (557) heap_init: At 3FFBDB5C len 00000004 (0 KiB): DRAM
I (563) heap_init: At 3FFCB9A0 len 00014660 (81 KiB): DRAM
I (569) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (575) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (582) heap_init: At 400960C8 len 00009F38 (39 KiB): IRAM
I (588) cpu_start: Pro cpu start user code
I (271) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (356) wifi: wifi driver task: 3ffcf0e4, prio:23, stack:3584, core=0
I (356) wifi: wifi firmware version: 328353e
I (356) wifi: config NVS flash: enabled
I (356) wifi: config nano formating: disabled
I (366) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (376) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (406) wifi: Init dynamic tx buffer num: 32
I (406) wifi: Init data frame dynamic rx buffer num: 32
I (406) wifi: Init management frame dynamic rx buffer num: 32
I (406) wifi: Init static rx buffer size: 1600
I (416) wifi: Init static rx buffer num: 10
I (416) wifi: Init dynamic rx buffer num: 32
I (506) phy: phy_version: 4000, b6198fa, Sep 3 2018, 15:11:06, 0, 0
I (506) wifi: mode : sta (24:0a:c4:1c:79:a0)
I (506) BTDM_INIT: BT controller compile version [c6cbbbd]
I (516) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (836) BLUFI_EXAMPLE: BD ADDR: 24:0a:c4:1c:79:a2
I (836) BLUFI_EXAMPLE: BLUFI VERSION 0102
I (836) BLUFI_EXAMPLE: BLUFI init finish
I (12846) wifi: new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1
I (13826) wifi: state: init -> auth (b0)
I (13856) wifi: state: auth -> assoc (0)
I (13866) wifi: state: assoc -> run (10)
I (13876) wifi: connected with SmartDesignTest, channel 1, bssid = d2:57:7b:0c:31:22
I (13876) wifi: pm start, type: 1
I (16356) event: sta ip: 192.168.137.108, mask: 255.255.255.0, gw: 192.168.137.1
I (16356) BLUFI_EXAMPLE: SYSTEM_EVENT_STA_GOT_IP
W (16356) BT_GATT: gatt_if out of range [ = 0]
E (16366) BT_APPL: Unknown connection ID: 0 fail sending notification
W (16366) BT_GATT: gatt_if out of range [ = 0]
E (16376) BT_APPL: Unknown connection ID: 0 fail sending notification
W (16386) BT_GATT: gatt_if out of range [ = 0]
E (16386) BT_APPL: Unknown connection ID: 0 fail sending notification