Deep Dive w/Scott: WebBluetooth episode artwork

EPISODE · Jul 2, 2021 · 2H 13M

Deep Dive w/Scott: WebBluetooth

from Adafruit Industries · host Adafruit Industries

Join Scott as he answers questions and works on https://code.circuitpython.org which talks to CP devices over WebBluetooth. I’m sponsored by Adafruit to work on CircuitPython. Support them, and by extension me, by purchasing hardware from https://adafruit.com Chat with me and lot of others on the Adafruit Discord at https://adafru.it/discord. Deep Dive happens every week. Normally Fridays at 2pm Pacific but occasionally shifted to Thursday at 2pm. Typically goes for two hours or more. Questions are welcome. Thanks to David (dcd) for taking timecodes. 0:00 Getting Started 0:04:00 Hello everyone 0:08:56 Intro to bluetooth 0:09:57 WebBLE - spoiler (android phone/ experimental API) 0:11:27 Makerdiary serial console web device CLI 0:12:47 chrome::/inspect/#devices ( mirror phone screen web page ) 0:14:54 repl is working 0:17:47 code.circuitpython.org 0:19:01 prompt to start advertising yellow / fast blue / solid blue - broadcast publicly 0:19:52 pair serpi / bond 0:21:38 debugging output on the right 0:22:27 edit code in web page - using emoji as variable names! 0:24:41 “editing code from phone” 0:25:29 What would be the difference with linux? 0:26:16 Could something like this be replicated using ble cli tools in linux? 0:27:00 Adafruit_CircuitPython_BLE_File_Transfer repo 0:27:45 circuitpython/web-editor repo 0:28:00 adafruit/ble-file-transfer-js ​0:29:00 works in Chrome then it should work in Deno ... As that's V8 under the hood and they are making their JavaScript isomorphic. (Works in browser, works in Deno.) 0:30:00 - CP save button - use timer instead 0:30:45 codemirror.net/6 editor 0:31:40 https://deno.land/ 0:32:59 Does code mirror handle python/ stubs? 0:34:10 use absolute latest CP from amazon and NRF 8240(Sp) 0:35:21 nice to add autocomplete 0:35:45 now, to test it on the Micro:bit v2 0:36:40 device disconnects after writes 0:37:10 some code outthere to user antlr with Monaco, since antlr can generate parsers in many languages including JS and TS 0:37:30 there is a python parser in codemirror 0:37:52 microbit V2 0:39:15 that’s how you know you are in a deep dive - when alpha 3 is too old 0:40:45 new git microbitv2 repo 0:42:10 CircuitPython Online Editor 0:42:45 JS question - how to show a file directory 0:44:00 microbit v2 cpu nRF52833 0:47:00 CIRCUITPY_CREATOR / CREATION_ID 0:47:18 searching for microbit v2 schematic from tech.microbit.org/hardware/schematic 0:50:20 schematic displays MicroBit_V2.0.0_S_schematic.PDF 0:51:40 Where can I find documentation on Adafruit_PIOasm? - readthedocs.io pioasm latest 0:55:11 edit the pinouts on Expansion connector 0:57:14 how microbit references the pins and map them to CP internal names 0:57:40 and buttons - to match board creators documentation 0:58:59 microbit documentation 1:00:25 Edge connector pins 1:02:15 If the MicroBit v2 doesn't expose USB, how does one install CircuitPython onto it? Does it have a Bluetooth-enabled bootloader? 1:04:43 make -j 32 BOARD=microbit_v2 ( fix errors ) 1:09:10 this is the first time we built CP Non-usb BLE only device 1:11:20 how to send data over laser.. Is PWM the way to go? 1:13:30 resolve linker undefined symbols 1:15:45 this is the birth of USB-less CP 1:22:35 always a good idea to do a make clean and try again when experiencing CP build problems 1:26:30 Serial_write_substring undefined 1:28:00 ​you can't raise an exception from boot py / goes to boot.out 1:36:00 - it’s too big :-( 1:39:00 review the configuration flags 1:41:45 play the make it fit game - turn off POW3 1:43:20 ​Is your USB / BT a subset of something else? So you can access it through another doorway? 1:43:48 - got 500 bytes back 1:45:48 look what does the “simmel” do -Os 1:46:45 nrf52833 flash size (- 512KB Flash ) 1:47:50 Refer to the linker file template common.lk 1:50:30 What is that magic optimization and why would it not always be enabled? 1:53:40 What is soft device ( binary blob from nordic ) 1:55:40 using S140 SoftDevices https:nordicsemi.com/products/nrf52833 1:58:00 Consider peripheral only / what is S113 size 2:00:00 Soft device memory resource map 2:02:35 softdevice provided by Dynastream ( thisisant.com ) 2:04:37 S140 release notes 2:07:57 end by trying out the binary 2:08:13 not sure if downloading the hex file did anything 2:09:14 next step - connect a debugger 2:10:45 microbit will take some more work 2:11:45 wrap up 2:13:48 -bye all ----------------------------------------- LIVE CHAT IS HERE! http://adafru.it/discord Adafruit on Instagram: https://www.instagram.com/adafruit Subscribe to Adafruit on YouTube: http://adafru.it/subscribe New tutorials on the Adafruit Learning System: http://learn.adafruit.com/ -----------------------------------------

Join Scott as he answers questions and works on https://code.circuitpython.org which talks to CP devices over WebBluetooth. I’m sponsored by Adafruit to work on CircuitPython. Support them, and by extension me, by purchasing hardware from https://adafruit.com Chat with me and lot of others on the Adafruit Discord at https://adafru.it/discord. Deep Dive happens every week. Normally Fridays at 2pm Pacific but occasionally shifted to Thursday at 2pm. Typically goes for two hours or more. Questions are welcome. Thanks to David (dcd) for taking timecodes. 0:00 Getting Started 0:04:00 Hello everyone 0:08:56 Intro to bluetooth 0:09:57 WebBLE - spoiler (android phone/ experimental API) 0:11:27 Makerdiary serial console web device CLI 0:12:47 chrome::/inspect/#devices ( mirror phone screen web page ) 0:14:54 repl is working 0:17:47 code.circuitpython.org 0:19:01 prompt to start advertising yellow / fast blue / solid blue - broadcast publicly 0:19:52 pair serpi / bond 0:21:38 debugging output on the right 0:22:27 edit code in web page - using emoji as variable names! 0:24:41 “editing code from phone” 0:25:29 What would be the difference with linux? 0:26:16 Could something like this be replicated using ble cli tools in linux? 0:27:00 Adafruit_CircuitPython_BLE_File_Transfer repo 0:27:45 circuitpython/web-editor repo 0:28:00 adafruit/ble-file-transfer-js ​0:29:00 works in Chrome then it should work in Deno ... As that's V8 under the hood and they are making their JavaScript isomorphic. (Works in browser, works in Deno.) 0:30:00 - CP save button - use timer instead 0:30:45 codemirror.net/6 editor 0:31:40 https://deno.land/ 0:32:59 Does code mirror handle python/ stubs? 0:34:10 use absolute latest CP from amazon and NRF 8240(Sp) 0:35:21 nice to add autocomplete 0:35:45 now, to test it on the Micro:bit v2 0:36:40 device disconnects after writes 0:37:10 some code outthere to user antlr with Monaco, since antlr can generate parsers in many languages including JS and TS 0:37:30 there is a python parser in codemirror 0:37:52 microbit V2 0:39:15 that’s how you know you are in a deep dive - when alpha 3 is too old 0:40:45 new git microbitv2 repo 0:42:10 CircuitPython Online Editor 0:42:45 JS question - how to show a file directory 0:44:00 microbit v2 cpu nRF52833 0:47:00 CIRCUITPY_CREATOR / CREATION_ID 0:47:18 searching for microbit v2 schematic from tech.microbit.org/hardware/schematic 0:50:20 schematic displays MicroBit_V2.0.0_S_schematic.PDF 0:51:40 Where can I find documentation on Adafruit_PIOasm? - readthedocs.io pioasm latest 0:55:11 edit the pinouts on Expansion connector 0:57:14 how microbit references the pins and map them to CP internal names 0:57:40 and buttons - to match board creators documentation 0:58:59 microbit documentation 1:00:25 Edge connector pins 1:02:15 If the MicroBit v2 doesn't expose USB, how does one install CircuitPython onto it? Does it have a Bluetooth-enabled bootloader? 1:04:43 make -j 32 BOARD=microbit_v2 ( fix errors ) 1:09:10 this is the first time we built CP Non-usb BLE only device 1:11:20 how to send data over laser.. Is PWM the way to go? 1:13:30 resolve linker undefined symbols 1:15:45 this is the birth of USB-less CP 1:22:35 always a good idea to do a make clean and try again when experiencing CP build problems 1:26:30 Serial_write_substring undefined 1:28:00 ​you can't raise an exception from boot py / goes to boot.out 1:36:00 - it’s too big :-( 1:39:00 review the configuration flags 1:41:45 play the make it fit game - turn off POW3 1:43:20 ​Is your USB / BT a subset of something else? So you can access it through another doorway? 1:43:48 - got 500 bytes back 1:45:48 look what does the “simmel” do -Os 1:46:45 nrf52833 flash size (- 512KB Flash ) 1:47:50 Refer to the linker file template common.lk 1:50:30 What is that magic optimization and why would it not always be enabled? 1:53:40 What is soft device ( binary blob from nordic ) 1:55:40 using S140 SoftDevices https:nordicsemi.com/products/nrf52833 1:58:00 Consider peripheral only / what is S113 size 2:00:00 Soft device memory resource map 2:02:35 softdevice provided by Dynastream ( thisisant.com ) 2:04:37 S140 release notes 2:07:57 end by trying out the binary 2:08:13 not sure if downloading the hex file did anything 2:09:14 next step - connect a debugger 2:10:45 microbit will take some more work 2:11:45 wrap up 2:13:48 -bye all ----------------------------------------- LIVE CHAT IS HERE! http://adafru.it/discord Adafruit on Instagram: https://www.instagram.com/adafruit Subscribe to Adafruit on YouTube: http://adafru.it/subscribe New tutorials on the Adafruit Learning System: http://learn.adafruit.com/ -----------------------------------------

