-
Notifications
You must be signed in to change notification settings - Fork 70
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
Is it possible to translate free frames to iso-tp frames #504
Comments
I will dig through my documentation tonight or tomorrow. Going ISO-TP is of course much more reliable as it is a question-and-answer game. However, it is actively engaging the car, whereas free frames are just sniffed upon. So my personal view is that free frames are actually preferred from a technical point of view, but if our goals is still to do it with crappy dongles, ISO-TP is the only way. Compromises, compromises.............. ;-) |
Thanks. |
Fred, as an experiment, can you try to replace +"130,44,55,-3,4094,0,Nm,,,ff\n" // DriverBrakeWheelTq_Req With +"7bc,28,39,1,4094,0,Nm,224b7e,624b7e,ff\n" // Driver brake wheels torque request And change the corresponding code to use 7bc.624b7e.28 (instead of 130.44) If this works I can try to find more equivalents. |
thanks for your answer. The fields I can use in my canZE are below : //[77E.223027.4.0] : ElecMachineMaxGenTorque - Unit[Nm] [*** NO DATA ] I just made an specific activity to record all of them. I will test it this afternoon while going home. |
Bumping this issue. Any progress on this? Personally, I am on the fence on this one.
|
As a result of this discussion I have bitten the bullet and recoded all the data definitions from strings in the Java code to csv files in the assets. Nothing changed to the internal structures, just how they are initialized. This way it is probably much easier to share those definitions between iOS and Android. @FredLeudon you might want to consider to use the same format, and if better, I am open other formats. Also, we might consider an external "overrule" file to do quick experimentation. As I am now pretty busy with the CanSee dongle I won't be doing any redefinition as described above soon. I would prefer to
Just for reference: we only use 44 free frame definitions in CanZE |
Copying from issue #510 • establish data connection to the dongle (BT or WiFi and CANSee when my diy dongle will be operational) @FredLeudon It seems we're heading down different paths. Going back to the original issue: I assume you are using the DDT4All XML database. Have you made a translation of the 44 free frame fields and if so, can you share them? |
Hi, sorry for late answer, i’m verry bussy at work ... I dit not translate free frames. You’re right, i use ddt2000 xml files. First, I build a database file with each ecu version number (soft, supplier, address, etc) I used to analyze the ecu definition located on ecu directory but it was not correct. Some ecu are not referenced. So I decided to bold this database file by analyzing all xml files. To have a good database, I downloaded different releases of ddt2000 database (hard to find recent) I merged. I uploaded xml files to my CanZE server. The approach is to read VIN, determining project (x10 for Zoe), loading list of addresses used by the project (I have my own database file too) and querying each address with identification request to get supplier, version, soft, ... I wrote (inspired from ddt4all) a check ecu function that try to find the exact or more closer ecu definition. Then I download xml file from server, analyses it and create local database files : ecu, data, requests, devices, dataitems. Then I used these database files to build a ecu class, added to a array of ecu class in a vehicle class. The database type I use is Hyper File, WinDev’s database. If you want, I can export windev files to xml or json files on my server, and give access to the CanZE team. I will give you the Sid I use in CanZE for iOS asap (now, some Sid for some projects are wrong) |
Hi Fred, Yes I would be interested in the the translations you have made so far for the 44 fields. Errors is no problem, better I put some energy in correcting those than starting over. I did a few earlier today, but as you realize, it's tedious en boring work. What I will do is make an "alternative" set we can compile to test if we can then support el cheapo lousy diagnostics-only dongles. |
Hi, I did not yet translate ALL free frames to ISO-TP frames. Below there are the frames I use in CanZE for iOS :tabSID["SID_VERSION"] = [["NUMERO","12"],["DATE","20181231"]] :tabSID[SID_Vin] = [["*ALL","763.2181.3.0"]] // X07 : Twingo X09 : Twizy X10 : Zoé X38 : Fluence X61 : Kangoo 2 ph1 X61Ph2 : Kangoo 2 ph2 :tabSID[SID_HVBAT_Voltage] = [["x07","7EC.223203.4.0"] , ["x09","7BB.2142.73.0"] , ["x10","7EC.223203.4.0"] , ["x38","7EC.223203.4.0"] , ["x61","7EC.223203.4.0"] , ["x61Ph2","7EC.223203.4.0"] ] // Autonomie // Vitesse // Freinage // Pneus // Conduite // Virtual Datas // Ecritures (test sur RAZ compteur entretien) |
Thanks Fred. I'll have a stab at the 44 fields soon. |
Hi all As I didn't find FreeFrames data on isoTP Frames, i decided to implement FreeFrames on CanZE v2 for iOS I got the free frames definition by reading the can_v10_02_20110126T152836.xml file. So, questions are coming.
ATMA -> [500F06E00000] SID[.0638.1.0] Data[TractionInstantConsumption] Value[0 kW] Raw Value[0] Those values seems strange. Any idea ? |
Fred, A few things.
|
Thanks, will have a look. |
Looks like this issue is going stale. I will close it if there is no further progress. For CanSee dongles
For ELM dongles
So the most logical conclusion would be to use Fields for CanSee and FieldsAlt for ELM, but personally, I am not very eager to do all the testing and (hopefully) finding ISOTP alternatives for the last couple of fields. Help is needed!! I propose to add a setting called "Alternative operation", which will select FieldsAlt, but only when an ELM dongle is selected. |
... all this combined with the fact that we are neither able to produce enough nor cheap enough CanSee dongles, the "alternative operation" mode seams to be a fair option for CanZE users. But as @yoh-there said, an internal and automatic translation of free frames towards ISOTP frames would be needed, but that takes times (and help, yes!). |
I am down to 6 fields. A few of them we can (imho) "let go" or let go if on ELM. Suggestions appreciated. |
This is done and in final testing. Tick "Use ISOTP fields" in the settings. At this moment required to compile the branch AltFieldTest. When sufficiently tested I propose to remove all fields / graph lines that use TimeToFull, ChargingStatus and HeaterSetpoint. Also, the _AltFields.csv, _Fields.csv and a few other things need cleaning up before merging into the Development branch. Edit: I just bought the absolute crappiest dongle I could find (EUR 1.96 inc shipping ;-) ) to see if it can work in ISOTP only mode. Will take a few weeks to arrive of course. |
Hi,
As you perhaps know, I am building an brand new CanZE for iOS (it will be 4.0.x)
Actually all features are not redeveloped.
I saw the excellent Ddt4all program and I decided to scan vehicle ECU to get the right definition.
Actually it is under beta test and it works fine with Zoe. Twizy and Kangoo virtually works too but I’m waiting for beta testers feedback.
I realized too that querying free frames causes a lot of timeouts.
Please, CanZE team, help me convert free frames to iso-tp frames ;-)
I have actually trouble with torque (wheel, motor and break)
Thanks a lot
The text was updated successfully, but these errors were encountered: