openvehicles / Open-Vehicle-Monitoring-System-3

Open Vehicle Monitoring System - Version 3
http:///www.openvehicles.com/
Other
566 stars 220 forks source link

Vehicle: VW e-Golf #690

Open dexterbg opened 2 years ago

dexterbg commented 2 years ago

The VW e-Golf seems to have some similarities to the VW e-Up.

Chris van der Meijden (@devmarxx) began working on an adaptation, but lost access to a test car so cannot continue on this. He sent me the code tree for someone else to continue his work (attached).

He wrote you can already see some values he could access via the OBD port (diag CAN). The comfort CAN hasn't been decoded yet, it's supposed to run at 500 kbit (not 100 kbit as in the e-Up).

Volunteers welcome.

vehicle_vwegolf.tar.gz

brewser123 commented 2 years ago

i have a 2015 egolf SEL Prem I can offer. if I need to order an OVMS device please advise and i can start on getting it ready

Jagganaut commented 2 years ago

i have just received the new units for testing inside my ModelS and the VW eGolf. Than we could closely work on that topic.

Beside that we intend to deliver an un-interrupted storage option for the OVMS data ...

qtwre commented 2 years ago

Hi, I have an e-Golf and just received my OMVS unit. My plan was to try the e-Up profile but I'd be happy to help provide diagnostics or other help where possible.

brewser123 commented 2 years ago

I also have OVMS, is there someone who needs to access logs?

brewser123 commented 2 years ago

did you connect with E-up as vehicle?

Hi, I have an e-Golf and just received my OMVS unit. My plan was to try the e-Up profile but I'd be happy to help provide diagnostics or other help where possible.

qtwre commented 2 years ago

did you connect with E-up as vehicle?

Hi, I have an e-Golf and just received my OMVS unit. My plan was to try the e-Up profile but I'd be happy to help provide diagnostics or other help where possible.

I did, though it did not read any values other than 12v battery voltage.

Edzo1988 commented 2 years ago

I have a 2019 SEL Premium in US I can support any type of testing. I will need to procure the hardware interfaces. Thanks for this project!

qtwre commented 2 years ago

In the spirit of attempting progress of any sort, I compiled a firmware with the vehicle profile started in the original post. Maybe I'm doing something wrong but plugging the OVMS into my car didn't show any values other than 12v battery. I thought it would have shown something as some work had been done in the code for the e-Golf.

If anyone wants to load it on their device and tinker in the menus, here is the bin.

paultoben commented 2 years ago

@qtwre did you plug into OBD port? I'm curious if the e-Golf has a Comfort CAN bus port under the seat like the e-Up. My OVMS is on order and I plan to do more testing with my 2019 SEL.

brewser123 commented 2 years ago

The e-Golf doesnt have the one under the seat like the eup from what I understand. On my 2015 egolf, the OBD port is left side below steering wheel.

pscegolf commented 2 years ago

I am fighting with my OVMS for my eGolf too! Till now without better results. The connection to the comort bus I made by an connection to the cables near by the OBD port at the cable connection to the left door. But the firmware does not run. Only 12V battery voltage are readed. Connection_to_Komfort_CAN

pscegolf commented 2 years ago

Do have anybody new information where the failure is? If I am right, it is able to connect the Komfort bus on all cables at the bus? I measure the voltage between the too cables and ground and it seams it is an CAN bus. And I think the connection should work. Where is the failure?

pscegolf commented 2 years ago

Maybe the compiled -.bin had a failure? I tryed to create self a -.bin file, but it failed? What is the correct way to create the firmware? Where I found the best instruction to do this?

qtwre commented 2 years ago

I need to dig up my research but there's a communication module (as used for the VW app) behind the gauge cluster. It has the connection to the Comfort CAN bus I was considering.

I just recently wiped my computer and I fear I lost my firmware but I did have it compile and it still only showed the 12v battery. This was only connected through the OBD port though.

devmarxx commented 2 years ago

