-
Notifications
You must be signed in to change notification settings - Fork 518
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
[msom] Support burnin tests #2704
Conversation
Log.info("Cell modem ICCID: %s IMEI: %s FW: %s", device.iccid, device.imei, device.radiofw); | ||
|
||
Cellular.off(); | ||
waitFor(Cellular.isOff, 30000); |
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.
Do we want to check if it turns off? Maybe add turnModemOff()
? It could also not explicitly fail the test with false
if it doesn't turn off.
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.
Its not required that the modem be off for the test to be considered successful. This is just an attempt to maintain state after the test is complete. If the modem fails to power on for subsequent cell/gnss tests, that is a legitimate failure though.
// Turn off Cell modem + GNSS antenna | ||
digitalWrite(GNSS_ANT_PWR, LOW); | ||
Cellular.off(); | ||
waitFor(Cellular.isOff, 30000); |
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.
turnModemOff()
? It could also not explicitly fail the test with false
if it doesn't turn off.
a8e92e7
to
f321360
Compare
Problem
Factory burn in needs to support MSoM hardware, specifically the GPIO pinout
Solution
Adds MSoM DVT pinmap to GPIO tests.
Basic cellular test: turn on modem, query IMEI/ICCID/Modem firmware
GNSS test: turn on modem, configure for GNSS, poll for a fix for up to 90s. If there is no lock after 90s, the test fails
Steps to Test
Jumper the following pins together on the M2 EVB (based off the silkscreen names):
Remove all of the Ethernet and SD card jumpers
Example App
Run Tinker. To force burnin mode change this line in tinker setup
References
Ask scott for more info on gpio pins
Completeness