platform/upstream/neard.git
12 years agosnep: Adapt to the latest p2p changes
Samuel Ortiz [Thu, 15 Mar 2012 00:44:52 +0000 (01:44 +0100)]
snep: Adapt to the latest p2p changes

Besides the close routine, the snep code also now supports non blocking
reads and multiple clients connecting simultaneously.

12 years agop2p: Poll on client file descriptor for reading
Samuel Ortiz [Thu, 15 Mar 2012 00:02:24 +0000 (01:02 +0100)]
p2p: Poll on client file descriptor for reading

After accept returns, the client file descriptor needs to be polled in
order to run non blocking reads from the actual p2p protocols handlers.
A close hook is added to those, in order to let them know about e.g. a
client disconnection.

12 years agodoc: Fix adapter-api.txt default mode
Samuel Ortiz [Tue, 13 Mar 2012 16:15:45 +0000 (17:15 +0100)]
doc: Fix adapter-api.txt default mode

The adapter default mode is initiator, not target.

12 years agotarget: Fix mifare tag type names
Olivier Guiter [Thu, 1 Mar 2012 15:51:47 +0000 (16:51 +0100)]
target: Fix mifare tag type names

12 years agonfctype2: Memory leak fix
Ravi kumar Veeramally [Wed, 29 Feb 2012 21:26:53 +0000 (23:26 +0200)]
nfctype2: Memory leak fix

12 years agonfctype1: Memory leak fix
Ravi kumar Veeramally [Wed, 29 Feb 2012 21:26:52 +0000 (23:26 +0200)]
nfctype1: Memory leak fix

12 years agonfctype3: Memory leak fix
Ravi kumar Veeramally [Wed, 29 Feb 2012 21:26:54 +0000 (23:26 +0200)]
nfctype3: Memory leak fix

12 years agop2p: Check presence hook implementation
Samuel Ortiz [Tue, 28 Feb 2012 18:16:27 +0000 (19:16 +0100)]
p2p: Check presence hook implementation

The MAC layer state tell if the peer device is there or not.

12 years agoadapter: Get the constant polling setting from main.conf
Samuel Ortiz [Fri, 24 Feb 2012 16:49:37 +0000 (17:49 +0100)]
adapter: Get the constant polling setting from main.conf

12 years agobootstrap-configure: Add sysconfdir setting
Samuel Ortiz [Fri, 24 Feb 2012 16:49:10 +0000 (17:49 +0100)]
bootstrap-configure: Add sysconfdir setting

12 years agomain: Support for general settings
Samuel Ortiz [Fri, 24 Feb 2012 16:38:24 +0000 (17:38 +0100)]
main: Support for general settings

main.conf will be neard settings file.

12 years agotest: Python script to publish text, uri and sp records
Ravi kumar Veeramally [Fri, 24 Feb 2012 13:22:03 +0000 (15:22 +0200)]
test: Python script to publish text, uri and sp records

Updated pyhton script to build dictionary with text, uri and sp
record attributes and sends Publish request to neard adapter.

12 years agoadapter: Implement Publish SmartPoster method on adapter
Ravi kumar Veeramally [Fri, 24 Feb 2012 13:22:02 +0000 (15:22 +0200)]
adapter: Implement Publish SmartPoster method on adapter

Parse the publish dbus request on adapter and builds smartposter
record ndef message and pushes into adapter queue.

12 years agoadapter: Implement Publish URI method on adapter
Ravi kumar Veeramally [Fri, 24 Feb 2012 13:22:01 +0000 (15:22 +0200)]
adapter: Implement Publish URI method on adapter

Parse the publish dbus request on adapter and builds uri record
ndef message and pushes into adapter queue.

12 years agoadapter: Refactor adapter record publish code
Ravi kumar Veeramally [Fri, 24 Feb 2012 13:22:00 +0000 (15:22 +0200)]
adapter: Refactor adapter record publish code

