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 pool.ntp.org
    [ 913.926] RTC NTP sync complete
    [ 913.939] Opening UDP socket to router.eu.thethings.network (52.169.76.203) 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 main.py (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
    clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
    mode:DIO, clock div:1
    load:0x3fff8028,len:8
    load:0x3fff8030,len:1728
    load:0x4009fa00,len:0
    load:0x4009fa00,len:14612
    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