Closed Bug 1172823 Opened 9 years ago Closed 6 years ago

[FLAME-L] NFC handover passive receive file fail

Categories

(Firefox OS Graveyard :: NFC, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: ericcc, Unassigned)

References

Details

(Whiteboard: [FLAME-L-LOCALBUILD])

### STR
1. Turn on NFC and try to share a photo, music or contact
or 
2. Try to connect to an NFC headset

### Actual
Not working

### Version
Local build

Build ID               20150601113003
Gaia Revision          59b859d1cdce2619d4fbf84558b3db376aded83b
Gaia Date              2015-06-01 03:11:33
Gecko Revision         n/a
Gecko Version          41.0a1
Device Name            flame
Firmware(Release)      5.0
Firmware(Incremental)  eng.viralwang.20150601.111147
Firmware Date          Mon Jun  1 11:13:04 CST 2015
Bootloader             L1TC00011L60
*working correctly: contact, browser

*part of working:
 gallery or photo (can send/ cannot receive)
 music (can send/ cannot receive)

*cannot work:
 video (crash - bug 1179162)
It seems NFC pair headset is also not working.
I think this issue may related to bluetooth, I check that basic functions of NFC are working properly (NDEF send/recv)
I have tried bluetooth to send/receive photo & music, and it works fine. (the same build)
When i tried to send image, i found following error
"[NfcHandoverManager]: No Bluetooth Adapter"
This issue is related to nfc handover path with bluetooth. Arno might be more familiar with it.
(In reply to Dimi Lee[:dimi][:dlee] from comment #5)
> When i tried to send image, i found following error
> "[NfcHandoverManager]: No Bluetooth Adapter"
> This issue is related to nfc handover path with bluetooth. Arno might be
> more familiar with it.

Passing the bucket to Fred who last worked on this. Sounds like a problem with BT v1/v2 API.
Flags: needinfo?(gasolin)
I'll contact Hermes to flash flame L
Flags: needinfo?(gasolin)
Got following message in L when BT is pre-paired and share image from another device through NFC.

D/NfcAdaptation( 2472): NfcAdaptation::HalDeviceContextDataCallback: len=5
I/BrcmNfcNfa( 2472): NFC received ntf gid:1
I/BrcmNfcNfa( 2472): Exting nfa_dm_p2p_prio_logic returning
I/BrcmNfcNfa( 2472): nfc_set_state 5 (OPEN)->4 (IDLE)
I/BrcmNfcNfa( 2472): llcp_link_deactivate () reason = 0xfc
I/BrcmNfcNfa( 2472): DLC (0x10) - state: CONNECTED, evt: LINK_ERROR
I/BrcmNfcNfa( 2472): nfa_p2p_llcp_cback (): event:0x03, local_sap:0x10
I/BrcmNfcNfa( 2472): nfa_p2p_proc_llcp_disconnect_ind ()

Does LINK_ERROR matters?
My observation is share file to other device works, 

Only when receive file from other device not work.
Summary: [FLAME-L] NFC not working → [FLAME-L] NFC handover passive receive file fail
(In reply to Fred Lin [:gasolin] from comment #8)
> Got following message in L when BT is pre-paired and share image from
> another device through NFC.
> 
> D/NfcAdaptation( 2472): NfcAdaptation::HalDeviceContextDataCallback: len=5
> I/BrcmNfcNfa( 2472): NFC received ntf gid:1
> I/BrcmNfcNfa( 2472): Exting nfa_dm_p2p_prio_logic returning
> I/BrcmNfcNfa( 2472): nfc_set_state 5 (OPEN)->4 (IDLE)
> I/BrcmNfcNfa( 2472): llcp_link_deactivate () reason = 0xfc
> I/BrcmNfcNfa( 2472): DLC (0x10) - state: CONNECTED, evt: LINK_ERROR
> I/BrcmNfcNfa( 2472): nfa_p2p_llcp_cback (): event:0x03, local_sap:0x10
> I/BrcmNfcNfa( 2472): nfa_p2p_proc_llcp_disconnect_ind ()
> 
> Does LINK_ERROR matters?

So this LINK_ERROR happens at the receiver side ? I will take a look to see if it is related
Yes its logged in receiver side L device.
Hi Fred,
I check the LINK_ERROR message. It is not related to this bug, it happens when two device are moved out of NFC's range, and this error doesn't occur during 'transfer' stage.

Please let me know if you still have any question.
I spotted the `(bluetooth) adapter not found` issue on both flame L & flame kk, the issue might related to bug 1183496.

You could work around by disable/enable bluetooth again in settings.
Depends on: 1183496
After patch `(bluetooth) adapter not found` issue in bug 1183496, flame L still can't receive file from other device. Will investigate more detail on this issue.
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.