MTAC-LORA-2G4-3

The MTAC-LORA-2G4-3 card provides support for 2.4G LoRa devices.

Since mPower 5.2.1 the MTAC-LORA-2G4-3 card can be used in Network Server and Packet forwarder modes.

mPower 5.2.1 Update

The final release from Semtech was shortly after our mPower 5.2.1 release.

    1. MCU version needs to be 1.0.1
      https://github.com/Lora-net/gateway_2g4_hal
      https://github.com/Lora-net/gateway_2g4_hal/mcu_bin
    2. To update the MCU firmware download the MCU 1.0.1 firmware from the above repo and copy the file to the conduit.
      $ sudo /etc/init.d/lora-network-server stop 
      $ wget https://github.com/Lora-net/gateway_2g4_hal/raw/master/mcu_bin/rlz_fwm_gtw_2g4_01.00.01.bin
      $ sudo /opt/lora/mcu-2g4-boot ON 
      $ sudo dfu-util -a 0 -s 0x08000000:leave -t 0 -D rlz_fwm_gtw_2g4_01.00.01.bin
    3. Packet forwarder should be updated to 1.0.1
      https://www.multitech.net/developer/downloads/
      http://www.multitech.net/downloads/lora-gateway-2g4_1.0.1-r2.0_arm926ejste.ipk
    4. To update the packet forwarder copy the ipk from the link above to the conduit
$ wget http://www.multitech.net/downloads/lora-gateway-2g4_1.0.1-r2.0_arm926ejste.ipk
$ sudo opkg install lora-gateway-2g4_1.0.1-r2.0_arm926ejste.ipk
$ cd /var/run/lora/1/
$ sudo ./lora_pkt_fwd
*** Packet Forwarder 2.4Ghz***
Version: 1.0.0
*** HAL library version info ***
Version: 1.0.0;
***
INFO: Little endian host
INFO: found configuration file global_conf.json, parsing it
INFO: global_conf.json does contain a JSON object named radio_conf, parsing radio parameters
INFO: tty_path /dev/ttyACM0
INFO: antenna_gain 0 dBi
INFO: LoRa sync_word 0x21 (public)
INFO: channel 0 enabled: frequency 2403000000, bandwidth 812000Hz, SF12, RSSI offset 0.0
INFO: channel 1 enabled: frequency 2425000000, bandwidth 812000Hz, SF12, RSSI offset 0.0
INFO: channel 2 enabled: frequency 2479000000, bandwidth 812000Hz, SF12, RSSI offset 0.0
INFO: TX enabled, freq min 2400000000Hz, freq max 2500000000Hz
INFO: global_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters
INFO: gateway MAC address is configured to 0008000000000206
INFO: server hostname or IP address is configured to "127.0.0.1"
INFO: upstream port is configured to "1780"
INFO: downstream port is configured to "1782"
INFO: downstream keep-alive interval is configured to 10 seconds
INFO: statistics display interval is configured to 20 seconds
INFO: upstream PUSH_DATA time-out is configured to 120 ms
INFO: packets received with a valid CRC will be forwarded
INFO: packets received with a CRC error will be forwarded
INFO: packets received with no CRC will NOT be forwarded
INFO: Auto-quit after 10 non-acknowledged PULL_DATA
INFO: Concentrator MCU version is V01.00.01
INFO: Configuring RX channel 1 => freq:2425000000 sf:12 bw:800khz
INFO: Configuring RX channel 2 => freq:2479000000 sf:12 bw:800khz
INFO: Configuring RX channel 0 => freq:2403000000 sf:12 bw:800khz
INFO: [main] concentrator started, packet can now be received
INFO: concentrator EUI: 0x6f347a3917513834

CTRL-C to stop
$ sudo /etc/init.d/lora-network-server start

Channel Configuration

The MTAC-LORA-2G4-3 supports three channels using a single datarate at 812 kHz bandwidth . A new coding rate, “4/7LI”, is used.

Packet Forwarder Global Config

global_conf.json.2g4

Uplink JSON

{
	"rxpk": [{
		"jver": 1,
		"tmst": 402866437,
		"chan": 2,
		"freq": 2425.000000,
		"foff": 265,
		"stat": 1,
		"modu": "LORA",
		"datr": "SF12BW812",
		"codr": "4/7LI",
		"lsnr": -3.0,
		"rssi": -105,
		"size": 23,
		"data": "AAAAANB+1bNwExGZEQAAgAARAMLVDq4="
	}]
}

Downlink JSON

{
	"txpk": {
		"codr": "4/7LI",
		"data": "IMw+Dwc9QaSJi7Mfi7ns2TIbutmOSs1r22RedVkreJFz",
		"datr": "SF12BW812",
		"freq": 2425,
		"ipol": true,
		"modu": "LORA",
		"ncrc": true,
		"powe": 7,
		"rfch": 0,
		"size": 33,
		"tmst": 38604060
	}
}