Clone
1
Mozlando Servo Bluetooth
Lars Bergstrom edited this page 2015-12-11 09:14:31 -05:00
This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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.

Todays 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.
  • Dont have any plans for running the daemon on Android.
  • Problem may be that native apps cant 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 dont have it (just have B2G)