[Ovmsdev] Willing to help adding Ampera-e/Bolt support
Michael Balzer
dexter at expeedo.de
Fri Apr 16 19:36:31 HKT 2021
Edwin,
welcome :-)
https://docs.google.com/spreadsheets/d/1sY5n8WFu52U6a4_mg3MdcGcmDk3scAP8_muSy-BlXPc/edit#gid=946940079
There really seem to be quite some similarities, e.g. the battery
capacity is read from PID 41A3 for both Volt & Bolt, and the SOC is
available at PID 8334 on both. So it's probably worth giving the Volt
adaption a try and using that as the template.
Looking at the most current polling vehicle addition (Hyundai Ioniq vFL)
may also be worth while, as that demonstrates the current
recommendations on handling poll responses etc.
> In the bolt/ampera pid sheet there are these pids but how do I
> translate these into a new car template?
That's pretty straight forward:
* The column "ModeAndPID" includes the combination of the request type
(aka mode, mostly 22) and the actual PID.
* Column "Header" is the address of the ECU to query for that PID. The
response address is that value + 8 if not specified explicitly.
* The "Equation" needs to be implemented by the poll reply handler.
Example: for the SOC, fetching 228334 from ECU 7E4 translates to this
polling list entry:
{ 0x7e4, 0x7ec, VEHICLE_POLL_TYPE_OBDIIEXTENDED, 0x8334, { 0,
10, 10 }, 0, ISOTP_STD }, // SOC
…because VEHICLE_POLL_TYPE_OBDIIEXTENDED = 22 (you could also use
VEHICLE_POLL_TYPE_READDATA or write 0x22 if you like).
The timing { 0, 10, 10 } means no polling in state 0, polling every 10
seconds in poll states 1 & 2. State 3 is unused. You use the poll states
to model different poll frequencies per vehicle state (e.g. off /
driving / charging).
In PID equations, "A" refers to the first payload byte, "B" to the
second and so on. For single frame responses, the poll reply handler can
simply read directly from the "data" byte array.
So A*100/255 translates to: data[0] * 100.0f / 255.0f
Regards,
Michael
Am 16.04.21 um 10:10 schrieb Alexander K:
> Hello Edwin
>
> The most similar car to Bolt/Ampera-e is Chevrolet Volt. Try a Volt
> vehicle with your car or use it as a template.
> You will most likely need a swcan module to wake up the car.
>
> Alexander.
> пт, 16 апр. 2021 г. в 10:49, Edwin ten Haaf <edwin at familietenhaaf.nl
> <mailto:edwin at familietenhaaf.nl>>:
>
> Hello All,
>
> I'm currently driving a 2018 Opel Ampera-e and since Opel pulled
> out the plug from OnStar as they moved to PSA group (peugeot) my
> car is offline.
> Recently I noticed the OVMS project and bought myself a kit.
> It's hooked up and connected but only location data is available
> at the moment.
>
> The pids needed are available from this location
> https://allev.info/boltpids/ <https://allev.info/boltpids/>
> Jason_ABRP wrote some tips in the forum thread
> https://www.openvehicles.com/node/2345
> <https://www.openvehicles.com/node/2345>
>
> As I am not a developer but a eager to learn system engineer in IT
> i'm lost from this point.
> In the bolt/ampera pid sheet there are these pids but how do I
> translate these into a new car template?
> My son is a software developer student and can also help me in
> making this template.
>
> Any help would be appreciated.
>
> Thanks,
>
> Edwin
>
>
>
> _______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.openvehicles.com <mailto:OvmsDev at lists.openvehicles.com>
> http://lists.openvehicles.com/mailman/listinfo/ovmsdev
> <http://lists.openvehicles.com/mailman/listinfo/ovmsdev>
>
>
> _______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.openvehicles.com
> http://lists.openvehicles.com/mailman/listinfo/ovmsdev
--
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20210416/58c5edd9/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 203 bytes
Desc: OpenPGP digital signature
URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20210416/58c5edd9/attachment.sig>
More information about the OvmsDev
mailing list