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.
Diff: Definitions.h
- Revision:
- 51:5cd56a48084a
- Parent:
- 50:6e6b8351ee60
- Child:
- 53:344e2d3de190
--- a/Definitions.h Wed Sep 24 19:09:45 2014 +0000 +++ b/Definitions.h Fri Sep 26 04:35:26 2014 +0000 @@ -57,19 +57,21 @@ // Enable/Disable RFID ID12 usage #define ID12_ENABLE true // true - enable, false - disable - // maximum memory buffer chunk (including HTTPS requests) - #define MAX_BUFFER_LENGTH 512 - + // Enable/Disable verbose debugging + #define ENABLE_DEBUG_LOGGING false // true - enabled, false - disabled (default) + + // maximum memory buffer chunk + #define MAX_BUFFER_LENGTH 2048 + + // small buffer chunk + #define MAX_SMALL_BUFFER_LENGTH 256 + // What platform we are compiling on - #define _NXP_PLATFORM false - #define _UBLOX_PLATFORM false #define _K64F_PLATFORM true // K64F needs to launch the task in a thread with a large stack size... - #if _K64F_PLATFORM - #define STACK_SIZE 40000 - #endif - + #define STACK_SIZE 40000 + // Wait Time for iterations (ms) #define WAIT_TIME_MS 500 @@ -89,20 +91,8 @@ #define THIRD_REPORT 2 // PINS for RFID Reader - #if _NXP_PLATFORM - #define RFID_TX_PIN p13 - #define RFID_RX_PIN p14 - #define TEMP_PIN p15 - #endif - #if _UBLOX_PLATFORM - #define RFID_TX_PIN D1 - #define RFID_RX_PIN D0 - #define TEMP_PIN A3 - #endif - #if _K64F_PLATFORM - #define RFID_TX_PIN D1 - #define RFID_RX_PIN D0 - #define TEMP_PIN A3 - #endif + #define RFID_TX_PIN D1 + #define RFID_RX_PIN D0 + #define TEMP_PIN A3 #endif // _DEFINITIONS_H_ \ No newline at end of file