I am using a Notecard NOTE-MBGLN on a NOTECARRIER-A, powered by a SCOOP board as an add-on to one of our devices. The SCOOP is powered by the device batteries, at 6V.
The device has 2 modes: Active and Inactive.
In Active mode, it configures the Notecard to get GPS location every 5 min and sync data to Notehub every 10 min. It also send data packets to the Notecard every 5 min.
In Inactive mode, it configures the Notecard to get GPS location every 1h and sync data to Notehub every 24h. No data packets are sent.
I understand that the location mode is “periodic” and if there is no movement detected, the location will not be updated.
Here it is the source code:
J *req = NoteNewRequest("hub.set");
JAddStringToObject(req, "product", productUid);
JAddStringToObject(req, "mode", "periodic");
JAddStringToObject(req, "sn", serialNumber);
JAddNumberToObject(req, "outbound", (state == NotecardState::Active) ? 10 : 1440);
JAddNumberToObject(req, "inbound", 1440);
if (!NoteRequestWithRetry(req, 5))
{
ESP_LOGE(TAG, "Failed to configure Notecard");
return ESP_FAIL;
}
J *locReq = NoteNewRequest("card.location.mode");
JAddStringToObject(locReq, "mode", "periodic");
JAddNumberToObject(locReq, "seconds", (state == NotecardState::Active) ? 300 : 3600);
if (!NoteRequestWithRetry(locReq, 5))
{
ESP_LOGE(TAG, "Failed to configure Notecard location mode");
return ESP_FAIL;
}
J *trackReq = NoteNewRequest("card.location.track");
JAddBoolToObject(trackReq, "start", true);
if (!NoteRequestWithRetry(trackReq, 5))
{
ESP_LOGE(TAG, "Failed to configure Notecard location tracking");
return ESP_FAIL;
}
The device entered Active mode on Friday 5pm until 7.06pm. It then entered Inactive mode until Tuesday at 7.41am, until 9am.
The location packets were not generated every 5 min, sometimes more, sometimes less. Also in Inactive mode, which happened during Saturday, Sunday and Monday, also I cannot understand why there was 2 location packets (_track.qo) on Saturday and on Monday, but not on Sunday.
Here it is the location packets:
I would like to know the reason why this is happening like that and if it is a configuration issue.
Thanks!




