kumar singh
/
Dealer_20Mar
BLE Transmitter not working
Fork of Dealer_23Feb by
OBD.h
- Committer:
- NarendraSingh
- Date:
- 2017-03-20
- Revision:
- 26:506380fccce2
- Parent:
- 11:77e595130230
File content as of revision 26:506380fccce2:
#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);