When I was experimenting with the e-Golf I tapped into the door cables for the Comfort CAN and for OBD CAN in the OBD port. Here the cable colors:

Comfort CAN (CAN3, Left Door) Orange/Brown Comfort CAN Hi Orange/Green Comfort CAN Lo

OBD CAN (CAN1, OBD port)) Orange/Red OBD CAN Hi Orange/Brown OBD CAN Lo (this is how I documented it, but I'm not sure now ???) Red +12V Black GND

If you are are using the standard firmware with VW e-UP as "car" you should see some OBD information (only if you are connected to the OBD port of course) like SOC. I never could see any Comfort CAN information. The first step is to set the rate of CAN3 to 500 kb/s in the e-UP code (e-UP uses 100 kb/s, e-Golf 500 kb/s on the Comfort CAN). But even then I could not see any communication on the Comfort CAN and that was the point where I gave up.

Success to all who continue the quest :-)

Regards

Chris (devmarxx)

dexterbg commented 2 years ago

What is the correct way to create the firmware? Where I found the best instruction to do this?

Check out the list archive for some general introductions on CAN & OBD processing.

dexterbg commented 2 years ago
qtwre commented 1 year ago

This person managed to sniff the comfort bus recently and shared some messages they logged. He tapped in behind the HVAC control panel. https://www.vwvortex.com/threads/canbus-telematics-infotainment-interactions.9519863/post-115761620

I've also read it can be tapped from behind the infotainment brain in the glovebox to bypass the gateway and see a clear flow of messages.

pscegolf commented 1 year ago

I logged the CAN bus too, but this is all where I had sucess. I coss check quickliy the log in the link from qtwre and it seam I logged the same ECUs at my eGolf.

Here you found my log: eGolf_CAN3_log3_20230102.txt

I start to search DBC information to the eGolf in iNet, but it seams I fond not the right and correct one. I found this one but this does noch mach with my loged data. VW_MQB_2010.dbc.txt

I have no experience in CAN software programming, decoding,... , and I think this could be be biggest problem to come forward. And it seams that not all, and especially not all eGolf ECUs are in the VW_MQB.dbc file?

I am still searching and working a litle bit on the project but, meanwhile I think, I am not able without further detailed informations and help on the eGolf CAN bus to adapt the system to the OVMS.

JaredG1 commented 1 year ago

I have recently purchased an eGolf and have software development experience. My hope is that I can continue where this community left off. I would like to get the OBD version of OVMS working for the eGolf, then move on to the comfort CAN. I'm sure I will have a lot of questions :)

dexterbg commented 1 year ago

Welcome Jared, don't hesitate to ask.

pscegolf commented 1 year ago

Welcome Jared from my side too! And hopefull you have more sucess with you software experience. Please keep us in the loop on your work and I hope that all your questions can solve,..

jrr commented 1 year ago

I'm interested in following along (and maybe helping a little bit 🤏!). Where's the best place to collaborate? Forum / Mailing list / maybe a discord?

JaredG1 commented 1 year ago

Thanks for the support! I am currently waiting on the hardware to arrive, and starting to get the development environment set up. @jrr I will probably ping the OVMS devs mailing list just to leverage all of the resources on there, but I would also be open to a Discord.

markwj commented 1 year ago

but I would also be open to a Discord.

There is a discord server available here:

https://discord.gg/eXp2FzYfJc

Largely unused at the moment, but available if you guys want to give it a spin.

zerblatt007 commented 7 months ago

I would very much want this to happen myself, and wondering what needs to be done.

Our car still has support from the built-in system, but recon when 2-year plan we paid for just now runs out we are on our own. Response from the car has always been slow..

My main concern is the remote heating and reported charge that used to work in Home-Assistant, but we lost again with the new update in October.

dexterbg commented 7 months ago

You probably should contact @JaredG1 on his current state, see his PR draft here: https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/pull/932

JDGreco commented 7 months ago

Hello, I got a little distracted by other life events, but plan to continue working on firmware. Thanks for all of the work already done above!

