platform/upstream/neard.git
12 years agotools: Add an SNEP sending testing program
Samuel Ortiz [Tue, 24 Apr 2012 22:34:12 +0000 (00:34 +0200)]
tools: Add an SNEP sending testing program

It simply sends a Text NDEF over a polled LLCP peer.

12 years agoadapter: Restart polling when devices link goes down
Samuel Ortiz [Tue, 24 Apr 2012 15:40:44 +0000 (17:40 +0200)]
adapter: Restart polling when devices link goes down

No need for a check presence implementation as the MAC link status
will be updated over netlink.

12 years agotest: Add a tag writing script
Samuel Ortiz [Tue, 24 Apr 2012 13:04:19 +0000 (15:04 +0200)]
test: Add a tag writing script

12 years agomain.conf: Initial commit
Samuel Ortiz [Mon, 23 Apr 2012 08:40:55 +0000 (10:40 +0200)]
main.conf: Initial commit

Only constant polling is configurable for now.

12 years agodevice: Export devices through the proper D-Bus interface
Samuel Ortiz [Mon, 23 Apr 2012 08:07:09 +0000 (10:07 +0200)]
device: Export devices through the proper D-Bus interface

12 years agotest: dump-device should use the Device interfae
Samuel Ortiz [Mon, 23 Apr 2012 05:45:47 +0000 (07:45 +0200)]
test: dump-device should use the Device interfae

12 years agobuild: Add neard.pc to ignore list
Marcel Holtmann [Sun, 22 Apr 2012 11:58:54 +0000 (13:58 +0200)]
build: Add neard.pc to ignore list

12 years agobuild: Add all relevant test to test_scripts
Samuel Ortiz [Sat, 21 Apr 2012 00:08:40 +0000 (02:08 +0200)]
build: Add all relevant test to test_scripts

12 years agoadapter: Remove the Publish method
Samuel Ortiz [Fri, 20 Apr 2012 18:07:53 +0000 (20:07 +0200)]
adapter: Remove the Publish method

NDEF queueing should be done by upper layers with a more accurate
application status knowledge.
NDEF are now written to tags with the Tag.Write method. A Device.Push
one will also be implemented.

12 years agotag: Define and implement the Tag Write method
Samuel Ortiz [Fri, 20 Apr 2012 18:02:35 +0000 (20:02 +0200)]
tag: Define and implement the Tag Write method

This is a synchronous NDEF writing routine, unlike the Adapter one that
is queueuing NDEF for writing.

12 years agoadapter: Call devices changes from the device reader callback
Samuel Ortiz [Fri, 20 Apr 2012 16:37:56 +0000 (18:37 +0200)]
adapter: Call devices changes from the device reader callback

12 years agoadapter: Make adapter_set_dep_state private to neard core
Samuel Ortiz [Fri, 20 Apr 2012 16:37:03 +0000 (18:37 +0200)]
adapter: Make adapter_set_dep_state private to neard core

Plugins don't need to call thsi routine.

12 years agotag: Remove unused routines
Samuel Ortiz [Fri, 20 Apr 2012 16:26:20 +0000 (18:26 +0200)]
tag: Remove unused routines

12 years agotag: Change tag driver ops naming
Samuel Ortiz [Fri, 20 Apr 2012 14:35:39 +0000 (16:35 +0200)]
tag: Change tag driver ops naming

read and write sounds more like what those drivers do.

12 years agosnep: Parse TLVs and add records to the device structure
Samuel Ortiz [Fri, 20 Apr 2012 14:23:35 +0000 (16:23 +0200)]
snep: Parse TLVs and add records to the device structure

12 years agonpp: Parse TLVs and add records to the device structure
Samuel Ortiz [Fri, 20 Apr 2012 14:23:08 +0000 (16:23 +0200)]
npp: Parse TLVs and add records to the device structure

12 years agodevice: Add data and records addition routines
Samuel Ortiz [Fri, 20 Apr 2012 14:21:56 +0000 (16:21 +0200)]
device: Add data and records addition routines

12 years agondef: Remove NDEF and TLV parsing routines tag dependencies
Samuel Ortiz [Fri, 20 Apr 2012 13:47:19 +0000 (15:47 +0200)]
ndef: Remove NDEF and TLV parsing routines tag dependencies

The NDEF and TLV parsing routines no longer take tag pointers as an argument.
Instead they return a list of records that is added to the underlying
tag structure. Devices will also get their records list.

12 years agodevice: Add device listening code path
Samuel Ortiz [Thu, 19 Apr 2012 16:59:52 +0000 (18:59 +0200)]
device: Add device listening code path

12 years agodevice: Add device driver definition
Samuel Ortiz [Thu, 19 Apr 2012 16:28:34 +0000 (18:28 +0200)]
device: Add device driver definition

12 years agodevice: Add D-Bus interface
Samuel Ortiz [Thu, 19 Apr 2012 15:45:37 +0000 (17:45 +0200)]
device: Add D-Bus interface

12 years agodevice: Initial commit
Samuel Ortiz [Thu, 19 Apr 2012 13:58:09 +0000 (15:58 +0200)]
device: Initial commit

The device layer will define the NFC devices (in peer to peer mode at first)
structure and operations.

12 years agotest: Update monitor-near
Samuel Ortiz [Thu, 19 Apr 2012 11:57:59 +0000 (13:57 +0200)]
test: Update monitor-near

12 years agotest: Update the python neard UI
Samuel Ortiz [Thu, 19 Apr 2012 11:57:38 +0000 (13:57 +0200)]
test: Update the python neard UI

12 years agodoc: Fix tag API
Samuel Ortiz [Thu, 19 Apr 2012 11:46:36 +0000 (13:46 +0200)]
doc: Fix tag API

Remove all target mentions.

12 years agondef: Fix record path
Samuel Ortiz [Thu, 19 Apr 2012 11:44:03 +0000 (13:44 +0200)]
ndef: Fix record path

12 years agotarget: Remove target layer
Samuel Ortiz [Thu, 19 Apr 2012 11:29:43 +0000 (13:29 +0200)]
target: Remove target layer

12 years agoadapter: Bypass the target layer
Samuel Ortiz [Thu, 19 Apr 2012 11:06:03 +0000 (13:06 +0200)]
adapter: Bypass the target layer

Adapters talk to tags or device directly. The target vs initiator
idea will be removed from the code base.
This commit temporarily breaks p2p.

12 years agotag: Add D-Bus interface
Samuel Ortiz [Wed, 18 Apr 2012 15:21:48 +0000 (17:21 +0200)]
tag: Add D-Bus interface

Preparing for moving the Target D-Bus interface to Tag.

12 years agoRelease 0.2 0.2
Samuel Ortiz [Thu, 19 Apr 2012 10:20:53 +0000 (12:20 +0200)]
Release 0.2

12 years agogdbus: Remove unneeded NEED_DBUS_WATCH_GET_UNIX_FD check
Marcel Holtmann [Mon, 16 Apr 2012 15:57:08 +0000 (17:57 +0200)]
gdbus: Remove unneeded NEED_DBUS_WATCH_GET_UNIX_FD check

12 years agobuild: Require D-Bus 1.2 or later
Marcel Holtmann [Mon, 16 Apr 2012 16:32:05 +0000 (18:32 +0200)]
build: Require D-Bus 1.2 or later

12 years agoconfigure: Glib version check updated
Olivier Guiter [Tue, 10 Apr 2012 08:30:28 +0000 (10:30 +0200)]
configure: Glib version check updated

g_list_free_full made it into Glib since 2.28, so configure.ac is
updated accordingly.

12 years agop2p: Remove client watch when the listener goes down
Samuel Ortiz [Fri, 6 Apr 2012 17:17:51 +0000 (19:17 +0200)]
p2p: Remove client watch when the listener goes down

12 years agop2p: Do not report HUP as an IO error
Samuel Ortiz [Fri, 6 Apr 2012 17:17:16 +0000 (19:17 +0200)]
p2p: Do not report HUP as an IO error

12 years agonetlink: Fix double free error when NFC is not built in the kernel
Samuel Ortiz [Mon, 26 Mar 2012 10:57:55 +0000 (12:57 +0200)]
netlink: Fix double free error when NFC is not built in the kernel

12 years agogdbus: Use destroy callback for service watch
Anderson Lizardo [Tue, 3 Apr 2012 16:14:58 +0000 (12:14 -0400)]
gdbus: Use destroy callback for service watch

Even though service watches accepted a "destroy" callback, they were
being ignored. This fix properly pass them along so they are called when
the watch is removed.

12 years agogdbus: Fix white space coding style issue
Syam Sidhardhan [Sun, 26 Jun 2011 21:56:04 +0000 (03:26 +0530)]
gdbus: Fix white space coding style issue

- corrected the space before '{'

12 years agonfctype4: Memory leak fix
Ravi kumar Veeramally [Fri, 16 Mar 2012 14:48:17 +0000 (15:48 +0100)]
nfctype4: Memory leak fix

12 years agop2p: Use the glist API to free the connected client nodes
Samuel Ortiz [Fri, 16 Mar 2012 14:42:37 +0000 (15:42 +0100)]
p2p: Use the glist API to free the connected client nodes

12 years agomifare: Add MIFARE read support to type2 plugin
Olivier Guiter [Fri, 16 Mar 2012 13:48:58 +0000 (14:48 +0100)]
mifare: Add MIFARE read support to type2 plugin

12 years agomifare: Initial support for reading MIFARE 1k 2k and 4k tags
Olivier Guiter [Fri, 16 Mar 2012 13:48:57 +0000 (14:48 +0100)]
mifare: Initial support for reading MIFARE 1k 2k and 4k tags

They're type 2 tags with specific commands for unlocking each and every
sector.

12 years agondef: Add some record header parsing verbosity
Samuel Ortiz [Thu, 15 Mar 2012 00:47:04 +0000 (01:47 +0100)]
ndef: Add some record header parsing verbosity

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