Changes for page RS485-LN – RS485 to LoRaWAN Converter User Manual
Last modified by Bei Jinggeng on 2025/01/10 15:06
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Xiaoling1 +XWiki.Bei - Content
-
... ... @@ -245,6 +245,7 @@ 245 245 (% aria-label="1652953553383-907.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1652953553383-907.png||data-widget="image" height="514" width="724"]](% style="background-image:url(http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %) 246 246 247 247 248 + 248 248 ((( 249 249 (% style="color:blue" %)**Step 2**(%%): Power on RS485-LN and it will auto join to the TTN V3 network. After join success, it will start to upload message to TTN V3 and user can see in the panel. 250 250 ... ... @@ -254,38 +254,30 @@ 254 254 (% aria-label="1652953568895-172.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1652953568895-172.png||data-widget="image" height="232" width="724"]](% style="background-image:url(http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %) 255 255 256 256 257 -== 3.3 Configure DevicetoReadRS485Sensors==258 +== 3.3 Configure Commands to read data == 258 258 259 259 260 -There are plenty of RS485 and TTL level devices in the market and each device has different commands to read the valid data. To support these devices in most flexible, RS485-LN supports flexible command set. User can use [[Dragino RS485 Tool>>url:https://www.dropbox.com/sh/us9qecn39fwt8n1/AABREdqUCzEmJMRrfuWuXasoa?dl=0]], [[AT Commands or LoRaWAN Downlink>>url:http://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/RS485-LB_Waterproof_RS485UART_to_LoRaWAN_Converter/#H3.5ConfigureRS485-LBviaATorDownlink]] Command to configure how RS485-LN should read the sensor and how to handle the return from RS485 or TTL sensors. 261 +((( 262 +((( 263 +((( 264 +There are plenty of RS485 devices in the market and each device has different command to read the valid data. To support these devices in flexible, RS485-LN supports flexible command set. User can use [[AT Commands>>||anchor="H3.5ConfigureRS485-LNviaATorDownlink"]] or LoRaWAN Downlink Command to configure what commands RS485-LN should send for each sampling and how to handle the return from RS485 devices. 261 261 266 + 267 +))) 268 +))) 262 262 263 263 ((( 264 264 ((( 265 -((( 266 266 (% style="color:red" %)**Note: below description and commands are for firmware version >v1.1, if you have firmware version v1.0. Please check the [[user manual v1.0>>url:http://www.dragino.com/downloads/index.php?dir=RS485-LN/&file=RS485-LN_UserManual_v1.0.1.pdf]] or upgrade the firmware to v1.1** 267 267 ))) 268 268 269 - 270 -=== 3.3.1 Method 1 ~-~- via RS485 Configure Tool === 271 - 272 - 273 -Use the RS485 Configure tool is the recommand method. Please see the instruction of how to use the tool: 274 - 275 -* **[[RS485 Configure Tool Instruction>>url:http://wiki.dragino.com/xwiki/bin/view/Main/RS485_Configure_Tool/]]** 276 - 277 -[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/RS485-LB_Waterproof_RS485UART_to_LoRaWAN_Converter/WebHome/image-20231127144411-1.png?width=494&height=368&rev=1.1||alt="image-20231127144411-1.png" height="368" width="494"]] 278 - 279 - 280 -=== 3.3.2 Method 2 ~-~- via AT Commands === 275 + 281 281 ))) 282 282 ))) 283 283 284 -=== =3.3.2.1 Configure UART settings for RS485 or TTL communication ====279 +=== 3.3.1 Configure UART settings for RS485 or TTL communication === 285 285 286 286 287 -RS485-LN can connect to either RS485 sensors or TTL sensor. User need to specify what type of sensor need to connect. 288 - 289 289 To use RS485-LN to read data from RS485 sensors, connect the RS485-LN A/B traces to the sensors. And user need to make sure RS485-LN use the match UART setting to access the sensors. The related commands for UART settings are: 290 290 291 291 (% border="1" cellspacing="5" style="background-color:#f2f2f2; width:510px" %) ... ... @@ -349,7 +349,7 @@ 349 349 ))) 350 350 ))) 351 351 352 -=== 3.3. 3Configure sensors ===345 +=== 3.3.2 Configure sensors === 353 353 354 354 355 355 ((( ... ... @@ -372,7 +372,7 @@ 372 372 ))) 373 373 )))|(% style="width:190px" %)AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,m 374 374 375 -=== 3.3. 4Configure read commands for each sampling ===368 +=== 3.3.3 Configure read commands for each sampling === 376 376 377 377 378 378 ((( ... ... @@ -463,7 +463,7 @@ 463 463 464 464 ))) 465 465 466 -=== 3.3. 5Compose the uplink payload ===459 +=== 3.3.4 Compose the uplink payload === 467 467 468 468 469 469 ((( ... ... @@ -548,7 +548,7 @@ 548 548 (% aria-label="1654157178836-407.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1654157178836-407.png||data-widget="image"]](% style="background-image:url(http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %) 549 549 550 550 551 -=== 3.3. 6Uplink on demand ===544 +=== 3.3.5 Uplink on demand === 552 552 553 553 554 554 Except uplink periodically, RS485-LN is able to uplink on demand. The server send downlink command to RS485-LN and RS485 will uplink data base on the command. ... ... @@ -560,11 +560,12 @@ 560 560 (% style="color:#4472c4" %)** 0xA8 command**(%%): Send a command to RS485-LN and uplink the output from sensors. 561 561 562 562 563 -=== 3.3. 7Uplink on Interrupt ===556 +=== 3.3.6 Uplink on Interrupt === 564 564 565 565 566 566 RS485-LN support external Interrupt uplink since hardware v1.2 release. 567 567 561 + 568 568 (% aria-label="1654157342174-798.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1654157342174-798.png||data-widget="image"]](% style="background-image:url(http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %) 569 569 570 570 Connect the Interrupt pin to RS485-LN INT port and connect the GND pin to V- port. When there is a high voltage (Max 24v) on INT pin. Device will send an uplink packet. ... ... @@ -574,12 +574,12 @@ 574 574 575 575 576 576 (% border="1" cellspacing="5" style="background-color:#f2f2f2; width:510px" %) 577 -|(% style="background-color:# d9e2f3;c0; width:70px" %)(((578 - **Size(bytes)**571 +|=(% scope="row" style="width: 70px;background-color:#D9E2F3;color:#0070C0" %)((( 572 +Size(bytes) 579 579 )))|(% style="background-color:#d9e2f3; color:#0070c0; width:80px" %)**1**|(% style="background-color:#d9e2f3; color:#0070c0; width:360px" %)((( 580 580 **Length depends on the return from the commands** 581 581 ))) 582 -|(% style="width:90px" %)((( 576 +|=(% style="width: 90px;" %)((( 583 583 Value 584 584 )))|(% style="width:114px" %)((( 585 585 PAYLOAD_VER ... ... @@ -591,9 +591,13 @@ 591 591 provided in the LoRaWAN server. 592 592 ))) 593 593 594 -(% style="background-image:url(http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]] (%%)Below is the decoder for the first 3 bytes. The rest bytes are dynamic depends on different RS485 sensors.588 +(% style="background-image:url(http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]] 595 595 590 +(% title="Click and drag to resize" %) 596 596 592 +Below is the decoder for the first 3 bytes. The rest bytes are dynamic depends on different RS485 sensors. 593 + 594 + 597 597 == 3.5 Configure RS485-LN via AT or Downlink == 598 598 599 599 ... ... @@ -930,13 +930,8 @@ 930 930 931 931 (% aria-label="image-20220602165351-7.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220602165351-7.png||data-widget="image"]](% title="Click and drag to resize" %) 932 932 933 -* ((( 934 -(% style="color:#037691" %)**Downlink Command:** 935 -))) 936 936 937 -**~ (% style="color:#4472c4" %)A9 aa(%%)** ~-~-> Same as AT+MBFUN=aa 938 938 939 - 940 940 ==== (% style="color:blue" %)**RS485 command timeout**(%%) ==== 941 941 942 942 ... ... @@ -1388,6 +1388,8 @@ 1388 1388 To enable the listening mode, use can run the command (% style="color:#4472c4" %)** AT+RXMODE**. 1389 1389 ))) 1390 1390 1384 + 1385 + 1391 1391 (% border="1" cellspacing="5" style="background-color:#f2f2f2; width:510px" %) 1392 1392 |=(% style="width: 156px; background-color:#D9E2F3;color:#0070C0" %)((( 1393 1393 **Command example** ... ... @@ -1647,6 +1647,7 @@ 1647 1647 [[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/Firmware%20Upgrade%20Instruction%20for%20STM32%20base%20products/#H4.2.FirmwareupgradeusingSTM32Cubeprogramer>>url:http://wiki.dragino.com/xwiki/bin/view/Main/Firmware%20Upgrade%20Instruction%20for%20STM32%20base%20products/#H4.2.FirmwareupgradeusingSTM32Cubeprogramer]] 1648 1648 1649 1649 1645 + 1650 1650 (% style="color:red" %)**Notice**: **In case user has lost the program cable. User can hand made one from a 3.5mm cable. The pin mapping is:** 1651 1651 1652 1652 (% aria-label="image-20220602175638-10.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220602175638-10.png||data-widget="image"]](% style="background-image:url(http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %) ... ... @@ -1810,6 +1810,7 @@ 1810 1810 [[RS485 Configure Tool - DRAGINO>>url:http://wiki.dragino.com/xwiki/bin/view/Main/RS485_Configure_Tool/#HTableofContentsFF1A]] 1811 1811 1812 1812 1809 + 1813 1813 = 7. Trouble Shooting = 1814 1814 1815 1815 == 7.1 Downlink doesn't work, how to solve it? ==