8000 Gets stuck scanning for standard PIDs on Nissan Ariya · Issue #364 · meatpiHQ/wican-fw · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Gets stuck scanning for standard PIDs on Nissan Ariya #364

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mt104 opened this issue Feb 28, 2025 · 38 comments
Open

Gets stuck scanning for standard PIDs on Nissan Ariya #364

mt104 opened this issue Feb 28, 2025 · 38 comments

Comments

@mt104
Copy link
mt104 commented Feb 28, 2025

Scanning for standard PIDs gets stuck on my Nissan Ariya. Photos of my settings attached. With the same WiCAN I can talk to the car using the iOS Car Scanner app no problem. Am I doing something wrong?

Image
Image

@mt104
Copy link
Author
mt104 commented Apr 24, 2025

Could I have an update on this please @meatpiHQ ?

@meatpiHQ
Copy link
Owner

@mt104 just to confirm the car is ON when you are scanning right?

@meatpiHQ
Copy link
Owner

@mt104 can you please post your device configuration.

System-> Download Configuration

Make sure to remove any sensitive information like ssid and passwords

@mt104
Copy link
Author
mt104 commented Apr 26, 2025

Yes, the car was on. Config attached, with passwords redacted.

config_2025-04-26.json

@meatpiHQ
Copy link
Owner

@mt104 are you using the WiCAN or WiCAN PRO?

@mt104
Copy link
Author
mt104 commented Apr 26, 2025

It's a WICAN-OBD-C3 from Mouser.

@meatpiHQ
Copy link
Owner

@mt104 I see you've selected the Leaf profile. Is that working?

Can you please try to disable MQTT and try the scanning again?

@mt104
Copy link
Author
mt104 commented Apr 26, 2025

I disabled MQTT then tried to scan the standard PIDs again. Same behaviour... the scan button changed to greyed out "Scanning..." and after 3 or 4 minutes there's still no change.

@meatpiHQ
Copy link
Owner

Does show any errors like scan failed or it just dies?

@mt104
Copy link
Author
mt104 commented Apr 26, 2025

No errors, it just sits there saying it's scanning. The device itself doesn't lock up though, as I can click through to other pages fine.

@meatpiHQ
Copy link
Owner

I think its crashing when you click the scan button. If the car is close by, please check the blue LED if it blinks when you press the scan button.

@mt104
Copy link
Author
mt104 commented Apr 26, 2025

The blue LED does not blink, but I see an orange LED flash 6 times.

@meatpiHQ
Copy link
Owner

@mt104 I'm still unable to reproduce. Can you please connect using car scanner APP and export the logs

https://meatpihq.github.io/wican-fw/car_scanner/usage

@mt104
Copy link
Author
8000
mt104 commented Apr 26, 2025

Logs from Car Scanner attached. The car was off during this, but it still fetched data ok. I can do another with the car on later if necessary.

log.txt

@meatpiHQ
Copy link
Owner

@mt104 the car scanner log looks pretty standard. The only way to get to the bottom of this is to hookup the usb cable and look at the debug logs. Is this something you're comfortable doing ? I'll need to send you an new firmware with the debug logs enabled, and I will walk you through it.

The other option is that I can help you setup custom PIDs?

@mt104
Copy link
Author
mt104 commented Apr 26, 2025

I'm happy with either approach, and comfortable with the USB + debug firmware approach. But... my original goal was to use a set of custom PIDs, learning how to set them up, so that I can choose what to monitor. I'll be feeding data into Home Assistant via MQTT. Ideally I'm looking for traction battery SOC, SOH, voltage and temperature. I can see all of those using Car Scanner whether the car is on or off.

@meatpiHQ
Copy link
Owner

I'll help you create a profile for SoH and SoC .. etc after we figure this out.

Here's the debug firmware. This firmware will reset your configuration I suggest to download so you can restore. After the update and you restore your config, please disable sleep mode, mqtt and "Vehicle Specific". And post the log file when you're done.

wican-fw_obd_v404-52-g3550918-dirty.zip

