Difference between revisions of "Component: OBD2 ECU (Server) (Misc)"
From Flowcode Help
Jump to navigationJump to search| (One intermediate revision by the same user not shown) | |||
| Line 17: | Line 17: | ||
| ==Component Source Code== | ==Component Source Code== | ||
| − | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/ | + | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_OBD2_ECU.fcfx FC_Comp_Source_OBD2_ECU.fcfx] | 
| − | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/ | + | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_OBD2_ECU.fcfx FC_Comp_Source_OBD2_ECU.fcfx] | 
| ==Detailed description== | ==Detailed description== | ||
| Line 61: | Line 61: | ||
| ''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
| + | |||
| + | |||
| + | |||
| + | |||
| Line 367: | Line 371: | ||
| | width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
| |} | |} | ||
| − | |||
| − | |||
Latest revision as of 13:12, 7 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 DTC_Add
- 5.2 DTC_Clear
- 5.3 DTC_Count
- 5.4 DTC_Get
- 5.5 FlushBuffer
- 5.6 GetByte
- 5.7 GetNumberBytes
- 5.8 Initialise
- 5.9 Process
- 5.10 Set_ECU_Name
- 5.11 Set_Engine_Coolant_Temperature
- 5.12 Set_Engine_Load
- 5.13 Set_Engine_Speed
- 5.14 Set_MAF_Rate
- 5.15 Set_Throttle_Position
- 5.16 Set_VIN
- 5.17 Set_Vehicle_Speed
 
- 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
DTC_Add
DTC_Clear
|   | DTC_Clear | 
| Clears the DTC store | |
|  - VOID | Return | 
DTC_Count
|   | DTC_Count | 
| Returns the number of stored DTCs | |
|  - UINT | Return | 
DTC_Get
|   | DTC_Get | 
| Get the DTC from the store at Index | |
|  - UINT | Index | 
|  - STRING | Return | 
FlushBuffer
|   | FlushBuffer | 
| Clears the contents of the buffer and re-initialises the index locations. | |
|  - VOID | Return | 
GetByte
|   | GetByte | 
| Reads the next available byte from the circular buffer, Returns 255 if the buffer is empty. | |
|  - UINT | Return | 
GetNumberBytes
|   | GetNumberBytes | 
| Returns the number of valid data bytes currently inside the buffer. | |
|  - UINT | Return | 
Initialise
|   | Initialise | 
| Initialise the CAN network | |
|  - BYTE | Return | 
Process
|   | Process | 
| Does the message processing. Call this often. | |
|  - UINT | TimeElapsed | 
| Time elapsed since last call, in mS. Can be zero for frequent calling. | |
|  - BYTE | Return | 
Set_ECU_Name
|   | Set_ECU_Name | 
| Set the ECU Name | |
|  - STRING | Name | 
|  - VOID | Return | 
Set_Engine_Coolant_Temperature
|   | Set_Engine_Coolant_Temperature | 
| -40 to 215 (deg C) | |
|  - FLOAT | Value | 
| Value range -40 to 215 deg C | |
|  - VOID | Return | 
Set_Engine_Load
|   | Set_Engine_Load | 
| 0 to 100 (%) | |
|  - FLOAT | Value | 
| Speed in RPM | |
|  - VOID | Return | 
Set_Engine_Speed
|   | Set_Engine_Speed | 
| 0 to 16,383.75 (rpm) | |
|  - FLOAT | Value | 
| Speed in RPM | |
|  - VOID | Return | 
Set_MAF_Rate
|   | Set_MAF_Rate | 
| 0 to 655.35 grams/sec | |
|  - FLOAT | Value | 
| MAF air flow rate in grams/sec | |
|  - VOID | Return | 
Set_Throttle_Position
|   | Set_Throttle_Position | 
| 0 - 100 (%) | |
|  - FLOAT | Value | 
| Position value as a percentage (0 - 100%) | |
|  - VOID | Return | 
Set_VIN
|   | Set_VIN | 
| Set the 17 character VIN | |
|  - STRING | VIN | 
|  - VOID | Return | 
Set_Vehicle_Speed
|   | Set_Vehicle_Speed | 
| 0 - 255 (km/h) | |
|  - FLOAT | Value | 
| Speed in RPM | |
|  - VOID | Return | 







