Download / Install

Download the CLI tool (pre-compiled binary) from here.

If you need more info: Installation instructions.

Configure

ttn-lw-cli use eu1.cloud.thethings.network --fetch-ca --user --overwrite
ttn-lw-cli login

(a browser will open)

Cheat sheet

Applications list

ttn-lw-cli a list

Add channels

Untested after the activation of ABP device. Maybe ignored AFTER the activation!

ttn-lw-cli end-devices update <app> <dev> --mac-settings.factory-preset-frequencies 867100000,867300000,867500000,867700000,867900000,868100000,868300000,868500000

Device info

ttn-lw-cli dev get <app> <dev> --lorawan-version --lorawan-phy-version --supports-join --mac-settings.resets-f-cnt --frequency-plan-id --mac-settings.rx1-delay --join-server-address

Class A MAC settings

Ignored AFTER the activation!

mac-settings.desired-rx1-delay
mac-settings.desired-rx1-data-rate-offset
mac-settings.desired-rx2-data-rate-index
mac-settings.desired-rx2-frequency
mac-settings.supports-32-bit-f-cnt
mac-settings.use-adr

Create Device

ttn-lw-cli dev create <app> <dev> \
  --dev-eui XXXXXXXX \
  --frequency-plan-id EU_863_870_TTN \
  --lorawan-version 1.0.2 \
  --lorawan-phy-version 1.0.2-b \
  --abp \
  --session.dev-addr XXXXXXXX \
  --session.keys.app-s-key.key XXXXXXXX \
  --session.keys.f_nwk_s_int_key.key XXXXXXXX \
  --mac-settings.factory-preset-frequencies 867100000,867300000,867500000,867700000,867900000,868100000,868300000,868500000

Update device

ttn-lw-cli dev get <app> <dev> --unset mac-settings.use-adr

Downlinks

ttn-lw-cli end-devices downlink push <app> <dev> \
  --frm-payload  \
  --priority NORMAL \
  --f-port 42

Abort downlinks.

ttn-lw-cli end-devices downlink clear app1 dev1

Reset MAC state

ttn-lw-cli d reset zane-clv ztube-pcba-a

Template json

{
  "end_device": {
    "ids": {
      "application_ids": {

      }
    },
    "created_at": "0001-01-01T00:00:00Z",
    "updated_at": "0001-01-01T00:00:00Z",
    "lorawan_version": "1.0.2",
    "lorawan_phy_version": "1.0.2-b",
    "frequency_plan_id": "EU_863_870_TTN",
    "mac_settings": {
      "rx1_delay": {
        "value": 1
      },
      "factory_preset_frequencies": [
        "867100000",
        "867300000",
        "867500000",
        "867700000",
        "867900000",
        "868100000",
        "868300000",
        "868500000"
      ],
      "supports_32_bit_f_cnt": true,
      "resets_f_cnt": false
    },
    "skip_payload_crypto_override": false
  }
}

Τυχαία εικόνα

pantzoyri_koyrtina_mprosta.jpg

You are here with: CCBot/2.0 (https://commoncrawl.org/faq/)
Your IP: 3.80.3.192

Made in Linux :)

Hits: 568