手机搜索不了蓝牙设备

huang黄
Posts: 5
Joined: Thu Dec 06, 2018 7:15 am

手机搜索不了蓝牙设备

Postby huang黄 » Sat Jun 01, 2019 3:36 am

各位大佬好,请教下大家一个问题,我下载了esp-adf/examples/player/pipeline_bt_sink到开发板上(ESP32-LyraT)但手机搜索不到蓝牙设备不知什么回事以下是log。谢谢!
ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x3f (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371
ets Jun 8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x3f (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:6304
ho 0 tail 12 room 4
load:0x40078000,len:11308
load:0x40080400,len:6700
entry 0x40080764
[0;32mI (30) boot: ESP-IDF v4.0-dev-311-g70eda3d-dirty 2nd stage bootloader[0m
[0;32mI (30) boot: compile time 11:18:10[0m
[0;32mI (33) boot: Enabling RNG early entropy source...[0m
[0;32mI (37) boot: SPI Speed : 40MHz[0m
[0;32mI (41) boot: SPI Mode : DIO[0m
[0;32mI (45) boot: SPI Flash Size : 4MB[0m
[0;32mI (49) boot: Partition Table:[0m
[0;32mI (52) boot: ## Label Usage Type ST Offset Length[0m
[0;32mI (60) boot: 0 nvs WiFi data 01 02 00009000 00006000[0m
[0;32mI (67) boot: 1 phy_init RF data 01 01 0000f000 00001000[0m
[0;32mI (75) boot: 2 factory factory app 00 00 00010000 00124f80[0m
[0;32mI (82) boot: End of partition table[0m
[0;32mI (86) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x2b694 (177812) map[0m
[0;32mI (157) esp_image: segment 1: paddr=0x0003b6bc vaddr=0x3ffbdb60 size=0x02aec ( 10988) load[0m
[0;32mI (162) esp_image: segment 2: paddr=0x0003e1b0 vaddr=0x40080000 size=0x00400 ( 1024) load[0m
[0;32mI (165) esp_image: segment 3: paddr=0x0003e5b8 vaddr=0x40080400 size=0x01a58 ( 6744) load[0m
[0;32mI (176) esp_image: segment 4: paddr=0x00040018 vaddr=0x400d0018 size=0x8d174 (577908) map[0m
[0;32mI (384) esp_image: segment 5: paddr=0x000cd194 vaddr=0x40081e58 size=0x11a68 ( 72296) load[0m
[0;32mI (426) boot: Loaded app from partition at offset 0x10000[0m
[0;32mI (426) boot: Disabling RNG early entropy source...[0m
[0;32mI (427) cpu_start: Pro cpu up.[0m
[0;32mI (430) cpu_start: Application information:[0m
[0;32mI (435) cpu_start: Project name: play_bt_music[0m
[0;32mI (440) cpu_start: App version: v1.0-96-g93963a3-dirty[0m
[0;32mI (447) cpu_start: Compile time: Jun 1 2019 11:18:16[0m
[0;32mI (453) cpu_start: ELF file SHA256: 7cd96824c973fcab...[0m
[0;32mI (459) cpu_start: ESP-IDF: v4.0-dev-311-g70eda3d-dirty[0m
[0;32mI (465) cpu_start: Starting app cpu, entry point is 0x40081174[0m
[0;32mI (0) cpu_start: App cpu up.[0m
[0;32mI (476) heap_init: Initializing. RAM available for dynamic allocation:[0m
[0;32mI (483) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM[0m
[0;32mI (489) heap_init: At 3FFB6388 len 00001C78 (7 KiB): DRAM[0m
[0;32mI (495) heap_init: At 3FFB9A20 len 00004108 (16 KiB): DRAM[0m
[0;32mI (501) heap_init: At 3FFBDB5C len 00000004 (0 KiB): DRAM[0m
[0;32mI (507) heap_init: At 3FFCE5A8 len 00011A58 (70 KiB): DRAM[0m
[0;32mI (513) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM[0m
[0;32mI (520) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM[0m
[0;32mI (526) heap_init: At 400938C0 len 0000C740 (49 KiB): IRAM[0m
[0;32mI (532) cpu_start: Pro cpu start user code[0m
[0;32mI (215) cpu_start: Starting scheduler on PRO CPU.[0m
[0;32mI (0) cpu_start: Starting scheduler on APP CPU.[0m
[0;32mI (264) BLUETOOTH_EXAMPLE: [ 1 ] Create Bluetooth service[0m
[0;32mI (264) BTDM_INIT: BT controller compile version [b638fbb][0m
[0;32mI (274) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE[0m
[0;31mE (284) BLUETOOTH_SERVICE: /root/esp/esp-adf/components/audio_service/bluetooth_service.c:435 (bluetooth_service_start): enable controller failed[0m
[0;32mI (294) BLUETOOTH_EXAMPLE: [ 2 ] Start codec chip[0m
[0;32mI (294) gpio: GPIO[19]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:3 [0m
[0;32mI (324) gpio: GPIO[21]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 [0m
[0;32mI (324) ES8388_DRIVER: init,out:02, in:00[0m
[0;32mI (334) AUDIO_HAL: Codec mode is 2, Ctrl:1[0m
[0;32mI (334) BLUETOOTH_EXAMPLE: [ 3 ] Create audio pipeline for playback[0m
[0;32mI (334) BLUETOOTH_EXAMPLE: [3.1] Create i2s stream to write data to codec chip[0m
[0;32mI (344) I2S: DMA Malloc info, datalen=blocksize=1200, dma_buf_count=3[0m
[0;32mI (354) I2S: DMA Malloc info, datalen=blocksize=1200, dma_buf_count=3[0m
[0;32mI (364) I2S: APLL: Req RATE: 44100, real rate: 43945.238, BITS: 16, CLKM: 1, BCK_M: 8, MCLK: 11249981.000, SCLK: 1406247.625000, diva: 1, divb: 0[0m
[0;32mI (374) BLUETOOTH_EXAMPLE: [3.2] Get Bluetooth stream[0m
[0;32mI (374) BLUETOOTH_EXAMPLE: [3.2] Register all elements to audio pipeline[0m
[0;32mI (384) BLUETOOTH_EXAMPLE: [3.3] Link it together [Bluetooth]-->bt_stream_reader-->i2s_stream_writer-->[codec_chip][0m
[0;32mI (394) AUDIO_PIPELINE: link el->rb, el:0x3ffd2b10, tag:bt, rb:0x3ffd2e5c[0m
[0;32mI (404) BLUETOOTH_EXAMPLE: [ 4 ] Initialize peripherals[0m
[0;31mE (404) gpio: gpio_install_isr_service(394): GPIO isr service already installed[0m
[0;32mI (414) BLUETOOTH_EXAMPLE: [4.1] Initialize Touch peripheral[0m
[0;32mI (424) BLUETOOTH_EXAMPLE: [4.2] Create Bluetooth peripheral[0m
[0;32mI (434) BLUETOOTH_EXAMPLE: [4.2] Start all peripherals[0m
[0;33mW (454) PERIPH_TOUCH: _touch_init[0m
[0;32mI (454) BLUETOOTH_EXAMPLE: [ 5 ] Set up event listener[0m
[0;32mI (454) BLUETOOTH_EXAMPLE: [5.1] Listening event from all elements of pipeline[0m
[0;32mI (464) BLUETOOTH_EXAMPLE: [5.2] Listening event from peripherals[0m
[0;32mI (464) BLUETOOTH_EXAMPLE: [ 6 ] Start audio_pipeline[0m
[0;32mI (474) AUDIO_ELEMENT: [bt] Element task created[0m
[0;32mI (474) AUDIO_ELEMENT: [i2s] Element task created[0m
[0;32mI (494) AUDIO_PIPELINE: Func:audio_pipeline_run, Line:324, MEM Total:161952 Bytes
[0m
[0;32mI (494) AUDIO_ELEMENT: [i2s] AEL_MSG_CMD_RESUME,state:1[0m
[0;32mI (494) I2S_STREAM: AUDIO_STREAM_WRITER[0m
[0;32mI (504) AUDIO_PIPELINE: Pipeline started[0m
[0;32mI (504) BLUETOOTH_EXAMPLE: [ 7 ] Listen for all pipeline events[0m

esp-xiaodong
Posts: 1
Joined: Tue Jun 04, 2019 2:34 am

Re: 手机搜索不了蓝牙设备

Postby esp-xiaodong » Tue Jun 04, 2019 2:37 am

看了下log,
[0;31mE (284) BLUETOOTH_SERVICE: /root/esp/esp-adf/components/audio_service/bluetooth_service.c:435 (bluetooth_service_start): enable controller failed[0m
这里controller没有enable成功必然是搜索不到的。
请到code中确认下是否是设置的ESP_BT_MODE_CLASSIC_BT,如果是,再到menuconfig中bluetooth->bluetooth controller->bluetooth controller mode将其设为br/edr only。

huang黄
Posts: 5
Joined: Thu Dec 06, 2018 7:15 am

Re: 手机搜索不了蓝牙设备

Postby huang黄 » Tue Jun 04, 2019 7:38 am

谢谢esp-xiaodong 问题已经解决了

huang黄
Posts: 5
Joined: Thu Dec 06, 2018 7:15 am

esp-adf\examples\dueros例子问题

Postby huang黄 » Tue Jun 04, 2019 8:17 am

编译这个进去一点声音都没有 手机WIFI搜不到SSID\LINE\TF卡无作用esp-adf/tree/master/examples/dueros

Who is online

Users browsing this forum: No registered users and 1 guest