Dummy Lora Packet Sending

Fork of Dealer_18feb17 by kumar singh

Revision:
11:77e595130230
diff -r dc33cd3f4eb9 -r 77e595130230 OBD.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/OBD.h	Fri Jan 27 18:30:02 2017 +0000
@@ -0,0 +1,24 @@
+ #include "mbed.h"
+ #include "rtos.h"
+ #include "Common_Defs.h"
+ 
+  #define RESET_OBD_DEVICE          "ATZ\r"
+  #define READ_BATTERY_VOLTAGE      "ATRV\r"
+  #define READ_ENGINE_RPM           "010c\r"
+  #define READ_VEHICLE_SPEED        "010D\r"
+  
+ //This is a character buffer that will store the data from the serial port
+ extern char OBD_RxData[30];
+ extern char OBD_RxIndex;
+ //Variables to hold the speed and RPM data.
+ extern int vehicleSpeed;
+ extern int vehicleRPM;
+ extern char Battery_Voltage[6];
+ void Initialize_OBD(void);
+ void Get_OBD_Response(void);
+ uint16 Calculate_Wheels_RPM(uint8* Buffer);
+ void flushSerialBuffer(void);
+ void Get_Vehicle_RPM(void);
+ void Get_Vehicle_Speed(void);
+ void Get_Battery_Voltage(void);
+ void OBD_Rcvd_Cmd_Processing_thread(void const *args);
\ No newline at end of file