Hi, I’m using a GPS simulator to drive our ‘vehicle’ – with it, I can set the initial position (as Lat/Lon), speed & direction. The simulator is treated as an “external GPS”. Our goal is to set the collection ‘rate’ based on our speed. Could the notecard use the NMEA “GPVTG” field to determine speed (possibly determining the “Seconds” field?
J *req = NoteNewRequest(“card.location.mode”);
if (req != NULL)
{
//
// how often tracks (_track.qo) are created – update with time
JAddStringToObject(req, "mode", "periodic");
JAddIntToObject(req, "seconds", 60); // change this value based on speed.
success = NoteRequest(req);
}
Here are the track mode settings/command … the heartbeat is currently set at 5 minutes.
J *req = NoteNewRequest("card.location.track");
if (req != NULL)
{
JAddBoolToObject(req, "start", true);
JAddBoolToObject(req, "heartbeat", true);
JAddBoolToObject(req, "sync", true);
JAddIntToObject(req, "minutes", 5); // alway update at this rate (minus for seconds)
JAddStringToObject(req, "file", "_track.qo" );
J *rsp = NoteRequestResponse(req);
}
At powerup, with the GPS simulating “moving”, in Notehub, I get one ‘body’ showing .. movement.
“body”: {
“distance”: 56.366486,
“dop”: 1.0996094,
“jcount”: 3,
“journey”: 1752511756,
“seconds”: 7,
“temperature”: 25.625,
“time”: 1752511779,
“velocity”: 8.052356,
“voltage”: 5.1328125
},
From then on, I just get ‘heartbeat’ feedback .. without any change in speed
“body”: {
“status”: “heartbeat”,
“temperature”: 25.4375,
“time”: 1752511779,
“voltage”: 5.2070312
},
So, my questions ..
- How does the Notecard determine “movement” – that would trigger a collection vs heartbeat event?
- Could the Notecard accept & use the “GPVTG” NMEA sentence for speed?
- What “card.location.mode” timing values would you suggest for the ‘fastest’ and ‘slowest’ vehicle settings?
- Our ‘actual’ GPS feed may have an update rate slower that 1Hz – is that OK?
- Can I assume that the “accelerometer” is not relevant for external GPS?
- Our external GPS is run at 38,400 baud? That appears to be working OK - if not, we could slow it down.
As always, thanks for the help
regards, Rich ..