Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rst:0x1 (POWERON_RESET),boot:0x13 (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:4988
- load:0x40078000,len:11408
- load:0x40080400,len:6108
- entry 0x400806bc
- I (601) psram: This chip is ESP32-D0WD
- E (601) spiram: SPI RAM enabled but initialization failed. Bailing out.
- I (601) cpu_start: Failed to init external RAM; continuing without it.
- I (608) cpu_start: Pro cpu up.
- I (612) cpu_start: Application information:
- I (617) cpu_start: Compile time: Dec 20 2019 07:58:58
- I (623) cpu_start: ELF file SHA256: 0000000000000000...
- I (629) cpu_start: ESP-IDF: v4.0-beta1
- I (634) cpu_start: Starting app cpu, entry point is 0x400835e0
- I (0) cpu_start: App cpu up.
- I (645) heap_init: Initializing. RAM available for dynamic allocation:
- I (652) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM
- I (658) heap_init: At 3FFB6388 len 00001C78 (7 KiB): DRAM
- I (664) heap_init: At 3FFB9A20 len 00004108 (16 KiB): DRAM
- I (670) heap_init: At 3FFBDB5C len 00000004 (0 KiB): DRAM
- I (676) heap_init: At 3FFCCA50 len 000135B0 (77 KiB): DRAM
- I (682) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
- I (688) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
- I (695) heap_init: At 4009E2E4 len 00001D1C (7 KiB): IRAM
- I (701) cpu_start: Pro cpu start user code
- I (720) spi_flash: detected chip: generic
- I (720) spi_flash: flash io: dio
- I (720) cpu_start: Chip Revision: 1
- W (722) cpu_start: Chip revision is higher than the one configured in menuconfig. Suggest to upgrade it.
- I (732) cpu_start: Starting scheduler on PRO CPU.
- I (0) cpu_start: Starting scheduler on APP CPU.
- E (40) spiram: SPI RAM not initialized
- MicroPython v1.12 on 2019-12-20; ESP32 module (spiram) with ESP32
- Type "help()" for more information.
- >>> from micropython import const
- >>> import bluetooth
- >>> _IRQ_SCAN_RESULT = const(1 << 4)
- >>> _IRQ_SCAN_COMPLETE = const(1 << 5)
- >>> def bt_irq(event, data):
- ... if event == _IRQ_SCAN_RESULT:
- ... print("Result!")
- ... elif event == _IRQ_SCAN_COMPLETE:
- ... print("Complete!")
- ...
- ...
- ...
- >>> bt = bluetooth.BLE()
- >>> bt.active(True)
- I (90520) BTDM_INIT: BT controller compile version [a482cda]
- I (101256) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
- I (101366) phy: phy_version: 4102, 2fa7a43, Jul 15 2019, 13:06:06, 0, 0
- GAP procedure initiated: stop advertising.
- True
- >>> bt.gap_scan(10000)
- GAP procedure initiated: discovery; own_addr_type=0 filter_policy=0 passive=1 limited=0 filter_duplicates=0 duration=10000ms
- >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement