-
Notifications
You must be signed in to change notification settings - Fork 106
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
Vehicles with keyless entry keep sending CAN messages, keeping VI alive #250
Comments
I can confirm the behavior of chapter 1. |
Chapter 1 is the expected behavior with the For Chapter 2,
Yes, sounds like it's getting a response. |
hey @peplin, for Ch. 1 I did confirm that I did a |
I think somehow either:
I just tried this a couple of times with the exact same options with
Here are two videos that show the expected LED behavior: No CAN Bus Attached
CAN awake, then sleeping
What's next?Zac, can you try changing the version number temporarily in config.cpp to make sure your VI is actually running the intended build? |
@peplin thanks for the notes and videos. I agree that what you saw is the expected behavior I'm looking for. I just tried again this time with v6.0.2 (so the config.cpp file was updated) but unfortunately I got the same results. I also updated openxc-python prior to compiling. I saw the update about using Vagrant. I'm not sure if something is getting lost in Cygwin, but I'd like to get it to a place where it's working before switching to Vagrant. |
Very weird!
Triple-checking: you ran |
I didn't run that originally, but I just did and yes, |
@creitz what firmware and vehicle were you testing with? |
@zacnelson 6.0.1 Fordboard binary release, 2013 Escape. |
okay @peplin @creitz i did a bit more testing. It looks like there is a periodic signal on the CAN bus every few seconds. My guess is that this is for keyless ignition (push button start/stop) vehicles like the 2013 Escape that Charles tested and the 2014 Fiesta ST that I tested. The VI wakes up every few seconds after receiving CAN traffic and I get It looks like this isn't an issue with the vi-firmware and @peplin's testing in the Mustang confirms this. This does bring up the question: with more and more vehicles going towards keyless ignition, how do we minimize the power draw from the VI if there's still periodic CAN traffic? If the vehicle CAN bus never completely goes to sleep then I don't think we can have a good I want to test this in a few more vehicles to confirm, but I think we're good for a release in its current state. |
Interesting - I think we can come up with a good solution. We can't avoid the wakeup on CAN traffic (it's an external interrupt from the CAN controller that wakes the MCU), but we can check the value of the ignition_status if a signal with that name is defined and we received it. This is similar to what the OBD2_IGNITION_STATUS power mode does - it wakes up in the lowest possible power state, and only fires up the rest of the VI (USB, BT, etc) if the ignition is on. |
That makes sense - I like the idea. I know we don't have ignition_status signals sorted out in the public binary releases due to different vehicles having keyed vs. keyless ignition. What about waiting for multiple CAN signals to be received? We could say something like:
|
I've encountered an issue where the VI does not completely go to sleep after the vehicle powers down and the driver has left the vehicle and locked the car. And so begins the story of the VI lights:
Chapter 1:
When I first lock the car, I see the blue light turn to red (bluetooth is disconnected this whole time). The red light then goes off after about 5 seconds. This is expected. After about 5 more seconds, the red light comes back on and remains on for 5 seconds. The light then turns off for a brief moment (~0.1 seconds) and then turns back on. This process repeats about 10 times maybe and then the light stays off.
Chapter 2:
After about 30 seconds of peace, the red light turns back ON for a little bit and then turns blue. The blue light then turns off. The light remains off for about 5-10 seconds and then this process repeats.
I think this is the PID response power mode. Shouldn't this be disabled with
SILENT_CAN= DEFAULT_POWER_MANAGEMENT
? Also, when the red light turns blue as described in Chapter 2, would that mean that the vehicle BUS is now active and we're getting a PID response back?I've tried a build with the latest version of vi-firmware. The compile options I am using are as follows:
Also got the same result with:
The text was updated successfully, but these errors were encountered: