Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Zoe ZE50 and CanZE (iOS and Android) #588

Closed
FredLeudon opened this issue Nov 30, 2019 · 83 comments
Closed

New Zoe ZE50 and CanZE (iOS and Android) #588

FredLeudon opened this issue Nov 30, 2019 · 83 comments
Assignees

Comments

@FredLeudon
Copy link

Hi, all

I could approach a new Z.E. 50 Zoe yesterday.

After adding the first 9 digits of the vin to my online vin decoder database, I could identify the new Zoe with the latest iOS beta.

As the car was only in the showroom, I couldn’t start it but it was possible to CanZE to identify at least one ecu.

I wish I can spend one hour next week to plug my dongle in a new Zoe and use CanZE to identify all ecu’s

If it work’s, I’ll publish the results ;-)

@FredLeudon FredLeudon added the iOS label Nov 30, 2019
@FredLeudon FredLeudon self-assigned this Nov 30, 2019
@yoh-there
Copy link
Collaborator

Nice. What command did you send? 7df (broadcast)? That is what the tool of the general mechanic did and he indeed pulled out the VIN but nothing more

@FredLeudon
Copy link
Author

FredLeudon commented Nov 30, 2019 via email

@yoh-there
Copy link
Collaborator

Yes it makes sense :-) I am very curious if all the ECU's responded and if not, which one did.

I am pretty sure there are no free frames on the Diagnostic bus and it looks like the MM bus has been removed.

@yoh-there
Copy link
Collaborator

What exactly do you mean with "for each address"? I don't understand as those (26, 27, ...) are not ECU CAN addresses. I would expect 765/745, 7bc/79c etcetera.

@FredLeudon
Copy link
Author

FredLeudon commented Dec 1, 2019 via email

@yoh-there
Copy link
Collaborator

Oh I see what you mean, I think you meant eculist.xml.

The universal car diagnostic computer issues a broadcast. But I couldn't see which ECU responded with the VIN. Oh well, next time ;-)

@FredLeudon
Copy link
Author

FredLeudon commented Dec 1, 2019 via email

@FredLeudon
Copy link
Author

FredLeudon commented Dec 1, 2019 via email

@yoh-there
Copy link
Collaborator

Someone in the German forum suggested the ZE50 uses 29 bit CAN addressing. If true I would be very surprised as I would not have suspected such a serious change. Then again, if it's true , the problem is probably simpler to solve than we thought, and my sniffer might just have been ignoring all the frames. Do you know more already Frédéric?

@FredLeudon
Copy link
Author

FredLeudon commented Jan 1, 2020 via email

@yoh-there
Copy link
Collaborator

yoh-there commented Jan 1, 2020

Same to you and the (new) family ;-)

Cool (Monday). If you bring any sniffer material, remember the 29 bits stuff. My current sniffer (CanSee) does throw numbers other than standard 11 bits addressing away, so maybe I have been working with completely wrong assumptions all along. I will try to have a bit more confirmation before Monday and will post here if so.

@FredLeudon
Copy link
Author

FredLeudon commented Jan 1, 2020 via email

@yoh-there
Copy link
Collaborator

Can you maybe send me the very very most recent xml's you could find please? Google does drive me nuts on this one. I would appreciate it.

@KarelSvo
Copy link

KarelSvo commented Jan 1, 2020

Someone in the German forum suggested the ZE50 uses 29 bit CAN addressing. If true I would be very surprised as I would not have suspected such a serious change.

All new Renault, Dacia, Nissan on C1A electronics platform use 29 bit addresses for the drive control units.

@yoh-there
Copy link
Collaborator

Thanks @KarelSvo , good to know. The guy from the German forum suggested only the motor controller used extended addressing, the remainder standard. Mixing is allowed on the network level of course but ick!

@yoh-there
Copy link
Collaborator

