Skip to content

Commit 3e7dc81

Browse files
committed
Update Conduit documentation.
1 parent 8955290 commit 3e7dc81

File tree

1 file changed

+65
-34
lines changed

1 file changed

+65
-34
lines changed

docs/content/install/gateway/multitech.md

Lines changed: 65 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ them apart:
2929

3030
1. When logging in via the serial port behind the Multitech logo cover, they
3131
display the type of box they are.
32-
3332
2. The AEP model ships with the default login/password as admin/admin. The
3433
mLinux version uses root/root.
3534

@@ -46,15 +45,15 @@ Before continuing, you'll want to obtain the IP address of the Conduit. This ca
4645
be done using a serial connection from a computer using a USB-to-microUSB cable,
4746
connecting to the plug behind the Multitech logo placard. Plug the device into
4847
your network, provide power, and let it boot until the "STATUS" light is
49-
blinking in aheartbeat pattern. Connect to the device via a serial terminal
48+
blinking in a heartbeat pattern. Connect to the device via a serial terminal
5049
program. Once logged in, issue the command "ifconfig" to get the IP address of
5150
the eth0 connection. Note that if the IP address is `192.168.2.1`, the device is
52-
likely configured to be a DHCP server. In this case, edit the file
51+
likely configured with a static IP. In this case, edit the file
5352
`/etc/network/interfaces`, change the line that says, `iface eth0 inet static` to
5453
`iface eth0 inet dhcp`, and comment out the lines specifying the IP Address and
5554
netmask by adding a `#` at the beginning of each line:
5655

57-
```text
56+
```
5857
# address 192.168.2.1
5958
# netmask 255.255.255.0
6059
```
@@ -77,22 +76,41 @@ AEP model into a mLinux model. In both the AEP migrate and mLinux upgrade you
7776
can use the **Using Auto-Flash During Reboot** steps. **Again, make sure to
7877
use the `mlinux-base*.jffs2` image!**
7978

79+
**Important:** after flashing the device, you need to update the `opkg` cache
80+
which can be done with the command: `opkg update`.
81+
82+
Example commands for upgrading / migrating:
83+
84+
```bash
85+
$ mkdir /var/volatile/flash-upgrade
86+
$ cd /var/volatile/flash-upgrade
87+
$ wget -O uImage.bin http://www.multitech.net/mlinux/images/mtcdt/3.3.24/uImage--3.12.27-r15.2-mtcdt-20180327203057.bin
88+
$ wget -O rootfs.jffs2 http://www.multitech.net/mlinux/images/mtcdt/3.3.24/mlinux-base-image-mtcdt-20180327203057.rootfs.jffs2
89+
$ reboot
90+
```
91+
92+
Then after the reboot update the `opkg` cache:
93+
94+
```bash
95+
$ opkg update
96+
```
97+
8098
### Setting up the LoRa Gateway Bridge
8199

82100
1. Log in using SSH or use the USB to serial interface.
83101

84102
2. Download the latest `lora-gateway-bridge` `.ipk` package from:
85103
[https://dl.loraserver.io/multitech/conduit/](https://dl.loraserver.io/multitech/conduit/).
86-
Example (assuming you want to install `lora-gateway-bridge_2.3.2-r1.0_arm926ejste.ipk`):
87-
```text
88-
admin@mtcdt:~# wget https://dl.loraserver.io/multitech/conduit/lora-gateway-bridge_2.3.2-r1.0_arm926ejste.ipk
104+
Example (assuming you want to install `lora-gateway-bridge_2.4.0-r1.0_arm926ejste.ipk`):
105+
```bash
106+
$ wget https://dl.loraserver.io/multitech/conduit/lora-gateway-bridge_2.4.0-r1.0_arm926ejste.ipk
89107
```
90108

91109
3. Now this `.ipk` package is stored on the Conduit, you can install it
92110
using the `opkg` package-manager utility. Example (assuming the same
93111
`.ipk` file):
94-
```text
95-
admin@mtcdt:~# opkg install lora-gateway-bridge_2.3.2-r1.0_arm926ejste.ipk
112+
```bash
113+
$ opkg install lora-gateway-bridge_2.4.0-r1.0_arm926ejste.ipk
96114
```
97115

98116
4. Update the MQTT connection details so that LoRa Gateway Bridge is able to
@@ -101,9 +119,9 @@ use the `mlinux-base*.jffs2` image!**
101119

102120
5. Start LoRa Gateway Bridge and ensure it will be started on boot.
103121
Example:
104-
```text
105-
admin@mtcdt:~# /etc/init.d/lora-gateway-bridge start
106-
admin@mtcdt:~# update-rc.d lora-gateway-bridge defaults
122+
```bash
123+
$ /etc/init.d/lora-gateway-bridge start
124+
$ update-rc.d lora-gateway-bridge defaults
107125
```
108126

109127
6. Be sure to add the gateway to the lora-app-server.
@@ -140,25 +158,32 @@ card which uses the SPI interface.
140158
2. Download the latest `lora-packet-forwarder` `*.ipk` package
141159
from [https://dl.loraserver.io/multitech/conduit/](https://dl.loraserver.io/multitech/conduit/).
142160
Example:
143-
```text
144-
root@mtcdt:~# wget https://dl.loraserver.io/multitech/conduit/lora-packet-forwarder_4.0.1-r5.0_mtcdt.ipk
161+
```bash
162+
$ wget https://dl.loraserver.io/multitech/conduit/lora-packet-forwarder_4.0.1-r5.0_mtcdt.ipk
145163
```
146164

147165
3. Now this `.ipk` package is stored on the Conduit, you can install it
148166
using the `opkg` package-manager utility. Example (assuming the same
149167
`.ipk` file):
150-
```text
151-
root@mtcdt:~# opkg install lora-packet-forwarder_4.0.1-r5.0_mtcdt.ipk
168+
```bash
169+
$ opkg install lora-packet-forwarder_4.0.1-r5.0_mtcdt.ipk
152170
```
153171

154-
4. Start the packet-forwarder and enable it to start on boot. Note that the
172+
4. As the package has the same name as the default package provided by Multitech
173+
you need to 'flag' the package with the status `hold` to make sure an
174+
`opkg upgrade` does not overwrite it:
175+
```bash
176+
$ opkg flag hold lora-packet-forwarder
177+
```
178+
179+
5. Start the packet-forwarder and enable it to start on boot. Note that the
155180
`-ap1` or `-ap2` suffix refers to the slot in which your `MTAC-LORA-H` card
156181
is present. In case you have two `MTAC-LORA-H` cards, this allows you to start
157182
two packet-forwarder instances with each using their own configuration.
158183
Example:
159-
```text
160-
root@mtcdt:~# /etc/init.d/lora-packet-forwarder-ap1 start
161-
root@mtcdt:~# update-rc.d lora-packet-forwarder-ap1 defaults
184+
```bash
185+
$ /etc/init.d/lora-packet-forwarder-ap1 start
186+
$ update-rc.d lora-packet-forwarder-ap1 defaults
162187
```
163188

164189
**Note:** on the first start of the packet-forwarder it will detect for you
@@ -175,30 +200,37 @@ card which uses the SPI interface.
175200

176201
#### mLinux with MTAC-LORA-915 or MTAC-LORA-868
177202

178-
**Important:** Follow these steps only when you have a `MTAC-LORA` (v1.0)
203+
**Important:** Follow these steps only when you have a `MTAC-LORA` (v1.0
179204
card which uses the FTDI interface.
180205

181206
1. Log in using SSH or use the USB to serial interface.
182207

183208
2. Download the latest `lora-packet-forwarder-usb` `*.ipk` package
184209
from [https://dl.loraserver.io/multitech/conduit/](https://dl.loraserver.io/multitech/conduit/).
185210
Example:
186-
```text
187-
root@mtcdt:~# wget https://dl.loraserver.io/multitech/conduit/lora-packet-forwarder-usb_1.4.1-r2.0_arm926ejste.ipk
211+
```bash
212+
$ wget https://dl.loraserver.io/multitech/conduit/lora-packet-forwarder-usb_1.4.1-r2.0_arm926ejste.ipk
188213
```
189214

190215
3. Now this `.ipk` package is stored on the Conduit, you can install it
191216
using the `opkg` package-manager utility. Example (assuming the same
192217
`.ipk` file):
193-
```text
194-
root@mtcdt:~# opkg install lora-packet-forwarder-usb_1.4.1-r2.0_arm926ejste.ipk
218+
```bash
219+
$ opkg install lora-packet-forwarder-usb_1.4.1-r2.0_arm926ejste.ipk
195220
```
196221

197-
4. Start the packet-forwarder and enable it to start on boot.
222+
4. As the package has the same name as the default package provided by Multitech
223+
you need to 'flag' the package with the status `hold` to make sure an
224+
`opkg upgrade` does not overwrite it:
225+
```bash
226+
$ opkg flag hold lora-packet-forwarder-usb
227+
```
228+
229+
5. Start the packet-forwarder and enable it to start on boot.
198230
Example:
199-
```text
200-
root@mtcdt:~# /etc/init.d/lora-packet-forwarder-usb start
201-
root@mtcdt:~# update-rc.d lora-packet-forwarder-usb defaults
231+
```bash
232+
$ /etc/init.d/lora-packet-forwarder-usb start
233+
$ update-rc.d lora-packet-forwarder-usb defaults
202234
```
203235

204236
**Note:** on the first start of the packet-forwarder it will detect for you
@@ -282,11 +314,10 @@ appearing in LoRa App Server, you may be experiencing a known bug with the
282314
Multitech packet forwarding code. On these systems, we need to swap out the
283315
application that runs for packet formwarding. The following should resolve the issue:
284316

285-
```
286-
$ cd /opt/lora
287-
$ mv basic_pkt_fwd-usb basic_pkt_fwd-usb.orig
288-
$ ln -s gps_pkt_fwd-usb basic_pkt_fwd-usb
289-
317+
```bash
318+
$ cd /opt/lora
319+
$ mv basic_pkt_fwd-usb basic_pkt_fwd-usb.orig
320+
$ ln -s gps_pkt_fwd-usb basic_pkt_fwd-usb
290321
```
291322

292323
Also see [debugging]({{<ref "install/debug.md">}}).

0 commit comments

Comments
 (0)