Skip to content

Mozlando Servo Bluetooth

Lars Bergstrom edited this page Dec 11, 2015 · 1 revision

WebBluetooth

  • There is a Gonk backend

  • The backend for Android vs. Linux is different

  • Only support B2G right now, on AOSP. Easier if on that.

  • Implemented their own version on B2G; about to change to meet the spec.

  • Probably not easy to share DOM bindings, but maybe easier on the backend.

Today’s bluetooth stack

  • Stack lives in a daemon
  • Talks over IPC, not into the h/w layer from Gecko
  • Work now to move to the new spec is changes on DOM side, not on the daemon side
  • All in content process and gecko implementation
  • Maybe share something on Servo-Android & Fennec? Different daemon for Android than B2G. Though, the daemon should run on Android.
  • Don’t have any plans for running the daemon on Android.
  • Problem may be that native apps can’t get to the WebBluetooth stack on Android.

Testing

  • Mainly on-device tests today
  • Write some tests apps to simulate the use cases for GATT
  • Manual smoke tests
  • Hard to do automated tests in the emulator b/c the APIs are too low-level for the GATT cases
  • May add a driver between Marionette and the other stuff
  • Probably going to use the WebBluetoothTest API spec from Marionette

Sharing

  • Would be really nice to share the Android backend, since they don’t have it (just have B2G)
Clone this wiki locally