Closed
Bug 860696
Opened 12 years ago
Closed 11 years ago
B2G emulator: support Bluetooth tests (adapter getter/setter and device discovery)
Categories
(Firefox OS Graveyard :: Bluetooth, defect)
Tracking
(feature-b2g:2.0)
RESOLVED
FIXED
feature-b2g | 2.0 |
People
(Reporter: jhlin, Assigned: vicamo)
References
Details
Attachments
(1 file, 9 obsolete files)
Bluetooth tests will send HCI packets to emulator and expect it to reply accordingly. Also need new QEMU commands to support test fixture setup and state inspection.
Reporter | ||
Updated•12 years ago
|
Comment 1•12 years ago
|
||
Modify qemu to support 3 types of operation:
1) Get BT adapter properties
* properties to get
enable, name, BD address, discoverable, discovering
* for the following tests
- turn on/off Bluetooth
- get adapter properties: BD address, name, discoverable
- set mutable adapter properties: name, discoverable
2) Add fake remote devices
* remote device properties to set
name, BD address, class of service(CoD), service UUID
* for the following test
- discover remote devices
3) Implement connection handling
* [TBD]
* for the following test
- pair/unpair
Comment 2•12 years ago
|
||
CoD generator for mapping
http://bluetooth-pentest.narod.ru/software/bluetooth_class_of_device-service_generator.html
Comment 3•12 years ago
|
||
Attach patch that
- creates local HCI layer and remote L2CAP & SDP layers
- adds fake remote devices
- gets local properties
Instruction:
1) patch the attachment under external/qemu
2) build emulator and run
3) run command "bt get <prop>" to get properties. <prop> includes "name", "addr", "discoverable", "discovering"
4) run command "bt radd <bdaddr>,<name>" to add fake remote devices. <bdaddr> is BD address of the form xx:xx:xx:xx:xx:xx.
Note this attachment already includes my previous patch.
Comment 4•12 years ago
|
||
Attach patch that
- completes authentication
- emulates local HCI layer & remote L2CAP & SDP layers
- adds fake remote devices
- gets local properties
Attachment #741194 -
Attachment is obsolete: true
Reporter | ||
Comment 5•12 years ago
|
||
Please run './test.sh marionette <file path>/test_bt_on_off.py'
Sometimes test will fail becuase 'bt get name' returns empty string.
Reporter | ||
Comment 6•12 years ago
|
||
(In reply to John Lin[:jolin][:jhlin] from comment #5)
> Created attachment 744502 [details]
> BT on/off test
>
> Please run './test.sh marionette <file path>/test_bt_on_off.py'
> Sometimes test will fail becuase 'bt get name' returns empty string.
This problem no longer happens in latest test case implementation.
Reporter | ||
Comment 7•12 years ago
|
||
Sometimes testing pair will make QEMU frozen.(Frequency 1/2 ~ 1/3)
Please run attached scripts with: ./test.sh marionette --address=localhost:2828 --emulator=arm --type=qemu <marionette/test_bt_pair.py>
Comment 8•12 years ago
|
||
bt_qemu_v4
- reject remote devices with duplicate BD address
- authentication
- local HCI layer + remote L2CAP & SDP
- add fake remote devices
- get local properties
Attachment #743499 -
Attachment is obsolete: true
Comment 9•12 years ago
|
||
Vicamo, please help review the following pull request. Note this pull request includes also your changes under external/qemu.
Attachment #752627 -
Flags: review?(vyang)
Assignee | ||
Updated•12 years ago
|
Attachment #752627 -
Attachment is patch: false
Attachment #752627 -
Attachment mime type: text/plain → text/html
Assignee | ||
Comment 11•11 years ago
|
||
Comment on attachment 752627 [details]
link to https://github.com/mozilla-b2g/platform_external_qemu/pull/33
Already commented on Github.
Attachment #752627 -
Flags: review?(vyang)
Assignee | ||
Updated•11 years ago
|
Blocks: b2g-emulator
Updated•11 years ago
|
Assignee: btian → echou
Comment 12•11 years ago
|
||
Hi vicamo,
Please review my patch on GitHub. Jamin's test cases (bug 860697, bug 860698) are based on my emulator implementation.
Thank you.
Attachment #752627 -
Attachment is obsolete: true
Attachment #8365821 -
Flags: review?(vyang)
Updated•11 years ago
|
Summary: B2G emulator: support Bluetooth tests → B2G emulator: support Bluetooth tests (adapter getter/setter and device discovery)
Comment 13•11 years ago
|
||
* v2 patch. All comments for v1 have been taken.
Attachment #8365821 -
Attachment is obsolete: true
Attachment #8365821 -
Flags: review?(vyang)
Attachment #8372038 -
Flags: review?(vyang)
Assignee | ||
Comment 14•11 years ago
|
||
My working branch: https://github.com/vicamo/b2g_platform_external_qemu/tree/bugzilla/860696/bt-test-commands
Supported commands so far:
* mux bt [<bd_addr>]
* bt list [<bd_addr>]
* bt property [<bd_addr> [<name> [<value>]]]
Assignee | ||
Updated•11 years ago
|
Assignee: echou → vyang
Assignee | ||
Comment 15•11 years ago
|
||
Attachment #752629 -
Attachment is obsolete: true
Attachment #8372038 -
Attachment is obsolete: true
Attachment #8372038 -
Flags: review?(vyang)
Attachment #8377365 -
Flags: review?(echou)
Comment 16•11 years ago
|
||
Comment on attachment 8377365 [details]
Github pull request for external/qemu
r=me with nits picked and problem answered. Please check my comments on GitHub page. Thank you.
Attachment #8377365 -
Flags: review?(echou) → review+
Assignee | ||
Comment 17•11 years ago
|
||
Comments addresses, waiting for merge window.
Comment 18•11 years ago
|
||
Hi vicamo,
I think we're ready to go. :)
Assignee | ||
Comment 19•11 years ago
|
||
Comment on attachment 744502 [details]
BT on/off test
Not used anymore.
Attachment #744502 -
Attachment is obsolete: true
Assignee | ||
Comment 20•11 years ago
|
||
Comment on attachment 747264 [details]
marionette tests
Not used anymore.
Attachment #747264 -
Attachment is obsolete: true
Assignee | ||
Comment 21•11 years ago
|
||
Merged on Github:
https://github.com/mozilla-b2g/platform_external_qemu/commit/12408eb142739c7de87ab7ee0d0d2854d5c298f3
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
feature-b2g: --- → 2.0
Updated•10 years ago
|
Flags: in-moztrap-
You need to log in
before you can comment on or make changes to this bug.
Description
•