Difference between revisions of "Component: OBD2 ECU (Server) (Misc)"
From Flowcode Help
Jump to navigationJump to search| Line 61: | Line 61: | ||
''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
| + | |||
| + | |||
| Line 67: | Line 69: | ||
==Macro reference== | ==Macro reference== | ||
| + | ===Set_VIN=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 85: | Line 88: | ||
| + | ===Set_Engine_Speed=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 103: | Line 107: | ||
| + | ===Set_Engine_Coolant_Temperature=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 121: | Line 126: | ||
| + | ===Process=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 139: | Line 145: | ||
| + | ===DTC_Clear=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 152: | Line 159: | ||
| + | ===DTC_Get=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 170: | Line 178: | ||
| + | ===DTC_Count=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 183: | Line 192: | ||
| + | ===Set_ECU_Name=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 201: | Line 211: | ||
| + | ===GetNumberBytes=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 214: | Line 225: | ||
| + | ===Set_Vehicle_Speed=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 232: | Line 244: | ||
| + | ===Set_MAF_Rate=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 250: | Line 263: | ||
| + | ===Set_Engine_Load=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 268: | Line 282: | ||
| + | ===DTC_Add=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 291: | Line 306: | ||
| + | ===GetByte=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 304: | Line 320: | ||
| + | ===Set_Throttle_Position=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 322: | Line 339: | ||
| + | ===FlushBuffer=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 335: | Line 353: | ||
| + | ===Initialise=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Revision as of 11:51, 3 February 2023
| Author | |
| Version | 1.0 |
| Category | Misc |
Contents
- 1 OBD2 ECU (Server) component
- 2 Component Source Code
- 3 Detailed description
- 4 Examples
- 5 Macro reference
- 5.1 Set_VIN
- 5.2 Set_Engine_Speed
- 5.3 Set_Engine_Coolant_Temperature
- 5.4 Process
- 5.5 DTC_Clear
- 5.6 DTC_Get
- 5.7 DTC_Count
- 5.8 Set_ECU_Name
- 5.9 GetNumberBytes
- 5.10 Set_Vehicle_Speed
- 5.11 Set_MAF_Rate
- 5.12 Set_Engine_Load
- 5.13 DTC_Add
- 5.14 GetByte
- 5.15 Set_Throttle_Position
- 5.16 FlushBuffer
- 5.17 Initialise
- 6 Property reference
OBD2 ECU (Server) component
Implements an ECU side OBD-II server
Component Source Code
Please click here to download the component source project: FC_Comp_Source_OBD2_ECU.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_OBD2_ECU.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
Set_VIN
| Set_VIN | |
| Set the 17 character VIN | |
| VIN | |
| Return | |
Set_Engine_Speed
| Set_Engine_Speed | |
| 0 to 16,383.75 (rpm) | |
| Value | |
| Speed in RPM | |
| Return | |
Set_Engine_Coolant_Temperature
| Set_Engine_Coolant_Temperature | |
| -40 to 215 (deg C) | |
| Value | |
| Value range -40 to 215 deg C | |
| Return | |
Process
| 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
| DTC_Clear | |
| Clears the DTC store | |
| Return | |
DTC_Get
| DTC_Get | |
| Get the DTC from the store at Index | |
| Index | |
| Return | |
DTC_Count
| DTC_Count | |
| Returns the number of stored DTCs | |
| Return | |
Set_ECU_Name
| Set_ECU_Name | |
| Set the ECU Name | |
| Name | |
| Return | |
GetNumberBytes
| GetNumberBytes | |
| Returns the number of valid data bytes currently inside the buffer. | |
| Return | |
Set_Vehicle_Speed
| Set_Vehicle_Speed | |
| 0 - 255 (km/h) | |
| Value | |
| Speed in RPM | |
| Return | |
Set_MAF_Rate
| Set_MAF_Rate | |
| 0 to 655.35 grams/sec | |
| Value | |
| MAF air flow rate in grams/sec | |
| Return | |
Set_Engine_Load
| Set_Engine_Load | |
| 0 to 100 (%) | |
| Value | |
| Speed in RPM | |
| Return | |
DTC_Add
GetByte
| GetByte | |
| Reads the next available byte from the circular buffer, Returns 255 if the buffer is empty. | |
| Return | |
Set_Throttle_Position
| Set_Throttle_Position | |
| 0 - 100 (%) | |
| Value | |
| Position value as a percentage (0 - 100%) | |
| Return | |
FlushBuffer
| FlushBuffer | |
| Clears the contents of the buffer and re-initialises the index locations. | |
| Return | |
Initialise
| Initialise | |
| Initialise the CAN network | |
| Return | |