Hi. Making solid progress in getting stable data collection and transmission from Notecard (NOTE-NBNA-500) via NoteCarrier-B. But I am now seeing gaps in the data transmitted that occur every 30 minutes or so. The gaps seem to be about 5 minutes. The application code running on an ESP32 Feather is standard code taken from one of your examples, and sends the JSON-encoded payload to NoteHub about every 60 seconds. Similar code that uses WiFi works well, so not thinking it’s the logic but could be…
Not sure what documentation to share that might help diagnose, but here are some bits that might be helpful:
Here is the Event log from a recent test:
Here is the Route Log that shows data moving to a Thingspeak database:
And here is an example of the application data pulled from Thingspeak:
Finally, here’s the main code sequence that sets up the Notecard request:
void setup() {
delay(2500);
serialDebug.begin(115200);
notecard.begin();
notecard.setDebugOutputStream(serialDebug);
J *req = notecard.newRequest(“hub.set”);
JAddStringToObject(req, “product”, productUID);
// JAddStringToObject(req, “sn”, “BackpAQ Proto”);
JAddStringToObject(req, “mode”, “periodic”);
JAddStringToObject(req, “card.voltage.mode”, “lipo” ); // tell 'em we’re using a LiPO
notecard.sendRequest(req);
req = notecard.newRequest(“card.location.mode”);
JAddStringToObject(req, “mode”, “continuous”); // continuous tracking
JAddNumberToObject(req, “seconds”, 60);
notecard.sendRequest(req);
req = notecard.newRequest(“card.location.track”);
JAddBoolToObject(req, “start”, true);
JAddBoolToObject(req, “heartbeat”, true);
JAddBoolToObject(req, “sync”, true);
JAddNumberToObject(req, “hours”, 4);
notecard.sendRequest(req);
delay(1000);
Side question is why so many events at 12:25:01? I see this a lot at times…in the code there is only one time that this data is encoded and sent, yet this data transfer to file env.qo seems to happen redundantly, often. Maybe another symptom?
Thanks in advance for your help!