<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Didier,<br>
<br>
<div class="moz-cite-prefix">Am 25.02.21 um 00:15 schrieb
<a class="moz-txt-link-abbreviated" href="mailto:didier@ernotte.com">didier@ernotte.com</a>:<br>
</div>
<blockquote type="cite"
cite="mid:611204567.2287319.1614208548936@mail.yahoo.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div class="yahoo-style-wrap" style="font-family:Helvetica Neue,
Helvetica, Arial, sans-serif;font-size:16px;">I can easily read
a PID value using the shell syntax in the web browser : "obdii
can1 request device 7e4 7ec 22ddd00" for example. <br>
<div dir="ltr" data-setdir="false">I understand that "0x22" is
used to read data by identifier, and I read that "0x2E" would
be used to write data by identifier but what would be the
correct syntax to write a value to a PID in the shell ? or it
is not possible yet ?<br>
</div>
</div>
</blockquote>
<br>
You can send any OBD request that fits into a single frame.<br>
<br>
If 2E is the write command for your device & PID (there are
others and even non standard ones), it's simply…<br>
<br>
<font face="monospace">obdii can1 request device 7e4 7ec
2e<pid><value></font><br>
<br>
The poller doesn't yet support multi frame requests (only
responses), so the max request length for standard addressing mode
is 7 bytes, leaving 4 bytes payload for a 16 bit PID command.<br>
<br>
See ISO 15031 and ISO 14229 for standard OBD/UDS requests and
responses.<br>
<br>
Regards,<br>
Michael<br>
<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>