Show last authors
1 (% style="text-align:center" %)
2 (((
3 (% style="text-align:center" %)
4 [[image:image-20231127105359-1.png||height="453" width="453"]]
5
6
7 (% style="display:none" %) (%%)
8
9
10
11 )))
12
13 **Table of Contents:**
14
15 {{toc/}}
16
17
18
19
20
21
22 = 1. Introduction =
23
24 == 1.1 What is MS48-LR ==
25
26
27 (((
28 (((
29 The MS48-LR is an (% style="color:blue" %)**open-source LoRaWAN To Modbus Gateway**(%%). It lets you bridge LoRa wireless network to an IP network via (% style="color:blue" %)**WiFi , Ethernet or Cellular Network**(%%) (via Optional 4G module). The LoRa wireless allows users to send data and reach extremely long ranges at low data rates.
30 )))
31
32 (((
33 The MS48-LR is fully compatible with LoRaWAN protocol. MS48-LR includes a (% style="color:blue" %)**built-in LoRaWAN Server and IoT server**(%%), User can connect virous LoRaWAN devices to MS48-LR, and use PLC to access these devices via Modbus network.
34 )))
35
36 (((
37 Different countries use different LoRaWAN frequency bands. MS48-LR has these bands pre-configured. Users can also customize the frequency bands to use in their own LoRa network.
38 )))
39
40 (((
41 MS48-LR supports (% style="color:blue" %)**remote management**(%%). System Integrator can easy to remote monitor the gateway and maintain it.
42
43
44 == 1.2 How does it work? ==
45
46
47 The MS48-LR can run as a Modbus RS485-RTU slave, which writes the data from the LoRaWAN sensor uplink data into the registers of the 03 function code
48
49 [[image:image-20231111103753-1.png||height="585" width="1031"]]
50
51
52 )))
53
54 == 1.3 Specifications ==
55
56
57 (% style="color:#037691" %)**Hardware System:**
58
59 * CPU: Quad-core Cortex-A7 1.2Ghz
60 * RAM: 512MB
61 * eMMC: 4GB
62
63 (% style="color:#037691" %)**Interface:**
64
65 * 10M/100M RJ45 Ports x 1
66 * Multi-Channel LoRaWAN Wireless
67 * WiFi 802.11 b/g/n
68 * USB 2.0 host connector x 1
69 * Mini-PCI E connector x 1
70 * RS485 Interface x 1
71 * RS232 Interface x 1
72
73 (% style="color:#037691" %)**LoRa Spec:**
74
75 * Up to -140 dBm sensitivity with SX1250 Tx/Rx front-end
76 * 70 dB CW interferer rejection at 1 MHz offset
77 * Able to operate with negative SNR, CCR up to 9dB
78 * 8 x 8 channels LoRa packet detectors,8 x SF5-SF12 LoRa demodulators,8 x SF5-SF10 LoRa demodulators,125/250/500 kHz LoRa demodulator and 1 x (G)FSK demodulator
79 * Dual digital TX & RX radio front-end interfaces
80 * 10 programmable parallel demodulation paths
81 * Dynamic data-rate (DDR) adaptation
82 * True antenna diversity or simultaneous dual-band operation
83
84 (% style="color:#037691" %)**Cellular 4G LTE (optional):**
85
86 * Quectel: [[**EC25 LTE module**>>url:https://www.quectel.com/product/ec25minipcie.htm]]
87 * Standard Size SIM Slot
88 * 2 x 4G Sticker Antenna.
89 * Up to 150Mbps downlink and 50Mbps uplink data rates
90 * Worldwide LTE,UMTS/HSPA+ and GSM/GPRS/EDGE coverage
91 * MIMO technology meets demands for data rate and link reliability in modem wireless communication systems
92
93 (% style="color:#037691" %)**Operating Condition:**
94
95 * Work Temperature: -20 ~~ 70°C
96 * Storage Temperature: -20 ~~ 70°C
97 * Power Input: 12V, 2A, DC
98
99 == 1.4 Features ==
100
101
102 * Open Source Debian system
103 * Managed by Web GUI, SSH via WAN or WiFi
104 * Remote Management
105 * Auto-provisioning for batch deployment and management
106 * LoRaWAN Gateway
107 * 10 programmable parallel demodulation paths
108 * Pre-configured to support different LoRaWAN regional settings.
109 * Allow customizing LoRaWAN regional parameters.
110 * Different kinds of LoRaWAN Connections such as
111 ** Semtech UDP Packet Forwarder
112 ** LoRaWAN Basic Station
113 ** ChirpStack-Gateway-Bridge (MQTT)
114 * Built-in (% style="color:#037691" %)**ChirpStack**(%%) local LoRaWAN server
115 * Built-in  (% style="color:#037691" %)**Node-Red**(%%) local Application server
116 * Act as Modbus Slave mode
117
118 == 1.5 LED Indicators ==
119
120
121 MS48-LR has totally four LEDs, They are:
122
123 (% style="color:blue" %)**➢ LED 1 (ETH LED):**(%%) This GREEN LED will blink GREEN when the ETH port is connecting
124
125 (% style="color:blue" %)**➢ LED 2 (RET LED):**(%%) This GREEN LED will show different colors in different states:
126
127 ✓  **SOLID GREEN:** When the Long press 4-5s Toggle button,the device will reload the Network and Initialize wifi configuration,This GREEN LED will SOLID GREEN Until the reload is finished.
128
129 ✓  **BLINKING GREEN:** When the Long press 10s Toggle button,the device will restore the factory settings,This GREEN LED will BLINKIND GREEN Until the restore is finished.
130
131 (% style="color:blue" %)**➢ LED 3:**(%%) This GREEN LED is undefined
132
133 (% style="color:blue" %)**➢ LED 4 (Power LED):**(%%) This GREEN LED will be solid if the device is properly powered
134
135 (% style="color:blue" %)**➢ LED 5 (WIFI LED): **(%%)This LED shows the WIFI interface connection status.
136
137 ✓  **SOLID GREEN:** The device enables the WiFi WAN Client and connects to the WiFi successfully.
138
139 ✓  **BLINKING GREEN:** The device's WiFi WAN Client connection is unsuccessful.
140
141 ✓**  OFF:** The device WiFi WAN Client is not enabled.
142
143 (% style="color:blue" %)**➢ LED 6 (SYS LED):**(%%) This GREEN LED will show different colors in different states:
144
145 ✓  **SOLID GREEN:** The device is alive with a LoRaWAN server connection.
146
147 ✓  **BLINKING GREEN:** a)  no LoRaWAN Connection. or b) Device is in booting stage, in this stage, it will BLINKING GREEN for several seconds and then with BLINKING GREEN together
148
149 ✓**  OFF:** Device doesn't have an Internet connection.
150
151
152 == 1.6 RS485 & RS232 interface ==
153
154 [[image:image-20240108150505-1.png||height="576" width="678"]]
155
156
157 == 1.7 Button Instruction ==
158
159
160 The MS48-LR has two black buttons, which are:
161
162
163 **RST: **Press and release, and the gateway will restart
164
165 **LED status: ** All LEDs are off except for the LED 4 (Power LED).
166
167
168 **Toggle:**
169
170 (% style="color:blue" %)**//➢ //Long press 4-5s :                     **(%%)the gateway will reload the Network and Initialize wifi configuration
171
172 // // **LED status: ** LED 2 (RET LED) will SOLID GREEN Until the reload is finished.
173
174 (% style="color:blue" %)**➢ Long press more than 10s:    **(%%)the gateway will restore the factory settings.
175
176 **LED status: ** LED 2 (RET LED) will BLINKIND GREEN Until the restore is finished.
177
178
179
180 == 1.8 Installation ==
181
182
183 [[image:image-20240122115220-1.png]]
184
185
186 = 2. Quick Start =
187
188
189 The MS48-LR supports network access via Ethernet or Wi-Fi connection and runs without a network.
190
191 In most cases, the first thing you need to do is make the MS48-LR accessible to the network.
192
193
194 == 2.1 Access and Configure MS48-LR ==
195
196 === 2.1.1 Find IP address of MS48-LR ===
197
198
199 ==== (% style="color:blue" %)**Method 1**(%%):  Connect via MS48-LR WiFi ====
200
201
202 At the first boot of MS48-LR, it will auto generate a WiFi network called (% style="color:green" %)**//dragino-xxxxxx //**(%%)with password:
203
204 (% style="background-color:yellow" %)**dragino+dragino**
205
206 User can use a PC to connect to this WiFi network. The PC will get an IP address 10.130.1.xxx and the MS48-LR has the default IP (% style="color:green" %)**10.130.1.1**
207
208
209
210 [[image:image-20240119093621-1.png||height="365" width="850"]]
211
212 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20All%20Gateway%20models/HP0C/WebHome/image-20230527085250-2.png?width=284&height=495&rev=1.1||alt="image-20230527085250-2.png"]]
213
214
215 ==== (% style="color:blue" %)**Method 2**(%%):  Connect via Ethernet with DHCP IP from the router ====
216
217
218 (((
219 Connect the MS48-LR Ethernet port to your router and MS48-LR can obtain an IP address from your router. In the router's management portal, you should be able to find what IP address the router has assigned to the MS48-LR.
220 )))
221
222 (((
223 You can also use this IP to connect.
224 )))
225
226
227 [[image:image-20240119093637-2.png||height="372" width="1141"]]
228
229
230 ==== (% style="color:blue" %)**Method 3**(%%):  Connect via MS48-LR Fallback IP ====
231
232 [[image:image-20240119093652-3.png]]
233
234
235
236 (% style="color:blue" %)**Steps to connect via fallback IP:**
237
238 ~1. Connect the PC's Ethernet port to MS48-LR's WAN port
239
240 2. Configure PC's Ethernet port has IP: 172.31.255.253 and Netmask: 255.255.255.252
241
242
243 **Settings ~-~-> Network & Internet ~-~-> Ethernet ~-~-> Change advanced sharing options ~-~-> Double-click"Ethernet" ~-~-> Internet Protocol Version 4 (TCP/IPv4)**
244
245
246 As in the below photo:
247
248
249 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20All%20Gateway%20models/HP0C/WebHome/image-20230413172038-1.png?width=1243&height=732&rev=1.1||alt="image-20230413172038-1.png"]]
250
251 Configure computer Ethernet port steps video: **[[attach:fallback ip.mp4||target="_blank"]]**
252
253 If you still can't access the MS48-LR fallback ip, follow this connection to debug : **[[Trouble Shooting>>http://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20All%20Gateway%20models/HP0C/#H9.3A0FallbackIPdoesnotwork2Chowcanuserscheck]]**
254
255
256 3. In the PC, use IP address 172.31.255.254 to access the MS48-LR via Web or Console.
257
258 [[image:image-20240119093803-4.png||height="664" width="1217"]]
259
260
261 ==== (% style="color:blue" %)**Method 4**(%%):  Connect via WiFi with DHCP IP from the router ====
262
263
264 [[image:image-20240119093834-5.png||height="336" width="1020"]]
265
266 Fill in the WiFi information by checking the box and clicking (% style="color:red" %)**Save&Apply**
267
268 [[image:image-20240119093902-6.png||height="382" width="1082"]]
269
270
271 **Wi-Fi configuration successful**
272
273 [[image:image-20240119093944-7.png||height="562" width="1093"]]
274
275
276 === 2.1.2 Access Configure Web UI ===
277
278
279 **Web Interface**
280
281 Open a browser on the PC and type the MS48-LR ip address (depends on your connect method)
282
283 [[**//http:~~/~~/IP_ADDRESS //**>>url:http://ip_address/]] or //**[[http:~~/~~/172.31.255.254>>url:http://172.31.255.254(/]]**//(Fallback IP)
284
285 You will see the login interface of MS48-LR as shown below.
286
287 The account details for Web Login are:
288
289 **User Name: root**
290
291 **Password:   dragino**
292
293 [[image:image-20240320134426-1.png]]
294
295
296 == 2.2  Typical Network Setup ==
297
298 === 2.2.1  Overview ===
299
300
301 MS48-LR supports flexible network set up for different environment. This section describes the typical network topology can be set in MS48-LR. The typical network set up includes:
302
303 * **WAN Port Internet Mode**
304
305 * **WiFi Client Mode**
306
307 * **Cellular Mode**
308
309 === 2.2.2  Use the WAN port to access the Internet ===
310
311
312 By default, the MS48-LR is set to use the WAN port to connect to an upstream network. When you connect the MS48-LR's WAN port to an upstream router, MS48-LR will get an IP address from the router and have Internet access via the upstream router. The network status can be checked on the (% style="color:blue" %)**home page**:
313
314 [[image:image-20240108114745-4.png||height="471" width="912"]]
315
316
317 === 2.2.3  Access the Internet as a WiFi Client ===
318
319
320 In the WiFi Client Mode, MS48-LR acts as a WiFi client and gets DHCP from an upstream router via WiFi.
321
322 The settings for WiFi Client is under page (% style="color:blue" %)**Network ~-~-> Wi-Fi**
323
324 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20All%20Gateway%20models/HP0C/WebHome/image-20230411095739-1.png?width=691&height=264&rev=1.1||alt="image-20230411095739-1.png"]]
325
326
327 In the WiFi Survey Choose the WiFi AP, and input the Passphrase then click(% style="color:blue" %)** Save & Apply**(%%) to connect.
328
329 [[image:image-20240108114602-3.png||height="477" width="925"]]
330
331
332 === 2.2.4  Use built-in 4G modem for internet access ===
333
334
335 Users can see whether MS48-LR has EC25 on the label of the gateway to determine whether there is 3G/4G Cellular modem.
336
337 If the MS48-LR has 3G/4G Cellular modem, user can use it as main internet connection or back up.
338
339 First, install the Micro SIM card as below direction
340
341 Second, Power off/ ON MS48-LR to let it detect the SIM card.
342
343 [[image:image-20240320134750-2.png]]
344
345
346 The set up page is (% style="color:blue" %)**Network ~-~-> Cellular**
347
348 While use the cellular as Backup WAN, device will use Cellular for internet connection while WAN port or WiFi is not valid and switch back to WAN port or WiFi after they recover.
349
350 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20All%20Gateway%20models/LPS8N%20-%20LoRaWAN%20Gateway%20User%20Manual/WebHome/1657090932270-444.png?rev=1.1||alt="1657090932270-444.png"]]
351
352
353 === 2.2.5  Check Internet connection ===
354
355
356 In the (% style="color:blue" %)**Home**(%%) page, we can check the Internet connection.
357
358 * GREEN Tick [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20All%20Gateway%20models/LPS8N%20-%20LoRaWAN%20Gateway%20User%20Manual/WebHome/1652436675869-206.png?width=15&height=14&rev=1.1||alt="1652436675869-206.png"]] : This interface has Internet connection.
359 * Yellow  Tick [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20All%20Gateway%20models/LPS8N%20-%20LoRaWAN%20Gateway%20User%20Manual/WebHome/1652436705761-420.png?width=15&height=15&rev=1.1||alt="1652436705761-420.png"]] : This interface has IP address but don't use it for internet connection.
360 * RED Cross  [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20All%20Gateway%20models/LPS8N%20-%20LoRaWAN%20Gateway%20User%20Manual/WebHome/1652436787176-950.png?width=15&height=14&rev=1.1||alt="1652436787176-950.png"]] : This interface doesn't connected or no internet.
361
362 (% class="wikigeneratedid" %)
363 [[image:image-20240108115101-6.png||height="467" width="905"]]
364
365
366 == 2.3 Bridge LoRaWAN network to Modbus network ==
367
368
369 === **Step 1: Configure the LoRa Radio to your area Frequency Plan** ===
370
371
372 The Frequency Plan has to be set the same as the Sensor node Frequency Plan.
373
374 [[image:image-20231108164616-1.png||height="353" width="765"]]
375
376
377 === **Step 2: Copy the unique Gateway EUI & Configure the LoRaWAN Server address** ===
378
379
380 Every MS48-LR has a unique gateway EUI. The ID can be found on the LoRaWAN Semtech page:
381
382 [[image:image-20231110160659-1.png||height="804" width="1004"]]
383
384
385 === **Step 3: Enable the Built-in LoRaWAN Network Server** ===
386
387
388 [[image:image-20231110163133-2.png||height="522" width="1015"]]
389
390
391 === **Step 4: Logging to the Built-in LoRaWAN Network Server** ===
392
393
394 [[image:image-20231110170323-4.png||height="526" width="1006"]]
395
396
397 === **Step 5: Register the gateway to the built-in ChirpStack** ===
398
399
400 Copy Gateway EUI from the previous step to the following interface:
401
402 [[image:image-20231110170802-5.png||height="675" width="1011"]]
403
404
405 === **Step 6: Register the Sensor-node to the built-in ChirpStack** ===
406
407
408 The gateway is already set up to connect to the built-in ChirpStack network, so we now need to configure the built-in ChirpStack.
409
410 Create a device in ChirpStack with the OTAA keys from LHT65N.
411
412
413 ==== **1). Add Device Profiles** ====
414
415 [[image:image-20231110172143-6.png||height="641" width="1017"]]
416
417
418 ==== **2.) Add End Node Device** ====
419
420
421 **Create an Application**
422
423 [[image:image-20231110172604-8.png]]
424
425
426 Add a device for the sensor node
427
428 [[image:image-20231109092517-2.png||height="516" width="1000"]]
429
430
431 Enter Device EUI, Join EUI(APP EUI)and APPKEY of the node Device, and select the Device profile added in the previous step
432
433 [[image:image-20231110173714-9.png||height="519" width="1002"]]
434
435
436 [[image:image-20231110175007-11.png||height="660" width="1004"]]
437
438
439 === **Step 7: Configure Modbus RTU/TCP Slave** ===
440
441
442 The gateway can as a Modbus RTU slave to run, the user can set a range of the register to write a sensor node uplink data.
443
444
445 For example, there is a sensor node EUI is 70b3d57ed0051e22, the register start is 0xABCD and the register length is 14, which means the uplink data will be written to the register starting at 0xABCD register and the maximum write length not to exceed 14 registers.
446
447 So the sensor node 70b3d57ed0051e22 uplink data will be written to the 0xABCD - 0xABE1 register.
448
449 (% style="color:red" %)**Note: Since the length of the payload is the same for different sensor nodes if The length of the data is greater than the configuration length, the data will be replaced with FFFF.**
450
451 **Slave Setting:**
452
453 Slave Mode  ~-~--> Support both RTU and TCP mode
454
455 Enable Modbus Slave  ~-~--> Enable Slave
456
457 Slave Address/Port  ~-~--> Set the slave address/port
458
459 Show Sensor History  ~-~--> See the sensor data log
460
461
462 **Sensor Settings:**
463
464 Device EUI  ~-~--> Sensor node's EUI
465
466 Register Start  ~-~-->  Setting the start register address to write the sensor node's data
467
468 Register Length  ~-~-->  The maximum write length with register
469
470 (% style="color:red" %)**Note: Only 1 sensor can be written in the range set by the registers**
471
472
473 ==== **1) RTU Mode**: ====
474
475 (% class="wikigeneratedid" id="H" %)
476 [[image:image-20240112143033-1.png||height="755" width="1318"]]
477
478
479 After the sensor node is active at the built-in server Chirpstack, the user can add it to this page and enable the Modbus RS485-RTU Slave.
480
481 Then MS48-LR will write the uplink data to the 03 code register and record the uplink data.
482
483
484 **PLC read the MS48-LR register**
485
486 **Settings: **
487
488 **Function  : 03 code**
489
490 **Bit rate  :  9600**
491
492 **Parity bit : none**
493
494 **Stop bit  : 1**
495
496 **Response Timeout :  Greater than 3000ms**
497
498
499 ==== (% style="color:inherit; font-family:inherit; font-size:20px" %)**2) TCP Mode:**(%%) ====
500
501 (% class="wikigeneratedid" id="H-1" %)
502 [[image:image-20240112143439-2.png||height="604" width="1065"]]
503
504
505 **PLC read the MS48-LR register**
506
507 **Settings: **
508
509 **Function  :  03 code**
510
511 **IP Address  :  Gateway IP Address**
512
513 **Server Port :  Slave Port**
514
515 **Connect Timeout :  Greater than 3000ms**
516
517
518 ==== **3) PLC(Modbus server/master) data show:** ====
519
520 [[image:image-20231111105300-3.png]]
521
522
523 **History Data:**
524
525 **Click the Show Sensor History will launch to this page**
526
527 [[image:image-20231111105548-4.png||height="763" width="1054"]]
528
529
530 === **Step 8: Configure Sensor decode to Built-in Chirpstack** ===
531
532
533 ==== **1). Add Sensor's decode to Chirpstack** ====
534
535 Users can find the ChirpStack v4 decoder code for the Dragino End node in this link:
536
537 [[https:~~/~~/github.com/dragino/dragino-end-node-decoder>>url:https://github.com/dragino/dragino-end-node-decoder]]
538
539 The following example is to add the LHT65N decoder:
540
541 [[image:image-20240319145115-3.png||height="815" width="1004"]]
542
543 [[image:image-20240319145749-4.png||height="758" width="1005"]]
544
545
546 ==== **2). Check the decode on ChiprStack** ====
547
548 [[image:image-20240319145903-5.png||height="705" width="1020"]]
549
550
551 === **Step 9. Configure Modbus RTU/TCP Slave Sensor Decode** ===
552
553
554 (% class="MsoNormal" %)
555 (% lang="EN-US" style="background-attachment:initial; background-clip:initial; background-image:initial; background-origin:initial; background-position:initial; background-repeat:initial; background-size:initial" %)For example, there is a sensor node EUI is(%%) a840411be186e411, the register start is 0x0000 and the register length is 14, which means the uplink data will be written to the register starting at 0x0000 register and the maximum write length not to exceed 14 registers.
556
557 (% class="MsoNormal" %)
558 (% lang="EN-US" style="background-attachment:initial; background-clip:initial; background-image:initial; background-origin:initial; background-position:initial; background-repeat:initial; background-size:initial" %)And Decode Data TempC_SHT, the register start address is 0x000F and the register length is 2,(%%) which means the Decode Data TempC_(% lang="EN-US" style="background-attachment:initial; background-clip:initial; background-image:initial; background-origin:initial; background-position:initial; background-repeat:initial; background-size:initial" %)SHT(%%) will be written to the register starting at 0x000F register and the maximum write length not to exceed 2 registers.
559
560 (((
561
562 )))
563
564 (% class="MsoNormal" %)
565 (% lang="EN-US" style="background-attachment:initial; background-clip:initial; background-image:initial; background-origin:initial; background-position:initial; background-repeat:initial; background-size:initial" %)So the sensor node a840411be186e411 uplink data will be written to the 0x0000 - 0x000E register, and the Decode Data TempC_SHT will be written to the 0x000F - 0x0010 register.
566
567 (% class="MsoNormal" %)
568 (% style="color:red" %)**Note: Since the length of the payload is the same for different sensor nodes if The length of the data is greater than the configuration length, the data will be replaced with FFFF.**
569
570 (((
571
572 )))
573
574 (% style="margin: 0cm 0cm 7.5pt; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;" %)
575 (% lang="EN-US" style="font-size:10.5pt" %)**Decode Data:**
576
577 (% style="margin: 0cm 0cm 7.5pt; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;" %)
578 (% lang="EN-US" style="font-size:10.5pt" %)Device Data  ~-~-->  Sensor decoder data
579
580 (% style="margin: 0cm 0cm 7.5pt; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;" %)
581 (% lang="EN-US" style="font-size:10.5pt" %)Register Start  ~-~-->  Setting the start register address to write the sensor node's decoder data
582
583 (% style="margin: 0cm 0cm 7.5pt; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;" %)
584 (% lang="EN-US" style="font-size:10.5pt" %)Register Length  ~-~-->  The maximum write length with register
585
586 (((
587
588 )))
589
590 (% style="margin: 0cm 0cm 7.5pt; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;" %)
591 (% lang="EN-US" style="color:red; font-size:10.5pt" %)**Note: Only 1 Data can be written in the range set by the registers**
592
593 (% style="margin: 0cm 0cm 7.5pt; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;" %)
594 [[image:1710569938804-766.png||height="656" width="917"]]
595
596 (((
597
598 )))
599
600 (% style="margin: 0cm 0cm 7.5pt; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;" %)
601 ==== **PLC(Modbus server/master) data show:** ====
602
603
604 (% style="color:red" %)**Note: Since the decoded data is of floating point type, it is converted to an integer before being written to the Mobdbus' registers.**
605
606 For example:  23.20(real data) ~-~--> 2320(register show).
607
608
609 [[image:1710570017983-979.png||height="694" width="531"]]
610
611
612 = 3. Web Configure Pages =
613
614 == 3.1 Home ==
615
616
617 Shows the system running status:
618
619
620 == 3.2 LoRa Settings ==
621
622 === 3.2.1 LoRa ~-~-> LoRa ===
623
624
625 This page shows the LoRa Radio Settings. There is a set of default frequency bands according to LoRaWAN protocol, and users can customize the band* as well.
626
627 Different MS48-LR hardware versions can support different frequency ranges:
628
629 * **868**: valid frequency: 863Mhz ~~ 870Mhz. for bands EU868, RU864, IN865, or KZ865.
630 * **915**: valid frequency: 902Mhz ~~ 928Mhz. for bands US915, AU915, AS923 or KR920
631
632 After the user choose the frequency plan,  the user can see the actual frequency is used by checking the page **LogRead ~-~-> LoRa Log**
633
634 [[image:image-20231109145418-1.png||height="372" width="761"]]
635
636
637 (% style="color:red" %)//**Note *: See this instruction for how to customize the frequency band:**//(%%)//** __[[How to customized LoRaWAN frequency band - DRAGINO>>url:http://wiki.dragino.com/xwiki/bin/view/Main/How%20to%20customized%20LoRaWAN%20frequency%20band/]]__**//
638
639
640 == 3.3 LoRaWAN Settings ==
641
642 === 3.3.1 LoRaWAN ~-~-> LoRaWAN Semtech UDP ===
643
644
645 This page is for the connection set up to a general LoRaWAN Network server such as [[TTN>>url:http://www.thethingsnetwork.org/]], [[ChirpStack>>url:https://www.chirpstack.io/]], etc.
646
647 [[image:image-20231109145535-2.png||height="577" width="666"]]
648
649
650 === 3.3.2 LoRaWAN ~-~-> LoRaWAN Basic Station ===
651
652
653 This page is for the connection set up to the TTN Basic Station, AWS-IoT, etc.
654
655 [[image:image-20231109145619-3.png||height="438" width="668"]]
656
657 Please see this instruction to know more detail and a demo for how to use of LoRaWAN Basic Station: __[[Use of LoRaWAN Basic Station - DRAGINO>>url:http://wiki.dragino.com/xwiki/bin/view/Main/Use%20of%20LoRaWAN%20Basic%20Station/]]__
658
659
660 == 3.4 Network Settings ==
661
662 === 3.4.1 Network ~-~-> WiFi ===
663
664
665 Users can configure the wifi WAN and enable Wifi Access Point on this interface
666
667 [[image:image-20231109145715-4.png||height="282" width="774"]]
668
669
670 === 3.4.2 Network ~-~-> System Status ===
671
672
673 [[image:image-20231109145758-5.png||height="535" width="772"]]
674
675
676 === 3.4.3 Network ~-~-> Network ===
677
678
679 In the **Network ~-~-> Network** interface, Users can set the Ethernet WAN static ip address.
680
681 [[image:image-20231109145841-6.png||height="248" width="783"]]
682
683
684 === 3.4.4 Network ~-~-> Cellular ===
685
686
687 In the **Network ~-~-> Cellular** interface, (% style="display:none" %) (%%)Users can Enable Cellular WAN and configure Celluar.
688
689 (% style="color:red" %)**Note: APN cannot be empty.**
690
691 [[image:image-20231109145928-7.png||height="361" width="804"]]
692
693
694 After the configuration is complete, return to the Home interface and put the mouse on the Cell icon to check the Cellular state.
695
696
697 == 3.5 System ==
698
699 === 3.5.1 System ~-~-> System Overview ===
700
701
702 Shows the system info:
703
704 [[image:image-20240108114851-5.png||height="575" width="839"]]
705
706
707 === 3.5.2 System ~-~-> System General ===
708
709
710 In the **System-> System General** interface, Users can customize the configuration System Password and set Timezone.
711
712 In addition, Users can customize the FallBack IP address.
713
714 [[image:image-20231109150055-8.png||height="557" width="832"]]
715
716
717 === 3.5.3 System ~-~-> Backup/Restore ===
718
719
720 [[image:image-20231109150130-9.png||height="217" width="830"]]
721
722
723 === 3.5.4 System ~-~-> Remoteit ===
724
725
726 In the **System-> Remoteit** interface, users can configure the gateway to be accessed remotely via Remote.it.
727
728 the users can refer to this link to configure them: **[[Monitor & Remote Access Gateway>>url:http://wiki.dragino.com/xwiki/bin/view/Main/Monitor%20%26%20Remote%20Access%20Gateway/?Remote%20Access#H2.1A0RemoteAccessviaRemote.it.]]**
729
730 [[image:image-20231109150415-10.png||height="424" width="835"]]
731
732
733 === 3.5.5 System ~-~-> Package Management ===
734
735
736 In the **System ~-~-> Package Management** interface, Users can check the current version of Core Packages.
737
738 [[image:image-20231109150446-11.png||height="566" width="840"]]
739
740
741 = 4. Build-in Server =
742
743
744 the default factory version of MS48-LR is installed with the built-in Applicant server: **Node-Red**, LoRaWAN Server: **ChirpStack**.
745
746 (% style="color:red" %)**Note:**
747
748 **Path**: Server ~-~-> Network Server
749
750 Server ~-~-> Application Server
751
752 (% style="color:blue" %)**Troubleshooting:**
753
754 **~ 1. URL does not jump properly**
755
756 For the ChirpStack, you can use the local IP address and the port is **8080** to access it.
757
758 For the Node-Red, you can use the local IP address and the port is **1880** to access it.
759
760
761 == 4.1 LoRaWAN Network Server ~-~- ChirpStack ==
762
763
764 You can access the gateway's built-in LNS server of **ChirpStack **via the URL( __**//http:~/~/<hostname>:8080 or http:~/~/<local-IPV4-address> //**__) in your browser.
765
766 Such as  __**//http:~/~/dragino-54ff12:8080  or http:~/~/<Local-IPV4-Address>//**__
767
768 (% style="color:blue" %)**Login account:**
769
770 **Username : ** **admin**
771
772 **Password: ** ** admin**
773
774 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20All%20Gateway%20models/HP0C/WebHome/image-20230616175332-6.png?width=1029&height=519&rev=1.1||alt="image-20230616175332-6.png"]]
775
776
777 == 4.2 Application Server ~-~- Node-Red ==
778
779
780 You can access the gateway's built-in AS server of **Node-Red **via the URL(__**//http:~/~/<hostname>:1880 or http:~/~/<local-IPV4-address>//**__) in your browser.
781
782 Such as __**//http:~/~/dragino-54ff12:1880  or [[http:~~/~~/<Local-IPV4-Address~>>>http://<Local-IPV4-Address>]]//**__
783
784 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20All%20Gateway%20models/HP0C/WebHome/image-20220725172124-3.png?width=843&height=610&rev=1.1||alt="image-20220725172124-3.png"]]
785
786
787 === **Using Node-Red, InfluxDB and Grafana** ===
788
789 The MS48-LR supports this combination, the default, Node-red is pre-installed but the InfluxDB and Grafana is not pre-installed.
790
791 the users can refer to this link to install them.
792
793 [[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/Armbian%20OS%20instruction/#H2.6HowtoinstallGrafanaandinfluxdb>>url:http://wiki.dragino.com/xwiki/bin/view/Main/Armbian%20OS%20instruction/#H2.6HowtoinstallGrafanaandinfluxdb]]
794
795
796 === **Upgrade the node.js** ===
797
798 By default, the MS48-LR node.js uses the pre-install version v12 which is due to Debian the ultra-stable via ultra-old.
799
800 the users can refer to this link to upgrade them.
801
802 [[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/Armbian%20OS%20instruction/#H2.5Howtoupgradethenodejsversiontothelatest.>>url:http://wiki.dragino.com/xwiki/bin/view/Main/Armbian%20OS%20instruction/#H2.5Howtoupgradethenodejsversiontothelatest.]]
803
804
805 = 5. Use RS232 Interface =
806
807
808 MS48-LR includes a local ChirpStack Server and Node-Red. This example shows how to configure LHT65N to use with the local Node-Red server. This example assumes users already have:
809
810 * LHT65N register on MS48-LR Built-In ChirpStack server already
811 * The user is able to see the data on the built-in ChirpStack server device page
812 * The RS232 relay is connected to the RS232 interface of the MS48-LR
813
814 The MS48-LR RS232 interface corresponds to (% style="color:blue" %)**/dev/ttyS2.**
815
816 Below are the steps for the MS48-LR read LHT65N's temperature control RS232 relay example:
817
818 [[image:image-20240115155839-1.png||height="304" width="1036"]]
819
820 [[image:1705307593665-981.png||height="526" width="691"]]
821
822
823 == 5.1 Link Node-Red to Local ChirpStack ==
824
825
826 Users can download the Node-Red decoder from this link and import it into the Node-Red platform: **[[MS48-LR read LHT65N's temperature control RS232 relay.json>>attach:MS48-LR read LHT65N's temperature control RS232 relay.json||target="_blank"]]**
827
828 For more information on importing Input Flow, check out this link: **[[Import Input Flow for Dragino Sensors>>url:http://wiki.dragino.com/xwiki/bin/view/Main/Node-RED/#H3.A0ImportInputFlowforDraginoSensors]]**
829
830 After importing the Input Flow is complete, the user needs to edit the MQTT in the node
831
832 The specific steps can be found at this link: **[[Example: Use Local Server ChirpStack and Node-Red>>http://wiki.dragino.com/xwiki/bin/view/Main/Notes%20for%20ChirpStack/#H12.A0Example:UseLocalServerChirpStackandNode-RedinLPS8v2]]**
833
834 [[image:image-20240115161940-2.png||height="593" width="1149"]]
835
836
837 )))
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0