Changes for page RS485-LN – RS485 to LoRaWAN Converter User Manual
Last modified by Bei Jinggeng on 2025/01/16 11:36
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,10 +1,6 @@ 1 -(% aria-label="1653266934636-343.png image widget" contenteditable="false" role="region" tabindex="-1" %) 2 -((( 3 -(% data-widget="image" style="text-align:center" %) 4 -[[image:1653266934636-343.png||height="385" width="385"]](% title="Click and drag to resize" %) 1 +(% style="text-align:center" %) 2 +[[image:1653266934636-343.png||height="385" width="385"]] 5 5 6 -(% 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==||height="15" role="presentation" title="Click and drag to move" width="15"]] 7 -))) 8 8 9 9 10 10 ... ... @@ -11,82 +11,16 @@ 11 11 12 12 13 13 14 - 15 15 **Table of Contents:** 16 16 17 -(% aria-label="macro:toc widget" contenteditable="false" role="region" tabindex="-1" %) 18 -((( 19 -(% class="macro" data-macro="startmacro:toc|-|" data-widget="xwiki-macro" %) 20 -((( 21 -(% class="macro-placeholder hidden" %) 22 -((( 23 -macro:toc 24 -))) 12 +{{toc/}} 25 25 26 -* [[1.Introduction>>doc:null||anchor="H1.Introduction"]] 27 -** [[1.1 What is RS485-LN RS485 to LoRaWAN Converter>>doc:null||anchor="H1.1A0WhatisRS485-LNRS485toLoRaWANConverter"]] 28 -** [[1.2 Specifications>>doc:null||anchor="H1.2A0Specifications"]] 29 -** [[1.3 Features>>doc:null||anchor="H1.3Features"]] 30 -** [[1.4 Applications>>doc:null||anchor="H1.4A0Applications"]] 31 -** [[1.5 Firmware Change log>>doc:null||anchor="H1.5A0FirmwareChangelog"]] 32 -** [[1.6 Hardware Change log>>doc:null||anchor="H1.6HardwareChangelog"]] 33 -* [[2. Power ON Device>>doc:null||anchor="H2.PowerONDevice"]] 34 -* [[3. Operation Mode>>doc:null||anchor="H3.A0OperationMode"]] 35 -** [[3.1 How it works?>>doc:null||anchor="H3.1Howitworks3F"]] 36 -** [[3.2 Example to join LoRaWAN network>>doc:null||anchor="H3.2ExampletojoinLoRaWANnetwork"]] 37 -** [[3.3 Configure Commands to read data>>doc:null||anchor="H3.3ConfigureCommandstoreaddata"]] 38 -*** [[3.3.1 onfigure UART settings for RS485 or TTL communication>>doc:null||anchor="H3.3.1onfigureUARTsettingsforRS485orTTLcommunication"]] 39 -*** [[3.3.2 Configure sensors>>doc:null||anchor="H3.3.2Configuresensors"]] 40 -*** [[3.3.3 Configure read commands for each sampling>>doc:null||anchor="H3.3.3Configurereadcommandsforeachsampling"]] 41 -*** [[3.3.4 Compose the uplink payload>>doc:null||anchor="H3.3.4Composetheuplinkpayload"]] 42 -*** [[3.3.5 Uplink on demand>>doc:null||anchor="H3.3.5Uplinkondemand"]] 43 -*** [[3.3.6 Uplink on Interrupt>>doc:null||anchor="H3.3.6UplinkonInterrupt"]] 44 -** [[3.4 Uplink Payload>>doc:null||anchor="H3.4UplinkPayload"]] 45 -** [[3.5 Configure RS485-BL via AT or Downlink>>doc:null||anchor="H3.5ConfigureRS485-BLviaATorDownlink"]] 46 -*** [[3.5.1 Common Commands>>doc:null||anchor="H3.5.1CommonCommands"]] 47 -*** [[3.5.2 Sensor related commands>>doc:null||anchor="H3.5.2Sensorrelatedcommands"]] 48 -*** [[3.5.3 Sensor related commands>>doc:null||anchor="H3.5.3A0Sensorrelatedcommands"]] 49 -**** [[RS485 Debug Command>>doc:null||anchor="HRS485DebugCommand"]] 50 -**** [[Set Payload version>>doc:null||anchor="HSetPayloadversion"]] 51 -**** [[Set RS485 Sampling Commands>>doc:null||anchor="HSetRS485SamplingCommands"]] 52 -**** [[Fast command to handle MODBUS device>>doc:null||anchor="HFastcommandtohandleMODBUSdevice"]] 53 -**** [[RS485 command timeout>>doc:null||anchor="HRS485commandtimeout"]] 54 -**** [[Uplink payload mode>>doc:null||anchor="HUplinkpayloadmode"]] 55 -**** [[Manually trigger an Uplink>>doc:null||anchor="HManuallytriggeranUplink"]] 56 -**** [[Clear RS485 Command>>doc:null||anchor="HClearRS485Command"]] 57 -**** [[Set Serial Communication Parameters>>doc:null||anchor="HSetSerialCommunicationParameters"]] 58 -** [[3.6 Listening mode for RS485 network>>doc:null||anchor="H3.6A0ListeningmodeforRS485network"]] 59 -** [[3.7 Buttons>>doc:null||anchor="H3.7Buttons"]] 60 -** [[3.8 LEDs>>doc:null||anchor="H3.8LEDs"]] 61 -* [[4. Case Study>>doc:null||anchor="H4.CaseStudy"]] 62 -* [[5. Use AT Command>>doc:null||anchor="H5.UseATCommand"]] 63 -** [[5.1 Access AT Command>>doc:null||anchor="H5.1AccessATCommand"]] 64 -** [[5.2 Common AT Command Sequence>>doc:null||anchor="H5.2CommonATCommandSequence"]] 65 -*** [[5.2.1 Multi-channel ABP mode (Use with SX1301/LG308)>>doc:null||anchor="H5.2.1Multi-channelABPmode28UsewithSX13012FLG30829"]] 66 -*** [[5.5.2 Single-channel ABP mode (Use with LG01/LG02)>>doc:null||anchor="H5.5.2Single-channelABPmode28UsewithLG012FLG0229"]] 67 -* [[6. FAQ>>doc:null||anchor="H6.FAQ"]] 68 -** [[6.1 How to upgrade the image?>>doc:null||anchor="H6.1Howtoupgradetheimage3F"]] 69 -** [[6.2 How to change the LoRa Frequency Bands/Region?>>doc:null||anchor="H6.2HowtochangetheLoRaFrequencyBands2FRegion3F"]] 70 -** [[6.3 How many RS485-Slave can RS485-BL connects?>>doc:null||anchor="H6.3HowmanyRS485-SlavecanRS485-BLconnects3F"]] 71 -** [[6.4 Compatible question to ChirpStack and TTI LoRaWAN server ?>>doc:null||anchor="H6.4CompatiblequestiontoChirpStackandTTILoRaWANserver3F"]] 72 -* [[7. Trouble Shooting>>doc:null||anchor="H7.TroubleShooting"]] 73 -** [[7.1 Downlink doesn’t work, how to solve it?>>doc:null||anchor="H7.1Downlinkdoesn2019twork2Chowtosolveit3F"]] 74 -** [[7.2 Why I can’t join TTN V3 in US915 /AU915 bands?>>doc:null||anchor="H7.2WhyIcan2019tjoinTTNV3inUS9152FAU915bands3F"]] 75 -* [[8. Order Info>>doc:null||anchor="H8.OrderInfo"]] 76 -* [[9.Packing Info>>doc:null||anchor="H9.PackingInfo"]] 77 -* [[10. FCC Caution for RS485LN-US915>>doc:null||anchor="H10.FCCCautionforRS485LN-US915"]] 78 -* [[11. Support>>doc:null||anchor="H11.Support"]] 79 -))) 80 80 81 -(% 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==||height="15" role="presentation" title="Click and drag to move" width="15"]] 82 -))) 83 83 84 84 85 85 86 86 87 87 88 - 89 - 90 90 = 1.Introduction = 91 91 92 92 == 1.1 What is RS485-LN RS485 to LoRaWAN Converter == ... ... @@ -125,7 +125,7 @@ 125 125 ))) 126 126 ))) 127 127 128 - (% aria-label="1653267211009-519.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1653267211009-519.png||data-widget="image"height="419" 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" %)58 +[[image:1653267211009-519.png||height="419" width="724"]] 129 129 130 130 131 131 == 1.2 Specifications == ... ... @@ -139,13 +139,11 @@ 139 139 ** Idle: 32mA@12v 140 140 ** 20dB Transmit: 65mA@12v 141 141 142 - 143 143 **Interface for Model:** 144 144 145 145 * RS485 146 146 * Power Input 7~~ 24V DC. 147 147 148 - 149 149 **LoRa Spec:** 150 150 151 151 * Frequency Range: ... ... @@ -226,7 +226,7 @@ 226 226 Once there is power, the RS485-LN will be on. 227 227 ))) 228 228 229 - (% aria-label="1653268091319-405.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1653268091319-405.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" %)157 +[[image:1653268091319-405.png]] 230 230 231 231 232 232 ))) ... ... @@ -247,7 +247,7 @@ 247 247 248 248 Here shows an example for how to join the TTN V3 Network. Below is the network structure, we use [[LG308>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/140-lg308.html]] as LoRaWAN gateway here. 249 249 250 - (% aria-label="1653268155545-638.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1653268155545-638.png||data-widget="image"height="334" 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" %)178 +[[image:1653268155545-638.png||height="334" width="724"]] 251 251 252 252 253 253 ((( ... ... @@ -259,7 +259,7 @@ 259 259 485A+ and 485B- of the sensor are connected to RS485A and RA485B of RS485-LN respectively. 260 260 ))) 261 261 262 - (% aria-label="1653268227651-549.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1653268227651-549.png||data-widget="image"height="592" width="720"]](% 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" %)190 +[[image:1653268227651-549.png||height="592" width="720"]] 263 263 264 264 265 265 ((( ... ... @@ -275,7 +275,7 @@ 275 275 ))) 276 276 ))) 277 277 278 - (% aria-label="1652953462722-299.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1652953462722-299.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" %)206 +[[image:1652953462722-299.png]] 279 279 280 280 281 281 ((( ... ... @@ -288,23 +288,23 @@ 288 288 ))) 289 289 ))) 290 290 291 - (% aria-label="image-20220519174512-1.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220519174512-1.png||data-widget="image"]](% style="background:url(~"http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png~") rgba(220, 220, 220, 0.5); left:0px; top:-15px" %)[[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" %)219 +[[image:image-20220519174512-1.png]] 292 292 293 - (% aria-label="image-20220519174512-2.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220519174512-2.png||data-widget="image"height="323" width="720"]](% style="background:url(~"http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png~") rgba(220, 220, 220, 0.5); left:0px; top:-15px" %)[[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" %)221 +[[image:image-20220519174512-2.png||height="323" width="720"]] 294 294 295 - (% aria-label="image-20220519174512-3.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220519174512-3.png||data-widget="image"height="556" width="724"]](% style="background:url(~"http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png~") rgba(220, 220, 220, 0.5); left:0px; top:-15px" %)[[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" %)223 +[[image:image-20220519174512-3.png||height="556" width="724"]] 296 296 297 - (% aria-label="image-20220519174512-4.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220519174512-4.png||data-widget="image"]](% style="background:url(~"http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png~") rgba(220, 220, 220, 0.5); left:0px; top:-15px" %)[[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" %)225 +[[image:image-20220519174512-4.png]] 298 298 299 299 You can also choose to create the device manually. 300 300 301 - (% aria-label="1652953542269-423.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1652953542269-423.png||data-widget="image"height="710" width="723"]](% style="background:url(~"http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png~") rgba(220, 220, 220, 0.5); left:0px; top:-15px" %)[[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" %)229 +[[image:1652953542269-423.png||height="710" width="723"]] 302 302 303 303 304 304 305 305 **Add APP KEY and DEV EUI** 306 306 307 - (% 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:url(~"http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png~") rgba(220, 220, 220, 0.5); left:0px; top:-15px" %)[[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" %)235 +[[image:1652953553383-907.png||height="514" width="724"]] 308 308 309 309 310 310 ((( ... ... @@ -311,7 +311,7 @@ 311 311 (% 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. 312 312 ))) 313 313 314 - (% 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:url(~"http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png~") rgba(220, 220, 220, 0.5); left:0px; top:-15px" %)[[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" %)242 +[[image:1652953568895-172.png||height="232" width="724"]] 315 315 316 316 317 317 == 3.3 Configure Commands to read data == ... ... @@ -319,7 +319,7 @@ 319 319 ((( 320 320 ((( 321 321 ((( 322 -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- BLviaATorDownlink"]] or LoRaWAN Downlink Command to configure what commands RS485-LN should send for each sampling and how to handle the return from RS485 devices.250 +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. 323 323 ))) 324 324 ))) 325 325 ... ... @@ -421,9 +421,6 @@ 421 421 ))) 422 422 )))|(% style="width:190px" %)AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,m 423 423 424 - 425 - 426 - 427 427 === 3.3.3 Configure read commands for each sampling === 428 428 429 429 ((( ... ... @@ -436,7 +436,7 @@ 436 436 During each sampling, the RS485-LN can support 15 commands to read sensors. And combine the return to one or several uplink payloads. 437 437 438 438 439 -**Each RS485 commands include two parts:** 364 +(% style="color:#037691" %)**Each RS485 commands include two parts:** 440 440 441 441 ~1. What commands RS485-LN will send to the RS485 sensors. There are total 15 commands from **AT+COMMAD1**, **ATCOMMAND2**,…, to **AT+COMMANDF**. All commands are of same grammar. 442 442 ... ... @@ -451,11 +451,11 @@ 451 451 Below are examples for the how above AT Commands works. 452 452 453 453 454 -**AT+COMMANDx : **This command will be sent to RS485 devices during each sampling, Max command length is 14 bytes. The grammar is: 379 +(% style="color:#037691" %)**AT+COMMANDx **(%%)**: **This command will be sent to RS485 devices during each sampling, Max command length is 14 bytes. The grammar is: 455 455 456 456 (% border="1" style="background-color:#4bacc6; color:white; width:499px" %) 457 457 |(% style="width:496px" %)((( 458 -**AT+COMMANDx=xx xx xx xx xx xx xx xx xx xx xx xx,m** 383 +(% style="color:#037691" %)**AT+COMMANDx=xx xx xx xx xx xx xx xx xx xx xx xx,m** 459 459 460 460 **xx xx xx xx xx xx xx xx xx xx xx xx: The RS485 command to be sent** 461 461 ... ... @@ -467,7 +467,7 @@ 467 467 In the RS485-LN, we should use this command AT+COMMAND1=01 03 0B B8 00 02,1 for the same. 468 468 469 469 470 -**AT+DATACUTx : **This command defines how to handle the return from AT+COMMANDx, max return length is 45 bytes. 395 +(% style="color:#037691" %)**AT+DATACUTx **(%%)**: **This command defines how to handle the return from AT+COMMANDx, max return length is 45 bytes. 471 471 472 472 (% border="1" style="background-color:#4bacc6; color:white; width:510px" %) 473 473 |(% style="width:510px" %)((( ... ... @@ -480,19 +480,19 @@ 480 480 481 481 **Examples:** 482 482 483 -* Grab bytes :408 +* (% style="color:#037691" %)**Grab bytes** 484 484 485 - (% aria-label="image-20220602153621-1.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220602153621-1.png||data-widget="image"]](% style="background:url(~"http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png~") rgba(220, 220, 220, 0.5); left:0px; top:-15px" %)[[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" %)410 +[[image:image-20220602153621-1.png]] 486 486 487 487 488 -* Grab a section .413 +* (% style="color:#037691" %)**Grab a section** 489 489 490 - (% aria-label="image-20220602153621-2.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220602153621-2.png||data-widget="image"]](% style="background:url(~"http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png~") rgba(220, 220, 220, 0.5); left:0px; top:-15px" %)[[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" %)415 +[[image:image-20220602153621-2.png]] 491 491 492 492 493 -* Grab different sections .418 +* (% style="color:#037691" %)**Grab different sections** 494 494 495 - (% aria-label="image-20220602153621-3.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220602153621-3.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" %)420 +[[image:image-20220602153621-3.png]] 496 496 497 497 498 498 ... ... @@ -528,7 +528,7 @@ 528 528 Where PAYVER is defined by AT+PAYVER, below is an example screen shot. 529 529 ))) 530 530 531 - (% aria-label="1653269759169-150.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1653269759169-150.png||data-widget="image"height="513" width="716"]](% style="background:url(~"http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png~") rgba(220, 220, 220, 0.5); left:0px; top:-15px" %)[[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" %)456 +[[image:1653269759169-150.png||height="513" width="716"]] 532 532 533 533 534 534 (% style="color:#037691" %)**Examples: AT+DATAUP=1** ... ... @@ -546,7 +546,7 @@ 546 546 1. PAYLOAD#: Number of this uplink. (from 0,1,2,3…,to PAYLOAD COUNT) 547 547 1. DATA: Valid value: max 8 bytes for each uplink so each uplink <= 11 bytes. For the last uplink, DATA will might less than 8 bytes 548 548 549 - (% aria-label="image-20220602155039-4.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220602155039-4.png||data-widget="image"]](% style="background:url(~"http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png~") rgba(220, 220, 220, 0.5); left:0px; top:-15px" %)[[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" %)474 +[[image:image-20220602155039-4.png]] 550 550 551 551 552 552 So totally there will be 3 uplinks for this sampling, each uplink include 8 bytes DATA ... ... @@ -571,7 +571,7 @@ 571 571 572 572 Below are the uplink payloads: 573 573 574 - (% aria-label="1654157178836-407.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1654157178836-407.png||data-widget="image"]](% style="background:url(~"http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png~") rgba(220, 220, 220, 0.5); left:0px; top:-15px" %)[[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" %)499 +[[image:1654157178836-407.png]] 575 575 576 576 577 577 === 3.3.5 Uplink on demand === ... ... @@ -590,7 +590,7 @@ 590 590 591 591 RS485-LN support external Interrupt uplink since hardware v1.2 release. 592 592 593 - (% aria-label="1654157342174-798.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1654157342174-798.png||data-widget="image"]](% style="background:url(~"http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png~") rgba(220, 220, 220, 0.5); left:0px; top:-15px" %)[[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" %)518 +[[image:1654157342174-798.png]] 594 594 595 595 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. 596 596 ... ... @@ -598,7 +598,7 @@ 598 598 == 3.4 Uplink Payload == 599 599 600 600 601 - (% aria-label="image-20220606110929-1.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220606110929-1.png||data-widget="image"]](% style="background:url(~"http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png~") rgba(220, 220, 220, 0.5); left:0px; top:-15px" %)[[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" %)526 +[[image:image-20220606110929-1.png]] 602 602 603 603 Below is the decoder for the first 3 bytes. The rest bytes are dynamic depends on different RS485 sensors. 604 604 ... ... @@ -635,7 +635,7 @@ 635 635 636 636 Response feature is added to the server's downlink, a special package with a FPort of 200 will be uploaded immediately after receiving the data sent by the server. 637 637 638 - (% aria-label="image-20220602163333-5.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220602163333-5.png||data-widget="image"height="263" width="1160"]](% style="background:url(~"http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png~") rgba(220, 220, 220, 0.5); left:0px; top:-15px" %)[[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" %)563 +[[image:image-20220602163333-5.png||height="263" width="1160"]] 639 639 640 640 The first byte of this package represents whether the configuration is successful, 00 represents failure, 01 represents success. Except for the first byte, the other is the previous downlink. (All commands except A8 type commands are applicable) 641 641 ... ... @@ -760,7 +760,7 @@ 760 760 ))) 761 761 762 762 ((( 763 - (% aria-label="1654159460680-153.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1654159460680-153.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" %)688 + [[image:1654159460680-153.png]] 764 764 ))) 765 765 766 766 ... ... @@ -769,7 +769,7 @@ 769 769 ==== **Set Payload version** ==== 770 770 771 771 ((( 772 -This is the first byte of the uplink payload. RS485- BL can connect to different sensors. User can set the PAYVER field to tell server how to decode the current payload.697 +This is the first byte of the uplink payload. RS485-LN can connect to different sensors. User can set the PAYVER field to tell server how to decode the current payload. 773 773 ))) 774 774 775 775 * ((( ... ... @@ -867,7 +867,7 @@ 867 867 XX XX XX XX: AT+COMMAND or AT+DATACUT command 868 868 ))) 869 869 * ((( 870 -YY: If YY=0, RS485- BL will execute the downlink command without uplink; if YY=1, RS485-LN will execute an uplink after got this command.795 +YY: If YY=0, RS485-LN will execute the downlink command without uplink; if YY=1, RS485-LN will execute an uplink after got this command. 871 871 ))) 872 872 873 873 ((( ... ... @@ -921,9 +921,9 @@ 921 921 AT+COMMAND2= 01 02 00 40 00 10,1 ~-~-> read slave address 01 , function code 02, start address 00 40, quantity of inputs 00 10. 922 922 ))) 923 923 924 - (% aria-label="image-20220602165351-6.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220602165351-6.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" %)849 +[[image:image-20220602165351-6.png]] 925 925 926 - (% aria-label="image-20220602165351-7.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220602165351-7.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" %)851 +[[image:image-20220602165351-7.png]] 927 927 928 928 929 929 ... ... @@ -1090,7 +1090,7 @@ 1090 1090 The uplink screen shot is: 1091 1091 ))) 1092 1092 1093 - (% aria-label="1654160691922-496.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1654160691922-496.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" %)1018 +[[image:1654160691922-496.png]] 1094 1094 1095 1095 1096 1096 * ((( ... ... @@ -1191,7 +1191,7 @@ 1191 1191 RS485-LN supports listening mode, it can listen the RS485 network packets and send them via LoRaWAN uplink. Below is the structure. The blue arrow shows the RS485 network packets to RS485-LN. 1192 1192 ))) 1193 1193 1194 - (% aria-label="image-20220602171200-8.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220602171200-8.png||data-widget="image"height="567" width="1007"]](% 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" %)1119 +[[image:image-20220602171200-8.png||height="567" width="1007"]] 1195 1195 1196 1196 ((( 1197 1197 To enable the listening mode, use can run the command AT+RXMODE. ... ... @@ -1265,7 +1265,7 @@ 1265 1265 ))) 1266 1266 1267 1267 ((( 1268 - (% aria-label="image-20220602171200-9.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220602171200-9.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" %)1193 +[[image:image-20220602171200-9.png]] 1269 1269 ))) 1270 1270 1271 1271 ((( ... ... @@ -1306,17 +1306,17 @@ 1306 1306 == 5.1 Access AT Command == 1307 1307 1308 1308 ((( 1309 -RS485- BL supports AT Command set. User can use a USB to TTL adapter plus the 3.5mm Program Cable to connect to RS485-BL to use AT command, as below.1234 +RS485-LN supports AT Command set. User can use a USB to TTL adapter plus the 3.5mm Program Cable to connect to RS485-LN to use AT command, as below. 1310 1310 ))) 1311 1311 1312 - (% aria-label="1654162355560-817.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1654162355560-817.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" %)1237 +[[image:1654162355560-817.png]] 1313 1313 1314 1314 1315 1315 ((( 1316 -In PC, User needs to set (% style="color:blue" %)**serial tool**(%%)(such as [[putty>>url:https://www.chiark.greenend.org.uk/~~sgtatham/putty/latest.html]], SecureCRT) baud rate to (% style="color:green" %)**9600**(%%) to access to access serial console of RS485- BL. The default password is 123456. Below is the output for reference:1241 +In PC, User needs to set (% style="color:blue" %)**serial tool**(%%)(such as [[putty>>url:https://www.chiark.greenend.org.uk/~~sgtatham/putty/latest.html]], SecureCRT) baud rate to (% style="color:green" %)**9600**(%%) to access to access serial console of RS485-LN. The default password is 123456. Below is the output for reference: 1317 1317 ))) 1318 1318 1319 - (% aria-label="1654162368066-342.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1654162368066-342.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" %)1244 +[[image:1654162368066-342.png]] 1320 1320 1321 1321 1322 1322 ((( ... ... @@ -1395,7 +1395,7 @@ 1395 1395 4. The command AT+RX2FQ and AT+RX2DR is to let downlink work. to set the correct parameters, user can check the actually downlink parameters to be used. As below. Which shows the RX2FQ should use 868400000 and RX2DR should be 5 1396 1396 ))) 1397 1397 1398 - (% aria-label="1654162478620-421.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1654162478620-421.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" %)1323 +[[image:1654162478620-421.png]] 1399 1399 1400 1400 1401 1401 = 6. FAQ = ... ... @@ -1420,7 +1420,7 @@ 1420 1420 Below shows the hardware connection for how to upload an image to RS485-LN: 1421 1421 ))) 1422 1422 1423 - (% aria-label="1654162535040-878.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1654162535040-878.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" %)1348 +[[image:1654162535040-878.png]] 1424 1424 1425 1425 ((( 1426 1426 **Step1:** Download [[flash loader>>url:https://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-programmers/flasher-stm32.html]]. ... ... @@ -1443,18 +1443,18 @@ 1443 1443 ))) 1444 1444 1445 1445 1446 - (% aria-label="image-20220602175818-12.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220602175818-12.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" %)1371 +[[image:image-20220602175818-12.png]] 1447 1447 1448 1448 1449 - (% aria-label="image-20220602175848-13.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220602175848-13.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" %)1374 +[[image:image-20220602175848-13.png]] 1450 1450 1451 1451 1452 - (% aria-label="image-20220602175912-14.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220602175912-14.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" %)1377 +[[image:image-20220602175912-14.png]] 1453 1453 1454 1454 1455 1455 **Notice**: In case user has lost the program cable. User can hand made one from a 3.5mm cable. The pin mapping is: 1456 1456 1457 - (% 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" %)1382 +[[image:image-20220602175638-10.png]] 1458 1458 1459 1459 1460 1460 == 6.2 How to change the LoRa Frequency Bands/Region? == ... ... @@ -1462,9 +1462,9 @@ 1462 1462 User can follow the introduction for [[how to upgrade image>>||anchor="H6.1Howtoupgradetheimage3F"]]. When download the images, choose the required image file for download. 1463 1463 1464 1464 1465 -== 6.3 How many RS485-Slave can RS485- BL connects? ==1390 +== 6.3 How many RS485-Slave can RS485-LN connects? == 1466 1466 1467 -The RS485- BL can support max 32 RS485 devices. Each uplink command of RS485-BL can support max 16 different RS485 command. So RS485-BL can support max 16 RS485 devices pre-program in the device for uplink. For other devices no pre-program, user can use the [[downlink message (type code 0xA8) to poll their info>>||anchor="H3.3.3Configurereadcommandsforeachsampling"]].1392 +The RS485-LN can support max 32 RS485 devices. Each uplink command of RS485-LN can support max 16 different RS485 command. So RS485-LN can support max 16 RS485 devices pre-program in the device for uplink. For other devices no pre-program, user can use the [[downlink message (type code 0xA8) to poll their info>>||anchor="H3.3.3Configurereadcommandsforeachsampling"]]. 1468 1468 1469 1469 1470 1470 == 6.4 Compatible question to ChirpStack and TTI LoRaWAN server ? ==