I can successfully push notes to the Notehub while in ‘satellite’ mode. After around 15 minutes, I lose satellite connection .. I then wait for a 'reconnection’ but (after 15 minutes) it never happens. A power cycle reconnects .. typically within a minute two.
Instead of cycling power, is there a “programic” way of achieving the satellite reconnection?
Hi Rob,
The mode I’m using for hub.set is periodic. I initially used “continuous” but I observed an un-intended (somewhat random) Notecard ‘re-boot’ ..thus I went to “periodic” with outbound sync set to 5 minutes.
We use a “push button” (on ‘separate’ development board) to trigger a note to be sent to Notehub.
[For external GPS] card.aux_serial mode set to GPS
set transport mode set to “cell”
wait for note connection validity
[Enter ‘ntn’ mode]
set “ntn.gps” to “on”:“true”
set transport method to “ntn”
[enter ‘infinite’ loop]
if ‘satellite’ connection is NOT valid
wait for connection
if we have a GPS fix
if first pass
set ‘initial’ location to current lat/lon
get current card ‘temperature’
if ‘button’ pushed
add note containing lat/lon & current temperature
set hub.sync to “out”:“true” and “allow”:“true”
for diagnostic feedback, use HubSyncStatus() to observe hub status
I’ve feathered diagnostics (i.e. 'isNoteConnected(), ntn.status) in the loop
Note that the above loop works great for around 15 minutes .. before ‘losing’ connection - pushing the ‘button’ results in a note being sent to Notehub.
If you haven’t already, please update your Notecard and Starnote firmware to the latest versions. We recently released some major improvements to NTN connectivity that may somewhat magically solve these issues .
You just mentioned a “somewhat random reboot”. I would triple check that you don’t have any power issues with your setup and everything has ample current to perform correctly.
If/when you hit this state again, can you please try to capture card.wireless, ntn.status, and a trace log before power-cycling? That would be immensely helpful for debugging.