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 Doug Anson

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.

/media/uploads/mbedAustin/rfidboard_-8-.small.jpg

/media/uploads/mbedAustin/rfidboard_-9-.small.jpg

Revision:
0:df2aa79c64f2
Child:
1:5c7d6b24a773
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Definitions.h	Sat Aug 23 20:17:18 2014 +0000
@@ -0,0 +1,63 @@
+/* Copyright C2014 ARM, MIT License
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
+ * and associated documentation files the "Software", to deal in the Software without restriction,
+ * including without limitation the rights to use, copy, modify, merge, publish, distribute,
+ * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all copies or
+ * substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
+ * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
+ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+ 
+ #ifndef _DEFINITIONS_H_
+ #define _DEFINITIONS_H_
+ 
+ // Include mbed 
+ #include "mbed.h"
+ 
+ // Our App version
+ #define APP_VERSION              "1.0.0"
+ 
+ // My Salesforce APEX host for case generation
+ #define MY_SF_HOST               "danson.na17.force.com"
+ 
+ // My Salesforce APEX case resource path
+ #define MY_APEX_CASE_RESOURCE     "/services/apexrest/CaseService"
+ 
+ // Buffer length for HTTPS requests
+ #define BUFFER_LENGTH             256
+ 
+ // maximum log message length
+ #define MAX_LOG_MESSAGE           128
+ 
+ // What platform we are compiling on
+ #define _NXP_PLATFORM             true
+ 
+ // Wait Time for iterations (ms)
+ #define WAIT_TIME_MS              500
+ 
+ // Tunables for WidgetDB
+ #define MAX_NAME_LENGTH           64
+ #define MAX_DESCRIPTION_LENGTH    128
+ #define MAX_NUM_WIDGETS           2
+ 
+ // convenience definitions for WidgetDB... 2 RFIDs/station  
+ #define FIRST_WIDGET              0
+ #define SECOND_WIDGET             1
+ 
+ #define FIRST_WIDGET_RFID         0123345
+ #define FIRST_WIDGET_NAME         "WizBang Thingy"
+ #define FIRST_WIDGET_DESCRIPTION  "Neutron De-nebulizer"
+ 
+ #define SECOND_WIDGET_RFID        6789012
+ #define SECOND_WIDGET_NAME        "OddStrange Thingy"
+ #define SECOND_WIDGET_DESCRIPTION "Colorizing Tenderizer"
+ 
+ #endif // _DEFINITIONS_H_
\ No newline at end of file