Dreamforce 2014 Workshop Exercise - RFID Case Generator
Dependencies: BufferedSerial C12832 EndpointMain-rfid EthernetInterface Logger StatusReporter-df2014 mbed-rtos mbed
Fork of df-2014-workshop-rfid-case-generator-k64f by
Overview
This code demonstrates how to use the mbed platform with a ID-12LA RFID reader and a Freescale K64F to get data into the SalesForce cloud.
This project was generated as a workshop for DreamForce 2014..
Details
The 2014 DreamForce workshop centers around an example scenario where you, as a street light technician, will "check in" to a given street light to service it. The street lights in this example are intelligent - they are connected, have knowledge about who/what they are, and in this example, contain an RFID sensor to allow technicians to "check in" during a service event.
The purpose of the workshop exercise is to provide exposure to new developers that the mbed IDE and development environment/ecosystem is very simple and easy to setup and use. Additionally, the workshop highlights that mbed devices can directly interact with SalesForce. The slides for the workshop can be found here.
For more information about the mbed SalesForce Interface API and its use, please see: http://developer.mbed.org/teams/MBED_DEMOS/code/SalesforceInterface/
Pretty Pictures
For the workshop the mbed team designed breakout boards to connect the ID12LA to the Freescale K64F for ease of use. Pictures of the boards can be found below. If you are interested in the breakout board you can order one from the OSHPark project page or use the eagle or gerber files as you see fit.
The ID-12LA sockets onto the RFID Brekout Board which then is put onto the Freescale K64F.
Revision 22:1b9e29933ab3, committed 2014-08-29
- Comitter:
- ansond
- Date:
- Fri Aug 29 19:24:19 2014 +0000
- Parent:
- 21:579d99612e16
- Child:
- 23:3632b2578c74
- Commit message:
- updates for K64F support
Changed in this revision
--- a/Definitions.h Fri Aug 29 04:48:42 2014 +0000 +++ b/Definitions.h Fri Aug 29 19:24:19 2014 +0000 @@ -54,6 +54,8 @@ // What platform we are compiling on #define _NXP_PLATFORM true + #define _UBLOX_PLATFORM false + #define _K64F_PLATFORM false // Wait Time for iterations (ms) #define WAIT_TIME_MS 500 @@ -71,4 +73,18 @@ #define SECOND_WIDGET 1 #define THIRD_WIDGET 2 + // PINS for RFID Reader + #if _NXP_PLATFORM + #define RFID_TX_PIN p13 + #define RFID_RX_PIN p14 + #endif + #if _UBLOX_PLATFORM + #define RFID_TX_PIN p13 + #define RFID_RX_PIN p14 + #endif + #if _K64F_PLATFORM + #define RFID_TX_PIN PTC17 + #define RFID_RX_PIN PTC16 + #endif + #endif // _DEFINITIONS_H_ \ No newline at end of file
--- a/ErrorHandler.lib Fri Aug 29 04:48:42 2014 +0000 +++ b/ErrorHandler.lib Fri Aug 29 19:24:19 2014 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/ansond/code/ErrorHandler/#8d42444464d3 +http://mbed.org/users/ansond/code/ErrorHandler/#e771ffdf5c1b
--- a/StatusReporter.lib Fri Aug 29 04:48:42 2014 +0000 +++ b/StatusReporter.lib Fri Aug 29 19:24:19 2014 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/ansond/code/StatusReporter/#763c7a27e77a +http://mbed.org/users/ansond/code/StatusReporter/#58e8346fc05c
--- a/main.cpp Fri Aug 29 04:48:42 2014 +0000 +++ b/main.cpp Fri Aug 29 19:24:19 2014 +0000 @@ -18,10 +18,12 @@ // StatusReporter #include "StatusReporter.h" - - // our LCD Panel - #include "C12832_lcd.h" - C12832_LCD lcd; + + // appboard LCD Panel + #if _NXP_PLATFORM || _UBLOX_PLATFORM + #include "C12832_lcd.h" + C12832_LCD lcd; + #endif // our Serial port #include "Serial.h" @@ -40,8 +42,13 @@ // Main Entry... int main() { - // create our object instances + // create our object instances +#if _NXP_PLATFORM || _UBLOX_PLATFORM ErrorHandler logger(&pc,&lcd); +#endif +#if _K64F_PLATFORM + ErrorHandler logger(&pc,NULL); +#endif // announce logger.log("ARM/DreamForce 2014 mbed Status Reporter v%s",APP_VERSION);