thomasakarlsen commented 1 month ago

With the 2G network shutdowns coming here in Europe the next couple years (here in Norway it starts next year), I've started my work on completely replacing the OCU with something of my own. I have decided to just completely ignore the OBD port, as quite frankly, on MQB platform vehicles the OBD port is completely useless unless the car is "ON" so getting remote control features via the OBD port does not work. Since the original OCU is only connected to the Comfort can bus, thats the one I've connected to.

The last couple months I've been banging my head looking at dumps of my canbus and reverse engineering source code from the MIB 2.5 radio in my car. There is a whole lot to how the different modules in the car communicate, but I have finally started to crack it.

So far I am able to:

While I've not tested it, but should be able to:

Some interesting facts about the charge profiles: While you can add your own profiles the car already has one that is hidden by default. This hidden profile (profile 0) is actually what is used as the global profile where you control the minimum charge limit, climatisation temperature, etc. So updating the "global" settings (minimum charge limit, temperature, etc.) is the exact same as updating any of your other profiles.

Next on my list is charging and door lock controls before gathering up a list of all interesting data points. While I do not own any OVMS hardware, and I am currently looking at making my own solution, I do want to share my findings here with you to help participate support for the e-Golf in OVMS.

I need to write up documentation for my findings, and I intend to explain as much as possible, which I will post very soon. Just wanted to share that things are happening! 😄

Video of running the climatisation (file size too big to embed on github): https://www.jottacloud.com/share/21cpfuqr2221

zerblatt007 commented 1 month ago

This is great news! Looking forward to it.. :)

fre. 7. juni 2024 kl. 12:34 skrev Thomas Andre Karlsen < @.***>:

With the 2G network shutdowns coming here in Europe the next couple years (here in Norway it starts next year), I've started my work on completely replacing the OCU with something of my own. I have decided to just completely ignore the OBD port, as quite frankly, on MQB platform vehicles the OBD port is completely useless unless the car is "ON" so getting remote control features via the OBD port does not work. Since the original OCU is only connected to the Comfort can bus, thats the one I've connected to.

The last couple months I've been banging my head looking at dumps of my canbus and reverse engineering source code from the MIB 2.5 radio in my car. There is a whole lot to how the different modules in the car communicate, but I have finally started to crack it.

So far I am able to:

  • Wake the car up from sleep
  • Modify the "minimum charge limit", climatisation temperature, "allow climatisation on battery" setting and change the length of climatisation (this is 10 minutes by default, I have increased this to 15 minutes with success)
  • Start and stop climatisation
  • Make the car blink its lights and/or beep the horn

While I've not tested it, but should be able to:

  • Insert/modify/remove any of the "Charge profiles" (the ones where you configure the upper charge limit, if it should pre-heat, etc. for your departure timers)

Some interesting facts about the charge profiles: While you can add your own profiles the car already has one that is hidden by default. This hidden profile (profile 0) is actually what is used as the global profile where you control the minimum charge limit, climatisation temperature, etc. So updating the "global" settings (minimum charge limit, temperature, etc.) is the exact same as updating any of your other profiles.

Next on my list is charging and door lock controls before gathering up a list of all interesting data points. While I do not own any OVMS hardware, and I am currently looking at making my own solution, I do want to share my findings here with you to help participate support for the e-Golf in OVMS.

I need to write up documentation for my findings, and I intend to explain as much as possible, which I will post very soon. Just wanted to share that things are happening! 😄

Video of running the climatisation (file size too big to embed on github): https://www.jottacloud.com/share/21cpfuqr2221

— Reply to this email directly, view it on GitHub https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/issues/690#issuecomment-2154563032, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSMTN2TAKIWZ4WN4OAGEZLZGGEC7AVCNFSM6AAAAABI6NBPUKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJUGU3DGMBTGI . You are receiving this because you commented.Message ID: <openvehicles/Open-Vehicle-Monitoring-System-3/issues/690/2154563032@ github.com>