The 11 <> 29 bits addressing is quite a bit more complicated. Many new or upgraded boxes, some 11 bits, some 29, some both. I will amend the massive spreadsheet (ECU tab) as soon as I can.

@yoh-there yoh-there self-assigned this Feb 16, 2020
@yoh-there yoh-there changed the title New Zoe Z.E. 50 and iOS CanZE. New Zoe ZE50 and CanZE (iOS and Android) Feb 16, 2020
@yoh-there
Copy link
Collaborator

First Beta is out, actually more alpha regarding the ZE50 stuff. The ECU tab in the spreadsheet is slowly being ammended,

@arqueox
Copy link

arqueox commented Feb 24, 2020

There is something i can do to use a beta version of ios app on my ZE50? I could try and give you my feedback about.

@arqueox
Copy link

arqueox commented Feb 24, 2020

First Beta is out, actually more alpha regarding the ZE50 stuff. The ECU tab in the spreadsheet is slowly being ammended,

No IOS beta app yet?

@FredLeudon
Copy link
Author

FredLeudon commented Feb 24, 2020 via email

@arqueox
Copy link

arqueox commented Feb 26, 2020

Hi, A new iOS beta app will be available soon Regards Frédéric RICHARD

Oh thnx! I’ll wait then

@Steckmaestro
Copy link

I can borrow this.

I tried CanZE for Android using Samsung S8. Appversion 1.52beta4.

Tried with Zoe R135 (ZE50) - Swedish car.

I used two different ODBII dongles (first a bluetooth one I bought previously and after reading your recommendation I ordered Konweii and tried with that one.

Hopefully debug logs can tell you something. I'm really looking forward to be able to see more detailed information about my Zoe :)

debug-2020-02-27-17-38-40.log

@KarelSvo
Copy link

KarelSvo commented Feb 28, 2020

I'm really looking forward to be able to see more detailed information about my Zoe :)

Yes there is a python kivy app that can show such information ;)
tested on new Zoe and connected to over 20 ecus

@yoh-there
Copy link
Collaborator

Getting there. Seems like the braking system has changed significantly, so we might need to defer the torques, but there is progress. Getting info out is "cracked". Getting the same info presented consistently is a different game.

@miguel-negrao
Copy link

@yoh-there yes I did select ZE50. I had to checkout 8640b0f to be able to do it.

Screenshot_20201118-175157_CanZE-small

@yoh-there
Copy link
Collaborator

Fair dinkum. But as you can see, it does actually successfully access the LBC, digging up temperatures. I think the heat maps actually both work, so the voltages graph here is just a definition problem in and a separate layout XML is probably the best way to go.

I will drop my email address in your contact form. If you can reply I can send you some data that will I think will be of use. Thank you for the effort!

@ik2wxx
Copy link
Collaborator

ik2wxx commented Nov 21, 2020

In the "stupid questions" department: you DID select ZE50 as car didn't you?

Yes I did, but didn't get much info from CanZE, the only info is the accel pedal position.
I'm using a KONNWEI KW902 ELM327 V1.5, hope it's ok, I have other OBD dongle but this looks like it's the more compatible with CanZE.
Thank you

@KarelSvo
Copy link

EDIT yoh-there: be careful downloading apk's outside the Google Plays store.

Since the APP contains original data from Renault, it is not officially offered.
In contrast to CANZE, it works on the new Zoe.
CANZE also contains copyrighted material from Renault databases. You are walking on very thin ice.

@yoh-there
Copy link
Collaborator

@KarelSvo I am warning other readers against bad practices, it was not aimed at you, though I would appreciate you not posting links to unchecked apk's. It's fine to post them on your own github account and link to those posts from here. Let me know when you've done this please.

Thank you for your warning re copyright.

@yoh-there
Copy link
Collaborator

@ik2wxx I think you should at least get the two right hand graphs @miguel-negrao showed, and, but I am going from memory here, the two heat maps. Car must be switched on.

@Leobaillard
Copy link
Collaborator