12 years agondef: Provide method to get uri prefix
Ravi kumar Veeramally [Fri, 24 Feb 2012 13:21:59 +0000 (15:21 +0200)]
ndef: Provide method to get uri prefix

This method is needed when building NDEF record from published
uri or smartposter record dbus request.

12 years agonfctype4: Coding style fix
Ravi kumar Veeramally [Thu, 23 Feb 2012 22:20:39 +0000 (00:20 +0200)]
nfctype4: Coding style fix

Renamed recv_cookie structure to t4_cookie.

12 years agonfctype3: Coding style fix
Ravi kumar Veeramally [Thu, 23 Feb 2012 22:20:38 +0000 (00:20 +0200)]
nfctype3: Coding style fix

Renamed recv_cookie structure to t3_cookie.

12 years agonfctype2: Coding style fix
Ravi kumar Veeramally [Thu, 23 Feb 2012 22:20:37 +0000 (00:20 +0200)]
nfctype2: Coding style fix

Renamed recv_cookie structure to t2_cookie.

12 years agonfctype1: Coding style fix
Ravi kumar Veeramally [Thu, 23 Feb 2012 22:20:36 +0000 (00:20 +0200)]
nfctype1: Coding style fix

Renamed recv_cookie structure to t1_cookie.

12 years agonfctype4: Implement check_presence
Samuel Ortiz [Thu, 23 Feb 2012 00:05:34 +0000 (01:05 +0100)]
nfctype4: Implement check_presence

12 years agonfctype2: Implement check_presence
Samuel Ortiz [Wed, 22 Feb 2012 23:53:49 +0000 (00:53 +0100)]
nfctype2: Implement check_presence

12 years agonfctype1: Implement check_presence
Samuel Ortiz [Wed, 22 Feb 2012 23:45:28 +0000 (00:45 +0100)]
nfctype1: Implement check_presence

12 years agonfctype3: Implement check_presence
Samuel Ortiz [Wed, 22 Feb 2012 23:25:58 +0000 (00:25 +0100)]
nfctype3: Implement check_presence

12 years agoadapter: Disconnect when tag read failed
Samuel Ortiz [Wed, 22 Feb 2012 23:15:07 +0000 (00:15 +0100)]
adapter: Disconnect when tag read failed

12 years agoadapter: Polling loop implementation
Samuel Ortiz [Wed, 22 Feb 2012 20:15:56 +0000 (21:15 +0100)]
adapter: Polling loop implementation

Before disconnecting from a target, check if it's present or not.
If it's not, disconnect and decide to start a new poll depending on the
periodic poll setting.

12 years agoadapter: Remove target from the adapter hash when disconnecting
Samuel Ortiz [Wed, 22 Feb 2012 19:48:29 +0000 (20:48 +0100)]
adapter: Remove target from the adapter hash when disconnecting

12 years agoadapter: Factorize adapter start poll code
Samuel Ortiz [Wed, 22 Feb 2012 19:30:41 +0000 (20:30 +0100)]
adapter: Factorize adapter start poll code

12 years agoadapter: Integrate DEP control into connect/disconnect
Samuel Ortiz [Tue, 21 Feb 2012 13:18:15 +0000 (14:18 +0100)]
adapter: Integrate DEP control into connect/disconnect

12 years agonetlink: Check for POWERED not for INDEX
Samuel Ortiz [Tue, 21 Feb 2012 12:42:49 +0000 (13:42 +0100)]
netlink: Check for POWERED not for INDEX

12 years agonfctype3: Fix write code path error conditions
Ravi kumar Veeramally [Fri, 10 Feb 2012 19:18:41 +0000 (21:18 +0200)]
nfctype3: Fix write code path error conditions

12 years agoplugins: Move connect and disconnect calls away from the plugins
Ravi kumar Veeramally [Fri, 10 Feb 2012 20:27:19 +0000 (21:27 +0100)]
plugins: Move connect and disconnect calls away from the plugins

Keeping them centralized in the adapter layer is cleaner and easier to
maintain.

12 years agop2p: Read function should return a boolean
Samuel Ortiz [Fri, 10 Feb 2012 00:07:33 +0000 (01:07 +0100)]
p2p: Read function should return a boolean

Some peer to peer protocol like SNEP ack each fragment and need to wait for
more data. So they need to be put on poll again.

12 years agotag: Use kernel definitions for tag protocols
Samuel Ortiz [Thu, 9 Feb 2012 20:29:52 +0000 (21:29 +0100)]
tag: Use kernel definitions for tag protocols

12 years agotarget: Remove useless check from find_tag_type
Samuel Ortiz [Thu, 9 Feb 2012 20:13:53 +0000 (21:13 +0100)]
target: Remove useless check from find_tag_type

The target type is defined by find_tag_type.

12 years agotarget: tag is a p2p device if DEP_MASK is enabled
Samuel Ortiz [Thu, 9 Feb 2012 19:17:29 +0000 (20:17 +0100)]
target: tag is a p2p device if DEP_MASK is enabled

12 years agonetlink: Disconnect adapter when MAC is down
Samuel Ortiz [Tue, 7 Feb 2012 20:03:32 +0000 (21:03 +0100)]
netlink: Disconnect adapter when MAC is down

12 years agonfctype3: Fixed double free and error conditions
Ravi kumar Veeramally [Tue, 7 Feb 2012 11:45:34 +0000 (13:45 +0200)]
nfctype3: Fixed double free and error conditions

12 years agonfctype3: Tag writing support
Ravi kumar Veeramally [Mon, 6 Feb 2012 20:53:05 +0000 (22:53 +0200)]
nfctype3: Tag writing support

Implemented tag writing support for nfctype3 plugin.

12 years agotarget: Improve tag addition API
Samuel Ortiz [Mon, 6 Feb 2012 16:03:36 +0000 (17:03 +0100)]
target: Improve tag addition API

The API now allows for an NDEF buffer to be passed when creating the tag.

12 years agomailmap: Initial commit
Samuel Ortiz [Mon, 6 Feb 2012 15:29:58 +0000 (16:29 +0100)]
mailmap: Initial commit

Fix Ravi's email.

12 years agonfctype3: Fixed reader code path errors
Ravi kumar Veeramally [Mon, 6 Feb 2012 12:40:37 +0000 (14:40 +0200)]
nfctype3: Fixed reader code path errors

Fixed error values and calling missed callback calls.

12 years agotlv: Simplify tlv parsing API
Samuel Ortiz [Mon, 6 Feb 2012 15:06:16 +0000 (16:06 +0100)]
tlv: Simplify tlv parsing API

The parsing API should read the tag's data.

12 years agondef: Support unknown MIME types
Samuel Ortiz [Mon, 6 Feb 2012 15:04:31 +0000 (16:04 +0100)]
ndef: Support unknown MIME types

Unknown MIME types are left without parsing.

12 years agoplugins: Define tag priorities
Samuel Ortiz [Mon, 6 Feb 2012 11:49:35 +0000 (12:49 +0100)]
plugins: Define tag priorities

12 years agotag: Add tag driver priorities
Samuel Ortiz [Mon, 6 Feb 2012 11:47:31 +0000 (12:47 +0100)]
tag: Add tag driver priorities

p2p types should be handled first.

12 years agotag: Caching type3 tag manufacturer ID and attribute block
Ravi kumar Veeramally [Wed, 1 Feb 2012 14:00:20 +0000 (16:00 +0200)]
tag: Caching type3 tag manufacturer ID and attribute block

Caching manufacturer ID and attribute block in tag data.
This data is required while sending write command for Type3 tag.

12 years agohandover: Initial skeleton for peer to peer handover support
Samuel Ortiz [Fri, 3 Feb 2012 18:44:09 +0000 (19:44 +0100)]
handover: Initial skeleton for peer to peer handover support

12 years agosnep: Remove unused definition
Samuel Ortiz [Fri, 3 Feb 2012 16:23:34 +0000 (17:23 +0100)]
snep: Remove unused definition

12 years agop2p: Factorize bind and listening routines
Samuel Ortiz [Fri, 3 Feb 2012 00:19:12 +0000 (01:19 +0100)]
p2p: Factorize bind and listening routines

12 years agondef: Coding style fix
Samuel Ortiz [Thu, 2 Feb 2012 17:57:34 +0000 (18:57 +0100)]
ndef: Coding style fix

12 years agosnep: Parse the read NDEF
Samuel Ortiz [Wed, 1 Feb 2012 16:42:33 +0000 (17:42 +0100)]
snep: Parse the read NDEF

12 years agosnep: Support fragmented NDEFs
Samuel Ortiz [Wed, 1 Feb 2012 16:10:51 +0000 (17:10 +0100)]
snep: Support fragmented NDEFs

12 years agondef: Support for all NFC defined URI prefixes
Samuel Ortiz [Wed, 1 Feb 2012 12:09:01 +0000 (13:09 +0100)]
ndef: Support for all NFC defined URI prefixes

12 years agotest: Override the default D-Bus timeout for setting the powered property
Samuel Ortiz [Tue, 31 Jan 2012 15:21:02 +0000 (16:21 +0100)]
test: Override the default D-Bus timeout for setting the powered property

12 years agotest: Add enable and disable adapter scripts
Samuel Ortiz [Tue, 31 Jan 2012 14:08:47 +0000 (15:08 +0100)]
test: Add enable and disable adapter scripts

12 years agoadapter: Implement Powered property handling
Samuel Ortiz [Tue, 31 Jan 2012 14:06:41 +0000 (15:06 +0100)]
adapter: Implement Powered property handling

12 years agonetlink: Check for device protocols attribute not being NULL
Samuel Ortiz [Tue, 31 Jan 2012 12:10:37 +0000 (13:10 +0100)]
netlink: Check for device protocols attribute not being NULL

12 years agoadapter: Get the device powered status
Samuel Ortiz [Tue, 31 Jan 2012 12:09:35 +0000 (13:09 +0100)]
adapter: Get the device powered status

12 years agoRelease 0.1 0.1
Samuel Ortiz [Tue, 31 Jan 2012 10:51:12 +0000 (11:51 +0100)]
Release 0.1

12 years agonfctype4: Tag writing support
Ravi kumar Veeramally [Tue, 31 Jan 2012 09:25:19 +0000 (11:25 +0200)]
nfctype4: Tag writing support

Implemented tag writing support for nfctype4 plugin.

12 years agotag: Caching type4 tag max NDEF size and APDU commandd max size
Ravi kumar Veeramally [Tue, 31 Jan 2012 09:25:18 +0000 (11:25 +0200)]
tag: Caching type4 tag max NDEF size and APDU commandd max size

Cacheing max ndef size and APDU command max size in tag data.
This data is required while sending write command for Type4 tag.

12 years agondef: Fixed potential crash in ndef record memory free
Ravi kumar Veeramally [Mon, 30 Jan 2012 10:56:13 +0000 (12:56 +0200)]
ndef: Fixed potential crash in ndef record memory free

12 years agoneard-ui: Switch to system bus
Olivier Guiter [Mon, 30 Jan 2012 14:52:31 +0000 (15:52 +0100)]
neard-ui: Switch to system bus

12 years agoREADME: Describe available options
Samuel Ortiz [Mon, 30 Jan 2012 10:47:57 +0000 (11:47 +0100)]
README: Describe available options

12 years agoneard.conf: Add forgotten org.neard.conf
Samuel Ortiz [Mon, 30 Jan 2012 10:10:12 +0000 (11:10 +0100)]
neard.conf: Add forgotten org.neard.conf

12 years agoneard.pc: Add forgotten neard.pc.in
Samuel Ortiz [Mon, 30 Jan 2012 09:35:04 +0000 (10:35 +0100)]
neard.pc: Add forgotten neard.pc.in

12 years agotest: Use system bus when publishing a record
Samuel Ortiz [Fri, 27 Jan 2012 19:49:17 +0000 (20:49 +0100)]
test: Use system bus when publishing a record

12 years agonfctype1: Tag writing support
Ravi kumar Veeramally [Fri, 27 Jan 2012 11:54:00 +0000 (13:54 +0200)]
nfctype1: Tag writing support

Implemented tag writing support for nfctype1 plugin.

12 years agonfctype2: Tag writing support
Ravi kumar Veeramally [Fri, 27 Jan 2012 11:53:03 +0000 (13:53 +0200)]
nfctype2: Tag writing support

Implemented tag writing support for nfctype2 plugin.

12 years agoadapter: Check ndef queue and call tag writing
Ravi kumar Veeramally [Fri, 27 Jan 2012 18:44:15 +0000 (19:44 +0100)]
adapter: Check ndef queue and call tag writing

In successful tag read callback, checks for ndef queue and pop
out ndef message and calling tag writing method.

12 years agotarget: Provide method to get tag from target structure
Ravi kumar Veeramally [Wed, 25 Jan 2012 13:41:49 +0000 (15:41 +0200)]
target: Provide method to get tag from target structure

12 years agotag: Add memory layout enum to tag structure
Ravi kumar Veeramally [Wed, 25 Jan 2012 13:41:48 +0000 (15:41 +0200)]
tag: Add memory layout enum to tag structure

Added memory(static, dynamic, other ..) layout enum to tag
structure. Helpful to check the tag layout when writing data
on tag.

12 years agotag: Add target_idx parameter to near_tag_io_cb prototype
Ravi kumar Veeramally [Wed, 25 Jan 2012 13:41:47 +0000 (15:41 +0200)]
tag: Add target_idx parameter to near_tag_io_cb prototype

Tag NDEF writing method will be called in read callback after
tag reading is completed. target_idx parameter is required to
get the target details for writing. So updating near_tag_io_cb
with target_idx parameter.

12 years agoplugin: Move adapter_disconnect call away from plugins
Ravi kumar Veeramally [Wed, 25 Jan 2012 13:41:46 +0000 (15:41 +0200)]
plugin: Move adapter_disconnect call away from plugins

Moved adapter_disconnect call from plugins and placed in
adapter (near_tag_io_cb, e.g. tag_read_cb) io callback call.

12 years agotag: Changed near_tag_get_ro function notation
Ravi kumar Veeramally [Wed, 25 Jan 2012 13:41:45 +0000 (15:41 +0200)]
tag: Changed near_tag_get_ro function notation

12 years agotest: python script to publish text record
Ravi kumar Veeramally [Wed, 25 Jan 2012 13:41:44 +0000 (15:41 +0200)]
test: python script to publish text record

Small pyhton script to build dictionary with text record attributes
and sends Publish request to neard adapter.

12 years agoadapter: Implement Publish method on adapter
ravikumar.veeramally@linux.intel.com [Fri, 27 Jan 2012 11:51:05 +0000 (13:51 +0200)]
adapter: Implement Publish method on adapter

Parse the Publish dbus request on adapter and builds text record
ndef message and pushes into adapter queue.

12 years agomain: Move neard to the system bus
Samuel Ortiz [Fri, 27 Jan 2012 18:20:46 +0000 (19:20 +0100)]
main: Move neard to the system bus

neard is a system daemon and should be link to a session.

12 years agoREADME: Typo fixes and libnl dependency addition
Samuel Ortiz [Fri, 27 Jan 2012 18:20:15 +0000 (19:20 +0100)]
README: Typo fixes and libnl dependency addition

12 years agosnep: Send a "Not implemented" response to GET and CONTINUE
Samuel Ortiz [Sat, 21 Jan 2012 10:51:55 +0000 (11:51 +0100)]
snep: Send a "Not implemented" response to GET and CONTINUE

CONTINUE will be supported while GET will not, as advised by the NFC Forum
specifications.

12 years agosnep: Initial support for receiving PUT requests
Samuel Ortiz [Sat, 21 Jan 2012 10:46:55 +0000 (11:46 +0100)]
snep: Initial support for receiving PUT requests

12 years agop2p: Better listener event error handling
Samuel Ortiz [Sat, 21 Jan 2012 10:05:45 +0000 (11:05 +0100)]
p2p: Better listener event error handling

12 years agosnep: Listener event implementation
Samuel Ortiz [Sat, 21 Jan 2012 10:02:23 +0000 (11:02 +0100)]
snep: Listener event implementation

12 years agop2p: Replace DBG with near_error on error code paths
Samuel Ortiz [Sat, 21 Jan 2012 09:56:55 +0000 (10:56 +0100)]
p2p: Replace DBG with near_error on error code paths

12 years agop2p: Initial SNEP support
Samuel Ortiz [Sat, 21 Jan 2012 09:53:31 +0000 (10:53 +0100)]
p2p: Initial SNEP support

SNEP is the NFC Forum specified peer to peer NDEF exchange protocol.

12 years agonpp: Define NPP service name
Samuel Ortiz [Sat, 21 Jan 2012 09:45:41 +0000 (10:45 +0100)]
npp: Define NPP service name

12 years agoMakefile: Fix distcheck target
Samuel Ortiz [Sat, 21 Jan 2012 09:41:22 +0000 (10:41 +0100)]
Makefile: Fix distcheck target

12 years agop2p: Separate npp support from the core p2p one
Samuel Ortiz [Sat, 21 Jan 2012 09:29:46 +0000 (10:29 +0100)]
p2p: Separate npp support from the core p2p one

12 years agobluetooth: Use the right terminology for Bluetooth addresses
Samuel Ortiz [Wed, 18 Jan 2012 19:39:17 +0000 (20:39 +0100)]
bluetooth: Use the right terminology for Bluetooth addresses

12 years agobluetooth: Remove unused code
Samuel Ortiz [Wed, 18 Jan 2012 19:35:09 +0000 (20:35 +0100)]
bluetooth: Remove unused code

12 years agomain: Add bluetooth initialization
Olivier Guiter [Wed, 18 Jan 2012 12:12:00 +0000 (13:12 +0100)]
main: Add bluetooth initialization

12 years agondef: Add specific bluetooth mime type support
Olivier Guiter [Wed, 18 Jan 2012 12:11:59 +0000 (13:11 +0100)]
ndef: Add specific bluetooth mime type support

12 years agoMakefile: Add bluetooth.c to build system
Olivier Guiter [Wed, 18 Jan 2012 12:11:58 +0000 (13:11 +0100)]
Makefile: Add bluetooth.c to build system

12 years agobluetooth: Add Bluetooth Secure Simple Pairing support
Olivier Guiter [Wed, 18 Jan 2012 12:11:57 +0000 (13:11 +0100)]
bluetooth: Add Bluetooth Secure Simple Pairing support

12 years agofeatures: Writer mode status update
Samuel Ortiz [Wed, 18 Jan 2012 18:52:08 +0000 (19:52 +0100)]
features: Writer mode status update

12 years agoTODO: Update
Samuel Ortiz [Wed, 18 Jan 2012 18:51:12 +0000 (19:51 +0100)]
TODO: Update

12 years agodoc: Add an adapter publication API
Samuel Ortiz [Sat, 14 Jan 2012 00:19:08 +0000 (01:19 +0100)]
doc: Add an adapter publication API

Writing NDEFs to already detected targets is not following the typical NFC
workflow, where targets are de-activated once read.
Instead, NFC is designed for apps to publish data to whoever shows up in
front of them.

12 years agotype1: Fix missing disconnect on wrong Magic NFC tag
Olivier Guiter [Fri, 13 Jan 2012 14:05:23 +0000 (15:05 +0100)]
type1: Fix missing disconnect on wrong Magic NFC tag

12 years agotarget: Export NFCID to plugins
Samuel Ortiz [Sat, 14 Jan 2012 00:00:34 +0000 (01:00 +0100)]
target: Export NFCID to plugins