Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GM SENT ETB bench test in NJ #4688

Closed
rusefillc opened this issue Oct 20, 2022 · 23 comments
Closed

GM SENT ETB bench test in NJ #4688

rusefillc opened this issue Oct 20, 2022 · 23 comments

Comments

@rusefillc
Copy link
Contributor

Trying to get GM ETB with MRE in NJ

at the moment use master, MRE 0.6.0 with C54 removed

2022-10-20_14_53_50_590: EngineState: WARNING: Injector 2 fault: open_load 
2022-10-20_14_53_50_591: EngineState: WARNING: Injector 3 fault: open_load 
2022-10-20_14_53_58_648: EngineState: ---- SENT ch 0 ----
2022-10-20_14_53_58_648: EngineState: Unit time 272 timer ticks
2022-10-20_14_53_58_648: EngineState: Total pulses 1052358
2022-10-20_14_53_58_648: EngineState: Last fast msg Status 0x0 Sig0 0x000 Sig1 0x000
2022-10-20_14_53_58_649: EngineState: Slow channels:
2022-10-20_14_53_58_654: EngineState: Restarts 0
2022-10-20_14_53_58_655: EngineState: Interval errors 50 short, 862 long
2022-10-20_14_53_58_657: EngineState: Total frames 115302 with crc erorr 115302
2022-10-20_14_53_58_659: EngineState: Sync errors 50
2022-10-20_14_53_58_660: EngineState: --------------------
2022-10-20_14_53_58_661: EngineState: confirmation_sentinfo:8

@dron0gus
Copy link
Member

Good output:

2022-10-20_22_04_34_104: EngineState: confirmation_sentinfo:8
2022-10-20_22_05_08_337: EngineState: ---- SENT ch 0 ----
2022-10-20_22_05_08_338: EngineState: Unit time 275 timer ticks
2022-10-20_22_05_08_339: EngineState: Total pulses 65666
2022-10-20_22_05_08_339: EngineState: Last fast msg Status 0x0 Sig0 0x0C6 Sig1 0x0CB
2022-10-20_22_05_08_340: EngineState: Slow channels:
2022-10-20_22_05_08_340: EngineState: Restarts 1
2022-10-20_22_05_08_340: EngineState: Interval errors 21 short, 316 long
2022-10-20_22_05_08_340: EngineState: Total frames 6709 with crc erorr 6709
2022-10-20_22_05_08_341: EngineState: Sync errors 21
2022-10-20_22_05_08_341: EngineState: --------------------

@dron0gus
Copy link
Member

Definitely good output from fuel pressure sensor:

 2022-10-21_11_41_16_865: EngineState: ---- SENT ch 0 ----
2022-10-21_11_41_16_866: EngineState: Unit time 218 timer ticks
2022-10-21_11_41_16_866: EngineState: Total pulses 121848
2022-10-21_11_41_16_866: EngineState: Last fast msg Status 0xC Sig0 0x0C5 Sig1 0x0CB
2022-10-21_11_41_16_867: EngineState: Slow channels:
2022-10-21_11_41_16_867: EngineState:  ID 22: 714
2022-10-21_11_41_16_867: EngineState:  ID 16: 715
2022-10-21_11_41_16_868: EngineState: Restarts 0
2022-10-21_11_41_16_868: EngineState: Interval errors 119 short, 953 long
2022-10-21_11_41_16_868: EngineState: Total frames 11757 with crc erorr 38
2022-10-21_11_41_16_869: EngineState: Sync errors 119
2022-10-21_11_41_16_869: EngineState: --------------------
2022-10-21_11_41_16_870: EngineState: confirmation_sentinfo:8

@dron0gus
Copy link
Member

Fuel pressure waveform
20221021_114456

@dron0gus
Copy link
Member

ETB waveform
20221021_114704

@dron0gus
Copy link
Member

So this looks like "another" CRC. J7216 has defines "New" and "Legacy" CRC calculation methods.
Which one do we have implemented now?

@dron0gus
Copy link
Member

New CRC calculation compatible with GM ETB is implemented in #4692

@rusefillc
Copy link
Contributor Author

@dron0gus do you have CRC auto-detection or do you want a new configuration setting for CRC mode choice?

@rusefillc
Copy link
Contributor Author

rusefillc commented Oct 23, 2022

idle position "small" 12639457AA

2022-10-22_21_04_23_873: EngineState: ---- SENT ch 0 ----
2022-10-22_21_04_23_873: EngineState: Unit time 267 timer ticks
2022-10-22_21_04_23_874: EngineState: Total pulses 815553
2022-10-22_21_04_23_875: EngineState: Last fast msg Status 0x0 Sig0 0xADC Sig1 0x523
2022-10-22_21_04_23_879: EngineState: Restarts 0
2022-10-22_21_04_23_880: EngineState: Interval errors 91 short, 1223 long
2022-10-22_21_04_23_882: EngineState: Total frames 88313 with crc error 53 (0.060013816 %)
2022-10-22_21_04_23_884: EngineState: Sync errors 91
2022-10-22_21_04_23_888: EngineState: --------------------
2022-10-22_21_04_23_889: EngineState: confirmation_sentinfo:8
2022-10-22_21_04_25_184: EngineState: ---- SENT ch 0 ----
2022-10-22_21_04_25_184: EngineState: Unit time 267 timer ticks
2022-10-22_21_04_25_184: EngineState: Total pulses 833835
2022-10-22_21_04_25_185: EngineState: Last fast msg Status 0x0 Sig0 0xADD Sig1 0x522
2022-10-22_21_04_25_187: EngineState: Restarts 0
2022-10-22_21_04_25_191: EngineState: Interval errors 95 short, 1256 long
2022-10-22_21_04_25_192: EngineState: Total frames 90280 with crc error 54 (0.059813912 %)
2022-10-22_21_04_25_193: EngineState: Sync errors 95
2022-10-22_21_04_25_194: EngineState: --------------------
2022-10-22_21_04_25_195: EngineState: confirmation_sentinfo:8
2022-10-22_21_04_27_039: EngineState: ---- SENT ch 0 ----
2022-10-22_21_04_27_039: EngineState: Unit time 267 timer ticks
2022-10-22_21_04_27_040: EngineState: Total pulses 859947
2022-10-22_21_04_27_040: EngineState: Last fast msg Status 0x0 Sig0 0xADC Sig1 0x523
2022-10-22_21_04_27_040: EngineState: Restarts 0
2022-10-22_21_04_27_042: EngineState: Interval errors 96 short, 1295 long
2022-10-22_21_04_27_046: EngineState: Total frames 93109 with crc error 55 (0.059070548 %)
2022-10-22_21_04_27_047: EngineState: Sync errors 96
2022-10-22_21_04_27_050: EngineState: --------------------
2022-10-22_21_04_27_051: EngineState: confirmation_sentinfo:8
2022-10-22_21_04_28_453: EngineState: ---- SENT ch 0 ----
2022-10-22_21_04_28_453: EngineState: Unit time 267 timer ticks
2022-10-22_21_04_28_454: EngineState: Total pulses 879859
2022-10-22_21_04_28_460: EngineState: Last fast msg Status 0x0 Sig0 0xADC Sig1 0x523
2022-10-22_21_04_28_461: EngineState: Restarts 0
2022-10-22_21_04_28_463: EngineState: Interval errors 97 short, 1335 long
2022-10-22_21_04_28_464: EngineState: Total frames 95248 with crc error 55 (0.057743996 %)
2022-10-22_21_04_28_465: EngineState: Sync errors 97
2022-10-22_21_04_28_466: EngineState: --------------------
2022-10-22_21_04_28_468: EngineState: confirmation_sentinfo:8
2022-10-22_21_04_29_542: EngineState: ---- SENT ch 0 ----
2022-10-22_21_04_29_543: EngineState: Unit time 267 timer ticks
2022-10-22_21_04_29_543: EngineState: Total pulses 895191
2022-10-22_21_04_29_544: EngineState: Last fast msg Status 0x0 Sig0 0xADC Sig1 0x523
2022-10-22_21_04_29_550: EngineState: Restarts 0
2022-10-22_21_04_29_550: EngineState: Interval errors 100 short, 1364 long
2022-10-22_21_04_29_552: EngineState: Total frames 96897 with crc error 57 (0.058825352 %)
2022-10-22_21_04_29_553: EngineState: Sync errors 100
2022-10-22_21_04_29_554: EngineState: --------------------
2022-10-22_21_04_29_556: EngineState: confirmation_sentinfo:8
2022-10-22_21_04_30_631: EngineState: ---- SENT ch 0 ----
2022-10-22_21_04_30_631: EngineState: Unit time 267 timer ticks
2022-10-22_21_04_30_631: EngineState: Total pulses 910502
2022-10-22_21_04_30_631: EngineState: Last fast msg Status 0x0 Sig0 0xADC Sig1 0x523
2022-10-22_21_04_30_632: EngineState: Restarts 0
2022-10-22_21_04_30_632: EngineState: Interval errors 104 short, 1389 long
2022-10-22_21_04_30_636: EngineState: Total frames 98550 with crc error 60 (0.060882800 %)
2022-10-22_21_04_30_637: EngineState: Sync errors 104
2022-10-22_21_04_30_638: EngineState: --------------------
2022-10-22_21_04_30_639: EngineState: confirmation_sentinfo:8

ETB held CLOSED

