request userinfo burst

This commit is contained in:
DJ2LS 2023-02-26 14:08:26 +01:00
parent 9507e18294
commit 2603769ab8
4 changed files with 15 additions and 2 deletions

View file

@ -272,6 +272,13 @@ window.addEventListener("DOMContentLoaded", () => {
});
});
document.getElementById("requestUserInfo").addEventListener("click", () => {
ipcRenderer.send("run-tnc-command", {
command: "requestUserInfo",
dxcallsign: selected_callsign,
});
});
document.getElementById("ping").addEventListener("click", () => {
ipcRenderer.send("run-tnc-command", {
command: "ping",

View file

@ -2576,6 +2576,11 @@ ipcRenderer.on("run-tnc-command", (event, arg) => {
if (arg.command == "mode") {
sock.set_mode(arg.mode);
}
if (arg.command == "requestUserInfo") {
sock.sendRequestInfo(arg.dxcallsign);
}
});
// IPC ACTION FOR AUTO UPDATER

View file

@ -686,9 +686,9 @@ function sendRequest(dxcallsign, mode, frames, data, command) {
}
//Send station info request
exports.sendRequestInfo = function (dxcallsign, mode, frames) {
exports.sendRequestInfo = function (dxcallsign) {
//Command 0 = user/station information
sendRequest(dxcallsign, mode, frames, "0", "req");
sendRequest(dxcallsign, 255, 1, "0", "req");
};
//STOP TRANSMISSION

View file

@ -529,6 +529,7 @@
type="button"
class="btn btn-warning w-75"
aria-label="Request"
id="requestUserInfo"
>
Request user data
</button>