
The gateways will need to be registered as Semtech packet forwarders on TTN.

1) Copy attached modify-ttn-scripts.sh, ttn-pkt-forwarder and run_forwarder to the home directory on Conduit
2) Execute permissions should be added after copying the file

$ chmod +x modify-ttn-scripts.sh

3) Run the modify script
$ ./modify-ttn-scripts.sh

4) Edit /var/conf/lora/global_conf_src_2 to match Channel Plan of second card.
See https://account.thethingsnetwork.org/api/v2/frequency-plans/

Examples for AS923 and AU915:
https://account.thethingsnetwork.org/api/v2/frequency-plans/AU_915_928
https://account.thethingsnetwork.org/api/v2/frequency-plans/AS_920_923

5) Edit 2/local_conf.json to update gateway_ID

A) Remove the separators from the EUI
$ mts-io-sysfs show ap1/eui
$ mts-io-sysfs show ap2/eui

B) Add spi device path in gateway_conf section for 2/local_conf.json to use second card

    "gateway_conf": {
        "spi_device": "/dev/spidev32765.2",



AS923 may require v33 FPGA firmware for LBT

6) Check versions
$ mts-fpga-loader -c -p 1
$ mts-fpga-loader -c -p 2

7) If update is needed
$ mts-fpga-loader -p 1 -i /usr/lib/mts-flash-binaries/mtcdt-fpga-v33.hex


Logs /var/log/lora-pkt-fwd-1.log and /var/log/lora-pkt-fwd-2.log files should show output for each card.


8) Finally start the packet forwarders
$ /etc/init.d/ttn-pkt-forwarder start