Leobaillard commented Nov 22, 2020

@yoh-there I managed to make a CanSee dongle, get the app running in Android Studio and I'm currently in the car fiddling with things.
Do you have an indication somewhere regarding where you stopped your testing of the fields? I'm asuming you were talking about the _FieldsZE50.csv file in the assets folder? I'd like to try your testing approach (by setting the fields in the FieldTest activity) but no sense in doing the work twice if some fields already work!
I can give you direct messaging information to reach me if this would make it easier to communicate.

@yoh-there
Copy link
Collaborator

yoh-there commented Nov 22, 2020

Great news!

I would appreciate a direct contact (email or Signal). I could not leave mine on your website listed on your github profile, I can send you some extra info probably then.

You are correct re. the filename. Assuming keeping the gateway open is enough for all ECU's, this should be the only thing you need to change / maintain. The very first field in a line, if listed, is the equivalent of the id's in the old ZOE's. This is used as a further meaningless key everywhere else in the code.

I can't say which fields worked or not (sorry!), but I remember I had the least problems with the battery (the LBC). If I remember correctly the two heat-maps work. Out of personal interest my focus has always been on the consumption screen and and the Technical >> Charging screen, so there you will find most of the already working fields.

You can also do a "shortcut" testing fields using the Experimental >> Research screen, it expects a file in the same format but in the file system for it's dynamic definitions.

@ik2wxx
Copy link
Collaborator

ik2wxx commented Nov 23, 2020

@ik2wxx I think you should at least get the two right hand graphs @miguel-negrao showed, and, but I am going from memory here, the two heat maps. Car must be switched on.

Yes I got access to those screen, but the only info I got is SOC (and it was different from the car dashboard).
I've added infos to my profile so you can contact me directly if you need.
Thank you

@FulminatingGhost
Copy link
Collaborator

Hi,
I also have a ZE50 and a CanSee dongle and would like to participate in the Project. I can confirm both heatmaps are working as well as some values in the other views.
@yoh-there Any info on where to start digging would be appreciated.

@yoh-there
Copy link
Collaborator

My advice would be to concentrate on the Technical >> Charging screen.

Have a look at this post https://canze.fisch.lu/screen-for-researchers/

And this file https://github.com/fesch/CanZE/blob/master/app/src/main/assets/_FieldsZE50.csv

The _Research.csv file is in exactly this format and you can start with a single field.

Is it an idea if I open a google spreadsheet for the people who want to participate, loading it with _FieldsZE50.csv, and then add a few columns for confirmation, who did it, proposed changes etc? I cannot participate in the testing but I can push out beta's now and then.

@KarelSvo
Copy link

KarelSvo commented Nov 24, 2020

And this file https://github.com/fesch/CanZE/blob/master/app/src/main/assets/_FieldsZE50.csv

You have simply assigned the byte-data definitions from phase 1 with a 29 bit address from phase 2.
This cannot work because the bytes on phase 2 are predominantly datas that are completely different from those defined on phase 1.
I can only recommend learning, from the app linked above which works perfectly, as it uses original the Renault phase 2 ECU definitions. The app is a parallel project of this software https://gitlab.com/py_ren/pyren

an example
EVC 223025
11 bit phase 1 14V DCDC (parameter)
29 bit phase 2 fork sensor information (status)

@yoh-there
Copy link
Collaborator

@KarelSvo First, you show a fundamental misunderstanding of the code. 29 bit addressing is fully implemented. The first field of the data definition, if used, is simply a key that is used to access it's definition further in the data. If it is not given, it is generated. While it looks like an 11 bit code, it could have been called "KarelsField31" for what I care. Maintaining old keys avoids a lot of recoding activities, obviously. Can I politely suggest a better understanding of the code if you want to go that route?

Second, long, long ago, I have been transparent to Renault (referring to your earlier thin ice comment), been at their offices. Short version: the couldn't care less. But again, thanks for the warning.

