Open alexsahka opened 6 months ago
@alexsahka
Your mqtt log should look like this, tx then rx frame. It would be great if you can post more mqtt logs for the SoC, and what is the SoC showing in car scanner, so we can try and guess how it's calculated,
@alexsahka
Your mqtt log should look like this, tx then rx frame. It would be great if you can post more mqtt logs for the SoC, and what is the SoC showing in car scanner, so we can try and guess how it's calculated,
There isn't always a TX frame followed immediately by an RX frame. Additionally, I'm seeing a lot of frames in MQTT Explorer. How can I capture these frames, and is there a limit on the number I can capture?
@alexsahka When you're logging from carscanner do you click on the SoC?
When you click on the SoC or other sensors in carscanner, it will only request that specific sensor.
@alexsahka When you're logging from carscanner do you click on the SoC?
When you click on the SoC or other sensors in carscanner, it will only request that specific sensor.
When using only the carscanner SoC sensor, the MQTT topic "wican/f412fa33xxxx/can/rx" receives a high volume of messages (multiple per second). Is this behavior expected, or is there an issue with my setup?
@alexsahka When you're logging from carscanner do you click on the SoC?
When you click on the SoC or other sensors in carscanner, it will only request that specific sensor.
If we're unable to resolve this simple question regarding product support, I'll need to return the x3 MeatPis units to Mouser due to their lack of support availability. I have only a few days left to return the item within the 30-day return window. Thanks anyway, good looking product.
When using only the carscanner SoC sensor, the MQTT topic "wican/f412fa33xxxx/can/rx" receives a high volume of messages (multiple per second).
Yes that's normal. On some car's you might see a multi-line response for a PID request. If you post the frame sequence here i can help you look analyze it.
https://github.com/meatpiHQ/wican-fw/discussions/86
If we're unable to resolve this simple question regarding product support
For your reference it usually takes me 24 to 72 hours to respond to issues, I try to respond to every user to my best ability.
I'll need to return the x3 MeatPis units to Mouser due to their lack of support availability.
You can reach out to Mouser customer service and they will help you out.
When using only the carscanner SoC sensor, the MQTT topic "wican/f412fa33xxxx/can/rx" receives a high volume of messages (multiple per second).
Yes that's normal. On some car's you might see a multi-line response for a PID request. If you post the frame sequence here i can help you look analyze it.
86
If we're unable to resolve this simple question regarding product support
For your reference it usually takes me 24 to 72 hours to respond to issues, I try to respond to every user to my best ability.
I'll need to return the x3 MeatPis units to Mouser due to their lack of support availability.
You can reach out to Mouser customer service and they will help you out.
Ok, my bad! I finally figured out how to capture the MQTT data stream.
Here SOC data:
{"bus":"0","type":"tx","ts":46533,"frame":[{"id":416940529,"dlc":8,"rtr":false,"extd":true,"data":[3,34,32,42,170,170,170,170]}]} {"bus":"0","type":"rx","ts":46536,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[16,246,98,32,42,255,255,63]}]} {"bus":"0","type":"tx","ts":46538,"frame":[{"id":416940529,"dlc":8,"rtr":false,"extd":true,"data":[48,0,10,170,170,170,170,170]}]} {"bus":"0","type":"rx","ts":46540,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[33,255,255,255,255,255,255,231]}]} {"bus":"0","type":"rx","ts":46543,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[34,255,252,3,255,242,179,63]}]} {"bus":"0","type":"rx","ts":46545,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[35,255,51,51,51,51,255,225]}]} {"bus":"0","type":"rx","ts":46547,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[36,0,0,0,0,0,0,0]}]} {"bus":"0","type":"rx","ts":46549,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[37,0,50,0,45,0,0,93]}]} {"bus":"0","type":"rx","ts":46551,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[38,204,21,58,0,0,0,0]}]} {"bus":"0","type":"rx","ts":46554,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[39,129,0,193,0,3,95,32]}]} {"bus":"0","type":"rx","ts":46556,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[40,83,0,23,26,134,0,31]}]} {"bus":"0","type":"rx","ts":46558,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[41,7,6,26,132,255,196,21]}]} {"bus":"0","type":"rx","ts":46559,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[42,18,254,162,49,254,252,36]}]} {"bus":"0","type":"rx","ts":46560,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[43,36,76,36,25,78,252,78]}]} {"bus":"0","type":"rx","ts":46561,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[44,227,0,0,109,196,0,0]}]} {"bus":"0","type":"rx","ts":46562,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[45,109,196,1,32,2,5,170]}]} {"bus":"0","type":"rx","ts":46564,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[46,0,120,0,80,255,28,3]}]} {"bus":"0","type":"rx","ts":46566,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[47,2,0,0,32,12,55,100]}]} {"bus":"0","type":"rx","ts":46567,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[32,56,194,49,1,243,255,251]}]} {"bus":"0","type":"rx","ts":46568,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[33,0,31,25,25,3,131,0]}]} {"bus":"0","type":"rx","ts":46570,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[34,0,0,0,0,0,0,0]}]} {"bus":"0","type":"rx","ts":46572,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[35,26,167,17,0,39,16,56]}]} {"bus":"0","type":"rx","ts":46574,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[36,14,127,0,127,0,127,0]}]} {"bus":"0","type":"rx","ts":46575,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[37,0,0,1,0,1,0,39]}]} {"bus":"0","type":"rx","ts":46576,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[38,16,0,0,1,244,0,0]}]} {"bus":"0","type":"rx","ts":46577,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[39,246,0,240,12,99,0,8]}]} {"bus":"0","type":"rx","ts":46578,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[40,155,0,14,18,118,0,72]}]} {"bus":"0","type":"rx","ts":46579,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[41,0,0,0,65,0,0,26]}]} {"bus":"0","type":"rx","ts":46580,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[42,134,0,0,0,37,0,0]}]} {"bus":"0","type":"rx","ts":46582,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[43,78,255,0,0,78,227,0]}]} {"bus":"0","type":"rx","ts":46583,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[44,0,36,108,0,0,36,57]}]} {"bus":"0","type":"rx","ts":46584,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[45,0,0,0,74,0,65,1]}]} {"bus":"0","type":"rx","ts":46585,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[46,169,0,130,0,0,0,0]}]} {"bus":"0","type":"rx","ts":46587,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[47,1,4,46,4,46,0,0]}]} {"bus":"0","type":"rx","ts":46588,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[32,0,0,0,0,0,0,0]}]} {"bus":"0","type":"rx","ts":46590,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[33,0,0,0,0,0,0,0]}]} {"bus":"0","type":"rx","ts":46591,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[34,0,0,0,0,0,0,0]}]} {"bus":"0","type":"rx","ts":46592,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[35,0,0,85,85,85,85,85]}]}
@alexsahka there's a lot of Rx frame, as suspected it multi frame response. What was the exact SoC value for this log?
Another thing were you able to find any info on reading the SoC for this car?
@alexsahka there's a lot of Rx frame, as suspected it multi frame response. What was the exact SoC value for this log?
Another thing were you able to find any info on reading the SoC for this car?
While experimenting with the ignition ON, I tried to capture the MQTT data stream. Unfortunately, I don't remember the exact number, but it should be between 96 and 99. I searched for information on how to read the SoC on the Honda Clarity PHEV, but haven't found anything yet.
@alexsahka you should record the exact SoC while logging, this will help when trying to guess the SoC.
I also found the link below, I haven't gone through it all yet but seems helpful.
@alexsahka you should record the exact SoC while logging, this will help when trying to guess the SoC.
I also found the link below, I haven't gone through it all yet but seems helpful.
Thanks for the link! I actually saw this before, but I missed the part where MrFixit posted a config file for CarScanner. I downloaded that zip file, and inside it, I found a file named "claritypid.csp." I opened it with Notepad++ and found the line with SOC info. Here's the line:
"NM":"[Clarity]SOC","SNM":"SOC","CMD":"22202A","RL":0,"MAX":100.0,"MIN":0.0,"Id":2038,"VIS":true,"SkipCycles":0},{"SBI":104,"DL":1,"MUL":1.0,"DIV":1.0,"OFS":0.0,"SIG":false,"TP":1,"BIT":0,"FHID":false,"RBS":false,"HDR":"DA01F1","FR":"/1#104#1","UN":0,"BCM":"","ACM":"","ACT":false,"TRNS":[]
Here is the Battery capacity: "NM":"[Clarity]Battery Capacity (total)","SNM":"Batt Cap","CMD":"22202A","RL":0,"MAX":100.0,"MIN":0.0,"Id":2030,"VIS":true,"SkipCycles":0},{"SBI":167,"DL":2,"MUL":1.0,"DIV":100.0,"OFS":0.0,"SIG":false,"TP":1,"BIT":0,"FHID":false,"RBS":false,"HDR":"DA16F1","FR":"/100#167","UN":62,"BCM":"","ACM":"","ACT":false,"TRNS":[]
@alexsahka When you load claritypid.csp into carscanner are you able to use it to read the SoC?
@alexsahka When you load claritypid.csp into carscanner are you able to use it to read the SoC?
Three years ago, CarScanner did not support the Honda Clarity PHEV. However, the latest version of CarScanner offers full support for this vehicle. No claritypid.csp needed.
@alexsahka it's weird because I cannot find the CAN IDs in the mqtt log you posted.
What is this then? "id":416940529 or "id":417001729
@alexsahka it's weird because I cannot find the CAN IDs in the mqtt log you posted.
@alexsahka id 416940529 in Hex is 18DA01F1. I don't see that in the file.
@alexsahka id 416940529 in Hex is 18DA01F1. I don't see that in the file.
The file contains many hexadecimal numbers that appear similar "HDR":"DA01F1" , but there seems to be a missing two numbers 18. Are there any conversion methods we can use to fill in the missing value?
On that forum, MrFixit does some kind of conversion. https://www.insideevsforum.com/community/index.php?threads/budget-battery-capacity-readout.10531/page-8#post-125374
@alexsahka I think the best way forward is to try crack the car scanner logs.
Let's try to log 2 readings, at 2 different SoC levels. Note the SoC value you read from car scanner and log the can tx Rx frames like you've done before, do this for both SoC levels.
@alexsahka I think the best way forward is to try crack the car scanner logs.
Let's try to log 2 readings, at 2 different SoC levels. Note the SoC value you read from car scanner and log the can tx Rx frames like you've done before, do this for both SoC levels.
Here are 3 different SOC%:
SOC 94%
{"payload":{"bus":"0","type":"tx","ts":39081,"frame":[{"id":416940529,"dlc":8,"rtr":false,"extd":true,"data":[3,34,32,42,170,170,170,170]}]}} {"payload":{"bus":"0","type":"rx","ts":39083,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[16,246,98,32,42,255,255,63]}]}} {"payload":{"bus":"0","type":"tx","ts":39085,"frame":[{"id":416940529,"dlc":8,"rtr":false,"extd":true,"data":[48,0,10,170,170,170,170,170]}]}} {"payload":{"bus":"0","type":"rx","ts":39089,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[33,255,255,255,255,255,255,231]}]}} {"payload":{"bus":"0","type":"rx","ts":39091,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[34,255,252,3,255,242,179,63]}]}} {"payload":{"bus":"0","type":"rx","ts":39092,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[35,255,51,51,51,51,255,225]}]}} {"payload":{"bus":"0","type":"rx","ts":39094,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[36,0,0,0,0,0,0,0]}]}} {"payload":{"bus":"0","type":"rx","ts":39095,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[37,0,68,0,45,0,0,94]}]}} {"payload":{"bus":"0","type":"rx","ts":39096,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[38,174,11,224,0,0,0,0]}]}} {"payload":{"bus":"0","type":"rx","ts":39097,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[39,129,0,193,0,3,94,32]}]}} {"payload":{"bus":"0","type":"rx","ts":39099,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[40,81,0,163,26,101,1,27]}]}} {"payload":{"bus":"0","type":"rx","ts":39101,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[41,19,18,26,94,255,196,22]}]}} {"payload":{"bus":"0","type":"rx","ts":39103,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[42,180,253,2,50,28,250,160]}]}} {"payload":{"bus":"0","type":"rx","ts":39104,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[43,35,192,35,147,78,155,78]}]}} {"payload":{"bus":"0","type":"rx","ts":39106,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[44,127,0,0,76,5,0,0]}]}} {"payload":{"bus":"0","type":"rx","ts":39107,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[45,76,5,1,32,6,5,170]}]}} {"payload":{"bus":"0","type":"rx","ts":39108,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[46,1,34,0,180,255,28,3]}]}} {"payload":{"bus":"0","type":"rx","ts":39109,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[47,2,0,0,21,25,55,200]}]}} {"payload":{"bus":"0","type":"rx","ts":39110,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[32,57,38,49,1,243,1,16]}]}} {"payload":{"bus":"0","type":"rx","ts":39111,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[33,1,27,25,25,3,131,0]}]}} {"payload":{"bus":"0","type":"rx","ts":39113,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[34,0,0,0,0,0,0,0]}]}} {"payload":{"bus":"0","type":"rx","ts":39114,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[35,26,131,17,0,39,16,56]}]}} {"payload":{"bus":"0","type":"rx","ts":39115,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[36,134,127,0,127,0,127,0]}]}} {"payload":{"bus":"0","type":"rx","ts":39116,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[37,0,0,1,0,1,0,39]}]}} {"payload":{"bus":"0","type":"rx","ts":39117,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[38,16,0,0,1,244,0,0]}]}} {"payload":{"bus":"0","type":"rx","ts":39118,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[39,246,0,240,12,99,0,8]}]}} {"payload":{"bus":"0","type":"rx","ts":39119,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[40,207,0,96,18,118,0,185]}]}} {"payload":{"bus":"0","type":"rx","ts":39120,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[41,0,0,0,176,0,0,26]}]}} {"payload":{"bus":"0","type":"rx","ts":39121,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[42,100,0,0,0,249,0,0]}]}} {"payload":{"bus":"0","type":"rx","ts":39122,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[43,78,156,0,0,78,127,0]}]}} {"payload":{"bus":"0","type":"rx","ts":39124,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[44,0,35,209,0,0,35,155]}]}}
SOC 96%
{"payload":{"bus":"0","type":"tx","ts":49627,"frame":[{"id":416940529,"dlc":8,"rtr":false,"extd":true,"data":[3,34,32,42,170,170,170,170]}]}} {"payload":{"bus":"0","type":"rx","ts":49630,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[16,246,98,32,42,255,255,63]}]}} {"payload":{"bus":"0","type":"tx","ts":49632,"frame":[{"id":416940529,"dlc":8,"rtr":false,"extd":true,"data":[48,0,10,170,170,170,170,170]}]}} {"payload":{"bus":"0","type":"rx","ts":49635,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[33,255,255,255,255,255,255,231]}]}} {"payload":{"bus":"0","type":"rx","ts":49636,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[34,255,252,3,255,242,179,63]}]}} {"payload":{"bus":"0","type":"rx","ts":49638,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[35,255,51,51,51,51,255,225]}]}} {"payload":{"bus":"0","type":"rx","ts":49642,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[36,0,0,0,0,0,0,0]}]}} {"payload":{"bus":"0","type":"rx","ts":49645,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[37,0,64,0,45,0,0,94]}]}} {"payload":{"bus":"0","type":"rx","ts":49647,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[38,174,9,86,0,0,0,0]}]}} {"payload":{"bus":"0","type":"rx","ts":49648,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[39,129,0,193,0,3,96,32]}]}} {"payload":{"bus":"0","type":"rx","ts":49649,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[40,81,0,202,26,136,1,39]}]}} {"payload":{"bus":"0","type":"rx","ts":49650,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[41,16,16,26,128,255,166,22]}]}} {"payload":{"bus":"0","type":"rx","ts":49651,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[42,184,253,46,50,102,251,198]}]}} {"payload":{"bus":"0","type":"rx","ts":49652,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[43,36,128,36,79,79,1,78]}]}} {"payload":{"bus":"0","type":"rx","ts":49654,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[44,233,0,0,83,59,0,0]}]}} {"payload":{"bus":"0","type":"rx","ts":49655,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[45,83,59,1,32,6,5,170]}]}} {"payload":{"bus":"0","type":"rx","ts":49656,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[46,1,4,0,190,255,28,3]}]}} {"payload":{"bus":"0","type":"rx","ts":49658,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[47,2,0,0,26,25,55,190]}]}} {"payload":{"bus":"0","type":"rx","ts":49659,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[32,57,48,49,1,244,1,37]}]}} {"payload":{"bus":"0","type":"rx","ts":49660,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[33,1,39,25,25,3,131,0]}]}} {"payload":{"bus":"0","type":"rx","ts":49661,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[34,0,0,0,0,0,0,0]}]}} {"payload":{"bus":"0","type":"rx","ts":49662,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[35,26,167,17,0,39,16,56]}]}} {"payload":{"bus":"0","type":"rx","ts":49664,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[36,134,127,0,127,0,127,0]}]}} {"payload":{"bus":"0","type":"rx","ts":49665,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[37,0,0,1,0,1,0,39]}]}} {"payload":{"bus":"0","type":"rx","ts":49666,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[38,16,0,0,1,244,0,0]}]}} {"payload":{"bus":"0","type":"rx","ts":49667,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[39,246,0,240,12,99,0,8]}]}} {"payload":{"bus":"0","type":"rx","ts":49669,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[40,203,0,120,18,118,0,164]}]}} {"payload":{"bus":"0","type":"rx","ts":49670,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[41,0,0,0,157,0,0,26]}]}} {"payload":{"bus":"0","type":"rx","ts":49671,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[42,136,0,0,1,44,0,0]}]}} {"payload":{"bus":"0","type":"rx","ts":49672,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[43,79,7,0,0,78,234,0]}]}} {"payload":{"bus":"0","type":"rx","ts":49674,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[44,0,36,144,0,0,36,88]}]}} {"payload":{"bus":"0","type":"rx","ts":49675,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[45,0,0,0,167,0,157,1]}]}} {"payload":{"bus":"0","type":"rx","ts":49676,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[46,169,2,118,6,75,6,59]}]}} {"payload":{"bus":"0","type":"rx","ts":49677,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[32,0,0,0,0,0,0,0]}]}} {"payload":{"bus":"0","type":"rx","ts":49678,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[33,0,0,0,0,0,0,0]}]}} {"payload":{"bus":"0","type":"rx","ts":49679,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[34,0,0,0,0,0,0,0]}]}}
SOC 99%
{"payload":{"bus":"0","type":"tx","ts":46322,"frame":[{"id":416940529,"dlc":8,"rtr":false,"extd":true,"data":[3,34,32,42,170,170,170,170]}]}} {"payload":{"bus":"0","type":"rx","ts":46324,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[16,246,98,32,42,255,255,63]}]}} {"payload":{"bus":"0","type":"tx","ts":46327,"frame":[{"id":416940529,"dlc":8,"rtr":false,"extd":true,"data":[48,0,10,170,170,170,170,170]}]}} {"payload":{"bus":"0","type":"rx","ts":46330,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[33,255,255,255,255,255,255,231]}]}} {"payload":{"bus":"0","type":"rx","ts":46331,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[34,255,252,3,255,242,179,63]}]}} {"payload":{"bus":"0","type":"rx","ts":46332,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[35,255,51,51,51,51,255,225]}]}} {"payload":{"bus":"0","type":"rx","ts":46334,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[36,0,0,0,0,0,0,0]}]}} {"payload":{"bus":"0","type":"rx","ts":46337,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[37,0,58,0,45,0,0,94]}]}} {"payload":{"bus":"0","type":"rx","ts":46339,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[38,174,2,255,0,0,0,0]}]}} {"payload":{"bus":"0","type":"rx","ts":46340,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[39,129,0,193,0,3,99,32]}]}} {"payload":{"bus":"0","type":"rx","ts":46344,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[40,81,0,26,26,190,0,43]}]}} {"payload":{"bus":"0","type":"rx","ts":46345,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[41,15,14,26,180,255,136,22]}]}} {"payload":{"bus":"0","type":"rx","ts":46346,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[42,176,253,122,50,200,252,124]}]}} {"payload":{"bus":"0","type":"rx","ts":46347,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[43,37,72,37,21,79,164,79]}]}} {"payload":{"bus":"0","type":"rx","ts":46348,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[44,132,0,0,88,36,0,0]}]}} {"payload":{"bus":"0","type":"rx","ts":46350,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[45,87,208,1,32,2,5,170]}]}} {"payload":{"bus":"0","type":"rx","ts":46352,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[46,0,190,0,70,255,28,3]}]}} {"payload":{"bus":"0","type":"rx","ts":46353,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[47,2,0,0,38,25,55,70]}]}} {"payload":{"bus":"0","type":"rx","ts":46354,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[32,56,204,49,1,244,0,16]}]}} {"payload":{"bus":"0","type":"rx","ts":46355,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[33,0,43,25,25,3,131,0]}]}} {"payload":{"bus":"0","type":"rx","ts":46356,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[34,0,0,0,0,0,0,0]}]}} {"payload":{"bus":"0","type":"rx","ts":46357,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[35,26,222,17,0,39,16,56]}]}} {"payload":{"bus":"0","type":"rx","ts":46359,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[36,24,127,0,127,0,127,0]}]}} {"payload":{"bus":"0","type":"rx","ts":46360,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[37,0,0,1,0,1,0,39]}]}} {"payload":{"bus":"0","type":"rx","ts":46361,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[38,16,0,0,1,244,0,0]}]}} {"payload":{"bus":"0","type":"rx","ts":46363,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[39,246,0,240,12,99,0,8]}]}} {"payload":{"bus":"0","type":"rx","ts":46364,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[40,174,0,15,18,118,0,144]}]}} {"payload":{"bus":"0","type":"rx","ts":46365,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[41,0,0,0,134,0,0,26]}]}} {"payload":{"bus":"0","type":"rx","ts":46366,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[42,189,0,0,0,40,0,0]}]}} {"payload":{"bus":"0","type":"rx","ts":46367,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[43,79,169,0,0,79,134,0]}]}} {"payload":{"bus":"0","type":"rx","ts":46368,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[44,0,37,86,0,0,37,26]}]}} {"payload":{"bus":"0","type":"rx","ts":46370,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[45,0,0,0,151,0,134,1]}]}} {"payload":{"bus":"0","type":"rx","ts":46371,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[46,169,0,130,0,0,0,0]}]}} {"payload":{"bus":"0","type":"rx","ts":46372,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[47,1,4,46,4,46,0,0]}]}} {"payload":{"bus":"0","type":"rx","ts":46374,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[32,0,0,0,0,0,0,0]}]}} {"payload":{"bus":"0","type":"rx","ts":46375,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[33,0,0,0,0,0,0,0]}]}} {"payload":{"bus":"0","type":"rx","ts":46376,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[34,0,0,0,0,0,0,0]}]}} {"payload":{"bus":"0","type":"rx","ts":46377,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[35,0,0,85,85,85,85,85]}]}}
@alexsahka got it! That was the easiest one so far.
94%
{"bus":"0","type":"rx","ts":39097,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[39,129,0,193,0,3,94,32]}]}
96%
{"bus":"0","type":"rx","ts":49648,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[39,129,0,193,0,3,96,32]}]}
99%
{"bus":"0","type":"rx","ts":46340,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[39,129,0,193,0,3,99,32]}]}
Could you help me further? I sending 2 MQTT messages to wican/device/can/tx msg.payload = { "bus": "0", "type": "tx", "frame": [{ "id": 416940529, "dlc": 8, "rtr": false, "extd": true, "data": [3, 34, 32, 42, 170, 170, 170, 170] }] };
delay 200ms
msg.payload = { "bus": "0", "type": "tx", "frame": [{ "id": 416940529, "dlc": 8, "rtr": false, "extd": true, "data": [48, 0, 10, 170, 170, 170, 170, 170] }] };
and nothing rx back to MQTT.
I don't understand what I'm doing. How do I wake up the CAN bus when the car is OFF? Thank you for understanding.
Here is a screenshot for settings:
@alexsahka Do you get a response when the car is running?
Can you try to leave the car open while it charging see if the ECU goes to sleep?
@alexsahka Do you get a response when the car is running?
Can you try to leave the car open while it charging see if the ECU goes to sleep?
Sorry for the confusion. I actually had two questions combined in one. Please disregard the question about how to wake the CAN bus. All the tests I performed were done with the ignition ON.
@alexsahka so if i understand correctly, the issue here is that you're not getting any rx data?
Can you please try to remove all the filters, and just keep the first one?
@alexsahka so if i understand correctly, the issue here is that you're not getting any rx data?
Can you please try to remove all the filters, and just keep the first one?
Posting to: wican/xxxxxxx/can/tx
This payloads:
msg.payload = { "bus": "0", "type": "tx", "frame": [{ "id": 416940529, "dlc": 8, "rtr": false, "extd": false, "data": [3, 34, 32, 42, 170, 170, 170, 170] }] };
or:
msg.payload = { "bus": "0", "type": "tx", "frame": [{ "id": 416940529, "dlc": 8, "rtr": false, "extd": false, "data": [48, 0, 10, 170, 170, 170, 170, 170] }] };
Nothing received back Ignition is ON.
@alexsahka so if i understand correctly, the issue here is that you're not getting any rx data?
Can you please try to remove all the filters, and just keep the first one?
Can you help me with the issue of not receiving any RX back to MQTT? If I can gain traction with this, I'll be able to understand how to get other sensors to read in the future. Is the PID 39 is correct one?
@alexsahka I suggest that you remove all filters first. And test with some standard PID like Engine speed. https://www.csselectronics.com/pages/obd2-pid-table-on-board-diagnostics-j1979
Note that if you have 1 filter added, all other CAN IDs will be disabled.
@alexsahka I suggest that you remove all filters first. And test with some standard PID like Engine speed. https://www.csselectronics.com/pages/obd2-pid-table-on-board-diagnostics-j1979
Note that if you have 1 filter added, all other CAN IDs will be disabled.
Yes I left the only one with PID 39
@alexsahka ok. If you remove the PID 39 filter, do you receive a CAN frame on MQTT?
@alexsahka ok. If you remove the PID 39 filter, do you receive a CAN frame on MQTT?
Thanks, I learned the troubleshooting step! Received RX frame but different than with the car scanner app.
@alexsahka try this
1- Send this frame first
{"payload":{"bus":"0","type":"tx","ts":49627,"frame":[{"id":416940529,"dlc":8,"rtr":false,"extd":true,"data":[3,34,32,42,170,170,170,170]}]}}
2- wait for this frame:
{"payload":{"bus":"0","type":"rx","ts":49630,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[16,246,98,32,42,255,255,63]}]}}
3- After you receive the frame in step 2, send this frame.
{"payload":{"bus":"0","type":"tx","ts":49632,"frame":[{"id":416940529,"dlc":8,"rtr":false,"extd":true,"data":[48,0,10,170,170,170,170,170]}]}}
1- Send this frame first
{"payload":{"bus":"0","type":"tx","ts":49627,"frame":[{"id":416940529,"dlc":8,"rtr":false,"extd":true,"data":[3,34,32,42,170,170,170,170]}]}}
2- wait for this frame:
{"payload":{"bus":"0","type":"rx","ts":49630,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[16,246,98,32,42,255,255,63]}]}}
3- After you receive the frame in step 2, send this frame.
{"payload":{"bus":"0","type":"tx","ts":49632,"frame":[{"id":416940529,"dlc":8,"rtr":false,"extd":true,"data":[48,0,10,170,170,170,170,170]}]}}
1- Sent this frame
{"payload":{"bus":"0","type":"tx","ts":49627,"frame":[{"id":416940529,"dlc":8,"rtr":false,"extd":true,"data":[3,34,32,42,170,170,170,170]}]}}
2- recived this frame:
{"payload":{"bus":"0","type":"rx","ts":49630,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[16,246,98,32,42,255,255,63]}]}}
3- Sent this frame
{"payload":{"bus":"0","type":"tx","ts":49632,"frame":[{"id":416940529,"dlc":8,"rtr":false,"extd":true,"data":[48,0,10,170,170,170,170,170]}]}}
4- Nothing recived
@alexsahka are you doing this manually or using Home assistant or a script?
Do you send the frame in step 2 without any delay?
If there's a big enough delay the ECU might ignore the frame.
100 msec
@alexsahka are you doing this manually or using Home assistant or a script?
Do you send the frame in step 2 without any delay?
If there's a big enough delay the ECU might ignore the frame.
Sometimes when I quickly and randomly press the inject node with the 100 ms delay node I can see a very long RX frame.
@alexsahka try to use a subscribe node to the Rx topic, and the Rx node should trigger your "TEST2 req"
This way the 2nd frame is triggered after the first RX, without any delay.
@alexsahka try to use a subscribe node to the Rx topic, and the Rx node should trigger your "TEST2 req"
This way the 2nd frame is triggered after the first RX, without any delay.
Now it is consistently responding with different long RX frames, similar to what I received during the carscanner capture session.
@alexsahka try to use a subscribe node to the Rx topic, and the Rx node should trigger your "TEST2 req"
This way the 2nd frame is triggered after the first RX, without any delay.
But I haven't seen this RX frame starting with 39 yet.
@alexsahka what I meant is that you should make a mqtt subscription node that subscribe to the Rx topic and waits for this frame
{"payload":{"bus":"0","type":"rx","ts":49630,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[16,246,98,32,42,255,255,63]}]}}
Then the subscription node should trigger another node that sends this frame:
{"payload":{"bus":"0","type":"tx","ts":49632,"frame":[{"id":416940529,"dlc":8,"rtr":false,"extd":true,"data":[48,0,10,170,170,170,170,170]}]}}
@alexsahka what I meant is that you should make a mqtt subscription node that subscribe to the Rx topic and waits for this frame
{"payload":{"bus":"0","type":"rx","ts":49630,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[16,246,98,32,42,255,255,63]}]}}
Then the subscription node should trigger another node that sends this frame:
{"payload":{"bus":"0","type":"tx","ts":49632,"frame":[{"id":416940529,"dlc":8,"rtr":false,"extd":true,"data":[48,0,10,170,170,170,170,170]}]}}
@alexsahka what I meant is that you should make a mqtt subscription node that subscribe to the Rx topic and waits for this frame
{"payload":{"bus":"0","type":"rx","ts":49630,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[16,246,98,32,42,255,255,63]}]}}
Then the subscription node should trigger another node that sends this frame:
{"payload":{"bus":"0","type":"tx","ts":49632,"frame":[{"id":416940529,"dlc":8,"rtr":false,"extd":true,"data":[48,0,10,170,170,170,170,170]}]}}
I think I captured the SOC frame
@alexsahka looks good! You need to update to the latest firmware version. There's a new PID index feature. You'll need it for the filter.
@alexsahka looks good! You need to update to the latest firmware version. There's a new PID index feature. You'll need it for the filter.
This worked for me, thank you for your help!
@alexsahka Great! But it's better if you use
PID: 129 index: 1
@alexsahka Great! But it's better if you use
PID: 129 index: 1
Can you explain? Just curious, for future reference.
@alexsahka you might want to add another PID request with multiple frame response, the 34 won't be unique. Anyway it's not that critical.
@alexsahka Do you get a response when the car is running?
Can you try to leave the car open while it charging see if the ECU goes to sleep?
I left the car unlocked while it was charging, and the ECU is not responding. Is there a way to wake the ECU up?
@alexsahka I don't know if there is a way to wake up the ECU. Is there any CAN activity while charging?
@alexsahka I don't know if there is a way to wake up the ECU. Is there any CAN activity while charging?
When the vehicle's ignition is turned off, regardless of whether it's charging or not, the Car scanner app only displays the OBD voltage. All other sensor readings disappear.
@alexsahka I don't know if there is a way to wake up the ECU. Is there any CAN activity while charging?
Here's an idea: The adapter could record parameters every minute or more frequently. When it disconnects from the ECU, it would then start publishing to MQTT upon connecting to home Wi-Fi. Perhaps this functionality is already incorporated in the adapter?
I completed everything per Wiki: https://github.com/meatpiHQ/wican-fw/wiki/EV-Battery-SoC-in-Home-Assistant-%E2%80%90-Example
Car Scanner set to read SOC Voltage
{"bus":"0","type":"tx","ts":29165,"frame":[{"id":417018865,"dlc":8,"rtr":false,"extd":true,"data":[2,1,11,170,170,170,170,170]}]} {"bus":"0","type":"tx","ts":29098,"frame":[{"id":417018865,"dlc":8,"rtr":false,"extd":true,"data":[2,1,7,170,170,170,170,170]}]} {"bus":"0","type":"tx","ts":29022,"frame":[{"id":417018865,"dlc":8,"rtr":false,"extd":true,"data":[2,1,6,170,170,170,170,170]}]} {"bus":"0","type":"tx","ts":23895,"frame":[{"id":417018865,"dlc":8,"rtr":false,"extd":true,"data":[2,1,0,170,170,170,170,170]}]} {"bus":"0","type":"tx","ts":23153,"frame":[{"id":417018865,"dlc":8,"rtr":false,"extd":true,"data":[2,1,0,170,170,170,170,170]}]}
{"bus":"0","type":"rx","ts":23907,"frame":[{"id":417001750,"dlc":8,"rtr":false,"extd":true,"data":[6,65,0,152,24,128,3,85]}]} {"bus":"0","type":"rx","ts":23906,"frame":[{"id":417001770,"dlc":8,"rtr":false,"extd":true,"data":[6,65,0,152,24,128,1,85]}]} {"bus":"0","type":"rx","ts":23905,"frame":[{"id":417001749,"dlc":8,"rtr":false,"extd":true,"data":[6,65,0,152,24,128,3,85]}]} {"bus":"0","type":"rx","ts":23905,"frame":[{"id":417001749,"dlc":8,"rtr":false,"extd":true,"data":[6,65,0,152,24,128,3,85]}]} {"bus":"0","type":"rx","ts":23898,"frame":[{"id":417001729,"dlc":8,"rtr":false,"extd":true,"data":[6,65,0,152,24,128,3,85]}]} {"bus":"0","type":"rx","ts":23160,"frame":[{"id":417001742,"dlc":8,"rtr":false,"extd":true,"data":[6,65,0,182,60,168,19,85]}]} {"bus":"0","type":"rx","ts":23159,"frame":[{"id":417001730,"dlc":8,"rtr":false,"extd":true,"data":[6,65,0,152,24,128,3,85]}]} {"bus":"0","type":"rx","ts":23157,"frame":[{"id":417001734,"dlc":8,"rtr":false,"extd":true,"data":[6,65,0,152,24,128,3,85]}]}
Car Scanner set to read Odometer.
{"bus":"0","type":"tx","ts":1916,"frame":[{"id":416964849,"dlc":8,"rtr":false,"extd":true,"data":[48,0,10,170,170,170,170,170]}]} {"bus":"0","type":"tx","ts":1907,"frame":[{"id":416964849,"dlc":8,"rtr":false,"extd":true,"data":[3,34,112,34,170,170,170,170]}]} {"bus":"0","type":"tx","ts":1686,"frame":[{"id":416964849,"dlc":8,"rtr":false,"extd":true,"data":[48,0,10,170,170,170,170,170]}]}
{"bus":"0","type":"rx","ts":1684,"frame":[{"id":417001824,"dlc":8,"rtr":false,"extd":true,"data":[16,57,98,112,34,236,0,0]}]} {"bus":"0","type":"rx","ts":1606,"frame":[{"id":417001824,"dlc":8,"rtr":false,"extd":true,"data":[40,0,0,85,85,85,85,85]}]} {"bus":"0","type":"rx","ts":1594,"frame":[{"id":417001824,"dlc":8,"rtr":false,"extd":true,"data":[39,0,0,0,0,0,0,0]}]} {"bus":"0","type":"rx","ts":1575,"frame":[{"id":417001824,"dlc":8,"rtr":false,"extd":true,"data":[37,0,0,0,0,0,0,0]}]} {"bus":"0","type":"rx","ts":1534,"frame":[{"id":417001824,"dlc":8,"rtr":false,"extd":true,"data":[33,0,0,0,1,100,236,0]}]} {"bus":"0","type":"rx","ts":41601,"frame":[{"id":417001824,"dlc":8,"rtr":false,"extd":true,"data":[16,57,98,112,34,236,0,0]}]}
How do I convert this data into a human-readable format?
I spent the past week trying to find a solution, but I'm still unsure what to do with this data. Can anyone guide me in the right direction?