Component: OBD2 ECU (Server) (Misc)
From Flowcode Help
Jump to navigationJump to search
| Author | |
| Version | 1.0 |
| Category | Misc |
Contents
OBD2 ECU (Server) component
Implements an ECU side OBD-II server
Component Source Code
Please click here for the component source code: FC_Comp_Source_OBD2_ECU.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Downloadable macro reference
| Set_VIN | |
| Set the 17 character VIN | |
| VIN | |
| Return | |
| Set_Engine_Speed | |
| 0 to 16,383.75 (rpm) | |
| Value | |
| Speed in RPM | |
| Return | |
| Set_Engine_Coolant_Temperature | |
| -40 to 215 (deg C) | |
| Value | |
| Value range -40 to 215 deg C | |
| Return | |
| Process | |
| Does the message processing. Call this often. | |
| TimeElapsed | |
| Time elapsed since last call, in mS. Can be zero for frequent calling. | |
| Return | |
| DTC_Clear | |
| Clears the DTC store | |
| Return | |
| DTC_Get | |
| Get the DTC from the store at Index | |
| Index | |
| Return | |
| DTC_Count | |
| Returns the number of stored DTCs | |
| Return | |
| Set_ECU_Name | |
| Set the ECU Name | |
| Name | |
| Return | |
| GetNumberBytes | |
| Returns the number of valid data bytes currently inside the buffer. | |
| Return | |
| Set_Vehicle_Speed | |
| 0 - 255 (km/h) | |
| Value | |
| Speed in RPM | |
| Return | |
| Set_MAF_Rate | |
| 0 to 655.35 grams/sec | |
| Value | |
| MAF air flow rate in grams/sec | |
| Return | |
| Set_Engine_Load | |
| 0 to 100 (%) | |
| Value | |
| Speed in RPM | |
| Return | |
| GetByte | |
| Reads the next available byte from the circular buffer, Returns 255 if the buffer is empty. | |
| Return | |
| Set_Throttle_Position | |
| 0 - 100 (%) | |
| Value | |
| Position value as a percentage (0 - 100%) | |
| Return | |
| FlushBuffer | |
| Clears the contents of the buffer and re-initialises the index locations. | |
| Return | |
| Initialise | |
| Initialise the CAN network | |
| Return | |