SenseCAP M1 Gateway to TTN

zfed
Fri, 16 Feb 2024 17:02:30 +0000

Hello!
thanks for replay.

a) No node, idea was to start gateway and then make node. But seem I can switch my learning path to node now and utilize gateways thata re nearby (I saw on map, that there are few);

b)
config file, standard this one →

github.com

Lora-net/sx1302_hal/blob/master/packet_forwarder/global_conf.json.sx1250.EU868

{
    "SX130x_conf": {
        "com_type": "SPI",
        "com_path": "/dev/spidev0.0",
        "lorawan_public": true,
        "clksrc": 0,
        "antenna_gain": 0, /* antenna gain, in dBi */
        "full_duplex": false,
        "fine_timestamp": {
            "enable": false,
            "mode": "all_sf" /* high_capacity or all_sf */
        },
        "sx1261_conf": {
            "spi_path": "/dev/spidev0.1",
            "rssi_offset": 0, /* dB */
            "spectral_scan": {
                "enable": false,
                "freq_start": 867100000,
                "nb_chan": 8,
                "nb_scan": 2000,

This file has been truncated. show original

with edited server part →

"gateway_conf": {
        "gateway_ID": "gaa-m1-868",
        /* change with default server address/ports */
        "server_address": "eu1.cloud.thethings.network",
        "serv_port_up": 1700,
        "serv_port_down": 1700,
        /* adjust the following parameters for your network */
        "keepalive_interval": 10,
        "stat_interval": 30,
        "push_timeout_ms": 100,
        /* forward only valid packets */
        "forward_crc_valid": true,
        "forward_crc_error": false,
        "forward_crc_disabled": false,
        /* GPS configuration */
        "gps_tty_path": "/dev/ttyS0",
        /* GPS reference coordinates */
        "ref_latitude": 56.946682874635975,
        "ref_longitude": 24.247206786396664,
        "ref_altitude": 6,
        /* Beaconing parameters */
        "beacon_period": 0,
        "beacon_freq_hz": 869525000,
        "beacon_datarate": 9,
        "beacon_bw_hz": 125000,
       "beacon_power": 14,
        "beacon_infodesc": 0
    },

    "debug_conf": {
        "ref_payload":[
            {"id": "0xCAFE1234"},
            {"id": "0xCAFE2345"}

I also tried jsut these lines as in one of examples, same, but currently those are commented out

//    "gateway_conf": {
//     "server_address": "eu1.cloud.thethings.network",
//     "serv_port_up": 1700,
//     "serv_port_down": 1700,
//     "servers": [
//      {
//       "server_address": "eu1.cloud.thethings.network",
//       "serv_port_up": 1700,
//       "serv_port_down": 1700,
//       "serv_enabled": true
//      }
//     ]
//#    }

c)
GPIO pins:

SX1302_RESET_PIN=17 # SX1302 reset
SX1302_POWER_EN_PIN=18 # SX1302 power enable
SX1261_RESET_PIN=5 # SX1261 reset (LBT / Spectral Scan)
AD5338R_RESET_PIN=13 # AD5338R reset (full-duplex CN490 reference design)

d) Global configuration
global_conf.json
global_conf.json (3.5 KB)

would be good for noobs to have Docker for gateway setup, like zigbee2mqtt, just point " antenna" and it work