Skip to content

Torch unresponsive when trying to get PP keys for unprovisioned device #319

@tonycanike

Description

@tonycanike

Subject of the issue

Torch appears to be stuck trying to get PP keys for an unprovisioned device.

Stuck with a solid orange connect LED on.
Double-tapping will not go into WiFi config mode.
Powercycling does not help, it gets stuck all over again.
Can not enter serial menu by pressing a key.
Serial port endlessly emits "...device not whitelisted..." messages.

If I power cycle and hit a key at just the right time, I can get into the serial menu to disable PP corrections, and all seems good (except no PP keys!)

And then I can put it back into the endless stuck unresponsive loop by re-enabling PP and auto key update.

Steps to reproduce

How I got here:
I did something analogous/approximate to what I did when I first got my L-Band Facet:
-double-tapped to get into WiFi config.
-gave it my wifi ssid and pw
-checked for new f/w, it gave me a button to update to 1.1 so I pressed it.
-let it update and restart
-double-tapped to WiFi config.
-enabled PP and auto-key update
-save and reboot
-hoped it would get it's keys and I'd be off to the races, but not this time.

Details and serial logs

Ok time to get serious. This isn't a one-button setup and go....
Connected usb cable and fired up teraterm.
Key stroke will not enter config menus.

On the serial port it is seemingly endlessly emitting the following messages. It will do this for at least half an hour.
I've x'd-out my device id out of an abundance of caution.

This device is not whitelisted. Please contact support@sparkfun.com or goto https://www.sparkfun.com/pointperfect to get your subscription activated. Please reference device ID: 64B7xxxxxxx <is this a secret?  being cautious...)
Connecting to: https://api.thingstream.io/ztp/pointperfect/credentials
This device is not whitelisted. Please contact support@sparkfun.com or goto https://www.sparkfun.com/pointperfect to get your subscription activated. Please reference device ID:  64B7xxxxxxx
Connecting to: https://api.thingstream.io/ztp/pointperfect/credentials
This device is not whitelisted. Please contact support@sparkfun.com or goto https://www.sparkfun.com/pointperfect to get your subscription activated. Please reference device ID:  64B7xxxxxxx
Connecting to: https://api.thingstream.io/ztp/pointperfect/credentials

Here's what the serial emits when I power cycle:

E (845) esp_core_dump_flÁæøBé No core dump partition found!
E (845) esp_core_dump_flash: No core dump partition found!

LittleFS Started
PSRAM Size (bytes): 2095087
I2C Devices:
  0x08 - HUSB238 Power Delivery Sink Controller
  0x0B - BQ40Z50 Battery Pack Manager / Fuel gauge
  0x5C - MP27692A Power Management / Charger
  0x60 - ATECC608A Cryptographic Coprocessor
SparkFun RTK Torch v1.1
GNSS UM980 online
UM980 firmware: 11833
Profile 'Profile1' loaded
Fuel gauge configuration complete
Batt (39%): Voltage: 7.32V Discharging: 9.36%/hr
Charger configuration complete
UM980 configuration updated
No GNSS date/time available for system RTC.
STATE_KEYS_STARTED --> STATE_KEYS_PROVISION_WIFI_STARTED
Batt (39%): Voltage: 7.32V Charging: 8.97%/hr
Connecting WiFi... E (22806) wifi:Association refused temporarily, comeback time 200 mSec
E (23011) wifi:Association refused temporarily, comeback time 200 mSec
E (23216) wifi:Association refused temporarily, comeback time 200 mSec
E (23421) wifi:Association refused temporarily, comeback time 200 mSec
E (23628) wifi:Association refused temporarily, comeback time 200 mSec
E (23833) wifi:Association refused temporarily, comeback time 200 mSec
E (24040) wifi:Association refused temporarily, comeback time 200 mSec
E (24245) wifi:Association refused temporarily, comeback time 200 mSec
E (24449) wifi:Association refused temporarily, comeback time 200 mSec
E (24654) wifi:Association refused temporarily, comeback time 200 mSec
E (24859) wifi:Association refused temporarily, comeback time 200 mSec
E (25064) wifi:Association refused temporarily, comeback time 200 mSec
E (25269) wifi:Association refused temporarily, comeback time 200 mSec
E (25474) wifi:Association refused temporarily, comeback time 200 mSec
E (25679) wifi:Association refused temporarily, comeback time 200 mSec
E (25883) wifi:Association refused temporarily, comeback time 200 mSec
E (26088) wifi:Association refused temporarily, comeback time 200 mSec
E (26293) wifi:Association refused temporarily, comeback time 200 mSec
E (26498) wifi:Association refused temporarily, comeback time 200 mSec
E (26703) wifi:Association refused temporarily, comeback time 200 mSec
E (26908) wifi:Association refused temporarily, comeback time 200 mSec
E (27113) wifi:Association refused temporarily, comeback time 200 mSec
E (27317) wifi:Association refused temporarily, comeback time 200 mSec
E (27522) wifi:Association refused temporarily, comeback time 200 mSec
E (27727) wifi:Association refused temporarily, comeback time 200 mSec
E (27932) wifi:Association refused temporarily, comeback time 200 mSec

STATE_KEYS_PROVISION_WIFI_STARTED --> STATE_KEYS_PROVISION_WIFI_CONNECTED
Batt (39%): Voltage: 7.32V Charging: 8.07%/hr
No GNSS date/time available for system RTC.
Tilt sensor configuration complete
Connecting to: https://api.thingstream.io/ztp/pointperfect/credentials
This device is not whitelisted. Please contact support@sparkfun.com or goto https://www.sparkfun.com/pointperfect to get your subscription activated. Please reference device ID:  64B7xxxxxxx
Connecting to: https://api.thingstream.io/ztp/pointperfect/credentials
This device is not whitelisted. Please contact support@sparkfun.com or goto https://www.sparkfun.com/pointperfect to get your subscription activated. Please reference device ID:  64B7xxxxxxx
Connecting to: https://api.thingstream.io/ztp/pointperfect/credentials
This device is not whitelisted. Please contact support@sparkfun.com or goto https://www.sparkfun.com/pointperfect to get your subscription activated. Please reference device ID:  64B7xxxxxxx
Connecting to: https://api.thingstream.io/ztp/pointperfect/credentials

If I power cycle and hit a key at just the right time (apparently just before it tries to get PP keys), I can get into the serial config menus to turn off PP corrections. Back to normal...except no PP keys nor corrections.

Reproducible!

If I use the serial menu to turn PP back on, I get stuck in that loop again.

SparkFun RTK Torch v1.1
** Bluetooth SPP and BLE broadcasting as: Torch Rover-0026 **
Menu: Main
1) Configure GNSS Receiver
2) Configure GNSS Messages
3) Configure Base
4) Configure Ports
6) Configure WiFi
7) Configure TCP/UDP
f) Firmware Update
i) Configure Corrections Priorities
p) Configure PointPerfect
r) Configure Radios
s) Configure System
t) Configure Tilt Compensation
u) Configure User Profiles
+) Enter Command line mode
x) Exit
p

Menu: PointPerfect Corrections
Days until keys expire: No keys
1) PointPerfect Corrections: Disabled
g) Geographic Region: US
x) Exit
1

Menu: PointPerfect Corrections
Days until keys expire: No keys
1) PointPerfect Corrections: Enabled
2) Toggle Auto Key Renewal: Disabled
3) Provision Device
4) Show device ID
c) Clear the Keys
k) Manual Key Entry
g) Geographic Region: US
x) Exit
3
Connecting WiFi...
Connecting to: https://api.thingstream.io/ztp/pointperfect/credentials
This device is not whitelisted. Please contact support@sparkfun.com or goto https://www.sparkfun.com/pointperfect to get your subscription activated. Please reference device ID:  64B7xxxxxxx
Connecting to: https://api.thingstream.io/ztp/pointperfect/credentials
This device is not whitelisted. Please contact support@sparkfun.com or goto https://www.sparkfun.com/pointperfect to get your subscription activated. Please reference device ID:  64B7xxxxxxx
Connecting to: https://api.thingstream.io/ztp/pointperfect/credentials
This device is not whitelisted. Please contact support@sparkfun.com or goto https://www.sparkfun.com/pointperfect to get your subscription activated. Please reference device ID:  64B7xxxxxxx
Connecting to: https://api.thingstream.io/ztp/pointperfect/credentials
This device is not whitelisted. Please contact support@sparkfun.com or goto https://www.sparkfun.com/pointperfect to get your subscription activated. Please reference device ID:  64B7xxxxxxx
Connecting to: https://api.thingstream.io/ztp/pointperfect/credentials
This device is not whitelisted.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions