@@ -29,7 +29,6 @@ them apart:
29
29
30
30
1 . When logging in via the serial port behind the Multitech logo cover, they
31
31
display the type of box they are.
32
-
33
32
2 . The AEP model ships with the default login/password as admin/admin. The
34
33
mLinux version uses root/root.
35
34
@@ -46,15 +45,15 @@ Before continuing, you'll want to obtain the IP address of the Conduit. This ca
46
45
be done using a serial connection from a computer using a USB-to-microUSB cable,
47
46
connecting to the plug behind the Multitech logo placard. Plug the device into
48
47
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
50
49
program. Once logged in, issue the command "ifconfig" to get the IP address of
51
50
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
53
52
` /etc/network/interfaces ` , change the line that says, ` iface eth0 inet static ` to
54
53
` iface eth0 inet dhcp ` , and comment out the lines specifying the IP Address and
55
54
netmask by adding a ` # ` at the beginning of each line:
56
55
57
- ``` text
56
+ ```
58
57
# address 192.168.2.1
59
58
# netmask 255.255.255.0
60
59
```
@@ -77,22 +76,41 @@ AEP model into a mLinux model. In both the AEP migrate and mLinux upgrade you
77
76
can use the ** Using Auto-Flash During Reboot** steps. ** Again, make sure to
78
77
use the ` mlinux-base*.jffs2 ` image!**
79
78
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
+
80
98
### Setting up the LoRa Gateway Bridge
81
99
82
100
1 . Log in using SSH or use the USB to serial interface.
83
101
84
102
2 . Download the latest ` lora-gateway-bridge ` ` .ipk ` package from:
85
103
[ 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
89
107
```
90
108
91
109
3 . Now this ` .ipk ` package is stored on the Conduit, you can install it
92
110
using the ` opkg ` package-manager utility. Example (assuming the same
93
111
` .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
96
114
```
97
115
98
116
4 . Update the MQTT connection details so that LoRa Gateway Bridge is able to
@@ -101,9 +119,9 @@ use the `mlinux-base*.jffs2` image!**
101
119
102
120
5 . Start LoRa Gateway Bridge and ensure it will be started on boot.
103
121
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
107
125
```
108
126
109
127
6 . Be sure to add the gateway to the lora-app-server.
@@ -140,25 +158,32 @@ card which uses the SPI interface.
140
158
2 . Download the latest ` lora-packet-forwarder ` ` *.ipk ` package
141
159
from [ https://dl.loraserver.io/multitech/conduit/ ] ( https://dl.loraserver.io/multitech/conduit/ ) .
142
160
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
145
163
```
146
164
147
165
3 . Now this ` .ipk ` package is stored on the Conduit, you can install it
148
166
using the ` opkg ` package-manager utility. Example (assuming the same
149
167
` .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
152
170
```
153
171
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
155
180
` -ap1 ` or ` -ap2 ` suffix refers to the slot in which your ` MTAC-LORA-H ` card
156
181
is present. In case you have two ` MTAC-LORA-H ` cards, this allows you to start
157
182
two packet-forwarder instances with each using their own configuration.
158
183
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
162
187
```
163
188
164
189
** Note:** on the first start of the packet-forwarder it will detect for you
@@ -175,30 +200,37 @@ card which uses the SPI interface.
175
200
176
201
#### mLinux with MTAC-LORA-915 or MTAC-LORA-868
177
202
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
179
204
card which uses the FTDI interface.
180
205
181
206
1 . Log in using SSH or use the USB to serial interface.
182
207
183
208
2 . Download the latest ` lora-packet-forwarder-usb ` ` *.ipk ` package
184
209
from [ https://dl.loraserver.io/multitech/conduit/ ] ( https://dl.loraserver.io/multitech/conduit/ ) .
185
210
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
188
213
```
189
214
190
215
3 . Now this ` .ipk ` package is stored on the Conduit, you can install it
191
216
using the ` opkg ` package-manager utility. Example (assuming the same
192
217
` .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
195
220
```
196
221
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.
198
230
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
202
234
```
203
235
204
236
** 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
282
314
Multitech packet forwarding code . On these systems, we need to swap out the
283
315
application that runs for packet formwarding . The following should resolve the issue:
284
316
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
290
321
` ` `
291
322
292
323
Also see [debugging]({{< ref " install/debug.md" > }}).
0 commit comments