Closed
Bug 939450
Opened 11 years ago
Closed 11 years ago
B2G NFC: nfcd does not handle handover protocol correctly
Categories
(Firefox OS Graveyard :: NFC, defect)
Firefox OS Graveyard
NFC
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: arno, Assigned: dimi)
References
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.48 Safari/537.36
Steps to reproduce:
- Approach Android device to FFOS device
- When FFOS device gets a P2P TechDiscovered, send a Handover Request message
Actual results:
- The Android device receives the Handover Request (it enables BT and shows the Beam Download notification)
- Android will reply with a Handover Select via the LLCP channel. This Handover Select is not received by FFOS
Expected results:
The Handover Select message should have been sent to NFC Manager via another P2P TechDiscovered Notification
Blocks: b2g-nfc
blocking-b2g: --- → 1.3?
Summary: nfcd does not handle handover protocol correctly → B2G NFC: nfcd does not handle handover protocol correctly
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → dlee
Assignee | ||
Comment 1•11 years ago
|
||
Hi Arno,
Could you help provide the patch for sending handover request after receiving p2p TechDiscovered ?
It will help a lot for me to check this issue, thanks !
Flags: needinfo?(arno)
At our fork of gaia, checkout branch svic/handover and apply the attached patch. Bring a FFOS and an Android device close to each other (both devices should be on their homescreen). The Android device will receive a harcoded Hr record and start the download process. However, the Hs is not received by FFOS. I would expect the debug message in nfc_manager.js:343 to show up in logcat.
Flags: needinfo?(arno)
Assignee | ||
Comment 3•11 years ago
|
||
The root cause is handover select is returned by client socket. So after sending handover request, nfcd should try receiving data from client socket.
Attachment #8334389 -
Flags: review?(allstars.chh)
Comment on attachment 8334389 [details] [review]
playform_system_nfcd_pull_request
merged,
https://github.com/mozilla-b2g/platform_system_nfcd/commit/8197b919e31883bf3e393e21f813b3d0db92ff8e
Attachment #8334389 -
Flags: review?(allstars.chh) → review+
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•