<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Soko,<br>
<br>
don't get me wrong, no criticism intended. If I had my Mii, I could
help you by trying some things. Not sure if that will even be this
year… no info whatsoever by Seat.<br>
<br>
I'm happy to let you guys go ahead on the UpMiiGo part, looking
forward to getting my first car that already has an OVMS adaption
:-)<br>
<br>
And of course I'll help you getting into the framework, our
developer documentation lacks almost everything.<br>
<br>
That also applies to the RE tools. As Chris already posted, use the
beta UI, that helps. But the toolkit can do more than the UI
supports, for example apply filters and do OBD request analysis.
Browse through the "re" commands to get an idea (use the "?" on the
(sub-)command to see the synopsis & info).<br>
<br>
Basic command intros by Mark:<br>
<ul>
<li><a
href="http://lists.openvehicles.com/pipermail/ovmsdev/2017-October/003408.html">http://lists.openvehicles.com/pipermail/ovmsdev/2017-October/003408.html</a></li>
<li><a
href="http://lists.openvehicles.com/pipermail/ovmsdev/2017-November/003446.html">http://lists.openvehicles.com/pipermail/ovmsdev/2017-November/003446.html</a><br>
</li>
</ul>
Btw, if using the re shell output from the web shell, that will
currently include lots of ANSI escape codes. Use the UI instead ;-)<br>
<br>
<br>
Regarding the OBD port, the first place to look is the schematics.
Do we have these yet? If not, checking the voltage levels on the
other port pins can give a first hint. If something looks like a
data signal, a logic analyzer can tell if that's CAN.<br>
<br>
The OVMS has two additional CAN buses on the DA-26 port we can use,
so all you need is a cable. Most standard OBD DIAG interfaces won't
support additional buses on the port.<br>
<br>
Regards,<br>
Michael<br>
<br>
<br>
<div class="moz-cite-prefix">Am 30.07.20 um 17:56 schrieb Soko:<br>
</div>
<blockquote type="cite"
cite="mid:a02b48d3-b059-49bc-26a4-e293bb6419b0@soko.cc">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p>@devmarxx: Is there any doc/guide on how to use this RE Tools?</p>
<p>@Michael: Yeah, I know. You would have done my 1-day work in 5
mins. I know C++ but I don't know the OVMS framework. But its
like with any project: The issue is not the language, its the
framework.</p>
<p>Until you have yours you have to settle with me unfortunately
;)</p>
<p>My cousin has a working VCDS HEX interface and I have an
y-adapter so I can listen with an ELM327 adapter to the commands
VCDS is sending. Maybe I can find any car status there. Device
09 is a good hint. <br>
</p>
<p>But as you said: I have still have to poll this, even if I find
a status.</p>
<p>I can't say (of course) if there's another CAN bus @ OBD port.
All this CAN/OBD/Bus stuff is completely new to me.. ModBus
RTU/TCP, MBus etc. I would know ;)</p>
<p>So if you can point me in any direction what to try - or what
you would do - I happy to dig into it.</p>
<p>Soko</p>
<p>PS: Any idea when you'll get your Mii?<br>
</p>
<div class="moz-cite-prefix">On 30.07.2020 17:14, Michael Balzer
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:193a06ae-81aa-52a0-047e-6bde5107dbdc@expeedo.de">
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8">
If only I had my Mii already…<br>
<br>
If the OBD port is shielded from the CAN traffic, you need to
poll some device. ECU = Engine Control Unit = device 01.<br>
<br>
I would suspect the basic car status info to be available from
device 09 (central electrics), but it seems no PIDs have been
RE'd from there yet. So maybe you need to derive the info from
some other mode/status register.<br>
<br>
It's bad needing to continuosly poll to get the live status
data. Is possibly another, unfiltered CAN bus available at the
OBD port?<br>
<br>
Regards,<br>
Michael<br>
<br>
<br>
<div class="moz-cite-prefix">Am 30.07.20 um 16:43 schrieb Soko:<br>
</div>
<blockquote type="cite"
cite="mid:c46c65de-ae20-f2db-4c2b-052843756691@soko.cc">
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8">
<p>Ahhh OK, I've found OvmsVehicle::virtual void
TickerXXX(uint32_t ticker);<br>
Got it! This was exactly my issue as I didn't know about any
function which gets called regularly so I could check
something like this...<br>
It's not an ideal situation though: I just can slow down the
poll after my fail-counter gets too high as I need to check
when the car gets powered again. So all I can do is polling,
lets say every 60 secs when the car is off, and increase it
once its on. But there is now way around this 60-sec polling
if the only thing I can do is poll :(<br>
</p>
<p>Afaik there is only the sharkcow's list below, reverse
engineered by him from ODBeleven.</p>
<p>(dev)marxx exlpained to me: There is a gateway between the
CAN-Buses and the OBD Connector in all VW-AG vehicles which
only replies to polls and also acts as security gateway if
you want to write to the buses.</p>
<p>So I think I cannot really do a can log or use re tool as
the OBD interface stays quiet if I'm not polling it...</p>
<p>And as there is no other vehicle from
VW,Seat,Skoda,Audi,etc. in OVMS. So I have no cheat-sheet :(</p>
<p>Anyhow... I would need to poll one ECU (is this the correct
therm?) which doesn't shuts down... or maybe the issue is
the OBD-gateway shutting down.<br>
</p>
<p>What do you think?</p>
<p>Soko<br>
</p>
<div class="moz-cite-prefix">On 30.07.2020 16:17, Michael
Balzer wrote:<br>
</div>
<blockquote type="cite"
cite="mid:429f9711-74bd-828c-0c9c-3872f9b0bfac@expeedo.de">
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8">
Soko,<br>
<br>
nice progress :-)<br>
<br>
If you can't detect vehicle state by listening to regular
status CAN frames, you can check the time since the last
poll reply in the per second ticker.<br>
<br>
As poll replies normally come in fast, you should be able to
detect a switch-off by a small timeout, say 3 seconds…
probably need to add a counter, as a single poll may get
lost / ignored.<br>
<br>
CAN tx errors can be caused by other issues as well, so
should generally not be interpreted that way.<br>
<br>
But… are you sure there are no status frames on the bus?
Have you done a can log or tried the re tool?<br>
<br>
Regards,<br>
Michael<br>
<br>
<br>
<div class="moz-cite-prefix">Am 30.07.20 um 14:43 schrieb
Soko:<br>
</div>
<blockquote type="cite"
cite="mid:dfef03ed-b0e1-1fda-7eab-de5b6e49cc67@soko.cc">Hi
guys, <br>
<br>
Want to report success on connecting and reading my VW
e-Up via OBD cable using the Poller. As you can see in the
screenshot of the log attached I get an
IncomingPollReply(..) call and an SoC value of 33.333% <br>
<br>
Once I turn of the ignition and lock the car though I
don't get any replies no more (line D 793813) and then I
get can1 errors... I'm polling with 10 seconds intervall.
<br>
<br>
I know that this is as it should be... but my issue is: I
don't have any way to know if the ignition is on, the key
is in, the car is running, the car is charging as the PIDs
are not known for such values (afaik by the lists of
sharkcow <a class="moz-txt-link-freetext"
href="https://www.goingelectric.de/wiki/Liste-der-OBD2-Codes/"
moz-do-not-send="true">https://www.goingelectric.de/wiki/Liste-der-OBD2-Codes/</a>).
<br>
<br>
So what would be the best approach to change the different
polling states? Can I somehow get called (in my
vehicle-class) if an can-error is thrown? Then I would
increase the poll frequency. <br>
<br>
Any suggestions? <br>
<br>
thanks <br>
<br>
Soko <br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
OvmsDev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OvmsDev@lists.openvehicles.com" moz-do-not-send="true">OvmsDev@lists.openvehicles.com</a>
<a class="moz-txt-link-freetext" href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev" moz-do-not-send="true">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
OvmsDev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OvmsDev@lists.openvehicles.com" moz-do-not-send="true">OvmsDev@lists.openvehicles.com</a>
<a class="moz-txt-link-freetext" href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev" moz-do-not-send="true">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a>
</pre>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
OvmsDev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OvmsDev@lists.openvehicles.com" moz-do-not-send="true">OvmsDev@lists.openvehicles.com</a>
<a class="moz-txt-link-freetext" href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev" moz-do-not-send="true">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
OvmsDev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OvmsDev@lists.openvehicles.com" moz-do-not-send="true">OvmsDev@lists.openvehicles.com</a>
<a class="moz-txt-link-freetext" href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev" moz-do-not-send="true">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a>
</pre>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
OvmsDev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OvmsDev@lists.openvehicles.com">OvmsDev@lists.openvehicles.com</a>
<a class="moz-txt-link-freetext" href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
</pre>
</body>
</html>