NOW PLAYING

Deep Dive w/Scott: WebBluetooth

0:00 2:13:50

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

API Intersection Stoplight Building a successful API requires more than just coding. It starts with collaborative design, focuses on creating a great developer experience, and ends with getting your company on board, maintaining consistency, and maximizing your API’s profitability.In the API Intersection, you’ll learn from experienced API practitioners who transformed their organizations, and get tangible advice to build quality APIs with collaborative API-first design.Jason Harmon brings over a decade of industry-recognized REST API experience to discuss topics around API design, governance, identity/auth versioning, and more.They’ll answer listener questions, and discuss best practices on API design (definition, modeling, grammar), Governance (multi-team design, reviewing new API’s), Platform Transformation (culture, internal education, versioning) and more.They’ll also chat with experienced API practitioners from a wide array of industries to draw out practical takeaways and insights you can use.H TV Podcast Industries Chris Jones, Derek O'Neill and John Harrison. TV Podcast Industries TV Podcast Industries is a podcast that provides discussions and reviews of various TV shows, including recent popular series like Alien Earth, The Sandman, The Last of Us, The Boys, and Daredevil Born Again. They also cover shows such as Ironheart, Star Trek: Picard, The Rings of Power, and many more, spanning both Marvel and DC universes, as well as other genres. Heart to Heart Podcast One on One / Next Level Studios In the Heart to Heart Podcast, we talk to some of our favorite & most interesting people in the entertainment industry so you can feel empowered and learn that even in the most challenging of industries, where there’s a will there’s a way.Whether you’re an actor, a writer, a casting director, a talent rep, or just someone interested in the behind the scene happenings of the entertainment industry, this podcast will have something for you. NOW, this isn’t just another How To podcast for actors. Plenty of those shows already exist. In Heart to Heart, every guest will share stories inspired by their sometimes winding path to success on their own terms. Revisionist History Pushkin Industries Revisionist History is Malcolm Gladwell's journey through the overlooked and the misunderstood. Every episode re-examines something from the past—an event, a person, an idea, even a song—and asks whether we got it right the first time. From Pushkin Industries. Because sometimes the past deserves a second chance.To get early access to ad-free episodes and extra content, subscribe to Pushkin+ in Apple Podcasts or at pushkin.fm/plus.iHeartMedia is the exclusive podcast partner of Pushkin Industries.

Frequently Asked Questions

How long is this episode of Adafruit Industries?

This episode is 2 hours and 13 minutes long.

When was this Adafruit Industries episode published?

This episode was published on July 2, 2021.

What is this episode about?

Join Scott as he answers questions and works on https://code.circuitpython.org which talks to CP devices over WebBluetooth. I’m sponsored by Adafruit to work on CircuitPython. Support them, and by extension me, by purchasing hardware from...

Can I download this Adafruit Industries episode?

Yes, you can download this episode by clicking the download button on the episode player, or subscribe to the podcast in your preferred podcast app for automatic downloads.
URL copied to clipboard!