ntn Requests
Use a compatible Notecard to interface with a paired Starnote device for NTN (satellite) communications.
ntn.gps CellCell+WiFiWiFi
Determines whether a Notecard should override a paired Starnote's GPS/GNSS location with its own GPS/GNSS location. The paired Starnote uses its own GPS/GNSS location by default.
off
boolean (optional)
When true
, a paired Starnote will use its own GPS/GNSS location. This is the default configuration.
on
boolean (optional)
When true
, a Starnote will use the GPS/GNSS location from its paired Notecard, instead of its own GPS/GNSS location.
{
"req": "ntn.gps",
"on": true
}
J *req = NoteNewRequest("ntn.gps");
JAddBoolToObject(req, "on", true);
NoteRequest(req);
req = {"req": "ntn.gps"}
req["on"] = True
rsp = card.Transaction(req)
Configure Starnote to use the paired Notecard's GPS/GNSS location.
{
"req": "ntn.gps",
"off": true
}
J *req = NoteNewRequest("ntn.gps");
JAddBoolToObject(req, "off", true);
NoteRequest(req);
req = {"req": "ntn.gps"}
req["off"] = True
rsp = card.Transaction(req)
Configure Starnote to use its own GPS/GNSS location (default).
{
"req": "ntn.gps"
}
J *req = NoteNewRequest("ntn.gps");
NoteRequest(req);
req = {"req": "ntn.gps"}
rsp = card.Transaction(req)
Request current GPS/GNSS location configuration.
Response Members
off
boolean
Returned and true
if a paired Starnote will use its own GPS/GNSS location.
on
boolean
Returned and true
if a Starnote will use the GPS/GNSS location from its paired Notecard.
{
"off": true
}
Response indicating Starnote is using its own GPS/GNSS location (default).
{
"on": true
}
Response indicating Starnote is using paired Notecard's GPS/GNSS location.
ntn.reset CellCell+WiFiWiFi
Once a Notecard is connected to a Starnote device, the presence of a physical Starnote is stored in a permanent configuration that is not affected by a card.restore
request. This request clears this configuration and allows you to return to testing NTN mode over cellular or Wi-Fi.
{
"req": "ntn.reset"
}
J *req = NoteNewRequest("ntn.reset");
NoteRequest(req);
req = {"req": "ntn.reset"}
rsp = card.Transaction(req)
Clear Starnote configuration to return to testing NTN mode over cellular or Wi-Fi.
Response Members
{}
means success.ntn.status CellCell+WiFiWiFi
Displays the current status of a Notecard's connection to a paired Starnote.
{
"req": "ntn.status"
}
J *req = NoteNewRequest("ntn.status");
NoteRequest(req);
req = {"req": "ntn.status"}
rsp = card.Transaction(req)
Request current status of Notecard's connection to paired Starnote.
Response Members
err
string
This member is present if any errors have occurred while connecting to a paired Starnote, for example: {"err":"no NTN module is connected {no-ntn-module}"}
status
string
Details about a Notecard's connection to a paired Starnote, for example: {"status":"{ntn-idle}{ntn-unknown-location}"}
{
"status": "{ntn-idle}"
}
Response showing Starnote connection in idle state.
{
"err": "no NTN module is connected {no-ntn-module}"
}
Response showing error when no NTN module is connected.
{
"status": "{ntn-idle}{ntn-unknown-location}"
}
Response showing detailed status including location information.