Code Monkey home page Code Monkey logo

Comments (21)

uholeschak avatar uholeschak commented on June 8, 2024 1

If this is no communication problem, please check the INPA traces to see which jobs they are using.

from ediabaslib.

6i6i avatar 6i6i commented on June 8, 2024

I just checked it with DeepOBD with the same hardware on my Android Phone and get the exact same error:
photo_2019-04-20_10-45-22
photo_2019-04-20_10-45-28

from ediabaslib.

6i6i avatar 6i6i commented on June 8, 2024

One additional thing I just found out :-) is that if I connect with INPA and execute STATUS_MESSWERTBLOCK_0 i get the data immediately. If I disconnect afterwards and do not switch off the ignition and connect my pi again I can read the data without problems:
osmc@BMW:~/ediabaslib/EdiabasLib/EdiabasTest/bin/Debug$ sudo mono EdiabasTest.exe --alltypes -s ms450ds0.prg -j STATUS_MESSWERTBLOCK_0 -p /dev/ttyUSB1
API Version: 7.3.0
JOB: STATUS_MESSWERTBLOCK_0
Variant: MS450DS0
DATASET: 0
IGNITIONCURRENT: I: -1 0xFFFF ALL: -1 255 -1 65535 -1 4294967295 -1
IGNITIONHISTORY: I: -1 0xFFFF ALL: -1 255 -1 65535 -1 4294967295 -1
JOBNAME: STATUS_MESSWERTBLOCK_0
JOBSTATUS:
OBJECT: ms450ds0
SAETZE: W: 1 0x0001 ALL: 1 1 1 1 1 1 1
UBATTCURRENT: I: -1 0xFFFF ALL: -1 255 -1 65535 -1 4294967295 -1
UBATTHISTORY: I: -1 0xFFFF ALL: -1 255 -1 65535 -1 4294967295 -1
VARIANTE: MS450DS0
DATASET: 1
_TEL_ANTWORT: 61 F0 7E 00 00 00 00 00 04 19 51 00 52 00 65 00 35 00 00 00 2E 80 03 02 00 00 27 80 D9 40
_TEL_AUFTRAG: B8 12 F1 02 21 F0
JOB_STATUS: OKAY
STAT_MESSWERT0_EINH: V
STAT_MESSWERT0_TEXT: Spannung Kl.87
STAT_MESSWERT0_WERT: R: 12.796890624 ALL: 12 12 12 12 12 12 12.796890624
STAT_MESSWERT1_EINH: km/h
STAT_MESSWERT1_TEXT: Geschwindigkeit
STAT_MESSWERT1_WERT: R: 0 ALL: 0 0 0 0 0 0 0
STAT_MESSWERT2_EINH: 1/min
STAT_MESSWERT2_TEXT: Motordrehzahl
STAT_MESSWERT2_WERT: R: 0 ALL: 0 0 0 0 0 0 0
STAT_MESSWERT3_EINH: 1/min
STAT_MESSWERT3_TEXT: LLR – Solldrehzahl
STAT_MESSWERT3_WERT: R: 1049 ALL: 25 25 1049 1049 1049 1049 1049
STAT_MESSWERT4_EINH: C
STAT_MESSWERT4_TEXT: Motortemperatur
STAT_MESSWERT4_WERT: R: 12.750010368 ALL: 12 12 12 12 12 12 12.750010368
STAT_MESSWERT5_EINH: C
STAT_MESSWERT5_TEXT: Kühlmitteltemperatur Kühlerausgang
STAT_MESSWERT5_WERT: R: 13.500010496 ALL: 13 13 13 13 13 13 13.500010496
STAT_MESSWERT6_EINH: C
STAT_MESSWERT6_TEXT: Ansauglufttemperatur
STAT_MESSWERT6_WERT: R: 27.750012928 ALL: 27 27 27 27 27 27 27.750012928
STAT_MESSWERT7_EINH: C
STAT_MESSWERT7_TEXT: (Motor) - Öltemperatur
STAT_MESSWERT7_WERT: R: 13 ALL: 13 13 13 13 13 13 13
STAT_MESSWERT8_EINH: kg/h
STAT_MESSWERT8_TEXT: Luftmasse
STAT_MESSWERT8_WERT: R: 0 ALL: 0 0 0 0 0 0 0
STAT_MESSWERT9_EINH: hPa
STAT_MESSWERT9_TEXT: Umgebungsdruck
STAT_MESSWERT9_WERT: R: 987.03515904 ALL: -37 219 987 987 987 987 987.03515904
STAT_MESSWERTA_EINH: °DK
STAT_MESSWERTA_TEXT: Drosselklappe Sollwert
STAT_MESSWERTA_WERT: R: 5.61614977 ALL: 5 5 5 5 5 5 5.61614977
STAT_MESSWERTB_EINH: %
STAT_MESSWERTB_TEXT: Fahrpedalwert
STAT_MESSWERTB_WERT: R: 0 ALL: 0 0 0 0 0 0 0
STAT_MESSWERTC_EINH: V
STAT_MESSWERTC_TEXT: Spannung Drosselklappe Poti1
STAT_MESSWERTC_WERT: R: 0.77144448 ALL: 0 0 0 0 0 0 0.77144448
STAT_MESSWERTD_EINH: V
STAT_MESSWERTD_TEXT: Spannung Drosselklappe Poti2
STAT_MESSWERTD_WERT: R: 4.24294464 ALL: 4 4 4 4 4 4 4.24294464

