{"id":9550,"date":"2015-10-13T09:18:36","date_gmt":"2015-10-13T14:18:36","guid":{"rendered":"http:\/\/www.multitech.net\/developer\/?page_id=9550"},"modified":"2023-10-26T09:48:23","modified_gmt":"2023-10-26T14:48:23","slug":"conduit-mlinux-convert-to-basic-packet-forwarder","status":"publish","type":"page","link":"https:\/\/www.multitech.net\/developer\/software\/lora\/conduit-mlinux-convert-to-basic-packet-forwarder\/","title":{"rendered":"Conduit mLinux: Convert to Basic Packet Forwarder"},"content":{"rendered":"<p>For Conduit mLinux models<\/p>\n<div class=\"note\"><strong>WARNING:<\/strong> This is only for people who need to disable the on-board LoRa network server for gateway only functionality. Most people should follow <a href='https:\/\/www.multitech.net\/developer\/software\/lora\/getting-started-with-lora-conduit-mlinux\/' title='Getting Started with LoRa Conduit mLinux (LoRa Configuration) '>the general getting started guide<\/a>.<\/div>\n<div class=\"note\">When forwarding packets to another Conduit be sure the receiving end has the firewall opened to receive incoming connections.<br \/>\nA process monitor such as monit should be used to ensure the packet forwarder remains running in case of error. See <a href=\"https:\/\/www.multitech.net\/developer\/software\/mlinux\/using-mlinux\/configure-monit-for-pppd-and-lora-packet-forwarder\/\">Monit Instructions<\/a><\/div>\n<h5>SPI device paths with mPower &gt;= 6.0.0<\/h5>\n<ul>\n<li>In the global_conf.json<\/li>\n<li>AP1\n<pre>    \r\n    \"gateway_conf\": {\r\n        \"spi_device\" : \"\/dev\/spidev0.2\",<\/pre>\n<\/li>\n<li>AP2\n<pre>    \r\n    \"gateway_conf\": {\r\n        \"spi_device\" : \"\/dev\/spidev1.2\",<\/pre>\n<\/li>\n<\/ul>\n<h5>SPI device paths with mPower = 5.2.1<\/h5>\n<ul>\n<li>In the global_conf.json<\/li>\n<li>AP1\n<pre>    \r\n    \"gateway_conf\": {\r\n        \"spi_device\" : \"\/dev\/spidev32766.2\",<\/pre>\n<\/li>\n<li>AP2\n<pre>    \r\n    \"gateway_conf\": {\r\n        \"spi_device\" : \"\/dev\/spidev32765.2\",<\/pre>\n<\/li>\n<\/ul>\n<h3>Links<\/h3>\n<p><a title=\"Trouble Shooting Help\" href=\"https:\/\/www.multitech.net\/developer\/software\/lora\/troubleshooting-lora-communication\/\">Troubleshooting Help<\/a><\/p>\n<h3>Examples of global_conf.json<\/h3>\n<p>Copy one of the following to the <b>\/var\/config\/lora\/<\/b> directory renamed as <b>global_conf.json<\/b>.<\/p>\n<ul>\n<li>Conduit with MTAC-LORA accessory cards:\n<ul>\n<li><a href=\"https:\/\/git.multitech.net\/cgit\/meta-mlinux.git\/plain\/recipes-connectivity\/lora\/lora-packet-forwarder\/global_conf.json.3.0.0.MTAC_LORA_1_5.US915.basic.clksrc0\"><b>US (915 MHz)<\/b><\/a><\/li>\n<li><a href=\"https:\/\/git.multitech.net\/cgit\/meta-mlinux.git\/plain\/recipes-connectivity\/lora\/lora-packet-forwarder\/global_conf.json.3.0.0.MTAC_LORA_1_5.EU868.basic.clksrc0\"><b>Europe (868 MHz)<\/b><\/a><\/li>\n<li><a href=\"https:\/\/git.multitech.net\/cgit\/meta-mlinux.git\/plain\/recipes-connectivity\/lora\/lora-packet-forwarder\/global_conf.json.3.0.0.MTAC_LORA_1_5.AU915.basic.clksrc0\"><b>Australia (915 MHz)<\/b><\/a><\/li>\n<li><a href=\"https:\/\/git.multitech.net\/cgit\/meta-mlinux.git\/plain\/recipes-connectivity\/lora\/lora-packet-forwarder\/global_conf.json.3.0.0.MTAC_LORA_1_5.AS923.basic.clksrc0\"><b>Asia Pacific (923 MHz)<\/b><\/a><\/li>\n<li><a href=\"https:\/\/git.multitech.net\/cgit\/meta-mlinux.git\/plain\/recipes-connectivity\/lora\/lora-packet-forwarder\/global_conf.json.3.0.0.MTAC_LORA_1_5.AS923-LBT.basic.clksrc0\"><b>Asia Pacific with LBT (923 MHz)<\/b><\/a><\/li>\n<li><a href=\"https:\/\/git.multitech.net\/cgit\/meta-mlinux.git\/plain\/recipes-connectivity\/lora\/lora-packet-forwarder\/global_conf.json.3.0.0.MTAC_LORA_1_5.KR920-LBT.basic.clksrc0\"><b>Korea with LBT (920 MHz)<\/b><\/a><\/li>\n<li><a href=\"https:\/\/git.multitech.net\/cgit\/meta-mlinux.git\/plain\/recipes-connectivity\/lora\/lora-packet-forwarder\/global_conf.json.3.0.0.MTAC_LORA_1_5.IN865.basic.clksrc0\"><b>India (865 MHz)<\/b><\/a><\/li>\n<\/ul>\n<\/li>\n<li>Conduit AP:\n<ul>\n<li><a href=\"https:\/\/git.multitech.net\/cgit\/meta-mlinux.git\/plain\/recipes-connectivity\/lora\/lora-packet-forwarder\/global_conf.json.3.1.0.MTCAP-LORA-1-5.US915.basic\"><b>US (915 MHz)<\/b><\/a><\/li>\n<li><a href=\"https:\/\/git.multitech.net\/cgit\/meta-mlinux.git\/plain\/recipes-connectivity\/lora\/lora-packet-forwarder\/global_conf.json.3.1.0.MTCAP-LORA-1-5.EU868.basic\"><b>Europe (868 MHz)<\/b><\/a><\/li>\n<li><a href=\"https:\/\/git.multitech.net\/cgit\/meta-mlinux.git\/plain\/recipes-connectivity\/lora\/lora-packet-forwarder\/global_conf.json.3.1.0.MTCAP-LORA-1-5.AU915.basic\"><b>Australia (915 MHz)<\/b><\/a><\/li>\n<li><a href=\"https:\/\/git.multitech.net\/cgit\/meta-mlinux.git\/plain\/recipes-connectivity\/lora\/lora-packet-forwarder\/global_conf.json.3.1.0.MTCAP-LORA-1-5.AS923.basic\"><b>Asia Pacific (923 MHz)<\/b><\/a><\/li>\n<li><a href=\"https:\/\/git.multitech.net\/cgit\/meta-mlinux.git\/plain\/recipes-connectivity\/lora\/lora-packet-forwarder\/global_conf.json.3.1.0.MTCAP-LORA-1-5.AS923-LBT.basic\"><b>Asia Pacific with LBT (923 MHz)<\/b><\/a><\/li>\n<li><a href=\"https:\/\/git.multitech.net\/cgit\/meta-mlinux.git\/plain\/recipes-connectivity\/lora\/lora-packet-forwarder\/global_conf.json.3.1.0.MTCAP-LORA-1-5.KR920-LBT.basic\"><b>Korea with LBT (920 MHz)<\/b><\/a><\/li>\n<li><a href=\"https:\/\/git.multitech.net\/cgit\/meta-mlinux.git\/plain\/recipes-connectivity\/lora\/lora-packet-forwarder\/global_conf.json.3.1.0.MTCAP-LORA-1-5.IN865.basic\"><b>India (865 MHz)<\/b><\/a><\/li>\n<\/ul>\n<\/li>\n<li>Conduit with MTAC-003 accessory cards:\n<ul>\n<li><a href=\"https:\/\/raw.githubusercontent.com\/MultiTechSystems\/multitech-gateway-tx-power-tables\/main\/global_conf.json.MTAC_003_0_0.US915\"><b>US (915 MHz)<\/b><\/a><\/li>\n<li><a href=\"https:\/\/raw.githubusercontent.com\/MultiTechSystems\/multitech-gateway-tx-power-tables\/main\/global_conf.json.MTAC_003_0_0.EU868\"><b>Europe (868 MHz)<\/b><\/a><\/li>\n<\/ul>\n<\/li>\n<li>Conduit MTCAP3:\n<ul>\n<li><a href=\"https:\/\/raw.githubusercontent.com\/MultiTechSystems\/multitech-gateway-tx-power-tables\/main\/global_conf.json.MTCAP3.US915\"><b>US (915 MHz)<\/b><\/a><\/li>\n<li><a href=\"https:\/\/raw.githubusercontent.com\/MultiTechSystems\/multitech-gateway-tx-power-tables\/main\/global_conf.json.MTCAP3.EU868\"><b>Europe (868 MHz)<\/b><\/a><\/li>\n<li><a href=\"https:\/\/raw.githubusercontent.com\/MultiTechSystems\/multitech-gateway-tx-power-tables\/main\/global_conf.json.MTCAP3.AU915\"><b>Australia (915 MHz)<\/b><\/a><\/li>\n<\/ul>\n<li>Conduit IP67 with v2.1 Gateway Card\n<ul>\n<li>See <b>\/opt\/lora\/<\/b> directory for example config files<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>Enabling start-up on boot<\/h3>\n<pre class=\"brush:shell\">$ update-rc.d lora-packet-forwarder defaults 80 30<\/pre>\n<h3>Setting up the Conduit<\/h3>\n<h4>mLinux &gt;= 3.2.4<\/h4>\n<ol>\n<li>\/etc\/init.d\/lora-network-server stop<\/li>\n<li>Edit \/etc\/default\/lora-network-server<\/li>\n<li>ENABLED=&#8221;no&#8221;<\/li>\n<li>Edit \/etc\/default\/lora-packet-forwarder<\/li>\n<li>ENABLED=&#8221;yes&#8221;<\/li>\n<li>Copy global_conf.json to \/var\/config\/lora\/ directory<\/li>\n<li>Be sure to set &#8220;gateway_id&#8221; and server settings.<\/li>\n<li>If you need a value for &#8220;gateway_id&#8221; the lora card value can be used\n<pre class=\"brush:shell\">$ mts-io-sysfs show lora\/eui\r\n00:80:00:00:00:00:00:97<\/pre>\n<\/li>\n<li>The colon separators must be removed 00:80:00:00:00:00:00:97 =&gt; 0080000000000097<\/li>\n<li>\/etc\/init.d\/lora-packet-forwarder start<\/li>\n<\/ol>\n<h5>For Conduits with GNSS module installed<\/h5>\n<p>As of mLinux 4.1.6 the packet forwarder will get GPS data via libgpsd, set gps property to true.<\/p>\n<ol>\n<li><strong>mLinux &gt;= 4.1.6<\/strong>\n<ol>\n<li>Set &#8220;gps&#8221;: &#8220;true&#8221; in global_conf.json &#8220;gateway_conf&#8221; section<\/li>\n<li>Reboot<\/li>\n<\/ol>\n<\/li>\n<li><strong>mLinux &lt; 4.1.6<\/strong><br \/>\ngpsd usage of the GPS is not compatible with lora-packet-forwarder. It is not possible to use the Multitech supplied Lora-Packet-Forwarder with the GNSS port, and GPSD at the same time.<\/p>\n<ol>\n<li>Edit \/etc\/default\/gpsd<\/li>\n<li>Set Enabled=&#8221;no&#8221; and Save<\/li>\n<li>ntpd must be disabled or configured to not use gpsd\n<ul>\n<li>Edit \/etc\/default\/ntpd, set Enabled=&#8221;no&#8221; and Save<\/li>\n<\/ul>\n<p>Or<\/p>\n<ul>\n<li>Edit \/etc\/default\/ntpd, set GPSD_REQUIRED=0 and Save<\/li>\n<li>Configure NTP time server in \/etc\/ntp.conf<\/li>\n<\/ul>\n<\/li>\n<li>Set &#8220;gps_tty_path&#8221;: &#8220;\/dev\/ttyXRUSB2&#8221; in global_conf.json &#8220;gateway_conf&#8221; section<\/li>\n<li>Reboot<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<h5>For Geolocation v2.1 Conduits IP67<\/h5>\n<ul>\n<li>GPS data is available on \/dev\/gps0 and \/dev\/ttyXRUSB0<\/li>\n<li>GPS antenna should be connected to port 3<\/li>\n<li>Generate AES key to unlock the fine timestamp using the hardware chip-id\n<ul>\n<li>\n<pre class=\"brush:shell\">$ sudo \/opt\/lora\/lora-v21-keygen $(sudo \/opt\/lora\/gateway-utils-geo\/chip_id | grep -oe '0x.*' | sed -r 's\/0x\/\/g' | sed 'N;s\/\\\\n\/ \/')<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4>mLinux &lt; 3.2.4<\/h4>\n<ol>\n<li>Install the LoRa mCard. Refer to <a href='https:\/\/www.multitech.net\/developer\/products\/multiconnect-conduit-platform\/accessory-cards\/installing-an-accessory-card\/' title='Installing an mCard Accessory Card'>Installing an mCard Accessory Card<\/a>.<\/li>\n<li>Attach the LoRa antenna to the LoRa mCard.<\/li>\n<li>Use the power cable to connect power to the Conduit and wait for the Conduit to boot up.<\/li>\n<li>Login to the console and configure the Conduit for internet access over Ethernet or cellular. Refer to <a href='https:\/\/www.multitech.net\/developer\/software\/mlinux\/getting-started-with-conduit-mlinux\/' title='Getting Started with mLinux'>Getting Started with mLinux<\/a> if needed.<\/li>\n<li>Issue these commands on the Conduit:\n<pre class=\"brush:shell\">$ mkdir \/var\/config\/lora\r\n$ cp \/opt\/lora\/lora-network-server.conf.sample \/var\/config\/lora\/lora-network-server.conf<\/pre>\n<\/li>\n<li>Edit <code>\/var\/config\/lora\/lora-network-server.conf<\/code> and modify these settings as needed (use <code>vi<\/code> or <code>nano<\/code>).\n<div class=\"tablenoborder\">\n<table style=\"width: 100%;\" border=\"1\" frame=\"border\" rules=\"all\" cellspacing=\"0\" cellpadding=\"4\">\n<thead align=\"left\">\n<tr>\n<th class=\"cellrowborder\" valign=\"top\" width=\"100px\">Field<\/th>\n<th class=\"cellrowborder\" valign=\"top\" width=\"130px\">MTAC-LORA-915 (NA)<\/th>\n<th class=\"cellrowborder\" valign=\"top\" width=\"130px\">MTAC-LORA-868 (EU)<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td class=\"cellrowborder\" valign=\"top\"><strong>lora[&#8220;frequencyBand&#8221;]:<\/strong><\/td>\n<td class=\"cellrowborder\" valign=\"top\">&#8220;915&#8221;<\/td>\n<td class=\"cellrowborder\" valign=\"top\">&#8220;868&#8221;<\/td>\n<\/tr>\n<tr>\n<td class=\"cellrowborder\" valign=\"top\"><strong>lora[&#8220;channelPlan&#8221;]:<\/strong><\/td>\n<td class=\"cellrowborder\" valign=\"top\">&#8220;US915&#8221; or &#8220;AU915&#8221;<\/td>\n<td class=\"cellrowborder\" valign=\"top\">&#8220;EU868&#8221;<\/td>\n<\/tr>\n<tr>\n<td class=\"cellrowborder\" valign=\"top\"><strong>lora[&#8220;frequencySubBand&#8221;]:<\/strong><\/td>\n<td class=\"cellrowborder\" valign=\"top\">(integer: 1 to 8)<\/td>\n<td class=\"cellrowborder\" valign=\"top\">Not applicable<\/td>\n<\/tr>\n<tr>\n<td class=\"cellrowborder\" valign=\"top\"><strong>lora[&#8220;frequencyEU&#8221;]:<\/strong><\/td>\n<td class=\"cellrowborder\" valign=\"top\">Not applicable<\/td>\n<td class=\"cellrowborder\" valign=\"top\">default: 869500000<br \/>\nrange: [863500000 &#8211; 867500000]<br \/>\nand [869100000 &#8211; 869500000]<\/td>\n<\/tr>\n<tr>\n<td class=\"cellrowborder\" valign=\"top\"><strong><strong>network[&#8220;public&#8221;]:<\/strong><\/strong><\/td>\n<td class=\"cellrowborder\" style=\"text-align: center;\" colspan=\"2\" valign=\"top\">true<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/li>\n<li>Restart the network server. This will generate a configuration file for the packet forwarder.\n<pre class=\"brush:shell\">$ \/etc\/init.d\/lora-network-server restart<\/pre>\n<\/li>\n<li>Copy the generated packet forwarder configuration to the config partition.\n<pre class=\"brush:shell\">$ cp \/var\/run\/lora\/1\/global_conf.json \/var\/config\/lora\/global_conf.json<\/pre>\n<\/li>\n<li>Edit <code>\/var\/config\/lora\/global_conf.json<\/code> and modify these settings.\n<div class=\"tablenoborder\">\n<table style=\"width: 100%;\" border=\"1\" frame=\"border\" rules=\"all\" cellspacing=\"0\" cellpadding=\"4\">\n<thead align=\"left\">\n<tr>\n<th class=\"cellrowborder\" valign=\"top\" width=\"100px\">Field<\/th>\n<th class=\"cellrowborder\" valign=\"top\" width=\"130px\">Description<\/th>\n<th class=\"cellrowborder\" valign=\"top\" width=\"130px\">Example<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td class=\"cellrowborder\" valign=\"top\"><strong>gateway_conf[&#8220;server_address&#8221;]:<\/strong><\/td>\n<td class=\"cellrowborder\" valign=\"top\">Network IP or URL of your LoRa network server<\/td>\n<td class=\"cellrowborder\" valign=\"top\">&#8220;lora.mydomain.com&#8221;<\/td>\n<\/tr>\n<tr>\n<td class=\"cellrowborder\" valign=\"top\"><strong><strong>gateway_conf[&#8220;serv_port_down&#8221;]:<\/strong><\/strong><\/td>\n<td class=\"cellrowborder\" valign=\"top\">The LoRa network server&#8217;s downstream UDP port<\/td>\n<td class=\"cellrowborder\" valign=\"top\">1700<\/td>\n<\/tr>\n<tr>\n<td class=\"cellrowborder\" valign=\"top\"><strong><strong>gateway_conf[&#8220;serv_port_up&#8221;]:<\/strong><\/strong><\/td>\n<td class=\"cellrowborder\" valign=\"top\">The LoRa network server&#8217;s upstream UDP port<\/td>\n<td class=\"cellrowborder\" valign=\"top\">1700<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><em><strong>*If you have mLinux firmware version 3.2.4 or greater, skip steps 10-12, and see below for further instructions<\/strong><\/em>.<\/p>\n<\/div>\n<\/li>\n<li>Edit <code>\/etc\/init.d\/lora-network-server<\/code> as follows :\n<ul>\n<li>Comment out the Lora network server start code\n<pre class=\"brush:shell; first-line: 56; highlight: [57,58,59,60,61]\"># start network server                  \r\n#start-stop-daemon --start --background --make-pidfile \\\r\n#    --pidfile $net_server_pidfile --exec $net_server -- \\\r\n#    -c $conf_file --lora-eui $lora_eui --lora-path $run_dir --db $conf_db \\\r\n#    --noconsole -l $net_server_log                      \r\n#sleep 1<\/pre>\n<\/li>\n<li>On line 65, change the <code>-c<\/code> option for packet forwarder from <code>-c $run_dir<\/code> to <code>-c $conf_dir<\/code>\n<pre class=\"brush:shell; first-line: 62; highlight: [65]\"># start packet forwarder            \r\nstart-stop-daemon --start --background --make-pidfile \\\r\n     --pidfile $pkt_fwd_pidfile --exec $pkt_fwd -- \\\r\n     -c $conf_dir -l $pkt_fwd_log           \r\necho \"OK\"<\/pre>\n<\/li>\n<li>Comment out the Lora network server stop code<code><\/code>\n<pre class=\"brush:shell; first-line: 71; highlight: [71]\">#start-stop-daemon --stop --quiet --oknodo --pidfile $net_server_pidfile --retry 15\r\nstart-stop-daemon --stop --quiet --oknodo --pidfile $pkt_fwd_pidfile --retry 5<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li>Restart the packet forwarder.\n<pre class=\"brush:shell\">$ \/etc\/init.d\/lora-network-server restart<\/pre>\n<\/li>\n<li>For debugging, you can view the packet forwarder log with this command:\n<pre class=\"brush:shell\">$ tail -f \/var\/log\/lora-pkt-fwd.log<\/pre>\n<\/li>\n<\/ol>\n<p style=\"padding-left: 30px;\"><strong><em>*If you have mLinux firmware version 3.2.4 or greater, continue with steps 13-16 after step 9 &nbsp;from above (If not, stop here after step #12. You are done.)<\/em><\/strong><\/p>\n<p style=\"padding-left: 30px;\">13.&nbsp;Stop the network server using this command:<\/p>\n<pre class=\"brush:shell\" style=\"padding-left: 30px;\">\r\n<pre wp-pre-tag-15=\"\"><\/pre>\n<p>nbsp;\/etc\/init.d\/lora-network-server stop<\/p>\n<p style=\"padding-left: 30px;\">14. Edit \/etc\/default\/lora-network-server:<\/p>\n<pre class=\"brush:shell\" style=\"padding-left: 30px;\">ENABLED =\"no\"<\/pre>\n<p style=\"padding-left: 30px;\">15. Edit \/etc\/default\/lora-packet-forwarder:<\/p>\n<pre class=\"brush:shell\" style=\"padding-left: 30px;\">ENABLED = \"yes\"<\/pre>\n<p style=\"padding-left: 30px;\">16.&nbsp;Start packet forwarder using this command:<\/p>\n<pre class=\"brush:shell\" style=\"padding-left: 30px;\">\r\n<pre wp-pre-tag-18=\"\"><\/pre>\n<p>nbsp;\/etc\/init.d\/lora-packet-forwarder start<\/p>\n<h3>Setting Up the mDot Using Manual Join<\/h3>\n<ol>\n<li>Establish a serial connection to the mDot\n<ol>\n<li>Connect your PC to the DB9 serial connector on the UDK<\/li>\n<li>Open a terminal session using an application such as <a href=\"http:\/\/ttssh2.osdn.jp\/\">TeraTerm<\/a> with baud rate 115,200<\/li>\n<\/ol>\n<\/li>\n<li>Issue these commands:\n<ul>\n<li><code>AT+NJM=0<\/code> (manual join mode)<\/li>\n<li><code>AT+PN=1<\/code> (public network mode)<\/li>\n<li><code>AT+FSB=value<\/code> (915 NA only | value = frequencySubBand from your Conduit)<\/li>\n<li><code>AT+NSK=value<\/code> (value = Network session key given by your network server operator)<\/li>\n<li><code>AT+DSK=value <\/code> (value = Data (application) session key for your application)<\/li>\n<li><code>AT+NA=value <\/code> (value = 4-byte device address)<\/li>\n<li><code>AT&amp;W <\/code> (save settings)<\/li>\n<li><code>ATZ <\/code> (restart)<\/li>\n<\/ul>\n<\/li>\n<li>Send data without requesting an ACK:\n<ul>\n<li><code>AT+ACK=0<\/code><\/li>\n<li><code>AT+SEND=hello world<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3>Troubleshooting<\/h3>\n<ul>\n<li><strong>The packet forwarder starts but&nbsp;immediately stops<\/strong>\n<ul>\n<li>If <code>\/var\/config\/lora\/global_conf.json<\/code> is not in proper json format (extra or missing comma), the packet forwarder cannot run.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>Packet Forwarder Configuration Options<\/h2>\n<p>Two sections are available in the configuration: radio settings (SX1301_conf) and server settings (gateway_conf).<\/p>\n<h3>SX1301_conf<\/h3>\n<ul>\n<li>lorawan_public \u2013 set sync word to false: 0x12 or true: 0x34<\/li>\n<li>clksrc \u2013 must be 0 for Multitech gateway hardware<\/li>\n<li>antenna_gain \u2013 configure the installed antenna gain if the network server sends EIRP value with downlinks. The Multitech network server will account for antenna gain before sending tx power to the forwarder.<\/li>\n<\/ul>\n<h4>Radios<\/h4>\n<p>The radio_0 and radio_1 settings configure the two front-end radios on the MTAC cards.<br \/>\nenable \u2013 true if radio is enabled for use<\/p>\n<ul>\n<li>type \u2013 type of radio chip installed SX1257 or SX1255, frequency range differs<\/li>\n<li>freq \u2013 center frequency the radio is configured to listen for packets<\/li>\n<li>tx_enable \u2013 true if radio can be used for transmissions<\/li>\n<li>tx_freq_min \u2013 minimum frequency to be allowed for transmissions<\/li>\n<li>tx_freq_max \u2013 maximum frequency to be allowed for transmissions<\/li>\n<li>rssi_offset \u2013 offset in dBm to adjust the radio RSSI reading<\/li>\n<\/ul>\n<h4>Channels<\/h4>\n<p>Eight channels can be configured to receive LoRa packets using 125 kHz bandwith. These channels are configured in the chan_multiSF_x settings. Each channel has an enable boolean, a selected radio and an intermediate frequency. The channel frequency will freq setting of the radio plus the if setting of the channel.<\/p>\n<ul>\n<li>enable \u2013 true if this channel is enabled for use<\/li>\n<li>radio \u2013 selected radio to listen for packets<\/li>\n<li>if \u2013 intermediate frequency offset applied to the selected radio \u201cfreq\u201d setting<\/li>\n<\/ul>\n<p>Two additional channels can be configured with the chan_Lora_std and chan_FSK settings.<\/p>\n<ul>\n<li>enable \u2013 true if this channel is enabled for use<\/li>\n<li>radio \u2013 selected radio to listen for packets<\/li>\n<li>if \u2013 intermediate frequency offset applied to the selected radio \u201cfreq\u201d setting<\/li>\n<li>bandwidth \u2013 channel bandwidth<\/li>\n<li>spread_factor (LoRa) \u2013 channel spreading factor (7-12)<\/li>\n<li>datarate (FSK) \u2013 channel datarate in bps<\/li>\n<\/ul>\n<h4>Look-up-table (LUT)<\/h4>\n<p>There are sixteen power settings that can be configured, these settings have been selected during calibration for each hardware. The power sent from the network server is looked up in this table by the rf_power setting. The corresponding pa_gain, mix_gain and dig_gain settings are then input into the radio for the transmission. These settings should not be adjusted.<\/p>\n<h3>gateway_conf<\/h3>\n<ul>\n<li>gateway_ID \u2013 gateway identifier sent in each message to the network server<\/li>\n<li>server_address \u2013 address of the network server<\/li>\n<li>serv_port_up \u2013 port for sending uplink packets to the network server<\/li>\n<li>serv_port_down \u2013 port to communicate to receive downlink packet from the network server<\/li>\n<li>keepalive_interval \u2013 interval to ping the network server<\/li>\n<li>stat_interval \u2013 interval to send stat messages to the network server<\/li>\n<li>push_timeout_ms \u2013 socket timeout when publishing messages to the network server<\/li>\n<li>autoquit_threshold \u2013 number of keepalive messages without response to wait before quitting<\/li>\n<li>forward_crc_valid \u2013 enable to forward valid packets to the network server, default: true<\/li>\n<li>forward_crc_error \u2013 enable to forward CRC failed packets to the network server, default: true. The network server will reject packets with failed CRC, it may not be necessary to forward the packets except for a statistic of local RF quality or to monitor the gateway performance over time. Some random CRC failed packets are expected to be received from random noise.<\/li>\n<li>forward_crc_disabled \u2013 enable to forward packets without CRC enabled to the network server, default: false. LoRaWAN protocol expects uplink packets to have CRC enabled.<\/li>\n<\/ul>\n<p><a title=\"Listen Before Talk\" href=\"https:\/\/www.multitech.net\/developer\/software\/lora\/listen-before-talk\/\">Listen Before Talk configuration<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>For Conduit mLinux models WARNING: This is only for people who need to disable the on-board LoRa network server for gateway only functionality. Most people should follow . When forwarding packets to another Conduit be sure the receiving end has the firewall opened to receive incoming connections. A process monitor such as monit should be [&hellip;]<\/p>\n","protected":false},"author":1235,"featured_media":0,"parent":8462,"menu_order":7,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"class_list":["post-9550","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/9550","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/users\/1235"}],"replies":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/comments?post=9550"}],"version-history":[{"count":103,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/9550\/revisions"}],"predecessor-version":[{"id":33558,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/9550\/revisions\/33558"}],"up":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/8462"}],"wp:attachment":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/media?parent=9550"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}