Finally, Pyren which you are pushing here is a mild knockoff of DDT4ALL. As you have forked it I assume you are familiar with it. I have also been transparent to Cedric, who is a very helpful guy, as well as going through his code. I know of all the XML definition files, know how to parse them, and I know some ECU's have fundamentally changed. A short look at for instance the definition of cell voltages would have shown how that translates.

As requested earlier, please remove the direct link to the pyren APK download. This is not a dismissal of pyren: we respect the project, they have done fabulous work. We just don't appreciate random downloads to a sharing site without any trail of what has happened with the code.

As always, we welcome questions, fair criticism and contributions. So far you haven't shown any inclination to share your knowledge in this project. Continuing this way, with the utmost respect, I don't think we have much to learn from you here.

@FulminatingGhost
Copy link
Collaborator

I have made some progress and got some new valid measurements. As you said, it takes a lot of time to not only find the correct request but to also validate the returned values for actual use.
For example I read the instant battery current from the BMS as well as the consolidated battery current from the EMS. The BMS value has a finer resolution and I think both should represent the same current, however they read a few 100 mA different. I would opt for the value with finer resolution in this case. How do you choose, which value to use?

@yoh-there
Copy link
Collaborator

yoh-there commented Nov 25, 2020

@FulminatingGhost Great! And even a broken clock is right twice a day ;-) So yes, there is often difference between two, if only because of timing differences. I have no preference, but when I choose, my priority is:

  • it should work ;-)
  • slight preference for the real source ECU;
  • slight preference to NOT address an ECU that we have not needed before.
    But really, it's quite moot except "works"!

If you can share a google account name with me I can let you in on a work in as others are doing some testing too. If you don't want to share it here, leave a comment on the CanZE blog. Comments there are always moderated so if you start with "DO NOT PUBLISH PLEASE" , good chance I find it before it's approved.

@FulminatingGhost
Copy link
Collaborator

FulminatingGhost commented Nov 25, 2020

@yoh-there You can contact me via xxxxx
The currents both seem to be fine but like you I would probably prefer the real source.
I sadly can't seem to read anything from the BCB so far.

@yoh-there
Copy link
Collaborator

Good point.

The BCB has always been a b***h. On the old ZOEs it needed to be constantly kept in a diagnostic session, where the other ECUs don't care. It might work if you change the last field in the line for the BCB ECU in _EcusZE50.csv from 0 to 1. It does do the trick in the older models.

I will add a new tab in the ZE50 sheet to indicate things like this.

@yoh-there
Copy link
Collaborator

There is progress, see https://canze.fisch.lu/new-1-53beta3/

@dapprman
Copy link

I had installed the 1.53 beta. Uninstalled it, dropped from the beta program, searched and installed 1.54.
Aside from the usual problems with my KONNWEI 902 dongle (I was accidentally sent 2 so may try the other) I find that every time I go to settings I see my car set as a ZOE Q210, not the ZOE ZE50 I set it to, however the other setting changes have remained in place - the selected dongle and the miles tick box.
Net result I can't tell if my failure to poll data is down to the present limitations with the Zoe 50 or this setting.
Phone: OnePlus 7 Pro
OS: Oxygen 10.0.10.GM218BA
Android version: 10
Car: Zoe 50 GTLine

@yoh-there
Copy link
Collaborator

yoh-there commented Dec 18, 2020

@dapprman

  • you don't need to cancel beta; you'll always get the production version if that is newer than the latest beta. Just saying
  • the settings screen is hard to see I agree. I am convinced it's on ZE50 nevertheless. Turn your phone to be sure. But the settings screen is being overhauled as we speak
  • please do check the Q&A on the site re. connection issues. If everything else fails, please switch on "SD card logging -> Debug, try some screens, end CanZE and drop us the debug log file. It should be in Phone > Android > lu.fisch.canze > Data > Files > debug-xxxxxxx.log (it is date coded)

