-
Notifications
You must be signed in to change notification settings - Fork 4
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
ui: screens: diagnostics: add screen with bringup-relevant information #71
Conversation
@SmithChart I'll hand you the "Assignee" token first to verify if the screen contains everything we need (and can easily get to). |
The failed |
Thanks for the PR! I will give it a closer look later on. One think that came to my mind: Another interesting information there could be here:
It can either be |
My first thought was "oh no! timezone handling!" but we already had the
I actually did not know about these flags! I've added them to the screen now. |
The failed cargo check (1.68) run is due to me using a feature that was not stable yet in that rust version but is since 1.70. |
df3cf32
to
98d4ae9
Compare
I've increased the font size from To do so I've removed the raw ADC value outputs for each channel. See the updated screenshot in the PR description for reference. |
One detail: when leaving the diagnostics screen, the tacd -controlled LEDs stay on, when they have been enabled during diagnostics. But I do not think that we need to change this behavior. LGTM from my side. Passing the ball to @KarlK90 for the code review. |
Hi @KarlK90, could you have a look at this PR? I would like to have it in an upcoming release, so we have it available when bringing up the next batch of TACs. |
This adds support to read the featurset fields stored in the baseboard and powerboard EEPROMs which are passed to us by barebox via the devicetree choosen mechanism. The featuresets describe things like "does this TAC have a TFT" (in contrast to the OLEDs the first generation of TACs had) or "are these scales and offsets actually calibrated or only calculated". Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
When bringup up a new LXA TAC we want to see a few things right away: - Is the screen straight inside the housing. - Are all versions (hardware and software) as expected. - Are the ADC channels calibrated. - Is the correct update channel activated. This is easily done with a diagnostics screen. The screen is available via a special button sequence from the setup mode screen. - Why the setup mode screen? After bringing up a new TAC the setup mode will be active and should stay active until the devices arrives at the customer. This means the diagnostics mode should be reachable via the setup mode screen. - Why a special button sequence? The customer may try to skip the setup process using the buttons on the device (which is intentionally not possible). Why means they are likely to make quite a few random inputs. These should not activate the diagnostics mode as to not spook the user. Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
Things like hardware and software versions. Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
Let the user turn the tacd-controlled LEDs on and off via the diagnostics screen. Also dimm the backlight to make sure that works. This allows verifying the successful operation of these LEDs without requiring an involved test setup. Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
98d4ae9
to
fe315b1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
When bringup up a new LXA TAC we want to see a few things right away:
This is easily done with a diagnostics screen. The screen is available via a special button sequence from the setup mode screen.
Why the setup mode screen?
After bringing up a new TAC the setup mode will be active and should
stay active until the devices arrives at the customer.
This means the diagnostics mode should be reachable via the setup mode
screen.
Why a special button sequence?
The customer may try to skip the setup process using the buttons on
the device (which is intentionally not possible).
Why means they are likely to make quite a few random inputs.
These should not activate the diagnostics mode as to not spook the user.
The screen looks something like this (the white border is used to align the screen):
(The image may appear blurry due to scaling applied by your browser)