-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add support AVE TPMS #1909
Add support AVE TPMS #1909
Conversation
This looks great! Very interesting about the different scaling mode. I wonder if other sensors have something like this too.
|
About the scaling mode, that comes from the specs in manual. There is a car
mode and a truck mode. Former has a range of 700 kPa and resolution of
2.35, while the latter has a range of 1400 kPa and resolution of 5.5. The
manual also mentions 4 modes, which when I change the identified mode bits,
have a different 0 offset for each of car and truck mode.
Concerning the battery, I've used observation on the receiver. There is an
icon with all bars filled with value < 6. One bar disappears when value is
6 and all bars but one disappear and the icon flashes when value is 7. I've
not been able to display any other values. If boolean is required for
battery_ok, then I can set 1 for values <= 6 and 0 otherwise.
Sorry for the fprintf, I missed it. I also observed that some tabs were
left in the files and some clang warnings were there. I will try to fix
these. That's my first github pull request and I'm still learning the
process. Do I simply modify the code and push it on my branch? Is a git
amend ok?
I created a small software to push any signal to the receiver with a hackrf
and noted down observed results on the receiver. I've also had a few pulse
grabs from the sensor. That's how I came with all different values. I can
share those files, but I don't know how.
|
Yes, add more commits (we squash on merge) if you like. Amend and force push is also fine. Either the receiver does not care to distinguish high battery levels, or it's fewer bits (e.g 1 bit for weak, 1 bit for low, otherwise good)? The last flag bit could be an idle update vs running-mode, perhaps? |
I decided to change to double value and use 1.0, 0.75 and 0.25 for battery. That would be aligned with my observation of 4/4 (<6), 3/4 (6) and 1/4 (7) bars on the battery icon. I've not been able to come with a linear interpretation of those bits. For last flags bit, I've always observed a value of 010 from the sensor. When I generated my own signal to transmit to the receiver, I saw no change on the screen for all values. That's why I kept the information as flags. |
Thanks. battery_level is fine. I just noticed the kPa to PSI conversion factor. We always try to output the native value and encourage user to use e.g. |
Add support for AVE TPMS device. Device information can be found at:
http://www.avetechnology.com/index.php?unit=products&lang=en&act=view&id=23