1- Plug in a Micro USB cable into WiCAN, and it will enumerate as USB to serial device
2- Use PuTTY to log the serial output.

Image

Image

@mt104
Copy link
Author
mt104 commented Apr 26, 2025

Ok, great, thanks. Serial log for a failed autopid scan attached.

202504261457 Nissan Ariya failed autopid scan.txt

@meatpiHQ
Copy link
Owner

can you please log again, this time start the logging, then refresh the page and then scan.

@meatpiHQ
Copy link
Owner

After you press the scan button let it scan for like 30 sec or more before grabbing the logs.

@mt104
Copy link
Author
mt104 commented Apr 26, 2025

Here you go...

202504261534 Nissan Ariya failed autopid scan.txt

@meatpiHQ
Copy link
Owner

There is something wrong with the logs, both files are exactly 10KB. It looks like logs are cut short, I don't see the page refresh.

@mt104
Copy link
Author
mt104 commented Apr 26, 2025

Hmmm... I'm on a Mac, using CoolTerm. It appears that the default history is 10kB. I can increase that though. How large roughly are you expecting the log to be?

@meatpiHQ
Copy link
Owner

my logs file was about 1 MB, maybe make it 10MB max to be safe.

@mt104
Copy link
Author
mt104 commented Apr 26, 2025
8000

This one with the capture buffer set to 100MB, it comes out at 49kB.

@meatpiHQ
Copy link
Owner

@mt104 Alright! thanks for that! I was able to simulate and fix the error.

wican-fw_obd_v404-55-g14021d7-dirty.zip

@mt104
Copy link
Author
mt104 commented Apr 26, 2025

Superb, thank-you. With that firmware it takes 9 seconds to discover a set of standard PIDs.

@meatpiHQ
Copy link
Owner

Awesome! Now lets create the profile. Please follow the instruction in the link to export the logs, make sure to click on the SoC sensor in car scanner so we can find the correct PID in the log.

https://meatpihq.github.io/wican-fw/car_scanner/logs

@mt104
Copy link
Author
mt104 commented Apr 26, 2025

I'm not near the car now, so can't pull the adapter out physically. I am connected via a VPN though, so can connect the Car Scanner app ok from afar.

Is there a way I can capture what you need without pulling the adapter out? If not, I'll be back near the car tomorrow.

Thank-you for all your help today.

@mt104
Copy link
Author
mt104 commented Apr 26, 2025

Would rebooting the adapter via a web browser do the trick, causing Car Scanner to disconnect?

@meatpiHQ
Copy link
Owner

if you can reach wican through the vpn from your phone then you can connect car scanner you don't have to pull it out. If you cannot do it today that's alright we can do it later. Just post the logs here when you can.

@mt104
Copy link
Author
A3E2 mt104 commented Apr 26, 2025

Car Scanner labels this one "[BMS] TRACTION BATTERY SOC" and the current value is 97.84%

log.txt

@meatpiHQ
Copy link
Owner
meatpiHQ commented May 4, 2025

@mt104 I've created a profile for the Ariya, please try it and let me know if it works.

@mt104
Copy link
Author
mt104 commented May 4, 2025

Now using that profile, I still only see one topic via MQTT...

Image

@meatpiHQ
Copy link
Owner
meatpiHQ commented May 4, 2025

@mt104 have changed the "Destination Type" to MQTT topic?

@mt104
Copy link
Author
mt104 commented May 4, 2025

I hadn't, but have now. I also upgraded to the latest firmware. Still only seeing the status topic.

Image

@meatpiHQ
Copy link
Owner
meatpiHQ commented May 4, 2025

@mt104 what if you try this in your browser?

http://your_ip/autopid_data

@mt104
Copy link
Author
mt104 commented May 4, 2025

It said there were none, I forget the exact wording, but then I realised Standard PIDs was turned off. So I turned on Standard PIDs and tried a scan, which helped me realise that protocol was still set to Elm32 from the data capture I did last week.

Now working, thank-you for your help.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0