Code for Technion Formula car sensors reader

Dependencies:   mbed Buffer FATFileSystem

Fork of SX1272PingPong by Semtech

This is code is part of a Technion course project in advanced IoT, implementing a device to read and transmit sensors data from a Formula racing car built by students at Technion - Israel Institute of Technology.

How to install

  • Create an account on Mbed: https://os.mbed.com/account/signup/
  • Import project into Compiler
  • In the Program Workspace select "Formula_Nucleo_Reader"
  • Select a Platform like so:
  1. Click button at top-left
  2. Add Board
  3. Search "NUCLEO F103RB" and then "Add to your Mbed Compiler"
  • Finally click "Compile", if the build was successful, the binary would download automatically
  • To install it on device simply plug it in to a PC, open device drive and drag then drop binary file in it

Files at this revision

API Documentation at this revision

Comitter:
GregCr
Date:
Tue Sep 23 14:24:56 2014 +0000
Parent:
5:f2431c4fe3bb
Child:
7:c1bbd6c56979
Commit message:
minor change

Changed in this revision

SX1276Lib.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
main.h Show annotated file Show diff for this revision Revisions of this file
--- a/SX1276Lib.lib	Fri Sep 19 15:24:34 2014 +0000
+++ b/SX1276Lib.lib	Tue Sep 23 14:24:56 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/GregCr/code/SX1276Lib/#2b555111463f
+http://mbed.org/users/GregCr/code/SX1276Lib/#0fe3e0e8007b
--- a/main.cpp	Fri Sep 19 15:24:34 2014 +0000
+++ b/main.cpp	Tue Sep 23 14:24:56 2014 +0000
@@ -315,41 +315,41 @@
 
 void OnTxDone( void )
 {
-    debug_if( DEBUG_MESSAGE, "> OnTxDone\n\r", NULL );
     Radio.Sleep( );
     State = TX;
+    debug_if( DEBUG_MESSAGE, "> OnTxDone\n\r", NULL );
 }
 
 void OnRxDone( uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr)
 {
-    debug_if( DEBUG_MESSAGE, "> OnRxDone\n\r", NULL );
     Radio.Sleep( );
     BufferSize = size;
     memcpy( Buffer, payload, BufferSize );
     RssiValue = rssi;
     SnrValue = snr;
     State = RX;
+    debug_if( DEBUG_MESSAGE, "> OnRxDone\n\r", NULL );
 }
 
 void OnTxTimeout( void )
 {
-    debug_if( DEBUG_MESSAGE, "> OnTxTimeout\n\r", NULL );
     Radio.Sleep( );
     State = TX_TIMEOUT;
+    debug_if( DEBUG_MESSAGE, "> OnTxTimeout\n\r", NULL );
 }
 
 void OnRxTimeout( void )
 {
-    debug_if( DEBUG_MESSAGE, "> OnRxTimeout\n\r", NULL );
     Radio.Sleep( );
     Buffer[ BufferSize ] = 0;
     State = RX_TIMEOUT;
+    debug_if( DEBUG_MESSAGE, "> OnRxTimeout\n\r", NULL );
 }
 
 void OnRxError( void )
 {
-    debug_if( DEBUG_MESSAGE, "> OnRxError\n\r", NULL );
     Radio.Sleep( );
     State = RX_ERROR;
+    debug_if( DEBUG_MESSAGE, "> OnRxError\n\r", NULL );
 }
 
--- a/main.h	Fri Sep 19 15:24:34 2014 +0000
+++ b/main.h	Tue Sep 23 14:24:56 2014 +0000
@@ -4,9 +4,9 @@
  \____ \| ___ |    (_   _) ___ |/ ___)  _ \
  _____) ) ____| | | || |_| ____( (___| | | |
 (______/|_____)_|_|_| \__)_____)\____)_| |_|
-    �2013 Semtech
+    ( C )2014 Semtech
 
-Description: SX1276 FSK modem registers and bits definitions
+Description: Contains the callbacks for the IRQs and any application related details
 
 License: Revised BSD License, see LICENSE.TXT file include in the project