Diese Präsentation wurde erfolgreich gemeldet.
Wir verwenden Ihre LinkedIn Profilangaben und Informationen zu Ihren Aktivitäten, um Anzeigen zu personalisieren und Ihnen relevantere Inhalte anzuzeigen. Sie können Ihre Anzeigeneinstellungen jederzeit ändern.

Universalserialweb frontconf

30 Minutes intro to the WebUsb API

  • Loggen Sie sich ein, um Kommentare anzuzeigen.

  • Gehören Sie zu den Ersten, denen das gefällt!

Universalserialweb frontconf

  1. 1. The Universal Serial Web
  2. 2. <Me/>
  3. 3. I´ve Been Tinkering With Hardware Since 2011…
  4. 4. Universal Hardware Interface: Usb
  5. 5. Usb Basics 💻
  6. 6. History 1994 Usb Development Started
  7. 7. History 1994 1995 Usb Development Started Usb Became Available To The Public
  8. 8. History 1994 1995 1998 Usb Development Started Usb Became Available To The Public Apple Made Usb Popular With The Imac G3
  9. 9. History 1994 1995 1998 2000 Usb Development Started Usb Became Available To The Public Apple Made Usb Popular With The Imac G3 Usb 2.0 Was Released, As Well As The 1St Usb Flash Drive
  10. 10. History 1994 1995 1998 2000 2008 Usb Development Started Usb Became Available To The Public Apple Made Usb Popular With The Imac G3 Usb 2.0 Was Released, As Well As The 1St Usb Flash Drive Usb 3.0 Was Released (Super Speed)
  11. 11. Connector Layout
  12. 12. Connector LayoutD- Vbus GndD+ Vbus - Power 5V Gnd - Ground D+ - Data D- - Data
  13. 13. The Usb Way™ OH, IS THAT SUPPORTED ON MY OS? INSTALL A NATIVE APPLICATION SEARCH THE INTERNET FOR A DRIVER SCARY OS POPUP TURNS UP CODE STICKS AROUND FOREVER MALFUNCTION KILLS EXISTING SETUP
  14. 14. A Nicer Usb Way™ NOTIFICATION APPEARS PLUG IN Buy A Device CLICK ON IT FUN! OPENS WEBSITE
  15. 15. Web Usb 💖
  16. 16. Webusb Facts Only Available Via Https * For Security Reasons, Like Done With All New Platform Features * No „Native Code“ Needed * No Need To Install Any Drivers Or Other 3Rd Party Software* Real Plug & Play * Plug In Device, Click Link, Use It*
  17. 17. Code, Now, Please… 👾
  18. 18. Device Descriptor
  19. 19. Device Descriptor
  20. 20. Device Descriptor
  21. 21. Device Descriptor Config Descriptor Config Descriptor
  22. 22. Device Descriptor Config Descriptor Interface Descriptor Interface Descriptor
  23. 23. Device Descriptor Config Descriptor Interface Descriptor Endpoint Descriptor Endpoint Descriptor
  24. 24. Device Descriptor Config Descriptor Interface Descriptor Endpoint Descriptor Endpoint Descriptor
  25. 25. ControlInterrupt Transfer Isochronous Out In * Interrupt transfers are typically non-periodic, small, device "initiated" communication That requirE A SpecIFIC latency *
  26. 26. ControlInterrupt Transfer Isochronous Out In * Interrupt transfers are typically non-periodic, small, device "initiated" communication That requirE A SpecIFIC latency *
  27. 27. ControlInterrupt Transfer Isochronous Out In * Interrupt transfers are typically non-periodic, small, device "initiated" communication That requirE A SpecIFIC latency *
  28. 28. ControlInterrupt Transfer Isochronous Out In * Interrupt transfers are typically non-periodic, small, device "initiated" communication That requirE A SpecIFIC latency *
  29. 29. Interrupt Control Transfer Isochronous Out In * Control transfers are especially nice for small configuration commands as they get bus priority and have a well defined structure *
  30. 30. Interrupt Control Transfer Isochronous Out In * Control transfers are especially nice for small configuration commands as they get bus priority and have a well defined structure *
  31. 31. Interrupt Isochronous TransferControl Out In * ISOCHRONOUS transfers are RARELY USED, Mostly for AUDIO AND VIDEO DEVICES that sent a persistent STREAM OF DATA *
  32. 32. Now Pray To The Demo Gods 🤞
  33. 33. Demos Create An Interactive Arduino Playground
  34. 34. Demo
  35. 35. Node -> Browser
  36. 36. Node -> Browser
  37. 37. Data Polling
  38. 38. Demos Connect To An Android Device & Download Some Data Create An Interactive Arduino Playground
  39. 39. Demo
  40. 40. Send Adb Commands
  41. 41. Easy Adb
  42. 42. Security ⚠
  43. 43. 01. 02. 03. 04. Security 03. No Cam/Microphone/Storage 04. Kill Switch 01. Only Via User Gesture 02.User Has To Grant Permission 🖱 📹 🖖 🆘
  44. 44. Demos Connect To An Android Device & Download Some Data Create An Interactive Arduino Playground Create A Public Library Using: A Barcode Scanner & A Receipt Printer
  45. 45. Demo
  46. 46. Printer Code
  47. 47. Hid ⌨
  48. 48. Hid Code
  49. 49. Hid Code Reality
  50. 50. That Worked Well 😅
  51. 51. Chrome://Device-Log/
  52. 52. Chrome://Usb-Internals/
  53. 53. 😞 😞 😞 🤓
  54. 54. We Can Have Lots Of Fun 🍾 And Built Shitty Robots 🤖
  55. 55. Thank You! https://asciidisco.com / E-mail: public@asciidisco.com / Twitter: @asciidisco / Sebastian Golasch 2019

×