From 959e1071c898f1852a0e43ff8403ff8ddb01a4d9 Mon Sep 17 00:00:00 2001 From: adbridge Date: Wed, 12 Sep 2018 11:43:41 +0100 Subject: [PATCH 1/6] Updating mbed-os to mbed-os-5.10.0-rc2 --- NFC_EEPROM/mbed-os.lib | 2 +- NFC_SmartPoster/mbed-os.lib | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/NFC_EEPROM/mbed-os.lib b/NFC_EEPROM/mbed-os.lib index 5c96669..a8d3a37 100644 --- a/NFC_EEPROM/mbed-os.lib +++ b/NFC_EEPROM/mbed-os.lib @@ -1 +1 @@ -https://github.com/ARMmbed/mbed-os/#3fb5781af180c32a6062f050d59cdf93654b3e9f +https://github.com/ARMmbed/mbed-os/#dd2d15979665a3d70b18cf722ca91caf4e4ee523 diff --git a/NFC_SmartPoster/mbed-os.lib b/NFC_SmartPoster/mbed-os.lib index 5c96669..a8d3a37 100644 --- a/NFC_SmartPoster/mbed-os.lib +++ b/NFC_SmartPoster/mbed-os.lib @@ -1 +1 @@ -https://github.com/ARMmbed/mbed-os/#3fb5781af180c32a6062f050d59cdf93654b3e9f +https://github.com/ARMmbed/mbed-os/#dd2d15979665a3d70b18cf722ca91caf4e4ee523 From b1db45741493f60ff8029c87f8ec220881f9c852 Mon Sep 17 00:00:00 2001 From: Vincent Coubard Date: Thu, 13 Sep 2018 11:48:33 +0100 Subject: [PATCH 2/6] Smart poster: remove traces in callbacks. Traces mess up with timing requested by the PN512 controller. --- NFC_SmartPoster/main.cpp | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/NFC_SmartPoster/main.cpp b/NFC_SmartPoster/main.cpp index c5be7fc..fb49f37 100644 --- a/NFC_SmartPoster/main.cpp +++ b/NFC_SmartPoster/main.cpp @@ -103,15 +103,10 @@ class NFCProcess : NFCRemoteInitiator::Delegate, NFCController::Delegate { /* ------------------------------------------------------------------------ * Implementation of NFCRemoteInitiator::Delegate */ - virtual void on_connected() - { - printf("Connected\r\n"); - } + virtual void on_connected() { } virtual void on_disconnected() { - printf("Disconnected\r\n"); - // reset the state of the remote initiator _nfc_remote_initiator->set_delegate(NULL); _nfc_remote_initiator.reset(); @@ -120,15 +115,10 @@ class NFCProcess : NFCRemoteInitiator::Delegate, NFCController::Delegate { _nfc_controller.start_discovery(); } - virtual void parse_ndef_message(const Span &buffer) - { - printf("Received an ndef message of size %d\r\n", buffer.size()); - } + virtual void parse_ndef_message(const Span &buffer) { } virtual size_t build_ndef_message(const Span &buffer) { - printf("Building SmartPoster message\r\n"); - // build the smart poster object we want to send SmartPoster smart_poster( URI(URI::HTTPS_WWW, span_from_cstr("mbed.com")) @@ -151,7 +141,6 @@ class NFCProcess : NFCRemoteInitiator::Delegate, NFCController::Delegate { */ virtual void on_discovery_terminated(nfc_discovery_terminated_reason_t reason) { - printf("Discovery terminated: %u\r\n", reason); if(reason != nfc_discovery_terminated_completed) { _nfc_controller.start_discovery(); } @@ -159,8 +148,6 @@ class NFCProcess : NFCRemoteInitiator::Delegate, NFCController::Delegate { virtual void on_nfc_initiator_discovered(const SharedPtr &nfc_initiator) { - printf("Initiator discovered\r\n"); - // setup the local remote initiator _nfc_remote_initiator = nfc_initiator; _nfc_remote_initiator->set_delegate(this); From 2cf67656abf3dffec3dbee65075d2d52e83b3925 Mon Sep 17 00:00:00 2001 From: adbridge Date: Tue, 18 Sep 2018 10:48:14 +0100 Subject: [PATCH 3/6] Updating mbed-os to mbed-os-5.10.0-rc3 --- NFC_EEPROM/mbed-os.lib | 2 +- NFC_SmartPoster/mbed-os.lib | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/NFC_EEPROM/mbed-os.lib b/NFC_EEPROM/mbed-os.lib index a8d3a37..53a35da 100644 --- a/NFC_EEPROM/mbed-os.lib +++ b/NFC_EEPROM/mbed-os.lib @@ -1 +1 @@ -https://github.com/ARMmbed/mbed-os/#dd2d15979665a3d70b18cf722ca91caf4e4ee523 +https://github.com/ARMmbed/mbed-os/#610e35ddc6d59f153173c1e7b2748cf96d6c9bcd diff --git a/NFC_SmartPoster/mbed-os.lib b/NFC_SmartPoster/mbed-os.lib index a8d3a37..53a35da 100644 --- a/NFC_SmartPoster/mbed-os.lib +++ b/NFC_SmartPoster/mbed-os.lib @@ -1 +1 @@ -https://github.com/ARMmbed/mbed-os/#dd2d15979665a3d70b18cf722ca91caf4e4ee523 +https://github.com/ARMmbed/mbed-os/#610e35ddc6d59f153173c1e7b2748cf96d6c9bcd From 7b97a1bd594621d22ed2679ae7e97e2b0cadb58b Mon Sep 17 00:00:00 2001 From: Vincent Coubard Date: Fri, 21 Sep 2018 17:01:07 +0100 Subject: [PATCH 4/6] README: remove mention of serial as traces have been removed. --- NFC_SmartPoster/README.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/NFC_SmartPoster/README.md b/NFC_SmartPoster/README.md index 561fc50..b9dcd95 100644 --- a/NFC_SmartPoster/README.md +++ b/NFC_SmartPoster/README.md @@ -14,10 +14,6 @@ The smart poster record generated contains: Verification of the sample application can be seen on any a smartphone with an NFC reader. After running you will be able to read the tag with an NFC tag reader application. -Information about activity is also printed over the serial connection - please have a client open. You may use: - -- [Tera Term](https://ttssh2.osdn.jp/index.html.en) - This example is known to work on boards connected to a PN512 shield. ## Building instructions From 3ca2b87f8687d1d4b2b4cb752a18a021e48b4545 Mon Sep 17 00:00:00 2001 From: Vincent Coubard Date: Fri, 21 Sep 2018 17:02:50 +0100 Subject: [PATCH 5/6] README: mention EEPROM example doesn't work with IAR. --- NFC_EEPROM/README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/NFC_EEPROM/README.md b/NFC_EEPROM/README.md index 49ffbcf..4b69c58 100644 --- a/NFC_EEPROM/README.md +++ b/NFC_EEPROM/README.md @@ -54,3 +54,6 @@ Run the build: mbed compile -t -m ``` +# Known issues + +* This example doesn't work with IAR 7.80. \ No newline at end of file From c66e513b64024e651e93d7d140820ca29ed1ceba Mon Sep 17 00:00:00 2001 From: Vincent Coubard Date: Fri, 21 Sep 2018 17:10:07 +0100 Subject: [PATCH 6/6] README: Add main readme. --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..3ae0253 --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +# Mbed OS NFC examples + +This repository contains all Mbed OS NFC examples actively developped and maintained by the Mbed OS team. + + +# Known issues + +The repository is not meant to be imported directly inside the Mbed online compiler. To import one example inside the online compiler, go to https://os.mbed.com/teams/mbed-os-examples/ and import from here the NFC example of your choice.