meatpiHQ / wican-fw

Other
219 stars 47 forks source link

SoC and AT of FIAT e-Ulysse (same as: Toyota Proace EV, Citroen Spacetourer, Peugeot Traveller) Stellantis EV #119

Open tqma1 opened 2 months ago

tqma1 commented 2 months ago

Hi,

i have done all like in the description "EV Battery Examples".

I have now got for the SoC (value is 75,72%) : {"bus":"0","type":"tx","ts":38585,"frame":[{"id":1716,"dlc":8,"rtr":false,"extd":false,"data":[3,34,212,16,170,170,170,170]}]} {"bus":"0","type":"rx","ts":51733,"frame":[{"id":1684,"dlc":6,"rtr":false,"extd":false,"data":[5,98,212,16,151,113,0,0]}]}

and the Ambient Temperature (value is 5°C) {"bus":"0","type":"tx","ts":46736,"frame":[{"id":1698,"dlc":8,"rtr":false,"extd":false,"data":[3,34,212,52,170,170,170,170]}]} {"bus":"0","type":"rx","ts":34437,"frame":[{"id":1666,"dlc":5,"rtr":false,"extd":false,"data":[4,98,212,52,5,0,0,0]}]}

But now i am in trouble - i do not know how to setup the CAN to JSON interrupter correct.

I tried for SoC: CAN ID = 1684 PID = 212 Start Bit = 0 Bit Length = 1 Expression = ((B4*256)+B5)/100 - i think this will not be correct Cycle ms = 1000

CAN ID = 1684 PID = 212 Start Bit = 0 Bit Length = 1 Expression = V Cycle ms = 1000

I am on the latest FW 2.98 - there are also more fields as on all screenshots...

BR, Thomas

tqma1 commented 2 months ago

some more snippets of SoC (maybe it is helpfull - value of Soc at this time i can´t remember)

{"bus":"0","type":"tx","ts":20179,"frame":[{"id":1698,"dlc":8,"rtr":false,"extd":false,"data":[3,34,212,52,170,170,170,170]}]}

{"bus":"0","type":"rx","ts":23868,"frame":[{"id":1684,"dlc":6,"rtr":false,"extd":false,"data":[5,98,212,16,69,19,0,0]}]} {"bus":"0","type":"rx","ts":23868,"frame":[{"id":1684,"dlc":6,"rtr":false,"extd":false,"data":[5,98,212,16,69,19,0,0]}]} {"bus":"0","type":"rx","ts":23868,"frame":[{"id":1684,"dlc":6,"rtr":false,"extd":false,"data":[5,98,212,16,69,19,0,0]}]} {"bus":"0","type":"rx","ts":23868,"frame":[{"id":1684,"dlc":6,"rtr":false,"extd":false,"data":[5,98,212,16,69,19,0,0]}]} {"bus":"0","type":"rx","ts":23868,"frame":[{"id":1684,"dlc":6,"rtr":false,"extd":false,"data":[5,98,212,16,69,19,0,0]}]} {"bus":"0","type":"rx","ts":23868,"frame":[{"id":1684,"dlc":6,"rtr":false,"extd":false,"data":[5,98,212,16,69,19,0,0]}]} {"bus":"0","type":"rx","ts":23868,"frame":[{"id":1684,"dlc":6,"rtr":false,"extd":false,"data":[5,98,212,16,69,19,0,0]}]}

meatpiHQ commented 2 months ago

Hey @tqma1 I need more data points like this with the SoC value to be able to find the right expression.

I have now got for the SoC (value is 75,72%) : {"bus":"0","type":"tx","ts":38585,"frame":[{"id":1716,"dlc":8,"rtr":false,"extd":false,"data":[3,34,212,16,170,170,170,170]}]} {"bus":"0","type":"rx","ts":51733,"frame":[{"id":1684,"dlc":6,"rtr":false,"extd":false,"data":[5,98,212,16,151,113,0,0]}]}

tqma1 commented 2 months ago

Here we go:

SoC: is 69,75% (from CarScanner App)

{"bus":"0","type":"rx","ts":51504,"frame":[{"id":1684,"dlc":6,"rtr":false,"extd":false,"data":[5,98,212,16,139,127,0,0]}]} {"bus":"0","type":"rx","ts":10066,"frame":[{"id":1684,"dlc":6,"rtr":false,"extd":false,"data":[5,98,212,16,139,127,0,0]}]} {"bus":"0","type":"rx","ts":19105,"frame":[{"id":1684,"dlc":6,"rtr":false,"extd":false,"data":[5,98,212,16,139,127,0,0]}]}

