MG ZS EV ECU data via the Torque Pro app

MG ZS EV WEST YORKSHIRE

Established Member
Joined
Feb 18, 2020
Messages
170
Reaction score
206
Points
81
Location
West Yorkshire
Driving
MG ZS EV
A nice to have....MG ZS EV ECU data via the Torque Pro app
 

Attachments

  • 09718C8E-9DFD-4621-A496-0F608D125DD7.jpeg
    09718C8E-9DFD-4621-A496-0F608D125DD7.jpeg
    386.6 KB · Views: 359
Last edited:
We know it's possible from the Thai group... As explained in the first post on Project OBD2 thread and the YouTube video there. What we need are the PID setup files. Do you have them ?

Edit
Imperial units MPH suggest likely UK setup
 
Last edited:
The OVMS guys have identified a lot of the PIDs:


I tried a few days ago to access the data (PIDs) using a serial terminal on my mac, connected to the bluetooth obd2 dongle.
I got connected to it, got some data back using the "default" codes, but when I tried to do any other commands using what I thought were the PIDs I just got no data.
I've got annoyed with it as I can't figure it out and have given up for now!

FYI
This is what I made a note of so I remembered what I was doing, if it means anything to you:
All commands start with [AT] space is optional.
AT commands are run by the ELM327. Others are just passed on.
AT Z reset all
AT L1 Enable line feed (0 off)
AT E1 Echo on (0 off)
AT H1 Headers on (0 off)
AT DP Describe the current connection protocol + N gives the number.
AT SP0 Protocol selection Automatic
AT SP6 Protocol selection ISO 15765-4 CAN (11 bit ID, 500kbaud)
01 XX Mode (hex)01 Show current data, XX = hex value of the PID.
02 XX Mode (hex)02 Show freeze frame data (Saved state data)
01-0A are OBD2 defined, 10(hex) onwards are manufacturer specific)
01 0D Request current speed (Value is km/h)
01 11 Request current throttle position (100/255 * Value)
Response 41 00 FF FF FF FF
0100 Request all PIDs available (1 line per ECU)
If more than 1 line/ecu is returned, turn headers on (ATH1) to see which ECU they are.
E.g. BB1E3211 = 10111011000111100011001000010001 = 01,03,04,05,07,08,0C,0D,0E,0F,13,14,17,1C,20
The last bit is an indicator if there are more PIDS, if it is 1 then request the next 32 bits using 0120 etc
88 18 00 13 10001000 00011000 00000000 00010011 01,05,0C,0D,1C,1F,MORE
80 01 80 01 10000000 00000001 10000000 00000001 21,31,MORE
44 04 80 40 01000100 00000100 10000000 01000000 42,46,4E,51,5A
01 1C OBD standards this vehicle conforms to
ATI ELM327 v1.5
ATSP0 OK
ATDP AUTO
0100 SEARCHING… UNABLE TO CONNECT
ATDPN A0
ATSP6 OK
ATDP ISO 15765-4 (CAN 11/500)
ATRV 13.2V
0100 7EB 06 41 00 88 18 00 13
0120 7EB 06 41 20 80 01 80 01
0140 7EB 06 41 40 44 04 80 40
0101 7EB 06 41 01 00 04 00 00
010D 7EB 03 41 0D FF
011C NO DATA
011C CAN ERROR
011C 7EB 03 41 1C 01
011D CAN ERROR
011F 7EB 04 41 1F 00 00
0121 7EB 04 41 21 00 00
0131 7EB 04 41 31 00 00
0142 7EB 04 41 42 33 A4
1001 7EB 06 50 01 00 32 01 F4
1000 NO DATA
1002 7EB 04 7F 10 22 1B
1003 7EB 06 50 03 00 32 01 F4
1101 7EB 02 51 01
 
Great post Jody, love a bit of HEX, just like being at work!

Finally found out what IPK stands for too, Instrument Panel.
 
We're planning on talking about OVMS and the app in the podcast on 29th March.
I'm looking for folks with some knowledge on the subject to join us.
Would any of you be able to make it? Using Zoom from 7:15.
 
We're planning on talking about OVMS and the app in the podcast on 29th March.
I'm looking for folks with some knowledge on the subject to join us.
Would any of you be able to make it? Using Zoom from 7:15.
If no one else steps forward, then here's your man, (follow the link) has experience of both podcast and OBD2/Thai app.
 
Last edited:
We're planning on talking about OVMS and the app in the podcast on 29th March.
I'm looking for folks with some knowledge on the subject to join us.
Would any of you be able to make it? Using Zoom from 7:15.
I couldn't possibly appear on a podcast until I've had a haircut after lockdown!
 
We know it's possible from the Thai group... As explained in the first post on Project OBD2 thread and the YouTube video there. What we need are the PID setup files. Do you have them ?

Edit
Imperial units MPH suggest likely UK setup
I've started creating a PID list for Torque at peternixon/MG-EV-OBD-PID
 
I've started creating a PID list for Torque at peternixon/MG-EV-OBD-PID
Some of the data is not right for me see screen shots. I couldn't download your file directly despite logging into GitHub. Had to copy the raw csv data into a plain text file naming it with .csv extension.

There is a conflict between the data my SoH is somewhat worrying and some of the other parameters are slightly out too compared to the Thai App. I was stationary but speed and rpm reading are greater than that.
Also I had just stopped the granny charge for a minute or so but it was reading as a negative current... although the BMS status charged from "charging" to "running" ( in ready mode). I took the Thai screen shot first and torque about 30seconds later.
Screenshot_20210327_195458_org.prowl.torque.jpgScreenshot_20210327_195607_org.prowl.torque.jpg
 

