Advertisement
Guest User

Untitled

a guest
Jan 25th, 2020
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.69 KB | None | 0 0
  1. rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
  2. configsip: 0, SPIWP:0xee
  3. clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
  4. mode:DIO, clock div:2
  5. load:0x3fff0018,len:4
  6. load:0x3fff001c,len:4988
  7. load:0x40078000,len:11408
  8. load:0x40080400,len:6108
  9. entry 0x400806bc
  10. I (601) psram: This chip is ESP32-D0WD
  11. E (601) spiram: SPI RAM enabled but initialization failed. Bailing out.
  12. I (601) cpu_start: Failed to init external RAM; continuing without it.
  13. I (608) cpu_start: Pro cpu up.
  14. I (612) cpu_start: Application information:
  15. I (617) cpu_start: Compile time:     Dec 20 2019 07:58:58
  16. I (623) cpu_start: ELF file SHA256:  0000000000000000...
  17. I (629) cpu_start: ESP-IDF:          v4.0-beta1
  18. I (634) cpu_start: Starting app cpu, entry point is 0x400835e0
  19. I (0) cpu_start: App cpu up.
  20. I (645) heap_init: Initializing. RAM available for dynamic allocation:
  21. I (652) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM
  22. I (658) heap_init: At 3FFB6388 len 00001C78 (7 KiB): DRAM
  23. I (664) heap_init: At 3FFB9A20 len 00004108 (16 KiB): DRAM
  24. I (670) heap_init: At 3FFBDB5C len 00000004 (0 KiB): DRAM
  25. I (676) heap_init: At 3FFCCA50 len 000135B0 (77 KiB): DRAM
  26. I (682) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
  27. I (688) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
  28. I (695) heap_init: At 4009E2E4 len 00001D1C (7 KiB): IRAM
  29. I (701) cpu_start: Pro cpu start user code
  30. I (720) spi_flash: detected chip: generic
  31. I (720) spi_flash: flash io: dio
  32. I (720) cpu_start: Chip Revision: 1
  33. W (722) cpu_start: Chip revision is higher than the one configured in menuconfig. Suggest to upgrade it.
  34. I (732) cpu_start: Starting scheduler on PRO CPU.
  35. I (0) cpu_start: Starting scheduler on APP CPU.
  36. E (40) spiram: SPI RAM not initialized
  37. MicroPython v1.12 on 2019-12-20; ESP32 module (spiram) with ESP32
  38. Type "help()" for more information.
  39. >>> from micropython import const
  40. >>> import bluetooth
  41. >>> _IRQ_SCAN_RESULT                     = const(1 << 4)
  42. >>> _IRQ_SCAN_COMPLETE                   = const(1 << 5)
  43. >>> def bt_irq(event, data):
  44. ...     if event == _IRQ_SCAN_RESULT:
  45. ...         print("Result!")
  46. ...     elif event == _IRQ_SCAN_COMPLETE:
  47. ...         print("Complete!")
  48. ...        
  49. ...        
  50. ...
  51. >>> bt = bluetooth.BLE()
  52. >>> bt.active(True)
  53. I (90520) BTDM_INIT: BT controller compile version [a482cda]
  54. I (101256) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
  55. I (101366) phy: phy_version: 4102, 2fa7a43, Jul 15 2019, 13:06:06, 0, 0
  56. GAP procedure initiated: stop advertising.
  57. True
  58. >>> bt.gap_scan(10000)
  59. GAP procedure initiated: discovery; own_addr_type=0 filter_policy=0 passive=1 limited=0 filter_duplicates=0 duration=10000ms
  60. >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement