summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2019-06-18Adding agl-service-nfc tests for un/subscription.halibut_8.0.1halibut_8.0.0halibut_7.99.3halibut_7.99.2halibut/8.0.1halibut/8.0.0halibut/7.99.3halibut/7.99.28.0.18.0.07.99.37.99.2Edi Feschiyan8-55/+178
Bug-AGL: SPEC-2528 Signed-off-by: Edi Feschiyan <edi.feschiyan@konsulko.com> Change-Id: Ida3727dd07a9374f4c08c68d8f7df92613b889ae
2019-03-15binding: nfc: remove useless .gitmoduleshalibut_7.99.1halibut/7.99.17.99.1Matt Ranostay1-3/+0
Bug-AGL: SPEC-2268 Change-Id: Iea811bc8e884bb7f679d0aebe798d5be3d7a6f8e Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2019-03-07Merge "binding: nfc: fix build warnings"Jan-Simon Moeller1-5/+3
2019-02-25binding: nfc: fix build warningsRaquel Medina1-5/+3
Fix warnings due to may be unused artifacts. Fix whitespace. Change-Id: Ibeef05406887d72414a3df7da71197e80c2f9ceb AGL-Bug: SPEC-2212 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com>
2019-02-22autobuild: fix warnings due to cp command exit codeRaquel Medina3-27/+50
- remove autobuild from .gitignore filter - move conf.d/autobuild to root folder - update autobuild script to fix warnings triggered by cp operation exit code. Change-Id: I6013488b7be8655ead6e174fb46cf95179e172dc Bug-AGL: SPEC-2164 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com>
2019-01-25binding: nfc: include reply to presence event requests in error pathsRaquel Medina1-4/+4
AGL-Bug: SPEC-2141 Change-Id: Ic81ea3463fd51a67e6035ceff5af4039abbc5fce Signed-off-by: Raquel Medina <raquel.medina@konsulko.com>
2019-01-07binding: nfc: increase safety checks around neardal api calls.halibut_7.90.0halibut/7.90.0guppy_6.99.4guppy/6.99.47.90.06.99.4Raquel Medina1-33/+187
Bug-AGL: SPEC-2062 When the NFC adapter is powered up and agl-service-nfc sends a request to power it, or when the NFC adapter is actively polling and agl-service-nfc sends a request to start polling, the requests are being rejected and an error message issued. The changes in this commit are intended to avoid these scenarios, taking into account that neard is configured to: (1)power the device up by default, and (2)not re-start the device in polling mode unless requested by the client (agl-service-nfc). - Check the adapter state before applying power or set the adapter in active polling mode as initiator. - Add neardal adapter callbacks to track status of the interface instead of using local variables. - Exit polling loop if the adapter is removed. - Update dbg macros to be more meaningful. Bug-AGL: SPEC-1976 The following changes are to increase safety measures around variables used on calls to/from neardal. - Test arguments in callback functions. - Install/remove tag callbacks in every iteration. - Match g_malloc'ed nfc_data_binding with g_free. Change-Id: If26d685a917633c9a0dd6997ad371db60a640517 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com>
2018-12-04binding: nfc: check request value field on subscribe & unsubscribeguppy_6.99.3guppy/6.99.36.99.3Raquel Medina1-2/+18
Bug-AGL: SPEC-1994 - check subscribe/unsubscribe requests from client are for a valid event. Change-Id: Icb020e35f2c70a83b1a043a03827d25ed2e94d17 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com>
2018-11-30nfc: binding: fix formatting.guppy_6.99.2guppy/6.99.26.99.2Raquel Medina1-23/+17
This commit includes the following changes resulting from code review of commit b7cae49a6d1b4c5dba12647e2b30e635b8993a92, and requested to be on a separate commit: - fixes indentation on several lines - substitutes malloc+return error for g_malloc0 Change-Id: I8591868b759a454be2ee2bfc21c88e9563fa2535 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com>
2018-11-28binding: nfc: Process content data from tag (adapter in tag reader mode)Raquel Medina2-104/+190
Bug-AGL: SPEC-1975 - Register callback for tag found - Update callback for record found - Fix memory leak Change-Id: I870648f3c5771aa1b54b710ef6b75786a1c67f65 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com>
2018-11-23binding: nfc: Fix segmentation fault.guppy_6.99.1guppy/6.99.16.99.1Raquel Medina1-107/+141
Bug-AGL: SPEC-1959 Duplicate reply (xreq_reply_cb) causes the segmentation fault when the adapter is plugged in at boot time. Several changes have been applied to fix this issue: - remove reply on subscribe for presence_event(only reply from loop); - power the adapter up only after configuration is complete; - update req & api artifacts to implement v3 bindings. Change-Id: I945de9dc1fee0a95859f28b9d77b627cb998fa1b Signed-off-by: Raquel Medina <raquel.medina@konsulko.com>
2018-11-13binding: nfc: remove dependencies on libnfcRaquel Medina6-184/+5
Bug-AGL: SPEC-1921 - remove dependencies on libnfc - remove unused code (binding/afm-nfc-common.c) Change-Id: I824094f5d7a409739c479904662e21c900cc8509 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com>
2018-11-02Revert "binding: nfc: return error code in init() function"Matt Ranostay1-2/+2
This reverts commit 1cb99d7d2a7ecd26a9ddf54c99440416a22e0dc4. This change is actually needed to stop a systemd service restart loop if no adapters are present. Change-Id: I56da0ddf2a00b9df12b2e78719745c2823b66588 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-10-31Migrate app-templates to CMake moduleRomain Forlot2-5/+9
Bug-AGL SPEC-1682 Change-Id: I1e1cd52b254be3159cd07a6c651d1c5fe55ae6bf Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-18binding: nfc: return error code in init() functionMatt Ranostay1-2/+2
Change-Id: I8a86ddf385b96aeba86a7ea92ed71fc0972ce57a Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-10-09Use feature 'required-binding'Jose Bollo1-1/+1
The feature "urn:AGL:widget:required-binding" is now preferred to the feature "urn:AGL:widget:required-api" for requiring a local binding. Bug-AGL: SPEC-1800 Change-Id: Ib88fe75f71cd4386668be17aac4eb9c28852a0b2 Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2018-08-23binding: nfc: workaround service exiting if no adaptersguppy_6.90.0guppy/6.90.0flounder_5.99.6flounder_5.99.5flounder_5.99.4flounder/5.99.6flounder/5.99.5flounder/5.99.46.90.05.99.65.99.55.99.4Matt Ranostay1-4/+4
Don't return an error code from init() even with no adapters are present to avoid service from exiting. Bug-AGL: SPEC-1683 Change-Id: I9c77950887a2d4e8163bd2fb2cce8b00af8b4574 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-07-19binding: nfc: remove current_uid from globals declarationsflounder_5.99.3flounder_5.99.2flounder/5.99.3flounder/5.99.25.99.35.99.2Matt Ranostay1-2/+2
current_uid is no longer needed now that the json_object response is cached Bug-AGL: SPEC-1554 Change-Id: If6019ff52dcb61f18616c927a489e0fb0ed90c35 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-07-17binding: nfc: add neardal support for reading NDEF encoded tagsMatt Ranostay5-2/+127
Read RFID tags via neardal helper library that are NDEF encoded Bug-AGL: SPEC-1544 Change-Id: I90c0e8b4dec705ef56c7303ec2a592ca6ab9054c Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-07-17binding: nfc: use cached json_object for eventsMatt Ranostay2-10/+33
Cache the json_object for event response for detect for future subscribers Bug-AGL: SPEC-1554 Change-Id: I4dfeb7f157a872db96c8c5fabae9c26547815baa Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-07-17binding: nfc: convert binding to afb version 3Matt Ranostay1-6/+6
In order to use some of the features of v3 we need to update the data structures naming, and function parameters. Change-Id: I6c217a8f4c28053c838af9f324b1504a3e1cbf71 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-07-13binding: nfc: move libnfc checks from threadMatt Ranostay2-24/+53
To allow runtime detection of libnfc vs neard devices in the future libnfc check needs to be moved out of nfc_thread_loop Bug-AGL: SPEC-1554 Change-Id: I53854838a2fcab7eefbed3ed8d165a14e2bdc9db Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-07-13binding: nfc: split out common functionsMatt Ranostay4-18/+66
Put common functions that libnfc and neard will use in a common header Bug-AGL: SPEC-1554 Change-Id: I723cee58a2265bf0574f54cb0b9ff4af5647da73 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-07-04binding: nfc: new initial bindingMatt Ranostay20-1421/+427
Slight rewrite to use libnfc initially for getting tag uid's for user settings. Bug-AGL: SPEC-1554 Change-Id: I7b8c30102b82e86a92c89909bcbfba9ab7164c1f Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-12-19fix some textflounder_5.99.1flounder/5.99.15.99.1Loïc Collignon2-9/+3
Change-Id: I3f5dcce07cbc90a25294283f2cc40251f546f27c Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2017-12-18fixed the .gitreview fileLoïc Collignon1-0/+5
Change-Id: I9731195371349a12ad23355f8c6bd286c605a1f2 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2017-11-11Hide the serviceJosé Bollo1-0/+3
Change-Id: I32f0a6a59ea76b0f79f2097989520c0dcb831832 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-11FIXME: remove spoiling messageJosé Bollo1-1/+1
Change-Id: Id0d16d1bad0c7a8be04942720c6f393282b12633 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-11Really add config fileJosé Bollo2-3/+16
Change-Id: Ia757319172123bc3bae76a66df8604cf8ff23504 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-11Upgrade templatesJosé Bollo1-0/+0
Change-Id: I5e43fccbe2d91a8fe58aa59c96362f56f18aa21a Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-11Make as widgetJosé Bollo1-5/+4
Change-Id: Ie48ea32d246afd00c72431944780213e5abce95b Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-09fix the missing submoduleLoïc Collignon1-0/+0
Change-Id: I1ab2ad75cbd7a1c7873ea5e8589da4e359d1134c Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2017-11-09fix .gitignore so it accept app-templatesLoïc Collignon1-3/+0
Change-Id: I0bd34c0dc2fcf1aadadaab71f5b2dcdcc255beb5 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2017-11-09added some info into the readmeLoïc Collignon1-0/+34
Change-Id: I72f77473ccdd1425aacab8fbb7e3b741e97171a9
2017-11-09remove CMAKE_BUILD_TYPE from config file.Loïc Collignon1-1/+0
Change-Id: I67d2b64fd1f0172496fc76bc720676ca1ade9ad0
2017-11-09rename verbs to match the aia-binding expectations.Loïc Collignon4-19/+27
Change-Id: Ic959f94f55cd3c010663369c54e63089725a8556 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2017-11-09fix error in polling compilation options.Loïc Collignon1-5/+11
Change-Id: I271f9220840ad792ed420e39d668fc6667518fd5
2017-11-08added compilation option to enable or disable modulations to speed up the ↵Loïc Collignon4-7/+84
detection. Change-Id: I14bd40f9fcc4ca526da8d1d15e836f7f722fc9c7 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2017-10-25fixed a typoLoïc Collignon1-1/+1
Change-Id: Ib09e1204c2530489edf4e6bccfc485ce03d036ed Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2017-10-25fixed a typoLoïc Collignon1-0/+1
Change-Id: I1d48ba736a4fadafbd46e624ec5d732ffe691f38 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2017-10-25add tag compatibility infosLoïc Collignon1-1/+36
Change-Id: Ib3b2d59b50ae142d9515e6a8cd3e21b6b115b2f2 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2017-10-25detect tag removing and raise an eventLoïc Collignon2-85/+181
Change-Id: I812c4f0b86f2f65c0d7561af95e531fd596bd45b Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2017-10-25add some git exclusion to .gitignoreLoïc Collignon1-0/+7
Change-Id: I2c118a4a3168d0c55501946156a68b74cff1edfc Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2017-10-23add nfc bindingLoïc Collignon15-0/+1314
Change-Id: I1ebf8e803436430490201db533c2a5a04c04295e Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2017-10-23Initial commitLoïc Collignon [IoT.bzh]3-0/+255