PLAY PODCASTS
Deep Dive w/Scott: ESP32-S3 BLE

Deep Dive w/Scott: ESP32-S3 BLE

Adafruit Industries

January 28, 20222h 3m

Audio is streamed directly from the publisher (adafruit-podcasts.s3.amazonaws.com) as published in their RSS feed. Play Podcasts does not host this file. Rights-holders can request removal through the copyright & takedown page.

Show Notes

Join Scott as he wraps up #CircuitPython2022 and then talks all about BLE on the ESP32-S3. Support Adafruit by purchasing hardware from https://adafruit.com Chat with folks on the Adafruit Discord at https://adafru.it/discord. All notes are available on GitHub with links into the videos. Thanks to @askpatrickw and @dcd for making and maintaining the notes. 0:00 Getting Started 3:30 Hello/welcome’/ housekeeping 6:00 python to navigate a bad router web interface (using the module "mechanize") to "auto-reboot it" via command line 6:30 AMD 5950X - compile code in the blink of an eye, 7:25 Cat Cam - Spook in the window 8:11 Where we left off - CP 2022 10:21 FoamyGuy 2022 blog 12:09 Android App mention - Glider for iOS - starting FileGlider for android! 12:51 Out during March - FoamyGuy taking the slot tentatively 13:55 KeithTheEE - Projects / home automation / time, datetime, and RTC, multicore JIT, scientific and ulab 16:35 ​when will the floppy disk support be finished for c.p? 17:14 Floppyio draft pull request pr 5852 18:30 https://numba.pydata.org/ 18:55 Is there a way to get the BLE datetime in Circuit Python / BLE current time services 20:40 deshipu -PWM SAMD bug 22:41 cool watch project 23:20 improvements to automated testing and regression is important 24:50 mdroberts1243 - background support for communication 27:13 Molecularist - wish for more audio in support / Teensy Audo Library ? 31:19 https://learn.adafruit.com/building-circuitpython 31:43 book recommendations? 32:31 learn guide - https://learn.adafruit.com/choose-your-circuitpython-board 33:02 Tammy’s CP 2022 thoughts / Dependency Managment tools / Twitch https://twitch.tv/tammymakesthings 35:42 Design a CP board / KiCad 6 looks good 36:09 Show and Tell on Wednesday 36:58 Cortex microcontroller books - ARM Cortex M3 and M4 reference 38:00 USB complete 39:40 Monday next week ( last day of the month deadline for CP 2022 thoughts ) 40: 20 Phils Lab has a Kicad tutorial on udemy 41:10 Will ampy be supported for ESP32S3 workflow? 42:40 for nrf52840, with few exceptions (crystal, reset, SWD and ADC) any GPIO can do anything. 45:19 File transfer over I2C? 45:40 good book on ESP32C3 ? 45:51 audio code tour github 53:05 switch to github code search ( cs.github.com ) repo adafruit/circutpyton audio_dma_setup_playback 55:03 ESP32 by Erik Bartmann? 55:42 Feather Kicad parts 57:05 github pull requests is:pr author:tannewt pr 5927 58:42 BLE scanning working 59:33 Server support ( after connection ) 1:00:43 https://punchthrough.com/how-gap-and-gatt-work/ 1:02:40 Broadcastnet learn guide ( Bluetooth LE Sensor Nodes to Raspberry Pi WiFi Bridge ) 1:04:34 BLE keyboards Q: split keyboard 1:06:33 BTF-LIGHTING WS2812B 1:07:03 ESP32 can do BLE - 4.0 - not extended advertising 1:08:14 Apple AirTags 1:09:50 can do extended data advertising - 1:10:20 BroadcastNet 1:12:40 code.py (nimble) github Adafruit_CircuitPython_BLE_BroadcastNet 1:14:40 Deep Sleep wakeup - always on for 5 seconds ( issue filed ) 1:15:30 Download fresh bundle - extract *blinka_bridge.py copy to Circuitpy drive 1:18:00 iPhone model with Ultra Wideband 1:18:55 rename code.py, and install new code.py workflow 1:19:45 being careful with secrets file 1:20:34 requests vs adafruit_requests as requests 1:21:03 SQLite database on Circuit Python hardware directly? // look in micropython // not in CP yet 1:23:30 S3 mini - build appropriate binary for PS-RAM less version 1:30:57 install libraries on other CP 1:31:23 - “NotImplementedError” - cpu temperature 1:32:30 incrementing sequences numbers to detect missing data 1:32:50 found it - but it crashed… 1:35:49 look at CPU temperature code 1:36:17 maybe the S3 can’t read the CPU temperature 1:37:20 visit esp32.com topics -looks like the IDF doesn’t support cpu-temperature yet https://github.com/espressif/esp-idf/blob/master/docs/en/api-reference/peripherals/temp_sensor.rst 1:40:28 turn on BLE debugging 1:41:12 unsupported scan event 1:43:05 timeout for the scan isn't defined? 1:43:31 look in shared bindings for timeout 1:44:44 if flashing doesn’t work - check serial 1:45:25 Neopixel problem in discord 1:46:49 2 scans completed “Scan done” vs. “scan done” / scan timeout 0 1:48:18 Nimble API code 0 means use stack default timeout 1:49:25 duration_ms “forever” - int32max 1:54:35 wrap it with a while loop so in never exits 1:55:40 safe mode - what happened ? 1:56:22 How do I figure out what devices can listen for these advertisements? What version of bl do they need to have? 1:57:16 assertions has to do with printing out exception exception 1:57:59 check nimble error - recently added check_nimble_error / CHECK_NIMBLE_ERROR 1:59:05 see a lot of labs using 1:59:25 use nrfconnect on my phone 1:59:53 assertion may be a separate error - would be great to see a backtrace! 2:00:30 calling it / wrap up 2:01:30 join discord 2:02:45 Cat Cam 2:03:35 end of stream