Attachments

  • Screenshot_20210327_195423_com.mg.zs.mgzsev.jpg
    Screenshot_20210327_195423_com.mg.zs.mgzsev.jpg
    108.6 KB · Views: 321
Last edited:
Some of the data is not right for me see screen shots. I couldn't download your file directly despite logging into GitHub. Had to copy the raw csv data into a plain text file naming it with .csv extension.

There is a conflict between the data my SoH is somewhat worrying and some of the other parameters are slightly out too compared to the Thai App. I was stationary but speed and rpm reading are greater than that.
Also I had just stopped the granny charge for a minute or so but it was reading as a negative current... although the BMS status charged from "charging" to "running" ( in ready mode). I took the Thai screen shot first and torque about 30seconds later.
View attachment 2496View attachment 2497
Hi @AbuG
Thank you for your quick feedback!
GitHub is a software development system with a few fancy features to allow multiple people to sync changes with each other. Accessing the file via the "Raw" link is certainly one way to get it, or you could download the whole collection by selecting "Download Zip" from the "Code" button in the top right corner. On the other hand if you'd like to contribute changes, using a Git client like "TortoiseGit" or "Sourcetree" is the more advanced method.

Regarding my PID list, I only figured out how to get responses via Torque Pro yesterday evening over a glass of wine, but didn't have time to test that I had all the correct formula to process the responses in a valid manner. The SoH however is "valid" according to the OVMS spreadsheet that I used as a source, however I agree that it shows a different value when compared with my dash. I suspect that what the PID returns in the "correct" value before it's padded with a buffer by the dash, but I could be wrong and I will investigate this further.

The formula for the Speed and RPM on the other hand were not quite right and I have fixed those. Please grab the latest list from GitHub and let me know how you go.
 
Hi @AbuG
Thank you for your quick feedback!
GitHub is a software development system with a few fancy features to allow multiple people to sync changes with each other. Accessing the file via the "Raw" link is certainly one way to get it, or you could download the whole collection by selecting "Download Zip" from the "Code" button in the top right corner. On the other hand if you'd like to contribute changes, using a Git client like "TortoiseGit" or "Sourcetree" is the more advanced method.

Regarding my PID list, I only figured out how to get responses via Torque Pro yesterday evening over a glass of wine, but didn't have time to test that I had all the correct formula to process the responses in a valid manner. The SoH however is "valid" according to the OVMS spreadsheet that I used as a source, however I agree that it shows a different value when compared with my dash. I suspect that what the PID returns in the "correct" value before it's padded with a buffer by the dash, but I could be wrong and I will investigate this further.

The formula for the Speed and RPM on the other hand were not quite right and I have fixed those. Please grab the latest list from GitHub and let me know how you go.
Great job with this. Any chance of posting the usable file here please?
 
Last edited:
The whole collection (including readme, tested pids and pids under test) is at the project link above however if you are having trouble using GitHub then a raw link to the PIDs which seem to work correctly for me is https://raw.githubusercontent.com/peternixon/MG-EV-OBD-PID/main/extendedpids/MG ZS EV.csv
Hi, I downloaded that file from github and added it to my extended pid files on torque pro. Does this look correct to you? I have only 1 file! I wont be at the car to test this until this evening. Screenshot_20210329-105105_Torque.jpgScreenshot_20210329-105054_Torque.jpg
 
Hi, I downloaded that file from github and added it to my extended pid files on torque pro. Does this look correct to you? I have only 1 file! I wont be at the car to test this until this evening. View attachment 2525View attachment 2526
Hi @CDR
With the latest list (uploaded 25min ago) you should see 27 extra sensors while you are only seeing one. I suggest that you download the ZIP file (https://github.com/peternixon/MG-EV-OBD-PID/archive/refs/heads/main.zip) and grab the CSV from there as I think you may have corrupted the formatting when doing a copy and paste.

It should look like the following (although you'll need to create the dashboard yourself as I haven't uploaded it yet):
 

Attachments

  • Screenshot_20210329-204006.jpg
    Screenshot_20210329-204006.jpg
    286.2 KB · Views: 345
  • Screenshot_20210329-210659.jpg
    Screenshot_20210329-210659.jpg
    292 KB · Views: 313
  • Screenshot_20210329-210724.jpg
    Screenshot_20210329-210724.jpg
    300.7 KB · Views: 251
  • Screenshot_20210329-210735.jpg
    Screenshot_20210329-210735.jpg
    276 KB · Views: 327
Brilliant thanks. I cant see anywhere to download the zip file. Ive been looking and looking. I tried opening it in chrome, explorer and edge and its not there. I know I must be doing something wrong. Sorry about this
 
Hi @CDR
With the latest list (uploaded 25min ago) you should see 27 extra sensors while you are only seeing one. I suggest that you download the ZIP file (https://github.com/peternixon/MG-EV-OBD-PID/archive/refs/heads/main.zip) and grab the CSV from there as I think you may have corrupted the formatting when doing a copy and paste.

It should look like the following (although you'll need to create the dashboard yourself as I haven't uploaded it yet):
Is it both of these files?20210329_112030.jpg
 
Support us by becoming a Premium Member

Latest MG EVs video

New EVs from MG: MG S9 & MG9 plus hot topics from the forums
Subscribe to our YouTube channel
Back
Top Bottom