Hello,
I in turn launch into the experience on my vehicle : the new Peugeot e208.
The e208 is based on a new technical platform from the manufacturer, common for thermal and electric models. Perhaps even more specific on the electric for OBD, like any electric vehicle.
After a quick start / installation of the OVMS module, everything seems functional.
For the wiring, I share what I found:
On the OBD socket (located on the driver's side, remove the cover under the steering wheel on the left), only the pins 1,3,4,5,6,8,14,16 are wired.
The standard/regulatory CAN bus is on pins 6 and 14 (6: high, 14: low)
The Diagnostic CAN Peugeot bus is on pins 3 and 8 (3: high, 8: low)
Details:
pin 1 + 12v after power
pin 3 can high Peugeot
pin 4 body ground
pin 5 electro ground
pin 6 can high standard
pîn 8 can low Peugeot
pin 14 can low standard
pin 16 + 12v OBD
OVMS side:
Can1 = regulatory/standard can
Can2 = pins 3 and 8 of the OBD socket must be re-mapped on connectors 13 and 12 respectively for OVMS
Then, I followed the recommendations from the article "General suggestions for adding support for a new vehicle to OVMS".
If the first two steps have gone well, I have a little more trouble for the rest ...
The connection with the 2 can buses seems to be well established. Very verbose data does arrive from can 1 (regular broadcast).
As advised, I use Savvycan to capture the data. I observe an evolution of the data according to the action launched on the vehicle (opening / closing, poweron / off, etc.) but I am unable to extract any concrete information from it.
OVMS does not seem to recognize any of the known standard PIDs, so I have no feedback in the dashboard (no Soc, no VIN, etc.).
The vehicle being very recent, I did not find any documentation on the internet, nor in the somewhat 'specialized' forums.
So I have a few questions, maybe I'm on the wrong track ...
- how to interpret the data collected in Savvycan? if I could identify real values, I would be able to deduce the function concerned.
- I suppose that can2 only responds on request from the OVMS, what type of tests or requests can I test to validate obtaining a response forme the can bus ?
- for all these tests, what is the appropriate setting for "vehicle type" in OVMS, I currently use "OBDII" ?
Please found here as an example a Savvycan capture, at the opening of the vehicle.
Thanks for your help !
SavvyCAN has some utility functions to help. It can look for particular numbers, etc.
In general what I do when looking for a particular metric is get the current value, and then look in the bus for messages that could contain that value (formatted in different ways - for example mileage is often represented as 1/10ths of a mile, and could be little or big end Ian). Once I've found some candidate messages, I try to change the metric (by driving the car, for example), and then look for the changed metric value in the messages.
For action style events, I look for changing messages. Filter out anything which is not changing, so you only get a few messages. Ignore those. Then do the action, and see if something else has changed.
SavvyCAN can help with both the above approaches.
Hello and thank you for your reply.
The methodology suits me very well, this is how I will try to move forward.
On the other hand, the question facing me today may seem silly, but how to convert the results into understandable values? like for example miles / km, or a percentage of charge.
Today I cannot interpret data such as:
1587831212.362000 1R11 00000517 DA 0C 03 0C 03 3F CF
1587831212.362000 1R11 00000797 00 00 00 00 00 00 00 00
1587831212.362000 1R11 00000552 03 4E AA 49 00 00 A7 FE
1587831212.362000 1R11 00000512 07 10 00 00
1587831212.362000 1R11 00000412 10 00 00 00 00 3C 00 00
1587831212.362000 1R11 0000056E F4 00 00 00 00 00
I also don't understand why they don't all have the same length.
Thank you for a little help!
Hi Unterix, have you had any luck with the data from the e-208?
I've recently got one and am interested in OVMS on the car. I've no experience with the systems and software, but happy to help where I can.
Usually, the message ID defines a particular message from a particular ECU in the car (often destined for another ECU). The data bytes that follow are dependent on the message type (ID). So, there can be anywhere from 0 to 8 bytes of data. There are cases, however, where one particular message ID can be overloaded for many different messages, and this is known as a multiplexor. An example of that would be a message containing battery module data, with the first byte indicating the module#.
Looking at one example of yours:
00000512 07 10 00 00
That is message ID 512, and 4 data bytes 07 10 00 00. The data could be interpreted in many ways. For example, it could be two 16 bit numbers (0710 and 0000), or four 8bit numbers (07, 10, 00, and 00). It could be a 32 bit number. Or any combination.
Look at a temperature, for example. 32celcius could be encoded as 0x20 in hex. But often it is offset to allow for a certain range of negative value - for example +32 offset to allow for -32 upwards. In that case, you would see 0x40 in the data.
A SOC of 64% could be simply 0x40 (hex). But it could also be in 1/10ths of a percent, so 0x280 in hex (and that could be sent as either little or big endian so 02 80 or 80 02).
SavvyCan has some utility functions to help you try the different alternatives. The good news is that particular car manufacturers tend to standardise, so once you've worked out one message the others tend to be easier.
A good starting approach is to get some dumps in various states of the car. Then look for unique message IDs. Forget about the data - just identify the unique IDs. That becomes your target list. Then go looking for specific metrics.
Hi I've got a Peugeot e-expert which I suspect is very similar. Just wondering where you got to with this. I got an OBD II module from powercruisecontrol but it needed an adaptor to connect a couple of pins to another couple of pins....
I've just purchased an e-208, GT Premium, it will arrive in Jan / Feb 2022. I am interested in interfacing to the CAN BUS and have lots of adapters and cables that I have purchased in the past, however with my current car Audi A5, I have not had much (any) success in getting any data from the CAN BUS.
I have CAN-BUS shields and ODBC Cables, is there anything that is proven that will enable me to sniff and pick up the following:
Thank you,
Simon
hi all, I'm just getting started with OVMS in my Peugeot e208.
Thanks to the info provided by @unterix I was able to correctly wire my own custom cable and connect to both CAN buses. Both buses run at 500'000 bps.
I also get some similar data as @unterix on the standard CAN (pins 6/14). On the Peugeot CAN (pins 3/8) I only get data from the single ID 0x353 with the data always being 00 00 00 00 00.
I have just managed to get the live monitoring with savvycan working. It was necessary to disable the "Require validation of GVRET connection" option in File -> Preferences in order to fix periodic TCP/Telnet connection resets over OVMS Wifi. Still not sure how reliable the recording/transmission is, since I get bursts of traffic with periodic pauses in between. I don't see this pattern in the log files recorded to the SD card. There it looks more like a continuous stream of telegrams.
Not having a reliable live monitor makes it harder to reverse-engineer the data by correlating it with actions in the car (i.e. push the gas pedal, turn on the lights etc). What I can see so far is that none of the actions seem to result in additional IDs being transmitted on the bus (compared to the baseline traffic when no action is performed). So either all modules are continuously transmitting all the time, or they are using yet another bus to communicate which is not accessible on the OBDII port. Further data analysis is necessary to try and pick out events.
My next step will probably be to try and reverse-engineer the functionality of a bluetooth OBDII dongle that I tried out a few weeks ago. With that dongle I was able to display live data such as battery current and vehicle speed on a mobile app. I will try to figure out whether this dongle/app extracts the data from the available data stream or whether it uses some polling mechanism.
Please let me know if you make any progress or have any additional insights.
Thanks,
Daniel
Hi,
I was wondering if there is any progress since last post.
I have ordered mine last week. Hopefully it will arrive soon. My plan is to add all PIDs to the GitHub once I figured them out.
I saw a few YouTube videos that the app "Car Scanner" was able to get it working.
Also the pin-swap wouldn't be necessary when you got the update provided by Peugeot or got the newer model.
I hope we can help each other out and make Peugeot e208 compatible with OVMS. Then we finally can get rid of the MyPeugeot-app...
On this forum they have found the PID for Peugeot e208. (https://www.goingelectric.de/forum/viewtopic.php?f=325&t=64034&start=70)
There is an open GitHub Issue where the main PID-commands are shown (https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/issues/719)
(See https://github.com/EVNotify/EVNotify/issues/205#issuecomment-824842473)
Car Scanner is compatible with PSA EVs and have listed the same PIDs from above.
If I understand correctly, to be able to receive the right messages, this string needs to be send in the beginning to configure the connection.
There is no need for decrypting RAW data because this is already done by others.
I have no experience with programming a new car within OVMS. I have experience with programming the microcontroller inside (ESP32).
I think it would be fairly easy for an experienced OVMS-programmer to "convert" this into code for OVMS3.
I hope we can make the Peugeot e208 (fully) compatible with OVMS.
Looking for this, since I'll get my e-2008 soon. However I have no skills helping you out.