Version 111.1 by Kilight Cao on 2024/01/19 09:16

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 * Emulates 49 x LoRa demodulators 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 [[image:image-20231113165504-1.jpeg||height="327" width="287"]][[image:image-20231113165545-3.png||height="328" width="647"]][[image:image-20231113202643-1.jpeg||height="327" width="474"]]
183
184
185
186
187 = 2. Quick Start =
188
189 == 2.1 Access Configure Web UI ==
190
191
192 **Web Interface**
193
194 Open a browser on the PC and type the MS48-LR ip address (depends on your connect method)
195
196 [[**//http:~~/~~/IP_ADDRESS //**>>url:http://ip_address/]] or //**[[http:~~/~~/172.31.255.254>>url:http://172.31.255.254(/]]**//(Fallback IP)
197
198 You will see the login interface of MS48-LR as shown below.
199
200 The account details for Web Login are:
201
202 **User Name: root**
203
204 **Password:   dragino**
205
206 [[image:image-20240112174342-1.png||height="403" width="1057"]]
207
208
209 == 2.2  Typical Network Setup ==
210
211 === 2.2.1  Overview ===
212
213
214 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:
215
216 * **WAN Port Internet Mode**
217
218 * **WiFi Client Mode**
219
220 * **Cellular Mode**
221
222 === 2.2.2  Use the WAN port to access the Internet ===
223
224
225 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**:
226
227 [[image:image-20240108114745-4.png||height="471" width="912"]]
228
229
230 === 2.2.3  Access the Internet as a WiFi Client ===
231
232
233 In the WiFi Client Mode, MS48-LR acts as a WiFi client and gets DHCP from an upstream router via WiFi.
234
235 The settings for WiFi Client is under page (% style="color:blue" %)**Network ~-~-> Wi-Fi**
236
237 [[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"]]
238
239
240 In the WiFi Survey Choose the WiFi AP, and input the Passphrase then click(% style="color:blue" %)** Save & Apply**(%%) to connect.
241
242 [[image:image-20240108114602-3.png||height="477" width="925"]]
243
244
245 === 2.2.4  Use built-in 4G modem for internet access ===
246
247
248 Users can see whether MS48-LR has EC25 on the label of the gateway to determine whether there is 3G/4G Cellular modem.
249
250 If the MS48-LR has 3G/4G Cellular modem, user can use it as main internet connection or back up.
251
252 First, install the Micro SIM card as below direction
253
254 Second, Power off/ ON MS48-LR to let it detect the SIM card.
255
256 [[image:image-20231113163920-1.jpeg||height="284" width="460"]][[image:image-20231113163939-2.jpeg||height="284" width="473"]]
257
258 The set up page is (% style="color:blue" %)**Network ~-~-> Cellular**
259
260 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.
261
262 [[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"]]
263
264
265
266 === 2.2.5  Check Internet connection ===
267
268
269 In the (% style="color:blue" %)**Home**(%%) page, we can check the Internet connection.
270
271 * 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.
272 * 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.
273 * 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.
274
275 (% class="wikigeneratedid" %)
276 [[image:image-20240108115101-6.png||height="467" width="905"]]
277
278
279 == 2.3 Bridge LoRaWAN network to Modbus network ==
280
281
282 === **Step 1: Configure the LoRa Radio to your area Frequency Plan** ===
283
284
285 The Frequency Plan has to be set the same as the Sensor node Frequency Plan.
286
287 [[image:image-20231108164616-1.png||height="353" width="765"]]
288
289
290 === **Step 2: Copy the unique Gateway EUI & Configure the LoRaWAN Server address** ===
291
292
293 Every MS48-LR has a unique gateway EUI. The ID can be found on the LoRaWAN Semtech page:
294
295
296 [[image:image-20231110160659-1.png||height="804" width="1004"]]
297
298
299
300 === **Step 3: Enable the Built-in LoRaWAN Network Server** ===
301
302
303 [[image:image-20231110163133-2.png||height="522" width="1015"]]
304
305
306 === **Step 4: Logging to the Built-in LoRaWAN Network Server** ===
307
308
309 [[image:image-20231110170323-4.png||height="526" width="1006"]]
310
311
312 === **Step 5: Register the gateway to the built-in ChirpStack** ===
313
314
315 Copy Gateway EUI from the previous step to the following interface:
316
317 [[image:image-20231110170802-5.png||height="675" width="1011"]]
318
319
320 === **Step 6: Register the Sensor-node to the built-in ChirpStack** ===
321
322
323 The gateway is already set up to connect to the built-in ChirpStack network, so we now need to configure the built-in ChirpStack.
324
325 Create a device in ChirpStack with the OTAA keys from LHT65N.
326
327
328 ==== **1). Add Device Profiles** ====
329
330 [[image:image-20231110172143-6.png||height="641" width="1017"]]
331
332
333 ==== **2.) Add End Node Device** ====
334
335
336 **Create an Application**
337
338 [[image:image-20231110172604-8.png]]
339
340
341 Add a device for the sensor node
342
343 [[image:image-20231109092517-2.png||height="516" width="1000"]]
344
345
346 Enter Device EUI, Join EUI(APP EUI)and APPKEY of the node Device, and select the Device profile added in the previous step
347
348 [[image:image-20231110173714-9.png||height="519" width="1002"]]
349
350
351 [[image:image-20231110175007-11.png||height="660" width="1004"]]
352
353
354 === **Step 7: Configure Modbus RTU/TCP Slave** ===
355
356
357 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.
358
359
360 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.
361
362 So the sensor node 70b3d57ed0051e22 uplink data will be written to the 0xABCD - 0xABE1 register.
363
364 (% 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.**
365
366 **Slave Setting:**
367
368 Slave Mode  ~-~--> Support both RTU and TCP mode
369
370 Enable Modbus Slave  ~-~--> Enable Slave
371
372 Slave Address/Port  ~-~--> Set the slave address/port
373
374 Show Sensor History  ~-~--> See the sensor data log
375
376
377 **Sensor Settings:**
378
379 Device EUI  ~-~--> Sensor node's EUI
380
381 Register Start  ~-~-->  Setting the start register address to write the sensor node's data
382
383 Register Length  ~-~-->  The maximum write length with register
384
385 (% style="color:red" %)**Note: Only 1 sensor can be written in the range set by the registers**
386
387
388 ==== **1.) RTU Mode**: ====
389
390 (% class="wikigeneratedid" id="H" %)
391 [[image:image-20240112143033-1.png||height="755" width="1318"]]
392
393
394 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.
395
396 Then MS48-LR will write the uplink data to the 03 code register and record the uplink data.
397
398
399 **PLC read the MS48-LR register**
400
401 **Settings: **
402
403 **Function  : 03 code**
404
405 **Bit rate  :  9600**
406
407 **Parity bit : none**
408
409 **Stop bit  : 1**
410
411 **Response Timeout :  Greater than 3000ms**
412
413
414
415 ==== (% id="cke_bm_358638S" style="display:none" %)** **(%%)**2). TCP Mode:** ====
416
417 (% class="wikigeneratedid" id="H-1" %)
418 [[image:image-20240112143439-2.png]]
419
420
421 **PLC read the MS48-LR register**
422
423 **Settings: **
424
425 **Function  :  03 code**
426
427 **IP Address  :  Gateway IP Address**
428
429 **Server Port :  Slave Port**
430
431 **Connect Timeout :  Greater than 3000ms**
432
433
434 ==== **3). PLC(Modbus server/master) data show:** ====
435
436 [[image:image-20231111105300-3.png]]
437
438
439 **History Data:**
440
441 **Click the Show Sensor History will launch to this page**
442
443 [[image:image-20231111105548-4.png||height="849" width="1173"]]
444
445
446 = 3. Web Configure Pages =
447
448 == 3.1 Home ==
449
450
451 Shows the system running status:
452
453
454 == 3.2 LoRa Settings ==
455
456 === 3.2.1 LoRa ~-~-> LoRa ===
457
458
459 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.
460
461 Different MS48-LR hardware versions can support different frequency ranges:
462
463 * **868**: valid frequency: 863Mhz ~~ 870Mhz. for bands EU868, RU864, IN865, or KZ865.
464 * **915**: valid frequency: 902Mhz ~~ 928Mhz. for bands US915, AU915, AS923 or KR920
465
466 After the user choose the frequency plan,  the user can see the actual frequency is used by checking the page **LogRead ~-~-> LoRa Log**
467
468 [[image:image-20231109145418-1.png||height="372" width="761"]]
469
470
471 //**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/]]__**//
472
473
474 == 3.3 LoRaWAN Settings ==
475
476 === 3.3.1 LoRaWAN ~-~-> LoRaWAN Semtech UDP ===
477
478
479 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.
480
481 [[image:image-20231109145535-2.png||height="577" width="666"]]
482
483
484 === 3.3.2 LoRaWAN ~-~-> LoRaWAN Basic Station ===
485
486
487 This page is for the connection set up to the TTN Basic Station, AWS-IoT, etc.
488
489 [[image:image-20231109145619-3.png||height="438" width="668"]]
490
491 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/]]__
492
493
494 == 3.4 Network Settings ==
495
496 === 3.4.1 Network ~-~-> WiFi ===
497
498
499 Users can configure the wifi WAN and enable Wifi Access Point on this interface
500
501 [[image:image-20231109145715-4.png||height="282" width="774"]]
502
503
504 === 3.4.2 Network ~-~-> System Status ===
505
506
507 [[image:image-20231109145758-5.png||height="535" width="772"]]
508
509
510 === 3.4.3 Network ~-~-> Network ===
511
512
513 In the **Network ~-~-> Network** interface, Users can set the Ethernet WAN static ip address.
514
515 [[image:image-20231109145841-6.png||height="248" width="783"]]
516
517
518 === 3.4.4 Network ~-~-> Cellular ===
519
520
521 In the **Network ~-~-> Cellular** interface, Users can Enable Cellular WAN and configure Celluar.
522
523 **Note: APN cannot be empty.**
524
525 [[image:image-20231109145928-7.png||height="361" width="804"]]
526
527
528 After the configuration is complete, return to the Home interface and put the mouse on the Cell icon to check the Cellular state.
529
530
531 == 3.5 System ==
532
533 === 3.5.1 System ~-~-> System Overview ===
534
535
536 Shows the system info:
537
538 [[image:image-20240108114851-5.png||height="575" width="839"]]
539
540
541 === 3.5.2 System ~-~-> System General ===
542
543
544 In the **System-> System General** interface, Users can customize the configuration System Password and set Timezone.
545
546 In addition, Users can customize the FallBack IP address.
547
548 [[image:image-20231109150055-8.png||height="557" width="832"]]
549
550
551 === 3.5.3 System ~-~-> Backup/Restore ===
552
553
554 [[image:image-20231109150130-9.png||height="217" width="830"]]
555
556
557 === 3.5.4 System ~-~-> Remoteit ===
558
559
560 In the **System-> Remoteit** interface, users can configure the gateway to be accessed remotely via Remote.it.
561
562 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.]]**
563
564 [[image:image-20231109150415-10.png||height="424" width="835"]]
565
566
567 === 3.5.5 System ~-~-> Package Management ===
568
569
570 In the **System ~-~-> Package Management** interface, Users can check the current version of Core Packages.
571
572 [[image:image-20231109150446-11.png||height="566" width="840"]]
573
574
575 = 4. Build-in Server =
576
577
578 the default factory version of MS48-LR is installed with the built-in Applicant server: **Node-Red**, LoRaWAN Server: **ChirpStack**.
579
580
581 (% style="color:red" %)**Note:**
582
583 **Path**: Server ~-~-> Network Server
584
585 Server ~-~-> Application Server
586
587 (% style="color:blue" %)**Troubleshooting:**
588
589 **~ 1. URL does not jump properly**
590
591 For the ChirpStack, you can use the local IP address and the port is **8080** to access it.
592
593 For the Node-Red, you can use the local IP address and the port is **1880** to access it.
594
595
596 == 4.1 LoRaWAN Network Server ~-~- ChirpStack ==
597
598
599 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.
600
601 Such as  __**//http:~/~/dragino-54ff12:8080  or http:~/~/<Local-IPV4-Address>//**__
602
603 Login account:
604
605 **Username : ** **admin**
606
607 **Password: ** ** admin**
608
609 [[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"]]
610
611
612 == 4.2 Application Server ~-~- Node-Red ==
613
614
615 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.
616
617 Such as __**//http:~/~/dragino-54ff12:1880  or [[http:~~/~~/<Local-IPV4-Address~>>>http://<Local-IPV4-Address>]]//**__
618
619 [[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"]]
620
621
622 === **Using Node-Red, InfluxDB and Grafana** ===
623
624 The MS48-LR supports this combination, the default, Node-red is pre-installed but the InfluxDB and Grafana is not pre-installed.
625
626 the users can refer to this link to install them.
627
628 [[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]]
629
630
631 === **Upgrade the node.js** ===
632
633 By default, the MS48-LR node.js uses the pre-install version v12 which is due to Debian the ultra-stable via ultra-old.
634
635 the users can refer to this link to upgrade them.
636
637 [[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.]]
638
639
640 = 5. Use RS232 Interface =
641
642 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:
643
644 * LHT65N register on MS48-LR Built-In ChirpStack server already
645 * The user is able to see the data on the built-in ChirpStack server device page
646 * The RS232 relay is connected to the RS232 interface of the MS48-LR
647
648 The MS48-LR RS232 interface corresponds to (% style="color:blue" %)**/dev/ttyS2.**
649
650 Below are the steps for the MS48-LR read LHT65N's temperature control RS232 relay example:
651
652 [[image:image-20240115155839-1.png||height="304" width="1036"]]
653
654 [[image:1705307593665-981.png||height="526" width="691"]]
655
656
657
658 == 5.1 Link Node-Red to Local ChirpStack ==
659
660 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"]]**
661
662 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]]**
663
664 After importing the Input Flow is complete, the user needs to edit the MQTT in the node
665
666 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]]**
667
668 [[image:image-20240115161940-2.png||height="593" width="1149"]]
669
670
671 )))