from ediabaslib.

uholeschak avatar uholeschak commented on June 8, 2024

Please attach the trace files (ifh and api) for both cases, so we could see the difference.

from ediabaslib.

6i6i avatar 6i6i commented on June 8, 2024

Thank you very much for the quick response. Can you provide me a quick introduction how I can get the INPA trace files?

from ediabaslib.

uholeschak avatar uholeschak commented on June 8, 2024

At the moment I don't remember how to enable them, one solution would be to replace the api32.dll with the EdiabasLib version and enable logging there or simply log the telegrams on the line.

from ediabaslib.

6i6i avatar 6i6i commented on June 8, 2024

Ok. I'll give it a try afterwards. Thank you very much for the support!

from ediabaslib.

uholeschak avatar uholeschak commented on June 8, 2024

You could try to set the corresponding flags in ediabas.ini, but I think INPA overrides them afterwards.

from ediabaslib.

uholeschak avatar uholeschak commented on June 8, 2024

If I remember correctly, I have used the following flags in EdiabsLib.config to force tracing:

    <add key="ApiTrace" value="1" />
    <add key="IfhTrace" value="2" />
    <add key="LockTrace" value="1" />

You have to replace the api32.dll of course.
If INPA has the same problem with the replaced dll, it's probably a bug in EdiabsLib.

from ediabaslib.

6i6i avatar 6i6i commented on June 8, 2024

Hi, I have no compiled API32.dll so far. But I managed to enable trace in INPA by setting ApiTrace = 8
IfhTrace = 3 in file EDIABAS.INI.

I attached the trace files from INPA and from EdiabasTest Commandline tool before and after the execution of INPA. For me the trace files are looking quite different, but maybe you can read something out of it?
What I can definitely say is that if I execute INPA and execute the reading of STATUS_MESSWERTBLOCK_0 it will afterwards work with EdiabasTest too if I do not put the ignition off in the meanwhile. It seems that somehow INPA is executing something additional to put the ECU in a "correct mode".

Thank you
ediabastrace.zip

from ediabaslib.

uholeschak avatar uholeschak commented on June 8, 2024

Thanks, I will check that when I have some time, but it seems that the important part is missing in the INPA trace (part been the api.trc and apiold.trc)

from ediabaslib.

uholeschak avatar uholeschak commented on June 8, 2024

You have get the job before the first:

[23:16:58]	apiJob(
			"MS450DS0",
			"STATUS_MESSWERTBLOCK_0",
			"",
			""
			)

from ediabaslib.

6i6i avatar 6i6i commented on June 8, 2024

Ok. I understand seems that INPA somehow has overwritten a part of the trace file. :-(. I'll check this tomorrow.
Thank you

from ediabaslib.

6i6i avatar 6i6i commented on June 8, 2024

Hi,
I found out, that INPA first executes MESSWERTBLOCK_0_SCHREIBEN before it executes STATUS_MESSWERTBLOCK_0. So I tried this and it seems to work now.
Thank you very much for guiding me to this solution and this great piece of software from your side! :-)

BR

from ediabaslib.

uholeschak avatar uholeschak commented on June 8, 2024

Thanks for the info, does this job require any parameters?
Perhaps I could add this to the documentation section.

from ediabaslib.

6i6i avatar 6i6i commented on June 8, 2024

No it does not require any parameters. But I think the same is necessary for the other STATUS_MESSWERTBLOCK_X.

from ediabaslib.

uholeschak avatar uholeschak commented on June 8, 2024

Thanks, I will check if there is also a write command, perhaps I could add it to the configuration generator of the app.

from ediabaslib.

uholeschak avatar uholeschak commented on June 8, 2024

It seems to to be a special thing only for MS450DS0, there MESSWERTBLOCK_0_SCHREIBEN to MESSWERTBLOCK_7_SCHREIBEN is existing.

from ediabaslib.

6i6i avatar 6i6i commented on June 8, 2024

Ok. Strange. But they would have some reason for this propably. :-D

from ediabaslib.

uholeschak avatar uholeschak commented on June 8, 2024

I have now added some info to the documentation section, at least this knowledge will not be lost ...

from ediabaslib.

6i6i avatar 6i6i commented on June 8, 2024

OK that's good. Thank you very much again for this awesome software and the quick and kind support!

from ediabaslib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.