2022-10-22_21_05_04_776: EngineState: ---- SENT ch 0 ----
2022-10-22_21_05_04_776: EngineState: Unit time 267 timer ticks
2022-10-22_21_05_04_776: EngineState: Total pulses 1390627
2022-10-22_21_05_04_777: EngineState: Last fast msg Status 0x0 Sig0 0xE5C Sig1 0x1A3
2022-10-22_21_05_04_779: EngineState: Restarts 0
2022-10-22_21_05_04_779: EngineState: Interval errors 157 short, 2053 long
2022-10-22_21_05_04_786: EngineState: Total frames 150652 with crc error 86 (0.057085200 %)
2022-10-22_21_05_04_788: EngineState: Sync errors 157
2022-10-22_21_05_04_791: EngineState: --------------------
2022-10-22_21_05_04_793: EngineState: confirmation_sentinfo:8
2022-10-22_21_05_05_543: EngineState: ---- SENT ch 0 ----
2022-10-22_21_05_05_543: EngineState: Unit time 267 timer ticks
2022-10-22_21_05_05_543: EngineState: Total pulses 1401161
2022-10-22_21_05_05_545: EngineState: Last fast msg Status 0x0 Sig0 0xE5C Sig1 0x1A3
2022-10-22_21_05_05_546: EngineState: Restarts 0
2022-10-22_21_05_05_553: EngineState: Interval errors 158 short, 2066 long
2022-10-22_21_05_05_555: EngineState: Total frames 151799 with crc error 87 (0.057312632 %)
2022-10-22_21_05_05_557: EngineState: Sync errors 158
2022-10-22_21_05_05_558: EngineState: --------------------
2022-10-22_21_05_05_560: EngineState: confirmation_sentinfo:8
2022-10-22_21_05_06_198: EngineState: ---- SENT ch 0 ----
2022-10-22_21_05_06_199: EngineState: Unit time 267 timer ticks
2022-10-22_21_05_06_199: EngineState: Total pulses 1410389
2022-10-22_21_05_06_207: EngineState: Last fast msg Status 0x0 Sig0 0xE5D Sig1 0x1A2
2022-10-22_21_05_06_210: EngineState: Restarts 0
2022-10-22_21_05_06_210: EngineState: Interval errors 159 short, 2079 long
2022-10-22_21_05_06_211: EngineState: Total frames 152801 with crc error 87 (0.056936800 %)
2022-10-22_21_05_06_212: EngineState: Sync errors 159
2022-10-22_21_05_06_212: EngineState: --------------------
2022-10-22_21_05_06_213: EngineState: confirmation_sentinfo:8
2022-10-22_21_05_06_853: EngineState: ---- SENT ch 0 ----
2022-10-22_21_05_06_853: EngineState: Unit time 267 timer ticks
2022-10-22_21_05_06_853: EngineState: Total pulses 1419654
2022-10-22_21_05_06_854: EngineState: Last fast msg Status 0x0 Sig0 0xE5C Sig1 0x1A3
2022-10-22_21_05_06_856: EngineState: Restarts 0
2022-10-22_21_05_06_862: EngineState: Interval errors 164 short, 2085 long
2022-10-22_21_05_06_864: EngineState: Total frames 153817 with crc error 91 (0.059161212 %)
2022-10-22_21_05_06_866: EngineState: Sync errors 164
2022-10-22_21_05_06_868: EngineState: --------------------
2022-10-22_21_05_06_869: EngineState: confirmation_sentinfo:8
2022-10-22_21_05_07_510: EngineState: ---- SENT ch 0 ----
2022-10-22_21_05_07_510: EngineState: Unit time 267 timer ticks
2022-10-22_21_05_07_511: EngineState: Total pulses 1429117
2022-10-22_21_05_07_511: EngineState: Last fast msg Status 0x0 Sig0 0xE5C Sig1 0x1A3
2022-10-22_21_05_07_511: EngineState: Restarts 0
2022-10-22_21_05_07_512: EngineState: Interval errors 164 short, 2103 long
2022-10-22_21_05_07_516: EngineState: Total frames 154836 with crc error 91 (0.058771864 %)
2022-10-22_21_05_07_518: EngineState: Sync errors 164
2022-10-22_21_05_07_519: EngineState: --------------------
2022-10-22_21_05_07_521: EngineState: confirmation_sentinfo:8
2022-10-22_21_05_08_273: EngineState: ---- SENT ch 0 ----
2022-10-22_21_05_08_273: EngineState: Unit time 267 timer ticks
2022-10-22_21_05_08_274: EngineState: Total pulses 1439655
2022-10-22_21_05_08_276: EngineState: Last fast msg Status 0x0 Sig0 0xE5C Sig1 0x1A3
2022-10-22_21_05_08_285: EngineState: Restarts 0
2022-10-22_21_05_08_290: EngineState: Interval errors 165 short, 2118 long
2022-10-22_21_05_08_293: EngineState: Total frames 155979 with crc error 92 (0.058982296 %)
2022-10-22_21_05_08_295: EngineState: Sync errors 165
2022-10-22_21_05_08_296: EngineState: --------------------
2022-10-22_21_05_08_298: EngineState: confirmation_sentinfo:8
2022-10-22_21_05_08_930: EngineState: ---- SENT ch 0 ----
2022-10-22_21_05_08_930: EngineState: Unit time 267 timer ticks
2022-10-22_21_05_08_930: EngineState: Total pulses 1449076
2022-10-22_21_05_08_931: EngineState: Last fast msg Status 0x0 Sig0 0xE5D Sig1 0x1A2
2022-10-22_21_05_08_932: EngineState: Restarts 0
2022-10-22_21_05_08_942: EngineState: Interval errors 166 short, 2130 long
2022-10-22_21_05_08_944: EngineState: Total frames 157003 with crc error 92 (0.058597604 %)
2022-10-22_21_05_08_946: EngineState: Sync errors 166
2022-10-22_21_05_08_948: EngineState: --------------------
2022-10-22_21_05_08_950: EngineState: confirmation_sentinfo:8

etb held OPEN

2022-10-22_21_05_52_330: EngineState: Total frames 222592 with crc error 124 (0.055707300 %)
2022-10-22_21_05_52_332: EngineState: Sync errors 232
2022-10-22_21_05_52_334: EngineState: --------------------
2022-10-22_21_05_52_337: EngineState: confirmation_sentinfo:8
2022-10-22_21_05_52_974: EngineState: ---- SENT ch 0 ----
2022-10-22_21_05_52_974: EngineState: Unit time 267 timer ticks
2022-10-22_21_05_52_974: EngineState: Total pulses 2060914
2022-10-22_21_05_52_978: EngineState: Last fast msg Status 0x0 Sig0 0x1B7 Sig1 0xE48
2022-10-22_21_05_52_984: EngineState: Restarts 0
2022-10-22_21_05_52_986: EngineState: Interval errors 233 short, 2894 long
2022-10-22_21_05_52_988: EngineState: Total frames 223549 with crc error 125 (0.055916152 %)
2022-10-22_21_05_52_990: EngineState: Sync errors 233
2022-10-22_21_05_52_992: EngineState: --------------------
2022-10-22_21_05_52_994: EngineState: confirmation_sentinfo:8
2022-10-22_21_05_53_743: EngineState: ---- SENT ch 0 ----
2022-10-22_21_05_53_743: EngineState: Unit time 267 timer ticks
2022-10-22_21_05_53_743: EngineState: Total pulses 2071218
2022-10-22_21_05_53_745: EngineState: Last fast msg Status 0x0 Sig0 0x1B7 Sig1 0xE48
2022-10-22_21_05_53_751: EngineState: Restarts 0
2022-10-22_21_05_53_756: EngineState: Interval errors 234 short, 2900 long
2022-10-22_21_05_53_760: EngineState: Total frames 224682 with crc error 126 (0.056079256 %)
2022-10-22_21_05_53_761: EngineState: Sync errors 234
2022-10-22_21_05_53_764: EngineState: --------------------
2022-10-22_21_05_53_765: EngineState: confirmation_sentinfo:8
2022-10-22_21_05_54_395: EngineState: ---- SENT ch 0 ----
2022-10-22_21_05_54_395: EngineState: Unit time 267 timer ticks
2022-10-22_21_05_54_396: EngineState: Total pulses 2080021
2022-10-22_21_05_54_396: EngineState: Last fast msg Status 0x0 Sig0 0x1B7 Sig1 0xE48
2022-10-22_21_05_54_398: EngineState: Restarts 0
2022-10-22_21_05_54_404: EngineState: Interval errors 234 short, 2913 long
2022-10-22_21_05_54_408: EngineState: Total frames 225637 with crc error 126 (0.055841904 %)
2022-10-22_21_05_54_409: EngineState: Sync errors 234
2022-10-22_21_05_54_410: EngineState: --------------------
2022-10-22_21_05_54_412: EngineState: confirmation_sentinfo:8
2022-10-22_21_05_54_949: EngineState: ---- SENT ch 0 ----
2022-10-22_21_05_54_949: EngineState: Unit time 267 timer ticks
2022-10-22_21_05_54_949: EngineState: Total pulses 2088883
2022-10-22_21_05_54_949: EngineState: Last fast msg Status 0x0 Sig0 0x1B6 Sig1 0xE49
2022-10-22_21_05_54_949: EngineState: Restarts 0
2022-10-22_21_05_54_949: EngineState: Interval errors 236 short, 2921 long
2022-10-22_21_05_54_949: EngineState: Total frames 226606 with crc error 127 (0.056044412 %)
2022-10-22_21_05_54_950: EngineState: Sync errors 236
2022-10-22_21_05_54_956: EngineState: --------------------
2022-10-22_21_05_54_957: EngineState: confirmation_sentinfo:8
2022-10-22_21_05_55_720: EngineState: ---- SENT ch 0 ----
2022-10-22_21_05_55_721: EngineState: Unit time 267 timer ticks
2022-10-22_21_05_55_721: EngineState: Total pulses 2097728
2022-10-22_21_05_55_723: EngineState: Last fast msg Status 0x0 Sig0 0x1B7 Sig1 0xE48
2022-10-22_21_05_55_731: EngineState: Restarts 0
2022-10-22_21_05_55_732: EngineState: Interval errors 238 short, 2932 long
2022-10-22_21_05_55_732: EngineState: Total frames 227568 with crc error 128 (0.056246924 %)
2022-10-22_21_05_55_733: EngineState: Sync errors 238
2022-10-22_21_05_55_734: EngineState: --------------------
2022-10-22_21_05_55_734: EngineState: confirmation_sentinfo:8
2022-10-22_21_05_56_375: EngineState: ---- SENT ch 0 ----
2022-10-22_21_05_56_375: EngineState: Unit time 267 timer ticks
2022-10-22_21_05_56_375: EngineState: Total pulses 2106538
2022-10-22_21_05_56_387: EngineState: Last fast msg Status 0x0 Sig0 0x1B6 Sig1 0xE49
2022-10-22_21_05_56_390: EngineState: Restarts 0
2022-10-22_21_05_56_393: EngineState: Interval errors 239 short, 2939 long
2022-10-22_21_05_56_394: EngineState: Total frames 228533 with crc error 129 (0.056446992 %)
2022-10-22_21_05_56_397: EngineState: Sync errors 239
2022-10-22_21_05_56_399: EngineState: --------------------
2022-10-22_21_05_56_401: EngineState: confirmation_sentinfo:8

rusefillc added a commit that referenced this issue Oct 23, 2022
SENT to Lua integration
@rusefillc
Copy link
Contributor Author

@dron0gus see 6e24020

@rusefillc
Copy link
Contributor Author

larger 12617792 is also happy

idle position

2022-10-22_22_50_59_588: EngineState: WARNING: Injector 3 fault: open_load 
2022-10-22_22_51_00_340: EngineState: ---- SENT ch 0 ----
2022-10-22_22_51_00_340: EngineState: Unit time 272 timer ticks
2022-10-22_22_51_00_341: EngineState: Total pulses 2123425
2022-10-22_22_51_00_341: EngineState: Last fast msg Status 0x0 Sig0 0xAE9 Sig1 0x516
2022-10-22_22_51_00_344: EngineState: Restarts 1
2022-10-22_22_51_00_345: EngineState: Interval errors 183 short, 2568 long
2022-10-22_22_51_00_346: EngineState: Total frames 231111 with crc error 103 (0.044567328 %)
2022-10-22_22_51_00_348: EngineState: Sync errors 183
2022-10-22_22_51_00_349: EngineState: --------------------
2022-10-22_22_51_00_349: EngineState: confirmation_sentinfo:8
2022-10-22_22_51_00_888: EngineState: ---- SENT ch 0 ----
2022-10-22_22_51_00_888: EngineState: Unit time 272 timer ticks
2022-10-22_22_51_00_890: EngineState: Total pulses 2130497
2022-10-22_22_51_00_896: EngineState: Last fast msg Status 0x0 Sig0 0xAEA Sig1 0x515
2022-10-22_22_51_00_899: EngineState: Restarts 1
2022-10-22_22_51_00_901: EngineState: Interval errors 184 short, 2580 long
2022-10-22_22_51_00_904: EngineState: Total frames 231874 with crc error 104 (0.044851944 %)
2022-10-22_22_51_00_907: EngineState: Sync errors 184
2022-10-22_22_51_00_907: EngineState: --------------------
2022-10-22_22_51_00_907: EngineState: confirmation_sentinfo:8
2022-10-22_22_51_01_432: EngineState: ---- SENT ch 0 ----
2022-10-22_22_51_01_433: EngineState: Unit time 272 timer ticks
2022-10-22_22_51_01_433: EngineState: Total pulses 2138130
2022-10-22_22_51_01_437: EngineState: Last fast msg Status 0x0 Sig0 0xAEA Sig1 0x515
2022-10-22_22_51_01_440: EngineState: Restarts 1
2022-10-22_22_51_01_441: EngineState: Interval errors 184 short, 2589 long
2022-10-22_22_51_01_443: EngineState: Total frames 232706 with crc error 104 (0.044691584 %)
2022-10-22_22_51_01_443: EngineState: Sync errors 184
2022-10-22_22_51_01_444: EngineState: --------------------
2022-10-22_22_51_01_445: EngineState: confirmation_sentinfo:8

forced closed

2022-10-22_22_50_42_237: EngineState: ---- SENT ch 0 ----
2022-10-22_22_50_42_237: EngineState: Unit time 272 timer ticks
2022-10-22_22_50_42_238: EngineState: Total pulses 1876921
2022-10-22_22_50_42_240: EngineState: Last fast msg Status 0x0 Sig0 0xE3A Sig1 0x1C5
2022-10-22_22_50_42_240: EngineState: Restarts 1
2022-10-22_22_50_42_246: EngineState: Interval errors 155 short, 2248 long
2022-10-22_22_50_42_248: EngineState: Total frames 204323 with crc error 84 (0.041111376 %)
2022-10-22_22_50_42_250: EngineState: Sync errors 155
2022-10-22_22_50_42_253: EngineState: --------------------
2022-10-22_22_50_42_256: EngineState: confirmation_sentinfo:8
2022-10-22_22_50_42_890: EngineState: ---- SENT ch 0 ----
2022-10-22_22_50_42_890: EngineState: Unit time 272 timer ticks
2022-10-22_22_50_42_891: EngineState: Total pulses 1885722
2022-10-22_22_50_42_894: EngineState: Last fast msg Status 0x0 Sig0 0xE3A Sig1 0x1C5
2022-10-22_22_50_42_901: EngineState: Restarts 1
2022-10-22_22_50_42_905: EngineState: Interval errors 157 short, 2258 long
2022-10-22_22_50_42_908: EngineState: Total frames 205281 with crc error 85 (0.041406656 %)
2022-10-22_22_50_42_909: EngineState: Sync errors 157
2022-10-22_22_50_42_912: EngineState: --------------------
2022-10-22_22_50_42_913: EngineState: confirmation_sentinfo:8
2022-10-22_22_50_43_540: EngineState: ---- SENT ch 0 ----
2022-10-22_22_50_43_541: EngineState: Unit time 272 timer ticks
2022-10-22_22_50_43_541: EngineState: Total pulses 1894761
2022-10-22_22_50_43_541: EngineState: Last fast msg Status 0x0 Sig0 0xE39 Sig1 0x1C6
2022-10-22_22_50_43_542: EngineState: Restarts 1
2022-10-22_22_50_43_545: EngineState: Interval errors 158 short, 2265 long
2022-10-22_22_50_43_546: EngineState: Total frames 206272 with crc error 86 (0.041692520 %)
2022-10-22_22_50_43_547: EngineState: Sync errors 158
2022-10-22_22_50_43_566: EngineState: --------------------
2022-10-22_22_50_43_576: EngineState: confirmation_sentinfo:8
2022-10-22_22_50_44_088: EngineState: ---- SENT ch 0 ----
2022-10-22_22_50_44_089: EngineState: Unit time 272 timer ticks
2022-10-22_22_50_44_089: EngineState: Total pulses 1902226
2022-10-22_22_50_44_089: EngineState: Last fast msg Status 0x0 Sig0 0xE3A Sig1 0x1C5
2022-10-22_22_50_44_091: EngineState: Restarts 1
2022-10-22_22_50_44_091: EngineState: Interval errors 159 short, 2276 long
2022-10-22_22_50_44_097: EngineState: Total frames 207081 with crc error 87 (0.042012548 %)
2022-10-22_22_50_44_100: EngineState: Sync errors 159
2022-10-22_22_50_44_101: EngineState: --------------------
2022-10-22_22_50_44_103: EngineState: confirmation_sentinfo:8

force open

2022-10-22_22_51_30_718: EngineState: ---- SENT ch 0 ----
2022-10-22_22_51_30_719: EngineState: Unit time 272 timer ticks
2022-10-22_22_51_30_719: EngineState: Total pulses 2535000
2022-10-22_22_51_30_721: EngineState: Last fast msg Status 0x0 Sig0 0x278 Sig1 0xD87
2022-10-22_22_51_30_726: EngineState: Restarts 1
2022-10-22_22_51_30_729: EngineState: Interval errors 219 short, 3109 long
2022-10-22_22_51_30_732: EngineState: Total frames 275828 with crc error 126 (0.045680644 %)
2022-10-22_22_51_30_733: EngineState: Sync errors 219
2022-10-22_22_51_30_735: EngineState: --------------------
2022-10-22_22_51_30_736: EngineState: confirmation_sentinfo:8
2022-10-22_22_51_31_262: EngineState: ---- SENT ch 0 ----
2022-10-22_22_51_31_262: EngineState: Unit time 272 timer ticks
2022-10-22_22_51_31_262: EngineState: Total pulses 2542441
2022-10-22_22_51_31_263: EngineState: Last fast msg Status 0x0 Sig0 0x279 Sig1 0xD86
2022-10-22_22_51_31_263: EngineState: Restarts 1
2022-10-22_22_51_31_267: EngineState: Interval errors 219 short, 3120 long
2022-10-22_22_51_31_268: EngineState: Total frames 276636 with crc error 126 (0.045547216 %)
2022-10-22_22_51_31_269: EngineState: Sync errors 219
2022-10-22_22_51_31_271: EngineState: --------------------
2022-10-22_22_51_31_272: EngineState: confirmation_sentinfo:8
2022-10-22_22_51_31_809: EngineState: ---- SENT ch 0 ----
2022-10-22_22_51_31_809: EngineState: Unit time 272 timer ticks
2022-10-22_22_51_31_810: EngineState: Total pulses 2549552
2022-10-22_22_51_31_811: EngineState: Last fast msg Status 0x0 Sig0 0x279 Sig1 0xD86
2022-10-22_22_51_31_815: EngineState: Restarts 1
2022-10-22_22_51_31_816: EngineState: Interval errors 219 short, 3131 long
2022-10-22_22_51_31_817: EngineState: Total frames 277406 with crc error 126 (0.045420792 %)
2022-10-22_22_51_31_819: EngineState: Sync errors 219
2022-10-22_22_51_31_821: EngineState: --------------------
2022-10-22_22_51_31_822: EngineState: confirmation_sentinfo:8
2022-10-22_22_51_32_461: EngineState: ---- SENT ch 0 ----
2022-10-22_22_51_32_461: EngineState: Unit time 272 timer ticks
2022-10-22_22_51_32_462: EngineState: Total pulses 2558526
2022-10-22_22_51_32_462: EngineState: Last fast msg Status 0x0 Sig0 0x279 Sig1 0xD86
2022-10-22_22_51_32_462: EngineState: Restarts 1
2022-10-22_22_51_32_465: EngineState: Interval errors 222 short, 3139 long
2022-10-22_22_51_32_467: EngineState: Total frames 278387 with crc error 127 (0.045619944 %)
2022-10-22_22_51_32_468: EngineState: Sync errors 222
2022-10-22_22_51_32_468: EngineState: --------------------
2022-10-22_22_51_32_469: EngineState: confirmation_sentinfo:8

@rusefillc
Copy link
Contributor Author

@dron0gus

setTickRate(100)
function onTick()
	print(getSentValue(1))
end


@rusefillc
Copy link
Contributor Author

rusefillc commented Oct 26, 2022


tpsSensor = Sensor.new("Tps1")
ppsSensor = Sensor.new("AcceleratorPedal")
-- restartEtb()
setTickRate(100)
function onTick()
	sentValue = getSentValue(1)
	tpsValue = interpolate(0.11, 0, 0.89, 100, sentValue)

	tpsSensor : set(tpsValue )
ppsSensor : set(20)
	print('sentValue ' ..sentValue..' tps ' ..tpsValue)
end


@rusefillc rusefillc changed the title GM ETB bench test in NJ GM SENT ETB bench test in NJ Oct 26, 2022
rusefillc added a commit that referenced this issue Oct 26, 2022
rusefillc added a commit that referenced this issue Oct 26, 2022
rusefillc added a commit that referenced this issue Oct 26, 2022
rusefillc pushed a commit that referenced this issue Oct 26, 2022
rusefillc added a commit that referenced this issue Oct 26, 2022
rusefillc added a commit that referenced this issue Oct 26, 2022
rusefillc pushed a commit that referenced this issue Oct 26, 2022
rusefillc added a commit that referenced this issue Oct 26, 2022
@rusefillc
Copy link
Contributor Author

lua

restartEtb

@rusefillc
Copy link
Contributor Author

Ford part https://rusefi.com/forum/viewtopic.php?p=46584#p46584

idle state

2022-11-02_23_36_52_173: EngineState: ---- SENT ch 0 ----
2022-11-02_23_36_52_173: EngineState: Unit time 506 CPU ticks 3.011904716 uS
2022-11-02_23_36_52_174: EngineState: Total pulses 1905744
2022-11-02_23_36_52_174: EngineState: Last valid fast msg Status 0x0 Sig0 0x231 Sig1 0xDAC
2022-11-02_23_36_52_174: EngineState: Slow channels:
2022-11-02_23_36_52_174: EngineState:  ID 1: 0
2022-11-02_23_36_52_174: EngineState:  ID 149: 0
2022-11-02_23_36_52_174: EngineState:  ID 3: 100
2022-11-02_23_36_52_174: EngineState:  ID 150: 0
2022-11-02_23_36_52_176: EngineState:  ID 6: 3
2022-11-02_23_36_52_176: EngineState:  ID 9: 248
2022-11-02_23_36_52_180: EngineState:  ID 35: 790
2022-11-02_23_36_52_182: EngineState:  ID 43: 1541
2022-11-02_23_36_52_185: EngineState:  ID 5: 66
2022-11-02_23_36_52_187: EngineState:  ID 7: 0
2022-11-02_23_36_52_189: EngineState:  ID 148: 17
2022-11-02_23_36_52_191: EngineState:  ID 147: 1625
2022-11-02_23_36_52_193: EngineState:  ID 41: 992
2022-11-02_23_36_52_193: EngineState:  ID 145: 2387
2022-11-02_23_36_52_196: EngineState:  ID 8: 85
2022-11-02_23_36_52_197: EngineState:  ID 42: 2192
2022-11-02_23_36_52_199: EngineState: Restarts 0
2022-11-02_23_36_52_200: EngineState: Interval errors 9686 short, 181529 long
2022-11-02_23_36_52_201: EngineState: Total frames 176519 with crc error 23968 (13.578142144 %)
2022-11-02_23_36_52_203: EngineState: Sync errors 176504
2022-11-02_23_36_52_205: EngineState: --------------------
2022-11-02_23_36_52_206: EngineState: confirmation_sentinfo:8


2022-11-02_23_38_33_286: EngineState: ---- SENT ch 0 ----
2022-11-02_23_38_33_287: EngineState: Unit time 510 CPU ticks 3.035714388 uS
2022-11-02_23_38_33_287: EngineState: Total pulses 3035948
2022-11-02_23_38_33_288: EngineState: Last valid fast msg Status 0x0 Sig0 0x232 Sig1 0xD9D
2022-11-02_23_38_33_288: EngineState: Slow channels:
2022-11-02_23_38_33_288: EngineState:  ID 1: 0
2022-11-02_23_38_33_288: EngineState:  ID 149: 0
2022-11-02_23_38_33_291: EngineState:  ID 3: 100
2022-11-02_23_38_33_291: EngineState:  ID 150: 0
2022-11-02_23_38_33_292: EngineState:  ID 6: 3
2022-11-02_23_38_33_292: EngineState:  ID 9: 248
2022-11-02_23_38_33_293: EngineState:  ID 35: 790
2022-11-02_23_38_33_294: EngineState:  ID 43: 1541
2022-11-02_23_38_33_295: EngineState:  ID 5: 66
2022-11-02_23_38_33_296: EngineState:  ID 7: 0
2022-11-02_23_38_33_296: EngineState:  ID 148: 17
2022-11-02_23_38_33_296: EngineState:  ID 147: 1625
2022-11-02_23_38_33_296: EngineState:  ID 41: 992
2022-11-02_23_38_33_296: EngineState:  ID 145: 2387
2022-11-02_23_38_33_297: EngineState:  ID 8: 85
2022-11-02_23_38_33_297: EngineState:  ID 42: 2192
2022-11-02_23_38_33_297: EngineState: Restarts 0
2022-11-02_23_38_33_297: EngineState: Interval errors 15322 short, 289270 long
2022-11-02_23_38_33_297: EngineState: Total frames 281386 with crc error 38264 (13.598402048 %)
2022-11-02_23_38_33_297: EngineState: Sync errors 281370
2022-11-02_23_38_33_297: EngineState: --------------------
2022-11-02_23_38_33_297: EngineState: confirmation_sentinfo:8

Note 13% CRC error rate?

fully closed causes restats

2022-11-02_23_39_41_121: EngineState: ---- SENT ch 0 ----
2022-11-02_23_39_41_122: EngineState: Unit time 510 CPU ticks 3.035714388 uS
2022-11-02_23_39_41_122: EngineState: Total pulses 5722
2022-11-02_23_39_41_124: EngineState: Last valid fast msg Status 0x8 Sig0 0x0F8 Sig1 0xF32
2022-11-02_23_39_41_124: EngineState: Restarts 55
2022-11-02_23_39_41_129: EngineState: Interval errors 49 short, 522 long
2022-11-02_23_39_41_132: EngineState: Total frames 372 with crc error 36 (9.677419648 %)
2022-11-02_23_39_41_134: EngineState: Sync errors 371
2022-11-02_23_39_41_137: EngineState: --------------------
2022-11-02_23_39_41_140: EngineState: confirmation_sentinfo:8
2022-11-02_23_39_41_557: EngineState: WARNING: Injector 0 fault: open_load 
2022-11-02_23_39_41_558: EngineState: WARNING: Injector 1 fault: open_load 
2022-11-02_23_39_41_566: EngineState: WARNING: Injector 2 fault: open_load 
2022-11-02_23_39_41_568: EngineState: WARNING: Injector 3 fault: open_load 
2022-11-02_23_39_41_668: EngineState: ---- SENT ch 0 ----
2022-11-02_23_39_41_668: EngineState: Unit time 710 CPU ticks 4.226190560 uS
2022-11-02_23_39_41_669: EngineState: Total pulses 350
2022-11-02_23_39_41_669: EngineState: Last valid fast msg Status 0x8 Sig0 0x0F9 Sig1 0xFB8
2022-11-02_23_39_41_670: EngineState: Restarts 56
2022-11-02_23_39_41_672: EngineState: Interval errors 0 short, 32 long
2022-11-02_23_39_41_674: EngineState: Total frames 0 with crc error 0 (NaN %)
2022-11-02_23_39_41_675: EngineState: Sync errors 0
2022-11-02_23_39_41_676: EngineState: --------------------
2022-11-02_23_39_41_677: EngineState: confirmation_sentinfo:8
2022-11-02_23_39_42_548: EngineState: ---- SENT ch 0 ----
2022-11-02_23_39_42_548: EngineState: Unit time 509 CPU ticks 3.029761792 uS
2022-11-02_23_39_42_548: EngineState: Total pulses 2517
2022-11-02_23_39_42_551: EngineState: Last valid fast msg Status 0x0 Sig0 0x0F8 Sig1 0xFF4
2022-11-02_23_39_42_558: EngineState: Restarts 57
2022-11-02_23_39_42_560: EngineState: Interval errors 19 short, 231 long
2022-11-02_23_39_42_563: EngineState: Total frames 135 with crc error 8 (5.925925760 %)
2022-11-02_23_39_42_566: EngineState: Sync errors 134
2022-11-02_23_39_42_568: EngineState: --------------------
2022-11-02_23_39_42_571: EngineState: confirmation_sentinfo:8
2022-11-02_23_39_43_419: EngineState: ---- SENT ch 0 ----
2022-11-02_23_39_43_419: EngineState: Unit time 512 CPU ticks 3.047619104 uS
2022-11-02_23_39_43_419: EngineState: Total pulses 6813
2022-11-02_23_39_43_421: EngineState: Last valid fast msg Status 0x8 Sig0 0x0F8 Sig1 0xF22
2022-11-02_23_39_43_426: EngineState: Restarts 58
2022-11-02_23_39_43_427: EngineState: Interval errors 58 short, 620 long
2022-11-02_23_39_43_428: EngineState: Total frames 469 with crc error 39 (8.315565120 %)
2022-11-02_23_39_43_429: EngineState: Sync errors 467
2022-11-02_23_39_43_430: EngineState: --------------------
2022-11-02_23_39_43_431: EngineState: confirmation_sentinfo:8

fully open

2022-11-02_23_41_05_644: EngineState: confirmation_sentinfo:8
2022-11-02_23_41_07_039: EngineState: ---- SENT ch 0 ----
2022-11-02_23_41_07_039: EngineState: Unit time 505 CPU ticks 3.005952358 uS
2022-11-02_23_41_07_039: EngineState: Total pulses 149340
2022-11-02_23_41_07_041: EngineState: Last valid fast msg Status 0x8 Sig0 0xF00 Sig1 0x078
2022-11-02_23_41_07_047: EngineState: Slow channels:
2022-11-02_23_41_07_050: EngineState:  ID 1: 0
2022-11-02_23_41_07_050: EngineState:  ID 147: 1625
2022-11-02_23_41_07_051: EngineState:  ID 44: 533
2022-11-02_23_41_07_052: EngineState:  ID 7: 0
2022-11-02_23_41_07_053: EngineState:  ID 146: 2457
2022-11-02_23_41_07_054: EngineState: Restarts 75
2022-11-02_23_41_07_054: EngineState: Interval errors 1325 short, 13651 long
2022-11-02_23_41_07_054: EngineState: Total frames 12970 with crc error 1841 (14.194294928 %)
2022-11-02_23_41_07_054: EngineState: Sync errors 12967
2022-11-02_23_41_07_054: EngineState: --------------------
2022-11-02_23_41_07_054: EngineState: confirmation_sentinfo:8
2022-11-02_23_41_08_568: EngineState: ---- SENT ch 0 ----
2022-11-02_23_41_08_569: EngineState: Unit time 506 CPU ticks 3.011904716 uS
2022-11-02_23_41_08_569: EngineState: Total pulses 166414
2022-11-02_23_41_08_578: EngineState: Last valid fast msg Status 0x0 Sig0 0xF01 Sig1 0x093
2022-11-02_23_41_08_581: EngineState: Slow channels:
2022-11-02_23_41_08_584: EngineState:  ID 1: 0
2022-11-02_23_41_08_586: EngineState:  ID 147: 1625
2022-11-02_23_41_08_590: EngineState:  ID 44: 533
2022-11-02_23_41_08_591: EngineState:  ID 7: 0
2022-11-02_23_41_08_593: EngineState:  ID 146: 2457
2022-11-02_23_41_08_593: EngineState: Restarts 75
2022-11-02_23_41_08_594: EngineState: Interval errors 1487 short, 15201 long
2022-11-02_23_41_08_594: EngineState: Total frames 14435 with crc error 2054 (14.229303360 %)
2022-11-02_23_41_08_594: EngineState: Sync errors 14432
2022-11-02_23_41_08_594: EngineState: --------------------
2022-11-02_23_41_08_594: EngineState: confirmation_sentinfo:8
2022-11-02_23_41_09_114: EngineState: WARNING: interpolatelua: why X
2022-11-02_23_41_09_444: EngineState: ---- SENT ch 0 ----
2022-11-02_23_41_09_444: EngineState: Unit time 509 CPU ticks 3.029761792 uS
2022-11-02_23_41_09_444: EngineState: Total pulses 176224
2022-11-02_23_41_09_446: EngineState: Last valid fast msg Status 0xC Sig0 0xF00 Sig1 0x021
2022-11-02_23_41_09_452: EngineState: Slow channels:
2022-11-02_23_41_09_453: EngineState:  ID 1: 0
2022-11-02_23_41_09_456: EngineState:  ID 147: 1625
2022-11-02_23_41_09_458: EngineState:  ID 44: 533
2022-11-02_23_41_09_461: EngineState:  ID 7: 0
2022-11-02_23_41_09_463: EngineState:  ID 146: 2457
2022-11-02_23_41_09_465: EngineState: Restarts 75
2022-11-02_23_41_09_465: EngineState: Interval errors 1590 short, 16079 long
2022-11-02_23_41_09_466: EngineState: Total frames 15259 with crc error 2170 (14.221115120 %)
2022-11-02_23_41_09_466: EngineState: Sync errors 15254
2022-11-02_23_41_09_466: EngineState: --------------------
2022-11-02_23_41_09_466: EngineState: confirmation_sentinfo:8

@dron0gus
Copy link
Member

dron0gus commented Nov 3, 2022

Time to implement CRC check on slow channels...

@dron0gus
Copy link
Member

dron0gus commented Nov 3, 2022

Screenshot from 2022-11-03 11-57-20
I need a hint

@dron0gus
Copy link
Member

dron0gus commented Nov 3, 2022

LUA code:

tpsSensor = Sensor.new("Tps1")
ppsSensor = Sensor.new("AcceleratorPedal")
cnt = 10
restartEtb()
setTickRate(100)
function onTick()
	cnt = cnt + 1

	sentValue = getSentValue(1)
	tpsValue = interpolate(0.11, 0, 0.89, 100, sentValue)

	tpsSensor : set(tpsValue )
	ppsSensor : set(cnt / 10)
	print('sentValue ' ..sentValue..' tps ' ..tpsValue .. ' pps ' .. (cnt/10))
	if (cnt >= 1000) then
		cnt = 10
	end
