<div dir="ltr">Pablo has not been able to access the list. He is getting authentication errors, so while he works through that I thought I would answer for him...<div><br></div><div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>"The MP commands are the raw data I am trying to send to the car to open and close the car."</div><div><br></div></blockquote><div>The devices are using the V2 server, so I think fixed MP commands make the most sense. Pablo is trying to figure out how to make that work, and so far has not been successful.<br><div><br></div><div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jul 31, 2022 at 2:26 AM Michael Balzer <<a href="mailto:dexter@expeedo.de">dexter@expeedo.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
Pablo,<br>
<br>
a bit more information on how you connect to the car would be
helpful here.<br>
<br>
Arbitrary remote shell command execution is supported by the
module's HTTP API (/api/execute), the module's SSH server, the "V2
protocol" server via MP command 7 and any "V3" (MQTT) server via the
/client/command topic scheme. Plus there's a secondary
(non-standard) HTTP command API available on my server
<a href="http://ovms.dexters-web.de" target="_blank">ovms.dexters-web.de</a> (public API of my custom web shell).<br>
<br>
Lock & unlock are also available as fixed MP commands (20,22) on
a V2 server, along with a set of other standard App calls. These do
not run via the shell but translate to direct internal execution.<br>
<br>
Command execution has not yet been implemented for the "V2" server's
HTTP API. But you can of course implement that if you use that API.<br>
<br>
Docs:<br>
<ul>
<li><a href="https://docs.openvehicles.com/en/latest/components/ovms_webserver/docs/index.html#authorization" target="_blank">https://docs.openvehicles.com/en/latest/components/ovms_webserver/docs/index.html#authorization</a></li>
<li><a href="https://docs.openvehicles.com/en/latest/userguide/console.html#ssh-console" target="_blank">https://docs.openvehicles.com/en/latest/userguide/console.html#ssh-console</a><br>
</li>
<li><a href="https://docs.openvehicles.com/en/latest/protocol_v2/commands.html#execute-sms-command" target="_blank">https://docs.openvehicles.com/en/latest/protocol_v2/commands.html#execute-sms-command</a></li>
<ul>
<li><a href="https://docs.openvehicles.com/en/latest/protocol_v2/commands.html#lock-car" target="_blank">https://docs.openvehicles.com/en/latest/protocol_v2/commands.html#lock-car</a></li>
<li><a href="https://docs.openvehicles.com/en/latest/protocol_v2/commands.html#unlock-car" target="_blank">https://docs.openvehicles.com/en/latest/protocol_v2/commands.html#unlock-car</a></li>
</ul>
<li><a href="http://lists.openvehicles.com/pipermail/ovmsdev/2018-July/012641.html" target="_blank">http://lists.openvehicles.com/pipermail/ovmsdev/2018-July/012641.html</a><br>
</li>
<li><a href="http://lists.openvehicles.com/pipermail/ovmsdev/2018-July/012696.html" target="_blank">http://lists.openvehicles.com/pipermail/ovmsdev/2018-July/012696.html</a></li>
<li><a href="https://docs.openvehicles.com/en/latest/protocol_httpapi/requests.html#not-yet-implemented" target="_blank">https://docs.openvehicles.com/en/latest/protocol_httpapi/requests.html#not-yet-implemented</a><br>
</li>
</ul>
Which one are you referring to?<br>
<br>
Regards,<br>
Michael<br>
<br>
<br>
<div>Am 29.07.22 um 19:28 schrieb Pablo
Cabrera:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hello OVMS team, we are currently working with an
implementation with OVMS in a react native app with a NodeJS
back-end.<br>
Currently we can connect with the cars and rescue some data like
the status of the battery or GPS location, but now we need to
send commands to lock and unlock the cars from the same app,
when we send a command I get a response that the command is
received in the car, but the command is not executed in the
bash.<br>
<br>
I don't know if you can send me more info about how to make the
car receive bash commands from remote connections, or how can I
send it from the NodeJs server into the bash of the car.<br>
<br>
Thanks for your time and help.<br>
</div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
OvmsDev mailing list
<a href="mailto:OvmsDev@lists.openvehicles.com" target="_blank">OvmsDev@lists.openvehicles.com</a>
<a href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev" target="_blank">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a>
</pre>
</blockquote>
<br>
<pre cols="72">--
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26</pre>
</div>
_______________________________________________<br>
OvmsDev mailing list<br>
<a href="mailto:OvmsDev@lists.openvehicles.com" target="_blank">OvmsDev@lists.openvehicles.com</a><br>
<a href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev" rel="noreferrer" target="_blank">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><img width="96" height="57" src="https://ci3.googleusercontent.com/mail-sig/AIorK4xhCuCRALYJ2mpc-mSdek6d5LGYFtTNIZrrh1CpRMbWGhgeniT02-ajiXN7LX_VkGeMmFGqc4s"><br><div>RabbitEV</div><div>Driving Electric Cars</div><div>RabbitEV.com</div></div></div>