modem state

Description get modem state

http://localhost:5000/modem/state

Response

Example

curl http://localhost:5000/modem/state

{
  "activities": {
    "059cc1579c192f2b": {
      "activity_type": "BEACON",
      "direction": "received",
      "frequency": null,
      "frequency_offset": 0,
      "gridsquare": "JP20QL",
      "origin": "N0CALL-6",
      "snr": -2,
      "timestamp": 1704430853
    },
    "1a159927af924985": {
      "activity_type": "PING",
      "direction": "received",
      "frequency": null,
      "frequency_offset": 0,
      "origin": "N0CALL-6",
      "snr": -1,
      "timestamp": 1704358217
    },
    "0033b998d44d2e0e": {
      "activity_type": "QRV",
      "direction": "received",
      "frequency": "---",
      "frequency_offset": 0,
      "gridsquare": "JP20QL",
      "origin": "N0CALL-3",
      "snr": -4,
      "timestamp": 1706791842
        },
        "007498c8e4a94447": {
            "activity_type": "ARQ_BURST_FRAME",
            "direction": "received",
            "frequency": "---",
            "frequency_offset": 0,
            "session_id": 63,
            "snr": -3,
            "timestamp": 1706777001
        },
        "01508a8bad3e9b76": {
            "activity_type": "ARQ_SESSION_OPEN",
            "direction": "received",
            "frequency": "---",
            "frequency_offset": 0,
            "origin": "XX1XXX-6",
            "session_id": 60,
            "snr": -6,
            "timestamp": 1706777095
        },
  "audio_dbfs": -20.83925929790299,
  "channel_busy_slot": [
    true,
    false,
    false,
    false,
    false
  ],
  "freedata-message": "state",
  "is_beacon_running": true,
  "is_modem_running": true,
  "radio_frequency": "---",
  "radio_mode": "---",
  "radio_status": true,
   "s_meter_strength": "---",
   "type": "state"
}

Errors

This API uses the following error codes:

  • 400 Bad Request: The request was malformed or missing required parameters.
  • 404 Not Found: The requested resource was not found.
  • 500 Internal Server Error: An unexpected error occurred on the server.