Connecting LoPy4 node to Nano-Gateway LoPy4

  • Disclaimer: New to the whole LoRa (2 weeks only)…

    I setup the above gateway and as far as I understand it is waiting for a LoRa node to connect:

    Gateway ID: b’807D3AFFFE935E98’
    [ 909.443] Starting LoRaWAN nano gateway with id: b’807D3AFFFE935E98’
    [ 913.766] WiFi connected to: SoftDev
    [ 913.770] Syncing time with
    [ 913.926] RTC NTP sync complete
    [ 913.939] Opening UDP socket to ( port 1700…
    [ 913.951] Setting up the LoRa radio at 903.9001 Mhz using SF10BW125
    [ 913.960] LoRaWAN nano gateway online
    [ 913.965] You may now press ENTER to enter the REPL
    [ 914.111] Push ack
    [ 939.122] Pull ack
    [ 964.113] Pull ack
    [ 974.120] Push ack
    [ 989.145] Pull ack

    I also have a client that I ran after I ran my Nano-Gateway, and it says that it is not connected to the LoRaWAN network yet…and I have no idea why…

    Uploading project (main folder)…
    Not safe booting, disabled in settings
    Uploading to /flash…
    Reading file status
    [1/1] Writing file (5kb)
    Upload done, resetting board…
    OKets Jun 8 2016 00:22:57

    rst:0x7 (TG0WDT_SYS_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
    configsip: 0, SPIWP:0xee
    mode:DIO, clock div:1
    entry 0x400a059c
    Connected to Wifi

    sub_cb callback is set

    settimeout is set

    Connected to MQTT Broker

    Subscribing to messages from MQTT Broker
    Subscription to dwm/position is done

    Issuing Join request to LoRaWAN…

    Client Node: Not joined LoRaWAN yet…
    Client Node: Not joined LoRaWAN yet…
    Client Node: Not joined LoRaWAN yet…
    Client Node: Not joined LoRaWAN yet…

    The node is based partially on mqtt example (which works fine) and then LoRa connection code from OTAA example and gateway from lorawan-nano-gateway code.

    How can I find out what am I doing wrong?

    Just to mention: the nearest gateway from me that shows on TTN map is 5+ miles away and the area is suburb and hilly…so I do not expect my nano-gateway will connect to it…(waiting for real gateway to arrive soon).

  • @securigy The gateway connects to the TTN router via internet. It will not connect to another gateway. It will accept messages from any node, not only yours. Accordingly, nodes can connect to any gateway.
    The pycom modules do not work well as gateway, even single-channel gateway. One you have a full service gateway set up, getting the node to work should be easy.

Log in to reply

Pycom on Twitter