@dapprman
Copy link

dapprman commented Dec 20, 2020

Cheers - looks like it might have been the dongle as it stopped communicating. Having been sent a second by accident I swapped in that and I now get some readings - though once it disconnects that seems to be it - I see on reconnecting data flow lights on the dongle but get nothing in the app - I assume CanZE is not getting enough information before BT drops again so suspect I might be stuck until a more powerful dongle is found to work and be a reasonable price.

Edit update - saw the Problems with KONWEI Dongle #4, took the original one out of the bin and applied the fix (who would have thought a loupe bought for fixing/tweaking fountain pen nibs would have been used in the automotive world ...) and - Bang! - works :)

@yoh-there
Copy link
Collaborator

Happy it works!

@FredLeudon
Copy link
Author

FredLeudon commented Dec 21, 2020

Hi,

Did someone find ECU/Request/data to read Range Estimate ?

source code refers to ecu at address 0x95 but DDT2000 database (Vehicle -> x10ph2) doesn't seems to have 0x95 addressed ECU ?

I didn't find anything in LBC ?

@yoh-there
Copy link
Collaborator

No, we don't have the GOM yet in Ph2

@hepike
Copy link

hepike commented Sep 2, 2021

Hi,

Can I have access to the testflight beta longer than 12 hours? In exchange I can create a hungarian translate for the app. Also I have an R135 Zoe (2020) with a Renault Can Clip and I dont fear to use it :) Let me know If you need something to check.

Thanks,
Adam.

@ik2wxx
Copy link
Collaborator

ik2wxx commented Sep 2, 2021

Can I have access to the testflight beta longer than 12 hours? In exchange I can create a hungarian translate for the app. Also I have an R135 Zoe (2020) with a Renault Can Clip and I dont fear to use it :) Let me know If you need something to check.

Access to Testflight is free.
Feel free to contribute with translation on the github repository.

@yoh-there
Copy link
Collaborator

Hi,

Can I have access to the testflight beta longer than 12 hours? In exchange I can create a hungarian translate for the app. Also I have an R135 Zoe (2020) with a Renault Can Clip and I dont fear to use it :) Let me know If you need something to check.

Thanks,
Adam.

Hi Adam,

Do you have a "real" CLIP tool? I got "Ali" hardware but the software was lousy. Reason I am asking we have not been able to figure out to get the current range estimate from the ZE50. Any chance you can confirm CLIP can pull that out of the car? If so, we can start a new topic/issue.

@hepike
Copy link

hepike commented Sep 2, 2021

Can I have access to the testflight beta longer than 12 hours? In exchange I can create a hungarian translate for the app. Also I have an R135 Zoe (2020) with a Renault Can Clip and I dont fear to use it :) Let me know If you need something to check.

Access to Testflight is free.
Feel free to contribute with translation on the github repository.

Yes, thank you, but the only invite link I found is this: https://testflight.apple.com/join/gypjWAtk And this expires after 12h.
EDIT: I just found out It got extended to 90 days, YAY!

Hi,
Can I have access to the testflight beta longer than 12 hours? In exchange I can create a hungarian translate for the app. Also I have an R135 Zoe (2020) with a Renault Can Clip and I don't fear to use it :) Let me know If you need something to check.
Thanks,
Adam.

Hi Adam,

Do you have a "real" CLIP tool? I got "Ali" hardware but the software was lousy. Reason I am asking we have not been able to figure out to get the current range estimate from the ZE50. Any chance you can confirm CLIP can pull that out of the car? If so, we can start a new topic/issue.

Well it's a chinese clone, but the better one and I also modified it's can bus so it don't show me the typical multiplexed network error. I use it almost everyday on a lot of twingo. But I haven't tried it on my ZE50 yet. I give it a try at the weekend.

@yoh-there
Copy link
Collaborator

Closing (stale)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests