Open glynhudson opened 5 years ago
Lots of PIDS and decoding info for Kia and Hyundai car are documented in the source code for SoulEVSpy app https://github.com/langemand/SoulEVSpy
I added the polarwhite Ioniq model the the android app here https://github.com/openvehicles/Open-Vehicle-Android/pull/103
Have you tested the Ioniq with OVMS? I've not had any luck getting any metrics from an Ioniq using OVMS. I don't think it's a good idea to add android app images unless some sort of support is available.
Was the Ioniq screenshot on your AndroidApp PR taken with OVMS installed in an Ioniq? If so it looks like most metrics are supported?! https://github.com/openvehicles/Open-Vehicle-Android/pull/103
What version FW and cable and vehicle settings did you use? It would be good to document what features are supported and possibly create a seperate vehicle entry.
Any news here? I'm trying to get it to work but only getting the 12V battery readings...
Ioniq is not currently supported by OVMS
Ioniq is not currently supported by OVMS
Is there any plan for Ioniq to be supported? EVNotify works with Ioniq, so I guess technically it should be possible
Most of the work should already have been done since the Kona is supported, some metrics may already work. All the developers for OVMS are volunteers, support for vehicles is usually limited to what vehicles developers own or have easy access to. It may be a good idea to post on some Ioniq forums or contact EVNotify to see if anyone with knowledge of the Ioniq has interested in adding support to OVMS.
Most of the work should already have been done since the Kona is supported, some metrics may already work. All the developers for OVMS are volunteers, support for vehicles is usually limited to what vehicles developers own or have easy access to. It may be a good idea to post on some Ioniq forums or contact EVNotify to see if anyone with knowledge of the Ioniq has interested in adding support to OVMS.
I just about to order OVMS hardware if at least SoC can be extracted for Ioniq. But if it is totally unusable I wouldn't waste my money on this. But if it can be used somehow, I would maybe help improving the support for this car. I am just about to order OpenEVSE and this OVMS would be a great addition to this. Both of these, I would like to integrate to my Home assistant to control charging.
Most of the work should already have been done since the Kona is supported, some metrics may already work. All the developers for OVMS are volunteers, support for vehicles is usually limited to what vehicles developers own or have easy access to. It may be a good idea to post on some Ioniq forums or contact EVNotify to see if anyone with knowledge of the Ioniq has interested in adding support to OVMS.
I just about to order OVMS hardware if at least SoC can be extracted for Ioniq. But if it is totally unusable I wouldn't waste my money on this. But if it can be used somehow, I would maybe help improving the support for this car. I am just about to order OpenEVSE and this OVMS would be a great addition to this. Both of these, I would like to integrate to my Home assistant to control charging.
I have the OVMS HW3(?!) and the Ioniq 28. From what I understand SOC is to be there but I have not yet got it up and running.
I also run EV-notify and that one is fine but unstable for me. Needs an extra android device in the car kept alive as a server.
OVMS HW sould be able to do this easy but I've not had time to dig in to it.
Running EV notify I learnt that CAN is only active when the car is either in running state or charging. When I did my initial tests the car was off.
I'm 100% sure OVMS can do it. I don't have the knowledge to program a new profile nor understand how to use the PIDs. For any developer it's probably very east to have it up in beta state.
Most of the work should already have been done since the Kona is supported, some metrics may already work. All the developers for OVMS are volunteers, support for vehicles is usually limited to what vehicles developers own or have easy access to. It may be a good idea to post on some Ioniq forums or contact EVNotify to see if anyone with knowledge of the Ioniq has interested in adding support to OVMS.
I just about to order OVMS hardware if at least SoC can be extracted for Ioniq. But if it is totally unusable I wouldn't waste my money on this. But if it can be used somehow, I would maybe help improving the support for this car. I am just about to order OpenEVSE and this OVMS would be a great addition to this. Both of these, I would like to integrate to my Home assistant to control charging.
I have the OVMS HW3(?!) and the Ioniq 28. From what I understand SOC is to be there but I have not yet got it up and running.
I also run EV-notify and that one is fine but unstable for me. Needs an extra android device in the car kept alive as a server.
OVMS HW sould be able to do this easy but I've not had time to dig in to it.
Running EV notify I learnt that CAN is only active when the car is either in running state or charging. When I did my initial tests the car was off.
I'm 100% sure OVMS can do it. I don't have the knowledge to program a new profile nor understand how to use the PIDs. For any developer it's probably very east to have it up in beta state.
Thanks! I guess I will give it a chance. I don't afraid playing with it. I just don't want to waste money on this if it not working for sure, but as I can imagine, if it works for Kona and eNiro, it should be fine also for Ioniq.
I Just bought a Ioniq 28 and am realising i would really like something like OVMS, if it is confirmed i can at least get SOC, battery temps and basic info like that, let alone control AC, then i would be willing to order OVMS hardware, and although i'm not a developer or anything, i'll gladly help as much as possible if anyone wants to use my car and hardware for testing, even from a distance!
By request of Henri Bachmann on the german GoingElectric forum, I've added the Hyundai Ioniq vFL (28 kWh):
The implementation is based on the reverse engineering data published by the EVNotify project: https://github.com/EVNotify/EVNotiPi/blob/master/car/ioniq_bev.py
Module Documentation: https://docs.openvehicles.com/en/latest/components/vehicle_hyundai_ioniqvfl/docs/index.html
Henri has tested the module, but more tests from other Ioniq drivers are welcome.
One of the PIDs needs more data/logs: the "driveMotorSpeed" didn't match the actual speed on Henri's tests. That PID isn't used by the EVNotify system so may be wrong, or could be RPM.
If you can help with logs on this, enable file logging and do a test drive with level verbose on module v-hyundaivfl. Try to maintain a fixed maximum speed for 20 seconds for reference. Send me the logs and the max speed.
Regards, Michael
By request of Henri Bachmann on the german GoingElectric forum, I've added the Hyundai Ioniq vFL (28 kWh):
The implementation is based on the reverse engineering data published by the EVNotify project: https://github.com/EVNotify/EVNotiPi/blob/master/car/ioniq_bev.py
Module Documentation: https://docs.openvehicles.com/en/latest/components/vehicle_hyundai_ioniqvfl/docs/index.html
Henri has tested the module, but more tests from other Ioniq drivers are welcome.
One of the PIDs needs more data/logs: the "driveMotorSpeed" didn't match the actual speed on Henri's tests. That PID isn't used by the EVNotify system so may be wrong, or could be RPM.
If you can help with logs on this, enable file logging and do a test drive with level verbose on module v-hyundaivfl. Try to maintain a fixed maximum speed for 20 seconds for reference. Send me the logs and the max speed.
Regards, Michael
I'm about to purchase an Ioniq mk1. How can I learn to "read" all PID's or just the work that we need to improve OVMS for Ioniqs?
Still without remote climate control, chargue control.... Is it completely impossible to make it works?, or it's just that there is no people working on it?
Regards, David
I'm not familiar with the Hyundai model family… what's a "mk1"? What are the differences to the models already supported?
I'm not familiar with the Hyundai model family… what's a "mk1"? What are the differences to the models already supported?
Mk1 means old 28kwh Ioniq, so mk2 it's new 38kwh.
So that's the Hyundai Ioniq vFL (28 kWh) and you'd like to improve on the module? Go ahead. I didn't implement all PIDs known, just a first set. And you'll probably find more info on the web. You can also use the OVMS RE toolkit to discover more PIDs.
So that's the Hyundai Ioniq vFL (28 kWh) and you'd like to improve on the module? Go ahead. I didn't implement all PIDs known, just a first set. And you'll probably find more info on the web. You can also use the OVMS RE toolkit to discover more PIDs.
That's the thing haha i really don't know what to do to make this works or just to help someone to improve the ovms for ioniq.
Some merged mails I wrote on this on the developer list:
First of all, query the search engines and open source hubs (github, sourceforge etc.) for existing publications on your car. Try searching for "
If there is no open info but some diagnostic tool available, consider buying that tool and an OBD split cable to enable you to connect both the tool and the OVMS at the same time. That way you can record & analyze the communication between the tool and the car.
Please read: https://docs.openvehicles.com/en/latest/crtd/can_logging.html
The OBD2 port has only one standard CAN bus (on pins 6+14) which is connected as can1. Manufacturer specific additional buses may be present in your car, it depends on their purposes and your goals if you need to use them.
The standard OVMS OBD2 cable connects can2 additionally to pins 12+13, which are used by many manufacturers for a secondary CAN bus. If you need the third CAN bus as well, you'll need to use the DA26 connector.
If you need to connect to the K-Line or need a fourth CAN bus, you'll need to add the K-Line or SWCAN extension boards.
If you don't know anything about the car, you'll first need to find the right CAN bus and baud rate to access the vehicle (see above).
Be aware there may be no regular transmissions on the buses you can access via the OBD port, so simply listening may not be enough.
If you can see frames on some buses, using the RE tool is an option. Another is to stream the packets to SavvyCAN for analysis. Both will help you to identify related bits & bytes. Next step is then to find out which metrics and indicators can be read from the frames. Standard procedure is to record changes you see on the bus from actions you do with the car, and to correlate changes you see in the car's displays to those on the bus. Then you need to decode the values, i.e. how to convert the raw values into their respective readings.
RE tool UI: https://docs.openvehicles.com/en/latest/plugin/retools/README.html
Next step is checking for OBD2 or CANopen devices on the bus(es). These devices need to be queried actively, so you need to send requests on the bus.
For CANopen, read: https://docs.openvehicles.com/en/latest/components/canopen/docs/Howto-detect-CANopen-nodes.html
We don't have a similar guide for OBD2 yet. Begin by some simple standard broadcasts to see if you get any reaction, for example "obdii can1 request broadcast 0100" asks all broadcast listeners to tell which of the service 01 PIDs in the range 01…20 they support. The responses should give you a hint about the device addresses, so you can investigate specifically.
Standard OBD PIDs: https://en.wikipedia.org/wiki/OBD-II_PIDs
Most OBD2 devices won't respond to broadcasts though, and many EVs do not respond to standard OBD modes & PIDs. To identify them, you need to send a test request to all CAN IDs in your assumed ID range. The scan tools for this are below "re obdii scan":
OVMS# re obdii scan start ?
Usage: re obdii scan start
RE PID scanner UI: https://docs.openvehicles.com/en/latest/plugin/repidscan/README.html
Most newer vehicles will support reading 16 bit PIDs by UDS poll type 22. If you're lucky, poll type 24 is supported and gives you info on how to translate the raw values.
If not you once again need to monitor the response data, correlate changes to car data updates and actions and find out how to convert the values.
Be aware you may need to activate a diagnostic session with a device before actually be able to read data from it. Diagnostic sessions need to be kept alive by either sending the session control request once per minute or activating the "tester present" signal ("re obdii tester"). Once again, you need to find out which session mode you need for a device. You can tell if the device supports a session mode by it's response.
More on UDS request types: https://en.wikipedia.org/wiki/Unified_Diagnostic_Services
You'll find more info on CAN reverse engineering and OBD hacking on the web. A good starting point is SavvyCAN.
You'll also find more on all of this by browsing the list archives: http://lists.openvehicles.com/pipermail/ovmsdev/
Regards, Michael
wow, it looks really difficult for someone that have no idea of this world...
Is it possible to use OVMS v3 as a tool for read all this info?? It looks possible as it's on "docs" of OVMS, just asking.
Do we need a laptop connected to obd port? or it's enough with ovms "reading" and sending that info to a SD Card directly on the OVMS V2 hardware?
I'm reading all info at ovms docs but i'm really confused, because i don't know how to "send" those commands like " OVMS# can can1 start listen 500000" to start reading. SMS? or it's through a PC software in "livetime" connected by usb to ovms, and ovms to obd port?
I'm sorry, trying to do my best on English, i hope you can understand me.
Regards and thanks for all!
@dexterbg I sent you an email. Can all others confirm there is no speed on OVMS at all?
Thanks to PID inspection & decoding by @bassmaster187 the vehicle speed reading is now working.
Ref: 601f2a707e47ce9a88baec6da9f4bfd6786b52a7
Note: there is some difference to the speed displayed, which is perfectly normal for most cars. I recommend testing if the speed reading matches the GPS speed measured e.g. by some App. If you'd rather have the metric matching the dashboard closely, we can add a user configurable scaling.
@bassmaster187 codewise, that could simply be:
// Read vehicle speed:
float speed =
UnitConvert(Mph, Kph, RXB_INT16(53) / 100.0f) *
MyConfig.GetParamValueFloat("xhi", "speedfactor", 1.0f);
StdMetrics.ms_v_pos_speed->SetValue(fabs(speed));
…and you would need to add this to the vehicle constructor:
// Init config:
MyConfig.RegisterParam("xhi", "Hyundai Ioniq vFL", true, true);
A user can then do config set xhi speedfactor 1.1
to scale up the speed by 10%. You can also decide to choose a default higher than 1.0f
.
Regards, Michael
Hey everybody,
is there ever be the chance that OVMS can control the cabin temperature (pre heat / cool) and lock/unlock the car?
These are the things that I really missed about the Ioniq 28KWh, because of the lack of BlueLink connectivity here in Europe.
Thank you all for your work. When these things work someday, I would by the OVMS instantly.
Yesterday I tested OVMS V3 running V3.2.002 on a Hyundai Ioniq BEV. I assumed the Ioniq would share the eNiro / Kona platform added in https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/pull/219. However, with the eNiro vehicle selected no metrics where read.
However, when the Kia Soul vehicle a few metrics seem to be correctly read e.g temperature, SOH, see below. I used the Generic Left OBD2 cable. I also tried the Kia Soul cable but that resulted in no readings.
How to read Ioniq SoC is documented in EVnotify code: https://github.com/EVNotify/EVNotify/blob/master/app/www/components/cars/IONIQ_BEV.vue#L123
A list of PIDS for Ioniq, Kona, Niro and Soul seem to be documented here: https://github.com/JejuSoul/OBD-PIDs-for-HKMC-EVs
I have a contact with Ioniq BEV, therefore am able to do more testing if required