end
2022-11-03_12_34_16_741: EngineState: CRITICAL error: Pin "PC8" required by "ETB Disable" but is used by "ETB Disable" MINIMAL_PINS 20221103@microRusEFI
2022-11-03_12_34_16_742: EngineState: LUA: sentValue 0.3233211 tps 27.3488655 pps 67.8000030
2022-11-03_12_34_16_836: EngineState: LUA: sentValue 0.3230769 tps 27.3175583 pps 67.9000015
2022-11-03_12_34_16_837: EngineState: LUA: sentValue 0.3230769 tps 27.3175583 pps 68.0000000
2022-11-03_12_34_16_837: EngineState: LUA: sentValue 0.3233211 tps 27.3488655 pps 68.0999984
2022-11-03_12_34_16_837: EngineState: LUA: sentValue 0.3233211 tps 27.3488655 pps 68.1999969
2022-11-03_12_34_16_838: EngineState: LUA: sentValue 0.3230769 tps 27.3175583 pps 68.3000030
2022-11-03_12_34_16_838: EngineState: LUA: sentValue 0.3230769 tps 27.3175583 pps 68.4000015
2022-11-03_12_34_16_838: EngineState: LUA: sentValue 0.3230769 tps 27.3175583 pps 68.5000000
2022-11-03_12_34_16_838: EngineState: LUA: sentValue 0.3230769 tps 27.3175583 pps 68.5999984
2022-11-03_12_34_16_839: EngineState: LUA: sentValue 0.3230769 tps 27.3175583 pps 68.6999969
2022-11-03_12_34_16_840: EngineState: LUA: sentValue 0.3230769 tps 27.3175583 pps 68.8000030

restartEtb() cause second init of motor at electronic_throttle.cpp:967

@dron0gus
Copy link
Member

dron0gus commented Nov 3, 2022

Thread 13 hit Breakpoint 2, brain_pin_markUsed (brainPin=<optimized out>, msg=0x80799f0 "ETB Disable") at ./hw_layer/pin_repository.cpp:66
66			firmwareError(CUSTOM_ERR_PIN_ALREADY_USED_1, "Pin \"%s\" required by \"%s\" but is used by \"%s\" %s",
(gdb) bt
#0  brain_pin_markUsed (brainPin=<optimized out>, msg=0x80799f0 "ETB Disable") at ./hw_layer/pin_repository.cpp:66
#1  0x08064d76 in efiSetPadMode (msg=msg@entry=0x80799f0 "ETB Disable", brainPin=brainPin@entry=Gpio::C8, mode=mode@entry=1) at ./hw_layer/io_pins.cpp:54
#2  0x0802fda6 in OutputPin::initPin (this=0x20006230 <dcHardware+48>, msg=0x80799f0 "ETB Disable", brainPin=<optimized out>, outputMode=outputMode@entry=0x2001b10f <DEFAULT_OUTPUT>, 
    forceInitWithFatalError=forceInitWithFatalError@entry=false) at ./controllers/system/efi_gpio.cpp:616
#3  0x0803018a in OutputPin::initPin (this=<optimized out>, msg=<optimized out>, brainPin=<optimized out>) at ./controllers/system/efi_gpio.cpp:543
#4  0x0803ea98 in DcHardware::start (frequency=800, executor=<optimized out>, isInverted=<optimized out>, pinDisable=<optimized out>, pinDir2=Gpio::Unassigned, pinDir1=Gpio::A8, pinEnable=Gpio::C7, 
    useTwoWires=<optimized out>, this=0x20006200 <dcHardware>) at ./controllers/actuators/dc_motors.cpp:61
#5  initDcMotor (io=..., index=index@entry=0, useTwoWires=<optimized out>) at ./controllers/actuators/dc_motors.cpp:120
#6  0x0803ebfc in doInitElectronicThrottle () at ./controllers/actuators/electronic_throttle.cpp:967
#7  0x0806106c in operator() (l=<optimized out>, __closure=0x0) at ./controllers/lua/lua_hooks.cpp:697
#8  _FUN () at ./controllers/lua/lua_hooks.cpp:697
#9  0x0805dc56 in luaD_precall (L=0x2002000c, func=0x20020370, nresults=0) at ./ext/lua/ldo.c:532
#10 0x080103b4 in luaV_execute (L=0x2002000c, ci=0x20020e18) at ./ext/lua/lvm.c:1624
#11 0x0805d9f8 in ccall (L=0x2002000c, func=<optimized out>, nResults=<optimized out>, inc=inc@entry=65537) at ./ext/lua/ldo.c:577
#12 0x0805da14 in luaD_callnoyield (L=<optimized out>, func=<optimized out>, nResults=<optimized out>) at ./ext/lua/ldo.c:595
#13 0x0805833c in f_call (L=<optimized out>, ud=<optimized out>) at ./ext/lua/lapi.c:1031
#14 0x0805bdf6 in luaD_rawrunprotected (L=L@entry=0x2002000c, f=0x8058333 <f_call(lua_State*, void*)>, ud=0x20003eb0 <luaThread+4336>) at ./ext/lua/ldo.c:144
#15 0x0805cc8a in luaD_pcall (L=0x2002000c, func=<optimized out>, u=<optimized out>, old_top=8, ef=0) at ./ext/lua/ldo.c:892
#16 0x08009a0c in lua_pcallk (L=0x2002000c, nargs=<optimized out>, nresults=-1, errfunc=<optimized out>, ctx=0, k=0x0) at ./ext/lua/lapi.c:1057
#17 0x08011f5e in loadScript (ls=..., 
    scriptStr=scriptStr@entry=0x1000163c <persistentState+5692> "tpsSensor = Sensor.new(\"Tps1\")\nppsSensor = Sensor.new(\"AcceleratorPedal\")\ncnt = 10\nrestartEtb()\nsetTickRate(100)\nfunction onTick()\n\tcnt = cnt + 1\n\n\tsentValue = getSentValue(1)\n\ttpsValue = interpolate("...) at ./controllers/lua/rusefi_lua.h:38
#18 0x080138b0 in runOneLua (alloc=alloc@entry=0x8011b8d <myAlloc(void*, void*, size_t, size_t)>, 
    script=script@entry=0x1000163c <persistentState+5692> "tpsSensor = Sensor.new(\"Tps1\")\nppsSensor = Sensor.new(\"AcceleratorPedal\")\ncnt = 10\nrestartEtb()\nsetTickRate(100)\nfunction onTick()\n\tcnt = cnt + 1\n\n\tsentValue = getSentValue(1)\n\ttpsValue = interpolate("...) at ./controllers/lua/lua.cpp:292
#19 0x08013994 in LuaThread::ThreadTask (this=<optimized out>) at ./controllers/lua/lua.cpp:320
#20 0x08011792 in ThreadController<4096>::main (this=<optimized out>) at ./controllers/system/thread_controller.h:30
#21 0x08060a02 in chibios_rt::_thd_start (arg=<optimized out>) at ChibiOS/os/various/cpp_wrappers/ch.cpp:41
#22 0x08001316 in _port_thread_start () at ChibiOS/os/common/ports/ARMCMx/compilers/GCC/chcoreasm_v7m.S:201

@dron0gus
Copy link
Member

dron0gus commented Nov 3, 2022

SENT ETB starts to make some noise #4735

@rusefillc
Copy link
Contributor Author

Great news @dron0gus @mck1117

master as is works perfectly with the following magic:

tpsSensor = Sensor.new("Tps1")
ppsSensor = Sensor.new("AcceleratorPedal")
Tps1Primary = Sensor.new("Tps1Primary")
AcceleratorPedalPrimary = Sensor.new("AcceleratorPedalPrimary")
ppsSensor : setRedundant(true)
tpsSensor : setRedundant(true)

that set of Lua sensors works with the current logic as in master

This was referenced Nov 12, 2022
@rusefillc
Copy link
Contributor Author

Full script (please ignore CAN bus, please note timeout/tickrate weirdness)


tpsSensor = Sensor.new("Tps1")
ppsSensor = Sensor.new("AcceleratorPedal")
Tps1Primary = Sensor.new("Tps1Primary")
AcceleratorPedalPrimary = Sensor.new("AcceleratorPedalPrimary")


ppsSensor : setRedundant(true)

tpsSensor : setRedundant(true)

setTickRate(100)
-- huh? with 100Hz tick rate why do we need such huge timeout?
ppsSensor : setTimeout(1000)
tpsSensor : setTimeout(1000)
restartEtb()

function setTwoBytes(data, offset, value)
	value = math.floor(value)
	data[offset + 2] = value >> 8
	data[offset + 1] = value & 0xff
end

R52_RPM = 0x316

data = { 0, 0, 0, 00, 0, 0 , 0, 0 }

rpm = 7000

i = 0

function onTick()
	rpm = getSensor("RPM")

	if i == 3 then
		print('Postponed restart')
		restartEtb()
--		i = 0
	end
	-- 	print('Period ' ..i)

	i = i + 1


	setTwoBytes(data, 2, rpm * 6.39)

	txCan(1, R52_RPM, 0, data)


	-- 1 ABS and warm-up light but no tach
	-- 3 blinker and alive
	-- 4 ABS and alive
	--
	status2 = 2

	-- status3 = 0xC0
	status3 = 0x0

	status4 = 0x0
	-- status4 = 0xC0
	-- with ABS with blinker with warm-up light
	-- status4 = 0xFF

	txCan(1, 0x61f, 0, { 0, 0, status2, status3, status, 0 , 0, 0 })




	sentValue = getSentValue(1)
	tpsValue = interpolate(0.11, 0, 0.89, 100, sentValue)

	tpsSensor : set(tpsValue )
	Tps1Primary : set(tpsValue )
	ppsSensor : set(50)

	print('sentValue ' ..sentValue..' tps ' ..tpsValue)
end


@rusefillc
Copy link
Contributor Author

Oooops I've broken GM, just fixed it

