B2G/Bluetooth: Difference between revisions

m (Move v2 api to v3.0 release)
 
(20 intermediate revisions by 3 users not shown)
Line 30: Line 30:
* Make HFP be able to handle multi-SIM scenario. ({{bug|921991}})
* Make HFP be able to handle multi-SIM scenario. ({{bug|921991}})


=== Firefox OS v2.2 (Planned Feature Landing: 2015/Jan/15) ===
=== Firefox OS v2.2 ===
* [https://bugzilla.mozilla.org/show_bug.cgi?id=1005934 Move bluedroid to a separate process]
* [https://bugzilla.mozilla.org/show_bug.cgi?id=1005934 Move bluedroid to a separate process]
* [https://bugzilla.mozilla.org/show_bug.cgi?id=1102703 Support Lollipop]
* [https://github.com/mozilla-b2g/platform_system_bluetoothd Bluedroid daemon]


=== Firefox OS v3.0 (Under Planning) ===
=== Firefox OS v2.5 ===
* [https://bugzilla.mozilla.org/show_bug.cgi?id=872460 Support Bluetooth GATT Client]
* [https://bugzilla.mozilla.org/show_bug.cgi?id=872460 Support Bluetooth GATT]
* [https://wiki.mozilla.org/B2G/Bluetooth/WebBluetooth-v2 Bluetooth Web API refinement]
* [https://wiki.mozilla.org/B2G/Bluetooth/WebBluetooth-v2 Bluetooth Web API refinement]
** Ben Tian is the driver of this item. Please see more discussion [https://groups.google.com/forum/#!topic/mozilla.dev.webapi/SSVxpdq_lfQ here].
** Jocelyn Liu/Ben Tian are the driver of this item. Please see more discussion [https://groups.google.com/forum/#!topic/mozilla.dev.webapi/SSVxpdq_lfQ here].
* [https://bugzilla.mozilla.org/show_bug.cgi?id=1040437 Expose BluetoothSocket API (which is based on RFCOMM)]
* [https://bugzilla.mozilla.org/show_bug.cgi?id=943809 HID (Bluetooth Keyboard, Mouse and Gamepad support)]


== Supported Bluetooth Profiles ==
== Supported Bluetooth Profiles ==
Line 56: Line 56:
** AVRCP 1.3 ({{bug|842948}})
** AVRCP 1.3 ({{bug|842948}})


== Unsupported Bluetooth Profiles ==
=== Firefox OS v2.5 ===
* HFP 1.6 wideband speech ({{bug|911635}})
* BLE (Bluetooth Low Energy)
* BLE (Bluetooth Low Energy)
** GATT (Generic Attribute Profile) ({{bug|872460}})
** GATT (Generic Attribute Profile) ({{bug|872460}})
* HFP Wideband Speech (HD Voice) ({{bug|911635}})
 
== Unsupported Bluetooth Profiles ==
* HID (Human Interface Device Profile) ({{bug|880759}}, {{bug|943809}})
* HID (Human Interface Device Profile) ({{bug|880759}}, {{bug|943809}})
* FTP (File Transfer Profile)
* FTP (File Transfer Profile)
Line 65: Line 67:
* PAN (Personal Area Network Profile) ({{bug|947085}})
* PAN (Personal Area Network Profile) ({{bug|947085}})


== Meta Bugs ==
== In-house Scheduled PTS (Profile Tuning Suite) Test ==
* [https://bugzilla.mozilla.org/show_bug.cgi?id=861047 Certification-related]
* [https://bugzilla.mozilla.org/show_bug.cgi?id=807758 A2DP]
* [https://bugzilla.mozilla.org/show_bug.cgi?id=834553 AVRCP]
* [https://bugzilla.mozilla.org/show_bug.cgi?id=829396 HFP]
 
== In-house Scheduled PTS(Profile Tuning Suite) Test ==
; [https://www.bluetooth.org/en-us/test-qualification/test-tools-overview/profile-tuning-suite What is PTS?]
; [https://www.bluetooth.org/en-us/test-qualification/test-tools-overview/profile-tuning-suite What is PTS?]


Line 78: Line 74:
After v1.2, the PTS test was scheduled right after each branching out.
After v1.2, the PTS test was scheduled right after each branching out.


* [https://bugzilla.mozilla.org/show_bug.cgi?id=1206635 v2.5(Flame-KK)]
* [https://bugzilla.mozilla.org/show_bug.cgi?id=1159612 v2.2(Nexus5-L)]
* [https://bugzilla.mozilla.org/show_bug.cgi?id=1139349 v2.2(Flame-KK)]
* [https://bugzilla.mozilla.org/show_bug.cgi?id=1064733 v2.1(Bluez)]
* [https://bugzilla.mozilla.org/show_bug.cgi?id=1064733 v2.1(Bluez)]
* [https://bugzilla.mozilla.org/show_bug.cgi?id=1064739 v2.1(Bluedroid)]
* [https://bugzilla.mozilla.org/show_bug.cgi?id=1064739 v2.1(Bluedroid)]
Line 91: Line 90:
* [https://bugzilla.mozilla.org/show_bug.cgi?id=919262 Sep, 2013]
* [https://bugzilla.mozilla.org/show_bug.cgi?id=919262 Sep, 2013]
* [https://bugzilla.mozilla.org/show_bug.cgi?id=905079 Aug, 2013]
* [https://bugzilla.mozilla.org/show_bug.cgi?id=905079 Aug, 2013]
== Bluetooth Marionette Tests ==
*Run BT tests on ICS emulator
  cd ${B2G_DIR}/gecko/
  python testing/marionette/client/marionette/runtests.py --emulator arm --homedir ../ --type=b2g dom/bluetooth/tests/marionette/manifest.ini
*Run BT tests on device
cd ${B2G_DIR}/gecko/
adb forward tcp:2828 tcp:2828
python testing/marionette/client/marionette/runtests.py --address=localhost:2828 --type=b2g dom/bluetooth/tests/marionette/manifest.ini


== FAQ ==
== FAQ ==
Line 129: Line 119:
: 3. Make sure the "Bluetooth Sharing" checkbox is enabled.
: 3. Make sure the "Bluetooth Sharing" checkbox is enabled.


: Please see http://support.apple.com/kb/PH10786 for more information.
: Please see https://support.apple.com/kb/PH18969 for more information.


: If your Firefox OS version is older than v1.1, once you have done the above steps, please go to the Bluetooth settings page in your phone, and unpair/pair your Mac. Then it should work normally.
: If your Firefox OS version is older than v1.1, once you have done the above steps, please go to the Bluetooth settings page in your phone, and unpair/pair your Mac. Then it should work normally.
Line 238: Line 228:
  ac_add_options --with-ccache=/usr/bin/ccache
  ac_add_options --with-ccache=/usr/bin/ccache
  ENABLE_MARIONETTE=1
  ENABLE_MARIONETTE=1
== Bluetooth Marionette Tests ==
Setup python environment for Marionette
Install “python-setuptools”
Setup marionette client
$ pip install virtualenv
$ mkdir ~/pyEnv
$ virtualenv ~/pyEnv/
$ cd $GECKO_DIR/testing/marionette/client'
$ sudo ~/pyEnv/bin/python setup.py develop
Run BT tests on ICS emulator
$ cd $GECKO_DIR
$ ~/pyEnv/bin/python testing/marionette/client/marionette/runtests.py --emulator arm --homedir ../ --type=b2g dom/bluetooth/tests/marionette/manifest.ini
Run BT tests on device
    $ cd $GECKO_DIR
    $ adb forward tcp:2828 tcp:2828
    $ ~/pyEnv/bin/python testing/marionette/client/marionette/runtests.py --address=localhost:2828 --type=b2g dom/bluetooth/tests/marionette/manifest.ini


== Team Members ==
== Team Members ==


Currently we have a small Gecko Bluetooth team which is responsible for:
Currently we have a small Gecko Bluetooth team responsible for:


* Dealing with bugs which are assigned to component "Bluetooth"
* Dealing with bugs which are assigned to component "Bluetooth"
Line 249: Line 264:
* Implementing Bluetooth WebAPI test cases
* Implementing Bluetooth WebAPI test cases


The team members are <b>Shawn Huang, Ben Tian, Thomas Zimmermann, Jamin Liu, Jocelyn Liu and Bruce Sun</b>. Except Thomas is working from Europe, all other team members are located in Taipei. Shawn is the owner of Bluetooth module, and Ben and Thomas are Bluetooth module peer. You can pass Bluetooth related patches to them for review.
The team members are <b>Shawn Huang, Ben Tian, Thomas Zimmermann, Jocelyn Liu, Bruce Sun, Will Wang, Louis Chang, and Tom Tung</b>. Except Thomas is working from Europe, all other team members are located in Taipei. Shawn is the owner of Bluetooth module, and Ben, Thomas, Jocelyn, and Bruce are Bluetooth module peers. You can pass Bluetooth related patches to them for review.


You're more than welcome to contact us on IRC, on bugzilla or via sending an email. The following is a more detailed list about our job assignment:
You're more than welcome to contact us on IRC (#bluetooth), on bugzilla, or via sending an email. The following is a more detailed list about our job assignment:


* Shawn Huang (shuang@mozilla.com)
* Shawn Huang (shuang@mozilla.com)
Line 260: Line 275:
** OPP (File transfer)
** OPP (File transfer)
* Thomas Zimmermann (tzimmermann@mozilla.com)
* Thomas Zimmermann (tzimmermann@mozilla.com)
** Gecko Bluetooth integration with multiple Bluetooth backend, including BlueZ and Bluedroid
** Gecko Bluetooth integration with multiple Bluetooth backends, including BlueZ and Bluedroid
* Jamin Liu (jaliu@mozilla.com)
** Bluetooth daemon
** Bluetooth tests on ICS/KK emulator
** PTS test (pre 2.1)
* Jocelyn Liu (joliu@mozilla.com)
* Jocelyn Liu (joliu@mozilla.com)
** WebBluetooth API design/discussion/implementation/BLE (GATT Client / GATT Server)
** WebBluetooth API design/discussion/implementation
** HID (Bluetooth Keyboard/Mouse/Joystick, target to land on 2.3)
** BLE (GATT Client / GATT Server) API design/discussion/implementation
** PTS test (after 2.1)
* Bruce Sun (brsun@mozilla.com)
** BLE (GATT Client / GATT Server) API implementation
* Will Wang (wiwang@mozilla.com)
** Bluetooth tests on KK emulator
** PTS test


You can always contact Shawn once you're not sure who is the right person to contact with.
You can always contact Shawn once you're not sure who is the right person to contact with.
Confirmed users
891

edits