Ambient Temperature is 6°C {"bus":"0","type":"rx","ts":2177,"frame":[{"id":1666,"dlc":5,"rtr":false,"extd":false,"data":[4,98,212,52,6,0,0,0]}]}

meatpiHQ commented 2 months ago

The values are very close..

[{"id":1684,"dlc":6,"rtr":false,"extd":false,"data":[5,98,212,16,151,113,0,0]}]}. 151/2 = 75.5%

{"bus":"0","type":"rx","ts":51504,"frame":[{"id":1684,"dlc":6,"rtr":false,"extd":false,"data":[5,98,212,16,139,127,0,0]}]} 139/2= 69.5%

tqma1 commented 2 months ago

So it should be like this for SoC:

CAN ID = 1684 PID = 212 Start Bit = 0 Bit Length = 1 Expression = B4/2 Cycle ms = 1000

meatpiHQ commented 2 months ago

Yup that should do it

tqma1 commented 2 months ago

Thank you so long, but now I stuck in the same issue:

No RX when TX published to MQTT

https://github.com/meatpiHQ/wican-fw/issues/121

and I readed and tried everything from here what michi741 did: https://github.com/meatpiHQ/wican-fw/issues/91

meatpiHQ commented 2 months ago

@tqma1 Can you please post your device configuration page.

tqma1 commented 2 months ago

Got it - now it works! I did not use the correct index number. (correct is 2) Your answer here https://github.com/meatpiHQ/wican-fw/issues/121 pointed me to the right way.

Thank you for your support!

WiCAN
atze09 commented 2 months ago

Got it - now it works! I did not use the correct index number. (correct is 2) Your answer here #121 pointed me to the right way.

Thank you for your support!

WiCAN

Which Stellantis car do you exactly have? I own a Opel Corsa and i am not able to get some RX data out of the car when engine is off. Is it working for you with engine off? How do you trigger TX? i sent it via home assistant but currently this parts is also not working for me. Thanks for answering the above questions.

tqma1 commented 2 months ago

Hi! I have a FIAT e-Ulysse as written in the title of my ticket. When ignition is off no data can be received. But you can put the ignition on without pressing the breake pedal and you are able to receive data. I do it in homeassistant as here described: https://github.com/meatpiHQ/wican-fw/wiki/EV-Battery-SoC-in-Home-Assistant-%E2%80%90-Example You can check if it works with the MQTT Explorer.

atze09 commented 2 months ago

Hi! I have a FIAT e-Ulysse as written in the title of my ticket. When ignition is off no data can be received. But you can put the ignition on without pressing the breake pedal and you are able to receive data. I do it in homeassistant as here described: https://github.com/meatpiHQ/wican-fw/wiki/EV-Battery-SoC-in-Home-Assistant-%E2%80%90-Example You can check if it works with the MQTT Explorer.

Thanks for your feedback. My plan was to get data also during charging and if car is in garage without anyone pressing the ignition button. Is there a way to start ignition from remote? What do you do with the doc and AT values? Are those only for Viewing them?because the time slot of ignition on and car in wifi area is quite small.

tqma1 commented 1 month ago

Sorry for my late response, I have been on vacation. When I am coming home the WiCAN connect to my WiFi and sends the SoC (and other values) to my home assistant and there is calculated how much energy should be loaded into my car that I am reaching a SoC of 80%. That’s it - no need to have the ignition on.

naseweiss99 commented 1 week ago

Puuh gents, this gave me a bit of confusion. I configured the Wican right as above described. image

However I was unaware that the Wican doesn't start transmitting in the time intervall defined in the web frontend. What are this milliseconds for ? Every Mqtt device I have see is automatically transmitting - Wican not.

Does it really mean I need to pull the data ? in Fhem I use the implemented MQTT server and every time i publish this:

_set MQTT2_FHEMServer publish wican/XXXXXXXXXX/can/tx {"bus":"0","type":"tx","frame":[{"id":1716,"dlc":8,"rtr":false,"extd":false,"data":[3,34,212,16,170,170,170,170]}]}

I get the SOC - however, how to force automatic transmissions from the Wican?

thanks

tqma1 commented 1 week ago

I do not use Fhem, I use Homeassistant.

When the Wican is available in my network I start a automation which publish the Mqtt call every 5 seconds …

naseweiss99 commented 1 week ago

but you need to pull the data - right ?

If I look at Tasmota and many other MQTT devices, they send in determined time intervalls.

tqma1 commented 1 week ago

Both statements are correct.

naseweiss99 commented 1 week ago

And data is only received while ignition is on ?

tqma1 commented 1 week ago

Yes, see my post from may the 3th.