Coder Social home page Coder Social logo

nfcd's People

Contributors

allstarschh avatar dimidl avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nfcd's Issues

Support LLCP

There are some API need to be support after LLCP link is established
Those API can be reference from Android

  • NativeLlcpConnectionlessSocket.java
  • NativeLlcpServiceSocket.java
  • NativeLlcpSocket.java

Need also implemented in nfcd

rename libnci

libnci is not a good name here, because it's the glue code between the actual NCI library( which could be libnfc-nci).

We'd rename it and consider moving it to other folder.

update README.md

The README doesn't contain the correct information about this repository.

Add INIT_PDU

From the specification v1.4, there's a INIT_PDU sent to gonk when gonk connects to the nfcd.

We should add a INIT_PDU.

Support NDEF read request

nfc daemon should handle NDEF read request from gecko.
Currently the nfcd already contains the logic to handle this request, but not yet verified.

Change std vector to a self-define structure

use vector just because need to know the size of array.
We did not use other function provided by vector
Change to a self-define structure with pointer to byte array and record the size is more efficient

Remove Native prefix

There are many classes which is prefix with Native.

Native here doesn't have any meaning, we should remove the 'Native' prefix.

Support enable/disable function

When setting page disable NFC function.
nfcd process should be killed.
Also need to make sure resource is release when process terminted

Refine the naming of API in NfcService.cpp

Current the naming of API is not consistent with other class
Ex.

static void nfc_service_send_MSG_LLCP_LINK_ACTIVATION(void* pDevice);
static void nfc_service_send_MSG_LLCP_LINK_DEACTIVATION(void* pDevice);
static void nfc_service_send_MSG_NDEF_TAG(void* pTag);
static void nfc_service_send_MSG_SE_FIELD_ACTIVATED();
static void nfc_service_send_MSG_SE_FIELD_DEACTIVATED();
static void nfc_service_send_MSG_SE_NOTIFY_TRANSACTION_LISTENERS();

should rename the API

NativeNfcTag and NfcTag

There are two classes

  • NativeNfcTag
  • NfcTag

seems doing Tag things.

I am guessing one of them should be removed.

Update Android.mk

Currently Android.mk is written by assuming nfcd is located in B2G/system,
but in fact it could be located in any folder under B2G.
We should remove those absolute paths inside Android.mk

add sessionId support

From the protocol specification between Gonk, we also need another parameter called 'sessionId', and this session id is valid between a tech-discovered and a tech-lost notification.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.