Closed Bug 984207 Opened 10 years ago Closed 10 years ago

NFC should be in card-emulation mode when NFC option is enable and screen is off.

Categories

(Firefox OS Graveyard :: NFC, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(feature-b2g:2.0, tracking-b2g:backlog)

RESOLVED FIXED
2.0 S3 (6june)
feature-b2g 2.0
tracking-b2g backlog

People

(Reporter: kchang, Assigned: dlee)

References

Details

Attachments

(1 file, 1 obsolete file)

Sometimes, we need NFC chip in standby mode and being wake-up by some events. For example, enabling card emulation mode for some payment system while screen is off. That means we can not just turn off NFC when screen is off. That is why we need a standby/suspend mode for NFC.
Blocks: 979868, 979888
Blocks: b2g-NFC-2.0
Assignee: nobody → dlee
blocking-b2g: --- → backlog
No longer blocks: 979868
feature-b2g: --- → 2.0
Hi Dimi,
Can we finish this before FL?
Target Milestone: --- → 2.0 S3 (6june)
Attached file nfc-enabled-offscreen-discovering.pat (obsolete) —
I made a patch for this. Could you review it?
Attachment #8429065 - Flags: review?(dlee)
Comment on attachment 8429065 [details]
nfc-enabled-offscreen-discovering.pat

Hi, Junichi san
  Sorry the bug description may confuse you. This bug is to support NFC card emulation mode even when device is in suspend mode, so it should be handled in nfcd.
  You could create another bug for your patch :)
Attachment #8429065 - Flags: review?(dlee)
OK. I'll move it Bug973480.
Summary: NFC should be in standby mode when NFC option is enable and screen is off. → NFC should be in card-emulation mode when NFC option is enable and screen is off.
Flags: in-moztrap-
- Add EnablePolling/DisablePolling API
- Move EnableDiscovery/DisableDiscovery into NFC Enable/Disable

When discovery is on, CE mode will on. Enable/disable polling only affect tag/device discover. So after applying this patch, the CE mode will always turn on as long as NFC is enabled
Attachment #8430589 - Flags: review?(allstars.chh)
Attachment #8430589 - Flags: review?(allstars.chh) → review+
Hi Junichi-san,
Right now CE mode is on when enabling NFC, even when Screen is locked.

If this doesn't fit your use case, please file another bug for discussing this.
Flags: needinfo?(xju-hashimoto)
Seems work for our case too. I will try that, thank you.
Flags: needinfo?(xju-hashimoto)
Blocks: 1017485
blocking-b2g: backlog → ---
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: