Unable to receive downlink data, what am I doing wrong?

Hi,
I believed I had everything up and working but trying to send downlink data and nothing is received by the device. Can someone look over my configuration and tell my what I’am doing wrong as I’m lost to what to try next.

ChripStack is run with docker and the device connects with OTAA and sends data, below is my testing config let me know if you want other logs or config or what test I can do to figure out whats going on.

network-server toml:

# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full
# configuration example and documentation.

[integration.mqtt.auth.generic]
server="tcp://mosquitto:1883"
username=""
password=""
gateway@gw01-sprat-road:/opt/rakwireless/packet_forwarder/lora_pkt_fwd$ sudo cat /var/lib/docker/volumes/docker_NetworkServerData/_data/chirpstack-network-server.toml
# See https://www.chirpstack.io/network-server/install/config/ for a full
# configuration example and documentation.

[postgresql]
dsn="postgres://chirpstack_ns:chirpstack_ns@postgresql/chirpstack_ns?sslmode=disable"

[redis]
url="redis://redis:6379"

[network_server]
net_id="000000"

[network_server.band]
name="AU_915_928"

  [network_server.network_settings]
  enabled_uplink_channels=[0, 1, 2, 3, 4, 5, 6, 7]

[network_server.gateway.backend.mqtt]
server="tcp://mosquitto:1883"

[join_server.default]
server="http://chirpstack-application-server:8003"

Network Server log (while trying to send a downlink message)

time="2019-12-01T21:34:03Z" level=info msg="backend/gateway: downlink tx acknowledgement received" downlink_id=395c8e73-028d-43a0-b7a7-43ecd8ff3db4 gateway_id=0001c0fffe25d014
time="2019-12-01T21:34:03Z" level=info msg="sent downlink meta-data to network-controller" ctx_id=395c8e73-028d-43a0-b7a7-43ecd8ff3db4
time="2019-12-01T21:34:19Z" level=info msg="gateway/mqtt: gateway stats packet received" gateway_id=0001c0fffe25d014 stats_id=a3851a5e-1cc1-44a4-9962-bab0e742951a
time="2019-12-01T21:34:19Z" level=info msg="gateway updated" ctx_id=a3851a5e-1cc1-44a4-9962-bab0e742951a gateway_id=0001c0fffe25d014
time="2019-12-01T21:34:19Z" level=info msg="gateway/mqtt: publishing gateway command" command=config gateway_id=0001c0fffe25d014 qos=0 topic=gateway/0001c0fffe25d014/command/config
time="2019-12-01T21:34:19Z" level=info msg="finished client unary call" ctx_id=a3851a5e-1cc1-44a4-9962-bab0e742951a grpc.code=OK grpc.ctx_id=a93a73c4-7430-4c27-82a7-33acebf3cae7 grpc.duration=6.157751ms grpc.method=HandleGatewayStats grpc.service=as.ApplicationServerService span.kind=client system=grpc
time="2019-12-01T21:34:49Z" level=info msg="gateway/mqtt: gateway stats packet received" gateway_id=0001c0fffe25d014 stats_id=b5d478b8-4845-46d8-afb5-aee05691bac4
time="2019-12-01T21:34:49Z" level=info msg="gateway updated" ctx_id=b5d478b8-4845-46d8-afb5-aee05691bac4 gateway_id=0001c0fffe25d014
time="2019-12-01T21:34:49Z" level=info msg="gateway/mqtt: publishing gateway command" command=config gateway_id=0001c0fffe25d014 qos=0 topic=gateway/0001c0fffe25d014/command/config
time="2019-12-01T21:34:49Z" level=info msg="finished client unary call" ctx_id=b5d478b8-4845-46d8-afb5-aee05691bac4 grpc.code=OK grpc.ctx_id=a5535752-b7c8-4dda-942e-013b7a43378c grpc.duration=7.311205ms grpc.method=HandleGatewayStats grpc.service=as.ApplicationServerService span.kind=client system=grpc
time="2019-12-01T21:35:00Z" level=info msg="gateway/mqtt: uplink frame received" gateway_id=0001c0fffe25d014 uplink_id=b34256f5-e1cd-40dd-b4bc-a3ceefe55589
time="2019-12-01T21:35:01Z" level=info msg="uplink: frame(s) collected" ctx_id=8a9b7589-c071-49b9-a1dc-444567e413d7 mtype=UnconfirmedDataUp uplink_ids="[b34256f5-e1cd-40dd-b4bc-a3ceefe55589]"
time="2019-12-01T21:35:01Z" level=info msg="sent uplink meta-data to network-controller" ctx_id=8a9b7589-c071-49b9-a1dc-444567e413d7 dev_eui=70b3d5499d621a80
time="2019-12-01T21:35:01Z" level=info msg="device gateway rx-info meta-data saved" ctx_id=8a9b7589-c071-49b9-a1dc-444567e413d7 dev_eui=70b3d5499d621a80
time="2019-12-01T21:35:01Z" level=info msg="device-session saved" ctx_id=8a9b7589-c071-49b9-a1dc-444567e413d7 dev_addr=01fdca79 dev_eui=70b3d5499d621a80

gateway log

time="2019-12-01T21:33:19Z" level=info msg="integration/mqtt: publishing event" event=stats qos=0 stats_id=40e2b703-5f3c-469f-87a0-0f0302c97c25 topic=gateway/0001c0fffe25d014/event/stats,
time="2019-12-01T21:33:19Z" level=info msg="integration/mqtt: gateway configuration received" topic=gateway/0001c0fffe25d014/command/config,
time="2019-12-01T21:33:49Z" level=info msg="integration/mqtt: publishing event" event=stats qos=0 stats_id=2b2d8b86-e6cd-4f71-8553-4be69ca70c5b topic=gateway/0001c0fffe25d014/event/stats,
time="2019-12-01T21:33:49Z" level=info msg="integration/mqtt: gateway configuration received" topic=gateway/0001c0fffe25d014/command/config,
time="2019-12-01T21:33:57Z" level=info msg="integration/mqtt: publishing event" event=up qos=0 topic=gateway/0001c0fffe25d014/event/up uplink_id=4cff8b12-3ad3-4d06-9bb8-55a7754a4442,
time="2019-12-01T21:34:03Z" level=info msg="integration/mqtt: publishing event" event=up qos=0 topic=gateway/0001c0fffe25d014/event/up uplink_id=26658714-0a9a-4a50-b74e-3ad4e6d1157f,
time="2019-12-01T21:34:03Z" level=info msg="integration/mqtt: downlink frame received" downlink_id=395c8e73-028d-43a0-b7a7-43ecd8ff3db4 gateway_id=0001c0fffe25d014,
time="2019-12-01T21:34:03Z" level=info msg="integration/mqtt: publishing event" downlink_id=395c8e73-028d-43a0-b7a7-43ecd8ff3db4 event=ack qos=0 topic=gateway/0001c0fffe25d014/event/ack,
time="2019-12-01T21:34:19Z" level=info msg="integration/mqtt: publishing event" event=stats qos=0 stats_id=a3851a5e-1cc1-44a4-9962-bab0e742951a topic=gateway/0001c0fffe25d014/event/stats,
time="2019-12-01T21:34:19Z" level=info msg="integration/mqtt: gateway configuration received" topic=gateway/0001c0fffe25d014/command/config,
time="2019-12-01T21:34:49Z" level=info msg="integration/mqtt: publishing event" event=stats qos=0 stats_id=b5d478b8-4845-46d8-afb5-aee05691bac4 topic=gateway/0001c0fffe25d014/event/stats,
time="2019-12-01T21:34:49Z" level=info msg="integration/mqtt: gateway configuration received" topic=gateway/0001c0fffe25d014/command/config,
time="2019-12-01T21:35:00Z" level=info msg="integration/mqtt: publishing event" event=up qos=0 topic=gateway/0001c0fffe25d014/event/up uplink_id=b34256f5-e1cd-40dd-b4bc-a3ceefe55589,
time="2019-12-01T21:35:19Z" level=info msg="integration/mqtt: publishing event" event=stats qos=0 stats_id=40267298-3ca6-4337-b028-927a4db99c91 topic=gateway/0001c0fffe25d014/event/stats,
time="2019-12-01T21:35:19Z" level=info msg="integration/mqtt: gateway configuration received" topic=gateway/0001c0fffe25d014/command/config,
time="2019-12-01T21:35:49Z" level=info msg="integration/mqtt: publishing event" event=stats qos=0 stats_id=7021d987-e397-46ca-8978-9c1e7a4f6cfe topic=gateway/0001c0fffe25d014/event/stats,
time="2019-12-01T21:35:49Z" level=info msg="integration/mqtt: gateway configuration received" topic=gateway/0001c0fffe25d014/command/config,

packet forwarder global config

{
        "SX1301_conf": {
                "lorawan_public": true,
                "clksrc": 1,
                "clksrc_desc": "radio_1 provides clock to concentrator for most devices except MultiTech. For MultiTech set to 0.",
                "antenna_gain": 0,
                "antenna_gain_desc": "antenna gain, in dBi",
                "radio_0": {
                        "enable": true,
                        "type": "SX1257",
                        "freq": 917200000,
                        "rssi_offset": -166.0,
                        "tx_enable": true,
                        "tx_freq_min": 915000000,
                        "tx_freq_max": 928000000
                },
                "radio_1": {
                        "enable": true,
                        "type": "SX1257",
                        "freq": 917900000,
                        "rssi_offset": -166.0,
                        "tx_enable": false
                },
                "chan_multiSF_0": {
                        "desc": "Lora MAC, 125kHz, all SF, 916.8 MHz",
                        "enable": true,
                        "radio": 0,
                        "if": -400000
                },
                "chan_multiSF_1": {
                        "desc": "Lora MAC, 125kHz, all SF, 917.0 MHz",
                        "enable": true,
                        "radio": 0,
                        "if": -200000
                },
                "chan_multiSF_2": {
                        "desc": "Lora MAC, 125kHz, all SF, 917.2 MHz",
                        "enable": true,
                        "radio": 0,
                        "if": 0
                },
                "chan_multiSF_3": {
                        "desc": "Lora MAC, 125kHz, all SF, 917.4 MHz",
                        "enable": true,
                        "radio": 0,
                        "if": 200000
                },
                "chan_multiSF_4": {
                        "desc": "Lora MAC, 125kHz, all SF, 917.6 MHz",
                        "enable": true,
                        "radio": 1,
                        "if": -300000
                },
                "chan_multiSF_5": {
                        "desc": "Lora MAC, 125kHz, all SF, 917.8 MHz",
                        "enable": true,
                        "radio": 1,
                        "if": -100000
                },
                "chan_multiSF_6": {
                        "desc": "Lora MAC, 125kHz, all SF, 918.0 MHz",
                        "enable": true,
                        "radio": 1,
                        "if": 100000
                },
                "chan_multiSF_7": {
                        "desc": "Lora MAC, 125kHz, all SF, 918.2 MHz",
                        "enable": true,
                        "radio": 1,
                        "if": 300000
                },
                "chan_Lora_std": {
                        "desc": "Lora MAC, 500kHz, SF8, 917.5 MHz",
                        "enable": true,
                        "radio": 0,
                        "if": 300000,
                        "bandwidth": 500000,
                        "spread_factor": 8
                },
                "chan_FSK": {
                        "desc": "disabled",
                        "enable": false
                },
                "tx_lut_0": {
                        "desc": "TX gain table, index 0",
                        "pa_gain": 0,
                        "mix_gain": 8,
                        "rf_power": -6,
                        "dig_gain": 0
                },
                "tx_lut_1": {
                        "desc": "TX gain table, index 1",
                        "pa_gain": 0,
                        "mix_gain": 10,
                        "rf_power": -3,
                        "dig_gain": 0
                },
                "tx_lut_2": {
                        "desc": "TX gain table, index 2",
                        "pa_gain": 0,
                        "mix_gain": 12,
                        "rf_power": 0,
                        "dig_gain": 0
                },
                "tx_lut_3": {
                        "desc": "TX gain table, index 3",
                        "pa_gain": 1,
                        "mix_gain": 8,
                        "rf_power": 3,
                        "dig_gain": 0
                },
                "tx_lut_4": {
                        "desc": "TX gain table, index 4",
                        "pa_gain": 1,
                        "mix_gain": 10,
                        "rf_power": 6,
                        "dig_gain": 0
                },
                "tx_lut_5": {
                        "desc": "TX gain table, index 5",
                        "pa_gain": 1,
                        "mix_gain": 12,
                        "rf_power": 10,
                        "dig_gain": 0
                },
                "tx_lut_6": {
                        "desc": "TX gain table, index 6",
                        "pa_gain": 1,
                        "mix_gain": 13,
                        "rf_power": 11,
                        "dig_gain": 0
                },
                "tx_lut_7": {
                        "desc": "TX gain table, index 7",
                        "pa_gain": 2,
                        "mix_gain": 9,
                        "rf_power": 12,
                        "dig_gain": 0
                },
                "tx_lut_8": {
                        "desc": "TX gain table, index 8",
                        "pa_gain": 1,
                        "mix_gain": 15,
                        "rf_power": 13,
                        "dig_gain": 0
                },
                "tx_lut_9": {
                        "desc": "TX gain table, index 9",
                        "pa_gain": 2,
                        "mix_gain": 10,
                        "rf_power": 14,
                        "dig_gain": 0
                },
                "tx_lut_10": {
                        "desc": "TX gain table, index 10",
                        "pa_gain": 2,
                        "mix_gain": 11,
                        "rf_power": 16,
                        "dig_gain": 0
                },
                "tx_lut_11": {
                        "desc": "TX gain table, index 11",
                        "pa_gain": 3,
                        "mix_gain": 9,
                        "rf_power": 20,
                        "dig_gain": 0
                },
                "tx_lut_12": {
                        "desc": "TX gain table, index 12",
                        "pa_gain": 3,
                        "mix_gain": 10,
                        "rf_power": 23,
                        "dig_gain": 0
                },
                "tx_lut_13": {
                        "desc": "TX gain table, index 13",
                        "pa_gain": 3,
                        "mix_gain": 11,
                        "rf_power": 25,
                        "dig_gain": 0
                },
                "tx_lut_14": {
                        "desc": "TX gain table, index 14",
                        "pa_gain": 3,
                        "mix_gain": 12,
                        "rf_power": 26,
                        "dig_gain": 0
                },
                "tx_lut_15": {
                        "desc": "TX gain table, index 15",
                        "pa_gain": 3,
                        "mix_gain": 14,
                        "rf_power": 27,
                        "dig_gain": 0
                }
        },
        "gateway_conf": {
                "gateway_ID": "0000000000000000",
                /* change with default server address/ports, or overwrite in local_conf.json */
                "server_address": "router.au.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,
                "autoquit_threshold": 6
        }

}

LoRaWAN test node (lopy4)

#!/usr/bin/env python

import config
import socket
import binascii
import struct
import utime
import machine
import pycom

from network import LoRa


'''
    call back for handling RX packets
'''
def lora_cb(lora):
    events = lora.events()
    if events & LoRa.RX_PACKET_EVENT:
        if s is not None:
            frame, port = s.recvfrom(64)
            print('Received data (downlink), port: {0}, data: {1}'.format(port, frame))
        else:
            print('Socket missing...')
    elif events & LoRa.TX_PACKET_EVENT:
        print("LoRa Stats:", lora.stats())
    elif events & lora.TX_FAILED_EVENT:
        print("tx failed...")
    else:
        print("Other event: {0}".format(events))

'''
    Main operations:
'''
print("Joining LoRaWAN network")
# initialize LoRa in LORAWAN mode.
lora = LoRa(mode=LoRa.LORAWAN, region=LoRa.AU915, device_class=LoRa.CLASS_A)

pycom.heartbeat(False)

# Remove default channels
for index in range(0, 72):
    lora.remove_channel(index)

# Set  AU ISM 915 channel plan
for index in range(8, 15):
    lora.add_channel(index, frequency=915200000+index*200000, dr_min=0, dr_max=3)

lora.add_channel(65, frequency=917500000,  dr_min=4,  dr_max=4)

for index in range(0, 7):
    lora.add_channel(index, frequency=923300000+index*600000, dr_min=0, dr_max=3)

# join a network using OTAA (Over-the-Air Activation)
lora.join(activation=LoRa.OTAA, auth=(config.APP_EUI, config.APP_KEY), timeout=0)

while not lora.has_joined():
    pycom.rgbled(0x140000)
    utime.sleep(2.5)
    pycom.rgbled(0x000000)
    utime.sleep(1.0)
    print('Not yet joined...')

print('OTAA joined')
pycom.rgbled(0x001400)

# create a LoRa socket
s = socket.socket(socket.AF_LORA, socket.SOCK_RAW)

# set the LoRaWAN data rate
s.setsockopt(socket.SOL_LORA, socket.SO_DR, config.LORA_NODE_DR)

# set call back
lora.callback(trigger=(lora.RX_PACKET_EVENT | lora.TX_PACKET_EVENT | lora.TX_FAILED_EVENT), handler=lora_cb)
utime.sleep(5)

while True:
    s.setblocking(True)
    pycom.rgbled(0x000014)

    print('Sending data (uplink)...')
    s.send("hello...")
    s.setblocking(False)
    # data = s.recv(64)
    # print('Received data (downlink)', data)
    # print("LoRa Stats:", lora.stats())
    pycom.rgbled(0x001400)
    utime.sleep(30)

console log from loRaWAN test node:

LoRa Stats: (rx_timestamp=3787321571, rssi=-13, snr=8.0, sfrx=8, sftx=0, tx_trials=0, tx_power=0, tx_time_on_air=1483, tx_counter=124, tx_frequency=917000000)
Sending data (uplink)...
LoRa Stats: (rx_timestamp=3787321571, rssi=-13, snr=8.0, sfrx=8, sftx=0, tx_trials=0, tx_power=0, tx_time_on_air=1483, tx_counter=125, tx_frequency=925700000)
Sending data (uplink)...
LoRa Stats: (rx_timestamp=3787321571, rssi=-13, snr=8.0, sfrx=8, sftx=0, tx_trials=0, tx_power=0, tx_time_on_air=1483, tx_counter=126, tx_frequency=926300000)
Sending data (uplink)...
LoRa Stats: (rx_timestamp=3787321571, rssi=-13, snr=8.0, sfrx=8, sftx=0, tx_trials=0, tx_power=0, tx_time_on_air=1483, tx_counter=127, tx_frequency=917600000)
Sending data (uplink)...
LoRa Stats: (rx_timestamp=3787321571, rssi=-13, snr=8.0, sfrx=8, sftx=0, tx_trials=0, tx_power=0, tx_time_on_air=1483, tx_counter=128, tx_frequency=917800000)
Sending data (uplink)...
LoRa Stats: (rx_timestamp=3787321571, rssi=-13, snr=8.0, sfrx=8, sftx=0, tx_trials=0, tx_power=0, tx_time_on_air=1483, tx_counter=129, tx_frequency=916800000)
Sending data (uplink)...
LoRa Stats: (rx_timestamp=3787321571, rssi=-13, snr=8.0, sfrx=8, sftx=0, tx_trials=0, tx_power=0, tx_time_on_air=1483, tx_counter=130, tx_frequency=925100000)
Sending data (uplink)...
LoRa Stats: (rx_timestamp=3787321571, rssi=-13, snr=8.0, sfrx=8, sftx=0, tx_trials=0, tx_power=0, tx_time_on_air=1483, tx_counter=131, tx_frequency=923900000)
Sending data (uplink)...
LoRa Stats: (rx_timestamp=3787321571, rssi=-13, snr=8.0, sfrx=8, sftx=0, tx_trials=0, tx_power=0, tx_time_on_air=1483, tx_counter=132, tx_frequency=917000000)