Page 1 of 1

Change the RAM_CACHE_SIZE

Posted: Tue Jan 22, 2019 11:13 am
by ivanovitch.slv
Hi all,

I got a strange error after change the variable RAM_CACHE_SIZE (telelogger.ino) to any value different from 1024. I run freematics v5.

My OBD polling has 27 PIDs

ID_POLLING_INFO obdData[]= {
{PID_SPEED, 1},
{PID_ETHANOL_FUEL, 1},
{PID_RPM, 1},
{PID_THROTTLE, 1},
{PID_ENGINE_LOAD, 1},
{PID_SHORT_TERM_FUEL_TRIM_1, 1},
{PID_LONG_TERM_FUEL_TRIM_1, 1},
{PID_INTAKE_MAP, 1},
{PID_MAF_FLOW, 1},
{PID_FUEL_LEVEL, 1},
{PID_CATALYST_TEMP_B1S1, 1},
{PID_CATALYST_TEMP_B2S1, 1},
{PID_CATALYST_TEMP_B1S2, 1},
{PID_CATALYST_TEMP_B2S2, 1},
{PID_ETHANOL_FUEL, 1},
{PID_CONTROL_MODULE_VOLTAGE, 1},
{PID_RELATIVE_THROTTLE_POS, 1},
{PID_ABSOLUTE_ENGINE_LOAD, 1},
{PID_AIR_FUEL_EQUIV_RATIO, 1},
{PID_AMBIENT_TEMP, 1},
{PID_ABSOLUTE_THROTTLE_POS_B, 1},
{PID_ACC_PEDAL_POS_D, 1},
{PID_ACC_PEDAL_POS_E, 1},
{PID_COMMANDED_THROTTLE_ACTUATOR, 1},
{PID_TIMING_ADVANCE, 1},
{PID_COOLANT_TEMP, 1},
{PID_INTAKE_TEMP, 1},
};

Thus, the default value of RAM_CACHE_SIZE 1024 is not enough to send all information. After change this value to 2048 a got strange errors in Server ("UDP data checksum mismatch").

1460 bytes from 192.168.1.16 | UDP data checksum mismatch
E5910SGS#0:26910,10D:50,152:0,10C:1000,111:20,104:49,106:-100,107:-100,10B:100,110:80,12F:74,13C:-40,13D:-40,13E:-40,13F:-40,152:0,142:0,145:0,143:0,144:0,146:25,147:0,149:0,14A:0,14C:0,10E:-64,105:90,10F:20,20:0;0;0,24:1233,0:27488,10D:50,152:0,10C:1000,111:20,104:49,106:-100,107:-100,10B:100,110:80,12F:74,13C:-40,13D:-40,13E:-40,13F:-40,152:0,142:0,145:0,143:0,144:0,146:25,147:0,149:0,14A:0,14C:0,10E:-64,105:90,10F:20,20:0;0;0,24:1237,0:28072,10D:50,152:0,10C:1000,111:20,104:49,106:-100,107:-100,10B:100,110:80,12F:74,13C:-40,13D:-40,13E:-40,13F:-40,152:0,142:0,145:0,143:0,144:0,146:25,147:0,149:0,14A:0,14C:0,10E:-64,105:90,10F:20,20:0;0;0,24:1236,0:28655,10D:50,152:0,10C:1000,111:20,104:49,106:-100,107:-100,10B:100,110:80,12F:74,13C:-40,13D:-40,13E:-40,13F:-40,152:0,142:0,145:0,143:0,144:0,146:25,147:0,149:0,14A:0,14C:0,10E:-64,105:90,10F:20,20:1;-1;0,24:1236,0:29293,10D:50,152:0,10C:1000,111:20,104:49,106:-100,107:-100,10B:100,110:80,12F:74,13C:-40,13D:-40,13E:-40,13F:-40,152:0,142:0,145:0,143:0,144:0,146:25,147:0,149:0,14A:0,14C:0,10E:-64,105:90,10F:20,20:-1;1;0,24:1235,0:29871,10D:50,152:0,10C:1000,111:20,104:49,106:-100,107:-100,10B:100,110:80,12F:74,13C:-40,13D:-40,13E:-40,13F:-40,152:0,142:0,145:0,143:0,144:0,146:25,147:0,149:0,14A:0,14C:0,10E:-64,105:90,10F:20,20:1;-1;0,24:1236,0:30447,10D:50,152:0,10C:1000,111:20,104:49,106:-100,107:-100,10B:100,110:80,12F:74,13C:-40,13D:-40,13E:-40,13F:-40,152:0,142:0,145:0,143:0,144:0,146:25

Thanks everyone in advance.