Skip to content
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

Battery Temperature Not Logged #56

Open
muellergit opened this issue Jan 12, 2018 · 9 comments
Open

Battery Temperature Not Logged #56

muellergit opened this issue Jan 12, 2018 · 9 comments
Assignees
Labels

Comments

@muellergit
Copy link

I noticed that battery temperature is not being logged, and since that statistic is very important when trying to understand battery performance in the cold Winter I think it should be included.

I found in the OWDevice.java file where all of the Characteristics are pulled in from the board and how only some are selected to be logged, so I could add it myself but don't understand the process of using git yet. This may be my chance to learn.

There is a Characteristic called SafetyHeadroom that may be interesting to look at. It could have to do with the regen setting, but if it is instead some sort of dynamic measurement of power or otherwise? I'm curious if anyone here knows. Also is there a separate area (board) for us to discuss things or ask questions/discuss the code without opening "Issues" here? Sorry for being a nube.

@kwatkins
Copy link
Collaborator

kwatkins commented Jan 13, 2018 via email

@muellergit
Copy link
Author

muellergit commented Jan 13, 2018 via email

@ebabel
Copy link
Collaborator

ebabel commented Jan 14, 2018

When we get the notify with uuid for OnewheelCharacteristicBatteryTemp its actually getting set into value of characteristics.get(OnewheelCharacteristicTemperature)

OnewheelCharacteristicTemperature has its own uuid, so I think this is a mistake.
controllerTemp is also getting assigned to the same place.

@ebabel ebabel self-assigned this Jan 14, 2018
@ebabel ebabel added the bug label Jan 14, 2018
@ebabel
Copy link
Collaborator

ebabel commented Jan 14, 2018

I tried adding the OnewheelCharacteristicBatteryTemp uuid to notify characteristics thinking that maybe you just forgot to add it and its not coming back with anything. @kwatkins can you take a look at that?

see branch batteryTemp

@ebabel ebabel assigned kwatkins and unassigned ebabel Jan 14, 2018
@ebabel
Copy link
Collaborator

ebabel commented Jan 15, 2018

I fixed the battery not showing up in the UI, although if I understand it correctly its meant to be read on demand and not on an interval like the other stats we log, which means the log will only show one value. I suppose we could poll this on an interval maybe? @kwatkins does that sound legit? Maybe its expensive to turn on that sensor?

@two-x
Copy link

two-x commented Jul 24, 2018

Does anyone know how the four different temperature readings are combined to produce the displayed temperature number? (back when the app displayed the batt temp)? Is it an average or a max or min?

This is another two-x related behavior I wish there was an app setting for ...

In the OW+ the four sensors are evenly spaced around the battery pack.

With the two-x upgrade, the first sensor is on the front satellite pack, the second sensor is on the rear satellite pack, and the 3rd and 4th are spaced apart on the internal main pack. So it'd be cool to have separate displayed and logged values for the 1st, the 2nd, and (avg of 3rd & 4th) sensors. So you could see separate temps for each of the 3 separate packs.

I don't see this as necessary, but would be really cool.

Soren

@biell
Copy link
Collaborator

biell commented Nov 28, 2019

Based on my tests, the official app has always reported only on the first number. With pull request #106, I have updated the code to pull this once a minute. I needed to get the temperature on a periodic basis so I can update my alternate battery % remaining methods.

In particular to my code, is how much battery is left after the OW reports it is at 1%, that changes slightly with temperature. Now that I have all that covered, my next todo list item is to look into this more and see what is going on with battery temperature. Battery temperatures are only reported in 5°C increments.

@biell biell self-assigned this Nov 28, 2019
@biell
Copy link
Collaborator

biell commented Nov 30, 2019

I have motor and battery temperatures logged on the main screen with branch master...battery_temp_issue56

However, I can only find 2 battery temperatures being sent from the OW to the app. Soren @two-x , you mentioned 4 temperatures, but that was because there are 4 physical temperature sensors, not because you were aware that the Onewheel actually sends 4 temperature readings back to the application, right? I just want to make sure there isn't something you know about that I can't find. If I don't hear back that there is something I am not finding about the temperature readings, I will open up a pull request for this branch.

In my previous research, only one of the two temperatures the Onewheel reports seems to change a lot, though they do both change. I wonder if maybe there is already some averaging going on.

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

No branches or pull requests

5 participants