Trailer Parameters Script
Version | V5.1 |
Script name | BCE_SCEN_Trailer_Parameters_250_V5.3 BCE_SCEN_Trailer_Parameters_125_V5.3 BCE_SCEN_Trailer_Parameters_250_V5.3 Knorr BCE_SCEN_Trailer_Parameters_250_Minimal_Parameters_V1.2 BCE_SCEN_Trailer_Parameters_125_Minimal_Parameters_V1.2 |
Last updated | 2020-06-02 |
Revision information | V2 Fixed problem with VIN reading V3 Fixed problems with CAN2 reinitialization with can base b on CAN1 V4 Added new parameters V5 Fixed problem with trailer wheel speed, Odometer reading V5.2 (Minimal_Parameters_V1.2) Fixed bug with VIN sensor sending only 16 letters |
Sensor - data to publish to broker.
Setting - user configurable settings.
Script Description
Script is available for SDK devices.
Script listens for trailers data sent on trailers CAN-BUS in truck and saves them to user selected sensors. More than 30 parameters, like VIN, axle load weight, axle sum load weight, brake pressure, abs statuses and etc. can be read, but not all trailers support all parameters.
IMPORTANT: most trailers send only 6-7 bytes of VIN, very rarely some trailers might send full 17 digits length VIN
BCE_SCEN_Trailer_Parameters_125_V5.2 - Script should be used if connecting to trailer CAN bus in truck.
BCE_SCEN_Trailer_Parameters_250_V5.2 - Script should be used if connecting to trailer diagnostic CAN bus.
BCE_SCEN_Trailer_Parameters_125_Minimal_Parameters_V1.2 - Script should be used if connecting to trailer CAN bus in truck. Sends only Read_Trailer_VIN, Read_Axle_Load_Sum, Read_ABS_Light_Signal, Read_Trailer_Odometer, Read_Brake_Lining_Status parameters.
BCE_SCEN_Trailer_Parameters_250_Minimal_Parameters_V1.2 - Script should be used if connecting to trailer diagnostic CAN bus. Sends only Read_Trailer_VIN, Read_Axle_Load_Sum, Read_ABS_Light_Signal, Read_Trailer_Odometer, Read_Brake_Lining_Status parameters.
Configuration
Table 1. Sensor and settings descriptions.
Nr. | Sensor name | Type | Description |
1. | CAN connection | Setting | Select which physical CAN connection is used. |
2. | Read specific axle load No.1 | Setting | Select which specific axle weight is needed. |
3. | Store specific axle load No.1 to: | Sensor | Select sensor to store specific axle (chosen above) weight. |
4. | Read specific axle load No.2 | Setting | Select which specific axle weight is needed. |
5. | Store specific axle load No.2 to: | Sensor | Select sensor to store specific axle (chosen above) weight. |
6. | Read specific axle load No.3 | Setting | Select which specific axle weight is needed. |
7. | Store specific axle load No.3 to: | Sensor | Select sensor to store specific axle (chosen above) weight. |
8. | Save Axle sum weight to: | Sensor | Select sensor to store all axles sum weight |
9. | Trailer Speed | Sensor | Select sensor to store trailer speed |
10. | Tire identification | Sensor | Select sensor to store tire identification |
11. | Tire pressure | Sensor | Select sensor to store tire pressure |
12. | Brake supply pneumatic pressure | Sensor | Select sensor to store brake supply pneumatic pressure |
13. | Wheel identification | Sensor | Select sensor to store wheel identification |
14. | Brake lining | Sensor | Select sensor to store brake lining |
15. | Relative brake demand front or left | Sensor | Select sensor to store Relative brake demand front or left |
16. | Relative brake demand rear or right | Sensor | Select sensor to store Relative brake demand rear or right |
17. | Retarder relative torque | Sensor | Select sensor to store Retarder relative torque |
18. | Park brake demand | Sensor | Select sensor to store Park brake demand |
19. | Service brake demand | Sensor | Select sensor to store Service brake demand |
20. | Trailer VIN | Sensor | Select sensor to store trailers VIN |
21. | Wheel identification for Brake temp | Sensor | Select sensor to store Wheel identification for Brake temp |
22. | Brake temperature | Sensor | Select sensor to store Brake temperature |
23. | Brake cylinder pressure First axle - Left | Sensor | Select sensor to store Brake cylinder pressure First axle - Left |
24. | Brake cylinder pressure First axle - Right | Sensor | Select sensor to store Brake cylinder pressure First axle - Right |
25. | Brake cylinder pressure Second axle - Left | Sensor | Select sensor to store Brake cylinder pressure Second axle - Left |
26. | Brake cylinder pressure Second axle - Right | Sensor | Select sensor to store Brake cylinder pressure Second axle - Right |
27. | Brake cylinder pressure Third axle - Left | Sensor | Select sensor to store Brake cylinder pressure Third axle - Left |
28. | Brake cylinder pressure Third axle - Right | Sensor | Select sensor to store Brake cylinder pressure Third axle - Right |
29. | P21 Output pressure | Sensor | Select sensor to store P21 Output pressure |
30. | P22 Output pressure | Sensor | Select sensor to store P22 Output pressure |
31. | P2/23 Output pressure | Sensor | Select sensor to store P2/23 Output pressure |
32. | P CAN ISO11992 - demand | Sensor | Select sensor to store P CAN ISO11992 - demand |
33. | P4 (Yellow line) pressure | Sensor | Select sensor to store P4 (Yellow line) pressure |
34 | ABS warning light | Sensor | Select sensor to store ABS warning light |
35. | Trailer Odometer | Sensor | Select sensor to store Trailer odometer value |
36. | Brake lining status | Sensor | Select sensor to store Brake lining status |
37. | Tire temperature | Sensor | Select sensor to store Tire temperature |
38. | Wheel Speed difference main axle | Sensor | Select sensor to store Wheel Speed difference main axle |
Configuration example in FmSet:
Also in FmSet settings template configuration go to Hardware, then select which physical CAN you are using, then CAN function ID > CAN function and select script access.
Script already tested on
EBS systems:
Haldex 2nd gen
Haldex 3rd gen
Knorr-Bremse G2.0, G2.1, G2.2
Wabco TEBS E Premium
Trucks:
DAF XF 2013+
MAN TGX 2008+
MB MP 2-3
MB MP4 2012-2019
SCANIA G-SERIES 2004-2018+
SCANIA P-SERIES 2004-2018+
SCANIA R-SERIES 2004-2018+
VOLVO FH 2008-2012
Trailers:
Schmitz Cargo Bull MY2018
Troubleshooting/Error Codes
If sensor value is sent 65 534, that means trailer broadcasts messages that should hold needed parameters, but trailer doesn’t support that parameter and nothing can be done.
If sensor value is sent 65535, that means messages isn’t broadcasted on CAN BUS. For this instance check:
if CAN wiring to S-CAN is correct
if S-CAN is placed on right CAN BUS line in truck
if correct CAN is selected in device configuration
update firmware to newest version
3. If device is connected directly to trailers EBS block, but you don’t receive telemetry parameters (or you are receiving only brake parameters, but no abs statuses, axle weights), CAN bus dump should be made. After module updates to new settings template with CAN dump read ACK setting set it will take about 3 min. if trailer is moving. If dump you takes below 20kB of space there is a 90% chance, that trailer EBS block is not programmed to send telemetry data.
4. If using Wialon you are getting a lot of parameters, but VIN and ABS status sensors show “--“, first check in raw data and if there you see VIN and ABS statuses sent, go to unit properties>sensors>(yours created trailer vin sensor) and check if “Text parameters“ is checked.
5. If any of values sent seem illogical contact support, it will be looked into.
Connection
Two options for getting trailers data is available:
1.Connecting device inside trucks cabin to trailer CAN Bus.
2.Connecting device to trailers CAN Bus diagnostic port on trailer itself.
First option if device is connected to trailers CAN bus inside truck, it must be connected using S-CAN Wireless Reader. For in truck connection schematics contact Xirgo Global support. Schematics already available for:
DAF XF 2013+
MAN TGX 2008+
MB MP2-3
MB MP4 2012-2019
MB MP4 2012+
SCANIA G SERIES 2004-2018
SCANIA P SERIES 2004-2018
SCANIA R SERIES 2004-2018
VOLVO FH 2008-2012
Second option connecting device to trailers diagnostic CAN bus ON THE TRAILER ITSELF official diagnostic devices might be needed to turn on telematics data functionality on EBS block.
Wabco
Connect wabco diagnostic device. In ECU Data section check what is ecu type is specified next to ECU type:. Then click Setting parameters for the EBS system. Then go to (4) Standard functions tab.
- If the ecu type is Standard, go to Subsystem section and tick the Telematic system (TS) checkbox. Then go to (11) Connector tab. In Subsystems section drop-down list select Telematics (Pin 5 2 3).
-If the ecu type is Premium, go to Standard functions section and tick the Telematic system GIO5 (DIAG) checkbox. Then go to (11) Connector tab. In GIO5 drop-down list select Diagnostics/Telematics (Pin 1 3 4). Done!
Connection to EBS block:
SOME TRAILERS MIGHT HAVE DIAGNOSTIC CONNECTION MOUNTED ON THE SIDE OR BACK OF TRAILER ITSELF!
Else following connectors must be used:
-For Standard EBS ECU - part.no 449 907 010 0 - Subsystem 8-pin code C blue cable
For telematics data need to connect to Subsystems connector using cable listed above.
Connectors pins:
5 pin Power
4 pin GND
3 pin CAN-L
2 pin CAN-H
Wabco standard EBS ECU - Front view
-For Premium EBS ECU - part.no 449 610 XXX X - GIO5 4-pin Code B cable
For telematics data need to connect to GIO5 connector using cable listed above.
Connectors pins:
1 pin Power
2 pin GND
3 pin CAN-H
4 pin CAN-L
Wabco Premium EBS block - Front view
2. Haldex
Connect official Haldex diagnostic device. Click Blue trailer icon. Online configuration and ECU programming window will pop up. Select Read Configuration Information From ECU, reading progress is displayed in green bar at the bottom of the window. When finished, select Edit ECU Parameters And Configuration. ECU Set Up window will pop up. Select Setup Aux Configuration data. Configuration window will pop up. Open CAN Bus tab and select TCAN (ISO on HCB), then click Send to File (save icon) button and click the OK button. On the next window click OK button again. Then in Online configuration and ECU programming select Select Program ECU With Current Configuration Information. Click OK in windows that will pop up and on confirmation window click Yes. The writing progress will be displayed in a green bar at the bottom of the window, when its done click OK, you will return to main window, where you started, there click Reset ECU button. EBS unit will now send telemetric data to DIAGN port, done!
Connection to EBS block:
SOME TRAILERS MIGHT HAVE DIAGNOSTIC CONNECTION MOUNTED ON THE SIDE OR BACK OF TRAILER ITSELF!
Else following connectors must be used:
part no. 814 037 001 (6.5 meter cable)
part no. 814 037 011 (0.5 meter cable)
part no. 814 037 021 (8 meter cable)
part no. 814 037 031 (14 meter cable)
part no. 814 037 041 (2.5 meter cable)
Either one of diagnostic connections can be used, connect using one of the cables listed above.
Original cable will have 4 wires:
Red - Power
Blue - GND
Yellow - CAN-L
Green - CAN-H
Haldex EBS block connections - Front view
3. Knorr-Bremse
Connect official Knorr-Bremse diagnostic device. In the main software window select Detect ECU…. In the pop up window press Launch, then click Yes and Continue. In new window select Change configuration, warning message should appear, just click Yes. In Configuration Wizard window bottom click Next until you reach the AUXIO settings. Configure PIN AUXIO1 in Type select Output, in Function name select V out, in Error detection select Solenoid/Bulb: Short circuit and in V avg[V] select 24V. Click OK, Configuration Wizard window will close. Then select Write to ECU. Done!
Connection to EBS block:
SOME TRAILERS MIGHT HAVE DIAGNOSTIC CONNECTION MOUNTED ON THE SIDE OR BACK OF TRAILER ITSELF!
Else following connectors should be used:
For G2.0 and G2.1 systems part no. K021345 or K021346 Or Deutsch 12-way B configuration female connector can be used
For G2.2 systems part no. K027861 (7 meter cable) or K027862 (15 meter cable) Or Deutsch 12-way A configuration female connector can be used
For telematics data should connect to In-Out connector using cables listed above.
Connectors pins:
1 pin +24 V
6 pin GND
9 pin CAN-L
10 pin CAN-H
Knorr-Bremse EBS block - Bottom view
Tire/wheel identification from identification code
Script sends three identification parameters:
1. Tires identification for tire pressure and temperature
2. Wheel identification for brake linings left and brake linings status
3. Wheel identification for brake temp
Below is wheel/tire identification schematics:
Below is an example how parameters are received in telematics system. For this example three sensors are highlighted: 16462 - tire identification, 16461 - tire pressure, 16437 - tire temperature (tire temperature is sent with 273 offset by standard). We can try and decode tire from first line: 231 - left side, third axle, first tire from center and its pressure is 950kPa (~9,5 bar or 138 psi), temperature is 15 (288-273) C (degrees celsius).
Possible, but not implemented parameters: vehicle ABS status, vehicle retarder control status, ASR brake control status, ASR engine control status, brake light switch status, vehicle type, VDC active, vehicle retarder control status, ROP system status, YC system status, trailer ROP system request, trailer YC system request, reverse gear status, emergency braking status, two electrical circuits brake demand status, ABS off-road request, pneumatic control line status, load proportional function installation status, road curvature, ride height request, level change request, front axle, level change request, rear axle, traction help (load transfer) request, lift axle 1 position request, lift axle 2 position request, steering axle locking request, ramp level request, level control request, ramp level storage request, stop level change request, ride height storage request, driven axle load (commercial vehicle), parking and trailer air pressure, auxiliary equipment supply pressure, lift axle 3 position request, lift axle 4 position request, lift axle 5 position request, ride height and ramp level set request, vehicle service brake status, automatic towed vehicle braking status, support of side or axle wise brake force distribution, retarder relative peak torque, lateral acceleration, vehicle electrical supply status, electrical supply of non-braking systems status, spring brake installation status, electrical load proportional function installation status, spring brake status, loading ramp approach assistance status, supply line braking, braking via electric control line support.