2022-11-13_11_42_29_677: EngineState: ---- SENT ch 0 ----
2022-11-13_11_42_29_677: EngineState: Unit time 539 CPU ticks 3.208333248 uS
2022-11-13_11_42_29_677: EngineState: Total pulses 1941691
2022-11-13_11_42_29_678: EngineState: Last valid fast msg Status 0x0 Sig0 0xAD3 Sig1 0x52C
2022-11-13_11_42_29_681: EngineState: valueErrorRate 0.000000000
2022-11-13_11_42_29_687: EngineState: Restarts 0
2022-11-13_11_42_29_689: EngineState: Interval errors 19520 short, 1616 long
2022-11-13_11_42_29_692: EngineState: Total frames 193264 with CRC error 15 (0.007761404%)
2022-11-13_11_42_29_694: EngineState: Total slow channel messages 0 with crc6 errors 0 (NaN%)
2022-11-13_11_42_29_695: EngineState: Sync errors 19520
2022-11-13_11_42_29_696: EngineState: --------------------
2022-11-13_11_42_29_698: EngineState: confirmation_sentinfo:8
2022-11-13_11_42_33_328: EngineState: ---- SENT ch 0 ----
2022-11-13_11_42_33_328: EngineState: Unit time 538 CPU ticks 3.202380896 uS
2022-11-13_11_42_33_330: EngineState: Total pulses 1990861
2022-11-13_11_42_33_333: EngineState: Last valid fast msg Status 0x0 Sig0 0xAD3 Sig1 0x52C
2022-11-13_11_42_33_335: EngineState: valueErrorRate 0.000000000
2022-11-13_11_42_33_337: EngineState: Restarts 0
2022-11-13_11_42_33_338: EngineState: Interval errors 22219 short, 1654 long
2022-11-13_11_42_33_339: EngineState: Total frames 195963 with CRC error 15 (0.007654506%)
2022-11-13_11_42_33_341: EngineState: Total slow channel messages 0 with crc6 errors 0 (NaN%)
2022-11-13_11_42_33_341: EngineState: Sync errors 22219
2022-11-13_11_42_33_341: EngineState: --------------------
2022-11-13_11_42_33_342: EngineState: confirmation_sentinfo:8
2022-11-13_11_42_34_210: EngineState: ---- SENT ch 0 ----
2022-11-13_11_42_34_210: EngineState: Unit time 539 CPU ticks 3.208333248 uS
2022-11-13_11_42_34_210: EngineState: Total pulses 2003197
2022-11-13_11_42_34_210: EngineState: Last valid fast msg Status 0x0 Sig0 0xAD4 Sig1 0x52B
2022-11-13_11_42_34_210: EngineState: valueErrorRate 0.000000000
2022-11-13_11_42_34_210: EngineState: Restarts 0
2022-11-13_11_42_34_211: EngineState: Interval errors 22899 short, 1660 long
2022-11-13_11_42_34_215: EngineState: Total frames 196643 with CRC error 15 (0.007628036%)
2022-11-13_11_42_34_216: EngineState: Total slow channel messages 0 with crc6 errors 0 (NaN%)
2022-11-13_11_42_34_217: EngineState: Sync errors 22899
2022-11-13_11_42_34_218: EngineState: --------------------
2022-11-13_11_42_34_219: EngineState: confirmation_sentinfo:8
2022-11-13_11_42_34_544: EngineState: ---- SENT ch 0 ----
2022-11-13_11_42_34_544: EngineState: Unit time 539 CPU ticks 3.208333248 uS
2022-11-13_11_42_34_544: EngineState: Total pulses 2007215
2022-11-13_11_42_34_544: EngineState: Last valid fast msg Status 0x0 Sig0 0xAD4 Sig1 0x52B
2022-11-13_11_42_34_544: EngineState: valueErrorRate 0.000000000
2022-11-13_11_42_34_545: EngineState: Restarts 0
2022-11-13_11_42_34_546: EngineState: Interval errors 23118 short, 1665 long
2022-11-13_11_42_34_551: EngineState: Total frames 196862 with CRC error 15 (0.007619551%)
2022-11-13_11_42_34_552: EngineState: Total slow channel messages 0 with crc6 errors 0 (NaN%)
2022-11-13_11_42_34_553: EngineState: Sync errors 23118
2022-11-13_11_42_34_554: EngineState: --------------------
2022-11-13_11_42_34_555: EngineState: confirmation_sentinfo:8
2022-11-13_11_42_34_555: EngineState: ---- SENT ch 0 ----
2022-11-13_11_42_34_556: EngineState: Unit time 538 CPU ticks 3.202380896 uS
2022-11-13_11_42_34_556: EngineState: Total pulses 2008357
2022-11-13_11_42_34_557: EngineState: Last valid fast msg Status 0x0 Sig0 0xAD4 Sig1 0x52B
2022-11-13_11_42_34_558: EngineState: valueErrorRate 0.000000000
2022-11-13_11_42_34_558: EngineState: Restarts 0
2022-11-13_11_42_34_559: EngineState: Interval errors 23181 short, 1666 long
2022-11-13_11_42_34_559: EngineState: Total frames 196925 with CRC error 15 (0.007617113%)
2022-11-13_11_42_34_560: EngineState: Total slow channel messages 0 with crc6 errors 0 (NaN%)
2022-11-13_11_42_34_560: EngineState: Sync errors 23181
2022-11-13_11_42_34_561: EngineState: --------------------
2022-11-13_11_42_34_561: EngineState: confirmation_sentinfo:8
2022-11-13_11_42_34_882: EngineState: ---- SENT ch 0 ----
2022-11-13_11_42_34_882: EngineState: Unit time 539 CPU ticks 3.208333248 uS
2022-11-13_11_42_34_882: EngineState: Total pulses 2011733
2022-11-13_11_42_34_883: EngineState: Last valid fast msg Status 0x0 Sig0 0xAD4 Sig1 0x52B
2022-11-13_11_42_34_883: EngineState: valueErrorRate 0.000000000
2022-11-13_11_42_34_883: EngineState: Restarts 0
2022-11-13_11_42_34_883: EngineState: Interval errors 23366 short, 1668 long
2022-11-13_11_42_34_883: EngineState: Total frames 197110 with CRC error 15 (0.007609964%)
2022-11-13_11_42_34_883: EngineState: Total slow channel messages 0 with crc6 errors 0 (NaN%)
2022-11-13_11_42_34_883: EngineState: Sync errors 23366
2022-11-13_11_42_34_883: EngineState: --------------------
2022-11-13_11_42_34_883: EngineState: confirmation_sentinfo:8
2022-11-13_11_42_34_992: EngineState: ---- SENT ch 0 ----
2022-11-13_11_42_34_992: EngineState: Unit time 538 CPU ticks 3.202380896 uS
2022-11-13_11_42_34_992: EngineState: Total pulses 2013314
2022-11-13_11_42_34_992: EngineState: Last valid fast msg Status 0x0 Sig0 0xAD4 Sig1 0x52B
2022-11-13_11_42_34_993: EngineState: valueErrorRate 0.000000000
2022-11-13_11_42_35_000: EngineState: Restarts 0
2022-11-13_11_42_35_001: EngineState: Interval errors 23453 short, 1670 long
2022-11-13_11_42_35_004: EngineState: Total frames 197197 with CRC error 15 (0.007606606%)
2022-11-13_11_42_35_005: EngineState: Total slow channel messages 0 with crc6 errors 0 (NaN%)
2022-11-13_11_42_35_006: EngineState: Sync errors 23453
2022-11-13_11_42_35_007: EngineState: --------------------
2022-11-13_11_42_35_008: EngineState: confirmation_sentinfo:8
2022-11-13_11_42_35_101: EngineState: ---- SENT ch 0 ----
2022-11-13_11_42_35_101: EngineState: Unit time 539 CPU ticks 3.208333248 uS
2022-11-13_11_42_35_101: EngineState: Total pulses 2015885
2022-11-13_11_42_35_101: EngineState: Last valid fast msg Status 0x0 Sig0 0xAD4 Sig1 0x52B
2022-11-13_11_42_35_102: EngineState: valueErrorRate 0.000000000
2022-11-13_11_42_35_102: EngineState: Restarts 0
2022-11-13_11_42_35_103: EngineState: Interval errors 23594 short, 1672 long
2022-11-13_11_42_35_108: EngineState: Total frames 197338 with CRC error 15 (0.007601171%)
2022-11-13_11_42_35_108: EngineState: Total slow channel messages 0 with crc6 errors 0 (NaN%)
2022-11-13_11_42_35_109: EngineState: Sync errors 23594
2022-11-13_11_42_35_110: EngineState: --------------------
2022-11-13_11_42_35_111: EngineState: confirmation_sentinfo:8
2022-11-13_11_42_35_323: EngineState: ---- SENT ch 0 ----
2022-11-13_11_42_35_323: EngineState: Unit time 538 CPU ticks 3.202380896 uS
2022-11-13_11_42_35_323: EngineState: Total pulses 2018035
2022-11-13_11_42_35_323: EngineState: Last valid fast msg Status 0x0 Sig0 0xAD4 Sig1 0x52B
2022-11-13_11_42_35_323: EngineState: valueErrorRate 0.000000000
2022-11-13_11_42_35_324: EngineState: Restarts 0
2022-11-13_11_42_35_329: EngineState: Interval errors 23713 short, 1672 long
2022-11-13_11_42_35_331: EngineState: Total frames 197457 with CRC error 15 (0.007596590%)
2022-11-13_11_42_35_332: EngineState: Total slow channel messages 0 with crc6 errors 0 (NaN%)
2022-11-13_11_42_35_333: EngineState: Sync errors 23713
2022-11-13_11_42_35_335: EngineState: --------------------
2022-11-13_11_42_35_336: EngineState: confirmation_sentinfo:8
2022-11-13_11_42_35_433: EngineState: ---- SENT ch 0 ----
2022-11-13_11_42_35_433: EngineState: Unit time 538 CPU ticks 3.202380896 uS
2022-11-13_11_42_35_433: EngineState: Total pulses 2020610
2022-11-13_11_42_35_434: EngineState: Last valid fast msg Status 0x0 Sig0 0xAD4 Sig1 0x52B
2022-11-13_11_42_35_434: EngineState: valueErrorRate 0.000000000
2022-11-13_11_42_35_434: EngineState: Restarts 0
2022-11-13_11_42_35_435: EngineState: Interval errors 23854 short, 1674 long
2022-11-13_11_42_35_440: EngineState: Total frames 197599 with CRC error 15 (0.007591131%)
2022-11-13_11_42_35_442: EngineState: Total slow channel messages 0 with crc6 errors 0 (NaN%)
2022-11-13_11_42_35_443: EngineState: Sync errors 23854
2022-11-13_11_42_35_443: EngineState: --------------------
2022-11-13_11_42_35_444: EngineState: confirmation_sentinfo:8
2022-11-13_11_42_35_766: EngineState: ---- SENT ch 0 ----
2022-11-13_11_42_35_766: EngineState: Unit time 539 CPU ticks 3.208333248 uS
2022-11-13_11_42_35_767: EngineState: Total pulses 2023619
2022-11-13_11_42_35_769: EngineState: Last valid fast msg Status 0x0 Sig0 0xAD3 Sig1 0x52C
2022-11-13_11_42_35_780: EngineState: valueErrorRate 0.000000000
2022-11-13_11_42_35_784: EngineState: Restarts 0
2022-11-13_11_42_35_785: EngineState: Interval errors 24022 short, 1674 long
2022-11-13_11_42_35_786: EngineState: Total frames 197766 with CRC error 15 (0.007584721%)
2022-11-13_11_42_35_787: EngineState: Total slow channel messages 0 with crc6 errors 0 (NaN%)
2022-11-13_11_42_35_788: EngineState: Sync errors 24022
2022-11-13_11_42_35_789: EngineState: --------------------
2022-11-13_11_42_35_791: EngineState: confirmation_sentinfo:8
2022-11-13_11_42_35_875: EngineState: ---- SENT ch 0 ----
2022-11-13_11_42_35_875: EngineState: Unit time 539 CPU ticks 3.208333248 uS
2022-11-13_11_42_35_876: EngineState: Total pulses 2025652
2022-11-13_11_42_35_876: EngineState: Last valid fast msg Status 0x0 Sig0 0xAD4 Sig1 0x52B
2022-11-13_11_42_35_877: EngineState: valueErrorRate 0.000000000
2022-11-13_11_42_35_881: EngineState: Restarts 0
2022-11-13_11_42_35_882: EngineState: Interval errors 24134 short, 1674 long
2022-11-13_11_42_35_883: EngineState: Total frames 197879 with CRC error 16 (0.008085749%)
2022-11-13_11_42_35_884: EngineState: Total slow channel messages 0 with crc6 errors 0 (NaN%)
2022-11-13_11_42_35_885: EngineState: Sync errors 24134
2022-11-13_11_42_35_886: EngineState: --------------------
2022-11-13_11_42_35_887: EngineState: confirmation_sentinfo:8
2022-11-13_11_42_35_985: EngineState: ---- SENT ch 0 ----
2022-11-13_11_42_35_985: EngineState: Unit time 539 CPU ticks 3.208333248 uS
2022-11-13_11_42_35_986: EngineState: Total pulses 2027705
2022-11-13_11_42_35_986: EngineState: Last valid fast msg Status 0x0 Sig0 0xAD3 Sig1 0x52C
2022-11-13_11_42_35_986: EngineState: valueErrorRate 0.000000000
2022-11-13_11_42_35_987: EngineState: Restarts 0
2022-11-13_11_42_35_992: EngineState: Interval errors 24246 short, 1677 long
2022-11-13_11_42_35_993: EngineState: Total frames 197991 with CRC error 16 (0.008081175%)
2022-11-13_11_42_35_994: EngineState: Total slow channel messages 0 with crc6 errors 0 (NaN%)
2022-11-13_11_42_35_995: EngineState: Sync errors 24246
2022-11-13_11_42_35_996: EngineState: --------------------
2022-11-13_11_42_35_996: EngineState: confirmation_sentinfo:8
2022-11-13_11_42_36_096: EngineState: WARNING: Injector 0 fault: open_load 
2022-11-13_11_42_36_104: EngineState: WARNING: Injector 1 fault: open_load 
2022-11-13_11_42_36_104: EngineState: WARNING: Injector 2 fault: open_load 
2022-11-13_11_42_36_104: EngineState: WARNING: Injector 3 fault: open_load 
2022-11-13_11_42_36_209: EngineState: ---- SENT ch 0 ----
2022-11-13_11_42_36_210: EngineState: Unit time 539 CPU ticks 3.208333248 uS
2022-11-13_11_42_36_210: EngineState: Total pulses 2030175
2022-11-13_11_42_36_210: EngineState: Last valid fast msg Status 0x0 Sig0 0xAD4 Sig1 0x52B
2022-11-13_11_42_36_210: EngineState: valueErrorRate 0.000000000
2022-11-13_11_42_36_211: EngineState: Restarts 0
2022-11-13_11_42_36_216: EngineState: Interval errors 24379 short, 1682 long
2022-11-13_11_42_36_217: EngineState: Total frames 198124 with CRC error 16 (0.008075750%)
2022-11-13_11_42_36_218: EngineState: Total slow channel messages 0 with crc6 errors 0 (NaN%)
2022-11-13_11_42_36_219: EngineState: Sync errors 24379
2022-11-13_11_42_36_220: EngineState: --------------------
2022-11-13_11_42_36_220: EngineState: confirmation_sentinfo:8
2022-11-13_11_42_36_320: EngineState: ---- SENT ch 0 ----
2022-11-13_11_42_36_320: EngineState: Unit time 539 CPU ticks 3.208333248 uS
2022-11-13_11_42_36_320: EngineState: Total pulses 2032535
2022-11-13_11_42_36_320: EngineState: Last valid fast msg Status 0x0 Sig0 0xAD4 Sig1 0x52B
2022-11-13_11_42_36_321: EngineState: valueErrorRate 0.000000000
2022-11-13_11_42_36_327: EngineState: Restarts 0
2022-11-13_11_42_36_331: EngineState: Interval errors 24508 short, 1684 long
2022-11-13_11_42_36_333: EngineState: Total frames 198254 with CRC error 16 (0.008070455%)
2022-11-13_11_42_36_336: EngineState: Total slow channel messages 0 with crc6 errors 0 (NaN%)
2022-11-13_11_42_36_338: EngineState: Sync errors 24508
2022-11-13_11_42_36_338: EngineState: --------------------
2022-11-13_11_42_36_339: EngineState: confirmation_sentinfo:8
2022-11-13_11_42_36_872: EngineState: ---- SENT ch 0 ----
2022-11-13_11_42_36_873: EngineState: Unit time 538 CPU ticks 3.202380896 uS
2022-11-13_11_42_36_873: EngineState: Total pulses 2038534
2022-11-13_11_42_36_873: EngineState: Last valid fast msg Status 0x0 Sig0 0xAD4 Sig1 0x52B
2022-11-13_11_42_36_874: EngineState: valueErrorRate 0.000000000
2022-11-13_11_42_36_879: EngineState: Restarts 0
2022-11-13_11_42_36_879: EngineState: Interval errors 24838 short, 1689 long
2022-11-13_11_42_36_880: EngineState: Total frames 198583 with CRC error 16 (0.008057085%)
2022-11-13_11_42_36_881: EngineState: Total slow channel messages 0 with crc6 errors 0 (NaN%)
2022-11-13_11_42_36_883: EngineState: Sync errors 24838
2022-11-13_11_42_36_885: EngineState: --------------------
2022-11-13_11_42_36_885: EngineState: confirmation_sentinfo:8
2022-11-13_11_42_36_886: EngineState: ---- SENT ch 0 ----
2022-11-13_11_42_36_888: EngineState: Unit time 539 CPU ticks 3.208333248 uS
2022-11-13_11_42_36_889: EngineState: Total pulses 2039744
2022-11-13_11_42_36_890: EngineState: Last valid fast msg Status 0x0 Sig0 0xAD3 Sig1 0x52C
2022-11-13_11_42_36_891: EngineState: valueErrorRate 0.000000000
2022-11-13_11_42_36_891: EngineState: Restarts 0
2022-11-13_11_42_36_891: EngineState: Interval errors 24905 short, 1689 long
2022-11-13_11_42_36_891: EngineState: Total frames 198650 with CRC error 16 (0.008054367%)
2022-11-13_11_42_36_891: EngineState: Total slow channel messages 0 with crc6 errors 0 (NaN%)
2022-11-13_11_42_36_891: EngineState: Sync errors 24905
2022-11-13_11_42_36_891: EngineState: --------------------
2022-11-13_11_42_36_891: EngineState: confirmation_sentinfo:8
2022-11-13_11_42_36_984: EngineState: WARNING: Sensor fault: Tps1Primary has timed out
2022-11-13_11_42_37_094: EngineState: ---- SENT ch 0 ----
2022-11-13_11_42_37_094: EngineState: Unit time 539 CPU ticks 3.208333248 uS
2022-11-13_11_42_37_094: EngineState: Total pulses 2042216
2022-11-13_11_42_37_094: EngineState: Last valid fast msg Status 0x0 Sig0 0xAD3 Sig1 0x52C
2022-11-13_11_42_37_095: EngineState: valueErrorRate 0.000000000
2022-11-13_11_42_37_100: EngineState: Restarts 0
2022-11-13_11_42_37_101: EngineState: Interval errors 25040 short, 1691 long
2022-11-13_11_42_37_102: EngineState: Total frames 198785 with CRC error 16 (0.008048896%)
2022-11-13_11_42_37_103: EngineState: Total slow channel messages 0 with crc6 errors 0 (NaN%)
2022-11-13_11_42_37_104: EngineState: Sync errors 25040
2022-11-13_11_42_37_105: EngineState: --------------------
2022-11-13_11_42_37_106: EngineState: confirmation_sentinfo:8
2022-11-13_11_42_37_539: EngineState: ---- SENT ch 0 ----
2022-11-13_11_42_37_540: EngineState: Unit time 538 CPU ticks 3.202380896 uS
2022-11-13_11_42_37_540: EngineState: Total pulses 2047595
2022-11-13_11_42_37_541: EngineState: Last valid fast msg Status 0x0 Sig0 0xAD3 Sig1 0x52C
2022-11-13_11_42_37_543: EngineState: valueErrorRate 0.000000000
2022-11-13_11_42_37_552: EngineState: Restarts 0
2022-11-13_11_42_37_553: EngineState: Interval errors 25336 short, 1694 long
2022-11-13_11_42_37_555: EngineState: Total frames 199082 with CRC error 18 (0.009041500%)
2022-11-13_11_42_37_556: EngineState: Total slow channel messages 0 with crc6 errors 0 (NaN%)
2022-11-13_11_42_37_556: EngineState: Sync errors 25336
2022-11-13_11_42_37_557: EngineState: --------------------
2022-11-13_11_42_37_557: EngineState: confirmation_sentinfo:8
2022-11-13_11_42_37_870: EngineState: ---- SENT ch 0 ----
2022-11-13_11_42_37_871: EngineState: Unit time 538 CPU ticks 3.202380896 uS
2022-11-13_11_42_37_871: EngineState: Total pulses 2051941
2022-11-13_11_42_37_871: EngineState: Last valid fast msg Status 0x0 Sig0 0xAD4 Sig1 0x52B
2022-11-13_11_42_37_872: EngineState: valueErrorRate 0.000000000
2022-11-13_11_42_37_879: EngineState: Restarts 0
2022-11-13_11_42_37_880: EngineState: Interval errors 25576 short, 1696 long
2022-11-13_11_42_37_881: EngineState: Total frames 199322 with CRC error 19 (0.009532315%)
2022-11-13_11_42_37_881: EngineState: Total slow channel messages 0 with crc6 errors 0 (NaN%)
2022-11-13_11_42_37_884: EngineState: Sync errors 25576
2022-11-13_11_42_37_886: EngineState: --------------------
2022-11-13_11_42_37_889: EngineState: confirmation_sentinfo:8
2022-11-13_11_42_38_202: EngineState: ---- SENT ch 0 ----
2022-11-13_11_42_38_203: EngineState: Unit time 539 CPU ticks 3.208333248 uS
2022-11-13_11_42_38_205: EngineState: Total pulses 2056413
2022-11-13_11_42_38_213: EngineState: Last valid fast msg Status 0x0 Sig0 0xAD4 Sig1 0x52B
2022-11-13_11_42_38_213: EngineState: valueErrorRate 0.000000000
2022-11-13_11_42_38_215: EngineState: Restarts 0
2022-11-13_11_42_38_217: EngineState: Interval errors 25820 short, 1700 long
2022-11-13_11_42_38_220: EngineState: Total frames 199568 with CRC error 20 (0.010021647%)
2022-11-13_11_42_38_222: EngineState: Total slow channel messages 0 with crc6 errors 0 (NaN%)
2022-11-13_11_42_38_223: EngineState: Sync errors 25820
2022-11-13_11_42_38_223: EngineState: --------------------
2022-11-13_11_42_38_223: EngineState: confirmation_sentinfo:8
2022-11-13_11_42_38_536: EngineState: ---- SENT ch 0 ----
2022-11-13_11_42_38_536: EngineState: Unit time 539 CPU ticks 3.208333248 uS
2022-11-13_11_42_38_537: EngineState: Total pulses 2060839
2022-11-13_11_42_38_540: EngineState: Last valid fast msg Status 0x0 Sig0 0xAD3 Sig1 0x52C
2022-11-13_11_42_38_552: EngineState: valueErrorRate 0.000000000
2022-11-13_11_42_38_554: EngineState: Restarts 0
2022-11-13_11_42_38_556: EngineState: Interval errors 26065 short, 1702 long
2022-11-13_11_42_38_559: EngineState: Total frames 199812 with CRC error 20 (0.010009409%)
2022-11-13_11_42_38_560: EngineState: Total slow channel messages 0 with crc6 errors 0 (NaN%)
2022-11-13_11_42_38_561: EngineState: Sync errors 26065
2022-11-13_11_42_38_562: EngineState: --------------------
2022-11-13_11_42_38_563: EngineState: confirmation_sentinfo:8
2022-11-13_11_42_38_643: EngineState: ---- SENT ch 0 ----
2022-11-13_11_42_38_643: EngineState: Unit time 538 CPU ticks 3.202380896 uS
2022-11-13_11_42_38_644: EngineState: Total pulses 2062994
2022-11-13_11_42_38_644: EngineState: Last valid fast msg Status 0x0 Sig0 0xAD4 Sig1 0x52B
2022-11-13_11_42_38_644: EngineState: valueErrorRate 0.000000000
2022-11-13_11_42_38_645: EngineState: Restarts 0
2022-11-13_11_42_38_645: EngineState: Interval errors 26183 short, 1704 long
2022-11-13_11_42_38_649: EngineState: Total frames 199931 with CRC error 20 (0.010003451%)
2022-11-13_11_42_38_650: EngineState: Total slow channel messages 0 with crc6 errors 0 (NaN%)
2022-11-13_11_42_38_653: EngineState: Sync errors 26183
2022-11-13_11_42_38_654: EngineState: --------------------
2022-11-13_11_42_38_656: EngineState: confirmation_sentinfo:8
2022-11-13_11_42_38_752: EngineState: ---- SENT ch 0 ----
2022-11-13_11_42_38_752: EngineState: Unit time 539 CPU ticks 3.208333248 uS
2022-11-13_11_42_38_752: EngineState: Total pulses 2064916
2022-11-13_11_42_38_752: EngineState: Last valid fast msg Status 0x0 Sig0 0xAD3 Sig1 0x52C
2022-11-13_11_42_38_753: EngineState: valueErrorRate 0.000000000
2022-11-13_11_42_38_759: EngineState: Restarts 0
2022-11-13_11_42_38_760: EngineState: Interval errors 26290 short, 1704 long
2022-11-13_11_42_38_761: EngineState: Total frames 200037 with CRC error 20 (0.009998150%)
2022-11-13_11_42_38_762: EngineState: Total slow channel messages 0 with crc6 errors 0 (NaN%)
2022-11-13_11_42_38_764: EngineState: Sync errors 26290
2022-11-13_11_42_38_765: EngineState: --------------------
2022-11-13_11_42_38_765: EngineState: confirmation_sentinfo:8
2022-11-13_11_42_39_088: EngineState: ---- SENT ch 0 ----
2022-11-13_11_42_39_088: EngineState: Unit time 539 CPU ticks 3.208333248 uS
2022-11-13_11_42_39_089: EngineState: Total pulses 2068282
2022-11-13_11_42_39_089: EngineState: Last valid fast msg Status 0x0 Sig0 0xAD4 Sig1 0x52B
2022-11-13_11_42_39_102: EngineState: valueErrorRate 0.000000000
2022-11-13_11_42_39_104: EngineState: Restarts 0
2022-11-13_11_42_39_104: EngineState: Interval errors 26474 short, 1708 long
2022-11-13_11_42_39_105: EngineState: Total frames 200221 with CRC error 21 (0.010488410%)
2022-11-13_11_42_39_106: EngineState: Total slow channel messages 0 with crc6 errors 0 (NaN%)
2022-11-13_11_42_39_107: EngineState: Sync errors 26474
2022-11-13_11_42_39_108: EngineState: --------------------
2022-11-13_11_42_39_110: EngineState: confirmation_sentinfo:8
2022-11-13_11_42_39_197: EngineState: ---- SENT ch 0 ----
2022-11-13_11_42_39_198: EngineState: Unit time 539 CPU ticks 3.208333248 uS
2022-11-13_11_42_39_198: EngineState: Total pulses 2070294
2022-11-13_11_42_39_198: EngineState: Last valid fast msg Status 0x0 Sig0 0xAD4 Sig1 0x52B
2022-11-13_11_42_39_198: EngineState: valueErrorRate 0.000000000
2022-11-13_11_42_39_198: EngineState: Restarts 0
2022-11-13_11_42_39_199: EngineState: Interval errors 26585 short, 1709 long
2022-11-13_11_42_39_204: EngineState: Total frames 200332 with CRC error 21 (0.010482599%)
2022-11-13_11_42_39_205: EngineState: Total slow channel messages 0 with crc6 errors 0 (NaN%)
2022-11-13_11_42_39_206: EngineState: Sync errors 26585
2022-11-13_11_42_39_206: EngineState: --------------------
2022-11-13_11_42_39_207: EngineState: confirmation_sentinfo:8
2022-11-13_11_42_39_530: EngineState: ---- SENT ch 0 ----
2022-11-13_11_42_39_530: EngineState: Unit time 539 CPU ticks 3.208333248 uS
2022-11-13_11_42_39_530: EngineState: Total pulses 2074246
2022-11-13_11_42_39_530: EngineState: Last valid fast msg Status 0x0 Sig0 0xAD4 Sig1 0x52B
2022-11-13_11_42_39_531: EngineState: valueErrorRate 0.000000000
2022-11-13_11_42_39_536: EngineState: Restarts 0
2022-11-13_11_42_39_537: EngineState: Interval errors 26803 short, 1711 long
2022-11-13_11_42_39_538: EngineState: Total frames 200550 with CRC error 21 (0.010471204%)
2022-11-13_11_42_39_539: EngineState: Total slow channel messages 0 with crc6 errors 0 (NaN%)
2022-11-13_11_42_39_541: EngineState: Sync errors 26803
2022-11-13_11_42_39_542: EngineState: --------------------
2022-11-13_11_42_39_543: EngineState: confirmation_sentinfo:8
2022-11-13_11_42_39_544: EngineState: ---- SENT ch 0 ----
2022-11-13_11_42_39_544: EngineState: Unit time 539 CPU ticks 3.208333248 uS
2022-11-13_11_42_39_545: EngineState: Total pulses 2075233
2022-11-13_11_42_39_546: EngineState: Last valid fast msg Status 0x0 Sig0 0xAD4 Sig1 0x52B
2022-11-13_11_42_39_546: EngineState: valueErrorRate 0.000000000
2022-11-13_11_42_39_546: EngineState: Restarts 0
2022-11-13_11_42_39_546: EngineState: Interval errors 26857 short, 1711 long
2022-11-13_11_42_39_546: EngineState: Total frames 200606 with CRC error 22 (0.010966770%)
2022-11-13_11_42_39_546: EngineState: Total slow channel messages 0 with crc6 errors 0 (NaN%)
2022-11-13_11_42_39_546: EngineState: Sync errors 26857
2022-11-13_11_42_39_546: EngineState: --------------------
2022-11-13_11_42_39_546: EngineState: confirmation_sentinfo:8
2022-11-13_11_42_39_752: EngineState: ---- SENT ch 0 ----
2022-11-13_11_42_39_752: EngineState: Unit time 538 CPU ticks 3.202380896 uS
2022-11-13_11_42_39_752: EngineState: Total pulses 2077490
2022-11-13_11_42_39_752: EngineState: Last valid fast msg Status 0x0 Sig0 0xAD4 Sig1 0x52B
2022-11-13_11_42_39_752: EngineState: valueErrorRate 0.000000000
2022-11-13_11_42_39_753: EngineState: Restarts 0
2022-11-13_11_42_39_760: EngineState: Interval errors 26981 short, 1713 long
2022-11-13_11_42_39_760: EngineState: Total frames 200729 with CRC error 22 (0.010960051%)
2022-11-13_11_42_39_763: EngineState: Total slow channel messages 0 with crc6 errors 0 (NaN%)
2022-11-13_11_42_39_764: EngineState: Sync errors 26981
2022-11-13_11_42_39_766: EngineState: --------------------
2022-11-13_11_42_39_766: EngineState: confirmation_sentinfo:8
2022-11-13_11_42_40_084: EngineState: ---- SENT ch 0 ----
2022-11-13_11_42_40_084: EngineState: Unit time 539 CPU ticks 3.208333248 uS
2022-11-13_11_42_40_084: EngineState: Total pulses 2081648
2022-11-13_11_42_40_085: EngineState: Last valid fast msg Status 0x0 Sig0 0xAD4 Sig1 0x52B
2022-11-13_11_42_40_085: EngineState: valueErrorRate 0.000000000
2022-11-13_11_42_40_091: EngineState: Restarts 0
2022-11-13_11_42_40_093: EngineState: Interval errors 27210 short, 1716 long
2022-11-13_11_42_40_093: EngineState: Total frames 200958 with CRC error 22 (0.010947561%)
2022-11-13_11_42_40_094: EngineState: Total slow channel messages 0 with crc6 errors 0 (NaN%)
2022-11-13_11_42_40_096: EngineState: Sync errors 27210
2022-11-13_11_42_40_096: EngineState: --------------------
2022-11-13_11_42_40_097: EngineState: confirmation_sentinfo:8
2022-11-13_11_42_40_098: EngineState: ---- SENT ch 0 ----
2022-11-13_11_42_40_099: EngineState: Unit time 539 CPU ticks 3.208333248 uS
2022-11-13_11_42_40_099: EngineState: Total pulses 2082646
2022-11-13_11_42_40_100: EngineState: Last valid fast msg Status 0x0 Sig0 0xAD3 Sig1 0x52C
2022-11-13_11_42_40_100: EngineState: valueErrorRate 0.000000000
2022-11-13_11_42_40_100: EngineState: Restarts 0
2022-11-13_11_42_40_100: EngineState: Interval errors 27265 short, 1716 long
2022-11-13_11_42_40_100: EngineState: Total frames 201013 with CRC error 22 (0.010944566%)
2022-11-13_11_42_40_100: EngineState: Total slow channel messages 0 with crc6 errors 0 (NaN%)
2022-11-13_11_42_40_100: EngineState: Sync errors 27265
2022-11-13_11_42_40_100: EngineState: --------------------
2022-11-13_11_42_40_101: EngineState: confirmation_sentinfo:8
2022-11-13_11_42_40_412: EngineState: ---- SENT ch 0 ----
2022-11-13_11_42_40_412: EngineState: Unit time 539 CPU ticks 3.208333248 uS
2022-11-13_11_42_40_412: EngineState: Total pulses 2086105
2022-11-13_11_42_40_413: EngineState: Last valid fast msg Status 0x0 Sig0 0xAD3 Sig1 0x52C
2022-11-13_11_42_40_420: EngineState: valueErrorRate 0.000000000
2022-11-13_11_42_40_421: EngineState: Restarts 0
2022-11-13_11_42_40_422: EngineState: Interval errors 27454 short, 1720 long
2022-11-13_11_42_40_423: EngineState: Total frames 201202 with CRC error 22 (0.010934285%)
2022-11-13_11_42_40_425: EngineState: Total slow channel messages 0 with crc6 errors 0 (NaN%)
2022-11-13_11_42_40_426: EngineState: Sync errors 27454
2022-11-13_11_42_40_427: EngineState: --------------------
2022-11-13_11_42_40_427: EngineState: confirmation_sentinfo:8
2022-11-13_11_42_40_524: EngineState: ---- SENT ch 0 ----
2022-11-13_11_42_40_524: EngineState: Unit time 539 CPU ticks 3.208333248 uS
2022-11-13_11_42_40_524: EngineState: Total pulses 2088347
2022-11-13_11_42_40_525: EngineState: Last valid fast msg Status 0x0 Sig0 0xAD3 Sig1 0x52C
2022-11-13_11_42_40_530: EngineState: valueErrorRate 0.000000000
2022-11-13_11_42_40_532: EngineState: Restarts 0
2022-11-13_11_42_40_532: EngineState: Interval errors 27575 short, 1723 long
2022-11-13_11_42_40_533: EngineState: Total frames 201323 with CRC error 22 (0.010927713%)
2022-11-13_11_42_40_534: EngineState: Total slow channel messages 0 with crc6 errors 0 (NaN%)
2022-11-13_11_42_40_537: EngineState: Sync errors 27575
2022-11-13_11_42_40_538: EngineState: --------------------
2022-11-13_11_42_40_538: EngineState: confirmation_sentinfo:8

@rusefillc
Copy link
Contributor Author

I think we are mission accomplished here see https://rusefi.com/forum/viewtopic.php?p=44982#p44982

GM 2022-11-13 at 11 51 18 AM
GM 2022-11-13 at 11 50 59 AM
GM 2022-11-13 at 11 50 45 AM
GM 2022-11-13 at 11 50 29 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants