Changes for page RS485-BL – Waterproof RS485 to LoRaWAN Converter
Last modified by Xiaoling on 2025/04/23 15:57
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 0 added, 17 removed)
- 1652953414711-647.png
- 1652953462722-299.png
- 1652953542269-423.png
- 1652953553383-907.png
- 1652953568895-172.png
- 1652954654347-831.png
- 1653271044481-711.png
- 1653271276735-972.png
- 1653271581490-837.png
- 1653271648378-342.png
- 1653271657255-576.png
- 1653271763403-806.png
- 1653272787040-634.png
- image-20220519174512-1.png
- image-20220519174512-2.png
- image-20220519174512-3.png
- image-20220519174512-4.png
Details
- Page properties
-
- Content
-
... ... @@ -1,6 +1,7 @@ 1 1 (% style="text-align:center" %) 2 2 [[image:1652947681187-144.png||height="385" width="385"]] 3 3 4 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image001.jpg]] 4 4 5 5 6 6 ... ... @@ -26,7 +26,7 @@ 26 26 ))) 27 27 28 28 ((( 29 -RS485-BL can interface to RS485 sensor, 3.3v/5v UART sensor or interrupt sensor. RS485-BL provides **a 3.3v output** and** 30 +RS485-BL can interface to RS485 sensor, 3.3v/5v UART sensor or interrupt sensor. RS485-BL provides **a 3.3v output** and** a 5v output** to power external sensors. Both output voltages are controllable to minimize the total system power consumption. 30 30 ))) 31 31 32 32 ((( ... ... @@ -49,7 +49,7 @@ 49 49 Each RS485-BL pre-load with a set of unique keys for LoRaWAN registration, register these keys to LoRaWAN server and it will auto connect after power on. 50 50 ))) 51 51 52 -[[image: 1652953304999-717.png||height="424" width="733"]]53 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image002.png]] 53 53 54 54 == 1.2 Specifications == 55 55 ... ... @@ -56,11 +56,11 @@ 56 56 **Hardware System:** 57 57 58 58 * STM32L072CZT6 MCU 59 -* SX1276/78 Wireless Chip 60 +* SX1276/78 Wireless Chip 60 60 * Power Consumption (exclude RS485 device): 61 61 ** Idle: 6uA@3.3v 62 62 63 -* 64 +* 64 64 ** 20dB Transmit: 130mA@3.3v 65 65 66 66 **Interface for Model:** ... ... @@ -110,7 +110,7 @@ 110 110 * Smart Cities 111 111 * Smart Factory 112 112 113 -== 1.5 Firmware Change log == 114 +== 1.5 Firmware Change log == 114 114 115 115 [[RS485-BL Image files – Download link and Change log>>url:http://www.dragino.com/downloads/index.php?dir=LoRa_End_Node/RS485-BL/Firmware/||style="background-color: rgb(255, 255, 255);"]] 116 116 ... ... @@ -144,261 +144,229 @@ 144 144 145 145 = 2. Pin mapping and Power ON Device = 146 146 147 -((( 148 148 The RS485-BL is powered on by 8500mAh battery. To save battery life, RS485-BL is shipped with power off. User can put the jumper to power on RS485-BL. 149 -))) 150 150 151 151 [[image:1652953055962-143.png||height="387" width="728"]] 152 152 152 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image003.png]] 153 153 154 154 The Left TXD and RXD are TTL interface for external sensor. TTL level is controlled by 3.3/5v Jumper. 155 155 156 -= 3. Operation Mode = 157 157 158 -== 3.1 How it works? == 159 159 160 -((( 158 +3. Operation Mode 159 +3.1 How it works? 160 + 161 161 The RS485-BL is configured as LoRaWAN OTAA Class A mode by default. It has OTAA keys to join network. To connect a local LoRaWAN network, user just need to input the OTAA keys in the network server and power on the RS485-BL. It will auto join the network via OTAA. 162 -))) 163 163 164 -== 3.2 Example to join LoRaWAN network == 165 165 166 -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. 164 +1. 165 +11. Example to join LoRaWAN network 167 167 168 - [[image:1652953414711-647.png||height="337"width="723"]]167 +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. 169 169 170 -((( 169 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image004.png]] 170 + 171 + 171 171 The RS485-BL in this example connected to two RS485 devices for demonstration, user can connect to other RS485 devices via the same method. 172 -))) 173 173 174 - (((174 + 175 175 The LG308 is already set to connect to [[TTN V3 network >>url:https://www.thethingsnetwork.org/]]. So what we need to now is only configure the TTN V3: 176 -))) 177 177 178 -((( 179 179 **Step 1**: Create a device in TTN V3 with the OTAA keys from RS485-BL. 180 -))) 181 181 182 -((( 183 183 Each RS485-BL is shipped with a sticker with unique device EUI: 184 -))) 185 185 186 -[[image: 1652953462722-299.png]]181 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image005.png]] 187 187 188 -((( 183 + 184 + 185 + 189 189 User can enter this key in their LoRaWAN Server portal. Below is TTN V3 screen shot: 190 -))) 191 191 192 -((( 193 193 Add APP EUI in the application. 194 -))) 195 195 190 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image006.png]] 196 196 192 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image007.png]] 197 197 194 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image008.png]] 198 198 199 -[[image:image -20220519174512-1.png]]196 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image009.png]] 200 200 201 -[[image:image-20220519174512-2.png||height="328" width="731"]] 202 202 203 -[[image:image-20220519174512-3.png||height="556" width="724"]] 204 204 205 -[[image:image-20220519174512-4.png]] 206 206 201 + 202 + 203 + 204 + 205 + 206 + 207 + 208 + 209 + 210 + 211 + 212 + 213 + 207 207 You can also choose to create the device manually. 208 208 209 -[[image:1652953542269-423.png||height="710" width="723"]] 216 +|((( 217 + 218 +))) 210 210 220 + 221 + 222 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image010.png]] 223 + 211 211 Add APP KEY and DEV EUI 212 212 213 -[[image: 1652953553383-907.png||height="514" width="724"]]226 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image011.png]] 214 214 215 215 216 -((( 217 217 **Step 2**: Power on RS485-BL 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. 218 -))) 219 219 220 -[[image: 1652953568895-172.png||height="232" width="724"]]231 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image012.png]] 221 221 222 -== 3.3 Configure Commands to read data == 223 223 224 -((( 234 + 235 + 236 +1. 237 +11. Configure Commands to read data 238 + 225 225 There are plenty of RS485 and TTL level devices in the market and each device has different command to read the valid data. To support these devices in flexible, RS485-BL supports flexible command set. User can use [[AT Commands or LoRaWAN Downlink>>path:#AT_COMMAND]] Command to configure how RS485-BL should read the sensor and how to handle the return from RS485 or TTL sensors. 226 -))) 227 227 228 -=== 3.3.1 onfigure UART settings for RS485 or TTL communication === 229 229 242 +1. 243 +11. 244 +111. Configure UART settings for RS485 or TTL communication 245 + 230 230 RS485-BL can connect to either RS485 sensors or TTL sensor. User need to specify what type of sensor need to connect. 231 231 232 - **~1. RS485-MODBUS mode:**248 +1. RS485-MODBUS mode: 233 233 234 234 AT+MOD=1 ~/~/ Support RS485-MODBUS type sensors. User can connect multiply RS485 , Modbus sensors to the A / B pins. 235 235 236 -**2. TTL mode:** 237 237 253 +1. TTL mode: 254 + 238 238 AT+MOD=2 ~/~/ Support TTL Level sensors, User can connect one TTL Sensor to the TXD/RXD/GND pins. 239 239 257 + 240 240 RS485-BL default UART settings is **9600, no parity, stop bit 1**. If the sensor has a different settings, user can change the RS485-BL setting to match. 241 241 242 -(% border="1" style="background-color:#ffffcc; color:green; width:795px" %) 243 -|((( 244 -**AT Commands** 245 -)))|(% style="width:285px" %)((( 246 -**Description** 247 -)))|(% style="width:347px" %)((( 248 -**Example** 249 -))) 250 -|((( 251 -AT+BAUDR 252 -)))|(% style="width:285px" %)((( 253 -Set the baud rate (for RS485 connection). Default Value is: 9600. 254 -)))|(% style="width:347px" %)((( 255 -((( 260 + 261 +|**AT Commands**|**Description**|**Example** 262 +|AT+BAUDR|Set the baud rate (for RS485 connection). Default Value is: 9600.|((( 256 256 AT+BAUDR=9600 257 -))) 258 258 259 -((( 260 260 Options: (1200,2400,4800,14400,19200,115200) 261 261 ))) 262 -))) 263 -|((( 264 -AT+PARITY 265 -)))|(% style="width:285px" %)((( 266 -((( 267 +|AT+PARITY|((( 267 267 Set UART parity (for RS485 connection) 268 -))) 269 269 270 -((( 271 271 Default Value is: no parity. 272 -))) 273 -)))|(% style="width:347px" %)((( 274 -((( 271 +)))|((( 275 275 AT+PARITY=0 276 -))) 277 277 278 -((( 279 279 Option: 0: no parity, 1: odd parity, 2: even parity 280 280 ))) 281 -))) 282 -|((( 283 -AT+STOPBIT 284 -)))|(% style="width:285px" %)((( 285 -((( 276 +|AT+STOPBIT|((( 286 286 Set serial stopbit (for RS485 connection) 287 -))) 288 288 289 -((( 290 290 Default Value is: 1bit. 291 -))) 292 -)))|(% style="width:347px" %)((( 293 -((( 280 +)))|((( 294 294 AT+STOPBIT=0 for 1bit 295 -))) 296 296 297 -((( 298 298 AT+STOPBIT=1 for 1.5 bit 299 -))) 300 300 301 -((( 302 302 AT+STOPBIT=2 for 2 bits 303 303 ))) 304 -))) 305 305 306 -=== 3.3.2 Configure sensors === 307 307 308 -((( 309 -Some sensors might need to configure before normal operation. User can configure such sensor via PC or through RS485-BL AT Commands (% style="color:#4f81bd" %)**AT+CFGDEV**. 310 -))) 311 311 312 -((( 313 -When user issue an (% style="color:#4f81bd" %)**AT+CFGDEV**(%%) command, Each (% style="color:#4f81bd" %)**AT+CFGDEV**(%%) equals to send a command to the RS485 or TTL sensors. This command will only run when user input it and won’t run during each sampling. 314 -))) 315 315 316 -(% border="1" style="background-color:#ffffcc; color:green; width:806px" %) 317 -|**AT Commands**|(% style="width:418px" %)**Description**|(% style="width:256px" %)**Example** 318 -|AT+CFGDEV|(% style="width:418px" %)((( 291 + 292 +1. 293 +11. 294 +111. Configure sensors 295 + 296 +Some sensors might need to configure before normal operation. User can configure such sensor via PC or through RS485-BL AT Commands AT+CFGDEV. 297 + 298 + 299 +When user issue an AT+CFGDEV command, Each AT+CFGDEV equals to send a command to the RS485 or TTL sensors. This command will only run when user input it and won’t run during each sampling. 300 + 301 +|**AT Commands**|**Description**|**Example** 302 +|AT+CFGDEV|((( 319 319 This command is used to configure the RS485/TTL devices; they won’t be used during sampling. 320 320 321 -AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx, 305 +AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,m 322 322 323 -m m: 0: no CRC, 1: add CRC-16/MODBUS in the end of this command324 -)))| (% style="width:256px" %)AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,m307 +m: 0: no CRC, 1: add CRC-16/MODBUS in the end of this command 308 +)))|AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,m 325 325 326 326 Detail of AT+CFGDEV command see [[AT+CFGDEV detail>>path:#AT_CFGDEV]]. 327 327 328 -=== 3.3.3 Configure read commands for each sampling === 329 329 330 -((( 313 + 314 + 315 + 316 +1. 317 +11. 318 +111. Configure read commands for each sampling 319 + 331 331 RS485-BL is a battery powered device; it will sleep most of time. And wake up on each period and read RS485 / TTL sensor data and uplink. 332 -))) 333 333 334 - (((322 + 335 335 During each sampling, we need to confirm what commands we need to send to the sensors to read data. After the RS485/TTL sensors send back the value, it normally includes some bytes and we only need a few from them for a shorten payload. 336 -))) 337 337 338 - (((325 + 339 339 To save the LoRaWAN network bandwidth, we might need to read data from different sensors and combine their valid value into a short payload. 340 -))) 341 341 342 - (((328 + 343 343 This section describes how to achieve above goals. 344 -))) 345 345 346 - (((331 + 347 347 During each sampling, the RS485-BL can support 15 commands to read sensors. And combine the return to one or several uplink payloads. 348 -))) 349 349 350 - (((334 + 351 351 **Command from RS485-BL to Sensor:** 352 -))) 353 353 354 -((( 355 355 RS485-BL can send out pre-set max 15 strings via **AT+COMMAD1**, **ATCOMMAND2**,…, to **AT+COMMANDF** . All commands are of same grammar. 356 -))) 357 357 358 - (((339 + 359 359 **Handle return from sensors to RS485-BL**: 360 -))) 361 361 362 -((( 363 363 After RS485-BL send out a string to sensor, RS485-BL will wait for the return from RS485 or TTL sensor. And user can specify how to handle the return, by **AT+DATACUT or AT+SEARCH commands** 364 -))) 365 365 366 -* ((( 367 -**AT+DATACUT** 368 -))) 369 369 370 -((( 345 +* **AT+DATACUT** 346 + 371 371 When the return value from sensor have fix length and we know which position the valid value we should get, we can use AT+DATACUT command. 372 -))) 373 373 374 -* ((( 375 -**AT+SEARCH** 376 -))) 377 377 378 -((( 350 +* **AT+SEARCH** 351 + 379 379 When the return value from sensor is dynamic length and we are not sure which bytes the valid data is, instead, we know what value the valid value following. We can use AT+SEARCH to search the valid value in the return string. 380 -))) 381 381 382 - (((354 + 383 383 **Define wait timeout:** 384 -))) 385 385 386 -((( 387 387 Some RS485 device might has longer delay on reply, so user can use AT+CMDDL to set the timeout for getting reply after the RS485 command is sent. For example, AT+CMDDL1=1000 to send the open time to 1000ms 388 -))) 389 389 390 - (((359 + 391 391 After we got the valid value from each RS485 commands, we need to combine them together with the command **AT+DATAUP**. 392 -))) 393 393 362 + 394 394 **Examples:** 395 395 396 396 Below are examples for the how above AT Commands works. 397 397 367 + 398 398 **AT+COMMANDx : **This command will be sent to RS485/TTL devices during each sampling, Max command length is 14 bytes. The grammar is: 399 399 400 -(% border="1" class="table-bordered" style="background-color:#4f81bd; color:white; width:501px" %) 401 -|(% style="width:498px" %)((( 370 +|((( 402 402 **AT+COMMANDx=xx xx xx xx xx xx xx xx xx xx xx xx,m** 403 403 404 404 **xx xx xx xx xx xx xx xx xx xx xx xx: The RS485 command to be sent** ... ... @@ -410,43 +410,46 @@ 410 410 411 411 In the RS485-BL, we should use this command AT+COMMAND1=01 03 0B B8 00 02,1 for the same. 412 412 382 + 413 413 **AT+SEARCHx**: This command defines how to handle the return from AT+COMMANDx. 414 414 415 -(% border="1" class="table-bordered" style="background-color:#4f81bd; color:white; width:580px" %) 416 -|(% style="width:577px" %)((( 385 +|((( 417 417 **AT+SEARCHx=aa,xx xx xx xx xx** 418 418 419 419 * **aa: 1: prefix match mode; 2: prefix and suffix match mode** 420 420 * **xx xx xx xx xx: match string. Max 5 bytes for prefix and 5 bytes for suffix** 390 + 391 + 421 421 ))) 422 422 423 - **Examples:**394 +Examples: 424 424 425 425 1. For a return string from AT+COMMAND1: 16 0c 1e 56 34 2e 30 58 5f 36 41 30 31 00 49 426 426 427 427 If we set AT+SEARCH1=1,1E 56 34. (max 5 bytes for prefix) 428 428 429 -The valid data will be all bytes after 1E 56 34 , so it is (% style="background-color:yellow" %)**2e 30 58 5f 36 41 30 31 00 49**400 +The valid data will be all bytes after 1E 56 34 , so it is 2e 30 58 5f 36 41 30 31 00 49 430 430 431 -[[image: 1653271044481-711.png]]402 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image013.png]] 432 432 404 + 433 433 1. For a return string from AT+COMMAND1: 16 0c 1e 56 34 2e 30 58 5f 36 41 30 31 00 49 434 434 435 435 If we set AT+SEARCH1=2, 1E 56 34+31 00 49 436 436 437 -Device will search the bytes between 1E 56 34 and 31 00 49. So it is (%style="background-color:yellow" %) **2e 30 58 5f 36 41 30**409 +Device will search the bytes between 1E 56 34 and 31 00 49. So it is 2e 30 58 5f 36 41 30 438 438 439 -[[image: 1653271276735-972.png]]411 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image014.png]] 440 440 413 + 441 441 **AT+DATACUTx : **This command defines how to handle the return from AT+COMMANDx, max return length is 45 bytes. 442 442 443 -(% style="background-color:#4f81bd; color:white; width:729px" %) 444 -|(% style="width:726px" %)((( 416 +|((( 445 445 **AT+DATACUTx=a,b,c** 446 446 447 447 * **a: length for the return of AT+COMMAND** 448 448 * **b:1: grab valid value by byte, max 6 bytes. 2: grab valid value by bytes section, max 3 sections.** 449 -* **c: define the position for valid value. 421 +* **c: define the position for valid value. ** 450 450 ))) 451 451 452 452 Examples: ... ... @@ -453,59 +453,42 @@ 453 453 454 454 * Grab bytes: 455 455 456 -[[image: 1653271581490-837.png||height="313" width="722"]]428 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image015.png]] 457 457 458 458 * Grab a section. 459 459 460 -[[image: 1653271648378-342.png||height="326" width="720"]]432 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image016.png]] 461 461 462 462 * Grab different sections. 463 463 464 -[[image: 1653271657255-576.png||height="305" width="730"]]436 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image017.png]] 465 465 466 -((( 467 -(% style="color:red" %)**Note:** 468 -))) 469 469 470 -((( 439 +Note: 440 + 471 471 AT+SEARCHx and AT+DATACUTx can be used together, if both commands are set, RS485-BL will first process AT+SEARCHx on the return string and get a temporary string, and then process AT+DATACUTx on this temporary string to get the final payload. In this case, AT+DATACUTx need to set to format AT+DATACUTx=0,xx,xx where the return bytes set to 0. 472 -))) 473 473 474 -((( 475 -**Example:** 476 -))) 443 +Example: 477 477 478 -((( 479 -(% style="color:red" %)AT+COMMAND1=11 01 1E D0,0 480 -))) 445 +AT+COMMAND1=11 01 1E D0,0 481 481 482 -((( 483 -(% style="color:red" %)AT+SEARCH1=1,1E 56 34 484 -))) 447 +AT+SEARCH1=1,1E 56 34 485 485 486 -((( 487 -(% style="color:red" %)AT+DATACUT1=0,2,1~~5 488 -))) 449 +AT+DATACUT1=0,2,1~~5 489 489 490 -((( 491 -(% style="color:red" %)Return string from AT+COMMAND1: 16 0c 1e 56 34 2e 30 58 5f 36 41 30 31 00 49 492 -))) 451 +Return string from AT+COMMAND1: 16 0c 1e 56 34 2e 30 58 5f 36 41 30 31 00 49 493 493 494 -((( 495 -(% style="color:red" %)String after SEARCH command: 2e 30 58 5f 36 41 30 31 00 49 496 -))) 453 +String after SEARCH command: 2e 30 58 5f 36 41 30 31 00 49 497 497 498 -((( 499 -(% style="color:red" %)Valid payload after DataCUT command: 2e 30 58 5f 36 500 -))) 455 +Valid payload after DataCUT command: 2e 30 58 5f 36 501 501 502 -[[image: 1653271763403-806.png]]457 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image018.png]] 503 503 504 504 505 505 506 506 507 -1. 508 -11. 462 +1. 463 +11. 509 509 111. Compose the uplink payload 510 510 511 511 Through AT+COMMANDx and AT+DATACUTx we got valid value from each RS485 commands, Assume these valid value are RETURN1, RETURN2, .., to RETURNx. The next step is how to compose the LoRa Uplink Payload by these RETURNs. The command is **AT+DATAUP.** ... ... @@ -569,8 +569,8 @@ 569 569 570 570 571 571 572 -1. 573 -11. 527 +1. 528 +11. 574 574 111. Uplink on demand 575 575 576 576 Except uplink periodically, RS485-BL is able to uplink on demand. The server sends downlink command to RS485-BL and RS485 will uplink data base on the command. ... ... @@ -583,8 +583,8 @@ 583 583 584 584 585 585 586 -1. 587 -11. 541 +1. 542 +11. 588 588 111. Uplink on Interrupt 589 589 590 590 Put the interrupt sensor between 3.3v_out and GPIO ext.[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image022.png]] ... ... @@ -598,9 +598,10 @@ 598 598 AT+INTMOD=3 Interrupt trigger by rising edge. 599 599 600 600 601 -1. 556 +1. 602 602 11. Uplink Payload 603 603 559 + 604 604 |**Size(bytes)**|**2**|**1**|**Length depends on the return from the commands** 605 605 |Value|((( 606 606 Battery(mV) ... ... @@ -649,7 +649,7 @@ 649 649 650 650 [[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image023.png]] 651 651 652 -1. 608 +1. 653 653 11. Configure RS485-BL via AT or Downlink 654 654 655 655 User can configure RS485-BL via [[AT Commands >>path:#_Using_the_AT]]or LoRaWAN Downlink Commands ... ... @@ -660,17 +660,20 @@ 660 660 661 661 * **Sensor Related Commands**: These commands are special designed for RS485-BL. User can see these commands below: 662 662 663 -1. 664 -11. 619 + 620 +1. 621 +11. 665 665 111. Common Commands: 666 666 624 + 667 667 They should be available for each of Dragino Sensors, such as: change uplink interval, reset device. For firmware v1.3, user can find what common commands it supports: [[http:~~/~~/wiki.dragino.com/index.php?title=End_Device_AT_Commands_and_Downlink_Commands>>url:http://wiki.dragino.com/index.php?title=End_Device_AT_Commands_and_Downlink_Commands]] 668 668 669 669 670 -1. 671 -11. 628 +1. 629 +11. 672 672 111. Sensor related commands: 673 673 632 + 674 674 ==== Choose Device Type (RS485 or TTL) ==== 675 675 676 676 RS485-BL can connect to either RS485 sensors or TTL sensor. User need to specify what type of sensor need to connect. ... ... @@ -711,6 +711,7 @@ 711 711 * XX XX XX XX: RS485 command total NN bytes 712 712 * YY: How many bytes will be uplink from the return of this RS485 command, if YY=0, RS485-BL will execute the downlink command without uplink; if YY>0, RS485-BL will uplink total YY bytes from the output of this RS485 command 713 713 673 + 714 714 **Example 1:** 715 715 716 716 To connect a Modbus Alarm with below commands. ... ... @@ -819,6 +819,7 @@ 819 819 820 820 * AT+MBFUN=0: Disable Modbus fast reading. 821 821 782 + 822 822 Example: 823 823 824 824 * AT+MBFUN=1 and AT+DATACUT1/AT+DATACUT2 are not configure (0,0,0). ... ... @@ -903,7 +903,7 @@ 903 903 904 904 Etc. AT+CMDEAR=1,10 means erase AT+COMMAND1/AT+DATACUT1 to AT+COMMAND10/AT+DATACUT10 905 905 906 -Example screen shot after clear all RS485 commands. 867 +Example screen shot after clear all RS485 commands. 907 907 908 908 909 909 ... ... @@ -947,6 +947,7 @@ 947 947 * A7 01 00 60 same as AT+BAUDR=9600 948 948 * A7 01 04 80 same as AT+BAUDR=115200 949 949 911 + 950 950 A7 02 aa: Same as AT+PARITY=aa (aa value: 00 , 01 or 02) 951 951 952 952 A7 03 aa: Same as AT+STOPBIT=aa (aa value: 00 , 01 or 02) ... ... @@ -974,18 +974,20 @@ 974 974 975 975 976 976 977 -1. 939 +1. 978 978 11. Buttons 979 979 942 + 980 980 |**Button**|**Feature** 981 981 |**RST**|Reboot RS485-BL 982 982 983 -1. 946 + 947 +1. 984 984 11. +3V3 Output 985 985 986 986 RS485-BL has a Controllable +3V3 output, user can use this output to power external sensor. 987 987 988 -The +3V3 output will be valid for every sampling. RS485-BL will enable +3V3 output before all sampling and disable the +3V3 after all sampling. 952 +The +3V3 output will be valid for every sampling. RS485-BL will enable +3V3 output before all sampling and disable the +3V3 after all sampling. 989 989 990 990 991 991 The +3V3 output time can be controlled by AT Command. ... ... @@ -998,12 +998,12 @@ 998 998 By default, the AT+3V3T=0. This is a special case, means the +3V3 output is always on at any time 999 999 1000 1000 1001 -1. 965 +1. 1002 1002 11. +5V Output 1003 1003 1004 1004 RS485-BL has a Controllable +5V output, user can use this output to power external sensor. 1005 1005 1006 -The +5V output will be valid for every sampling. RS485-BL will enable +5V output before all sampling and disable the +5v after all sampling. 970 +The +5V output will be valid for every sampling. RS485-BL will enable +5V output before all sampling and disable the +5v after all sampling. 1007 1007 1008 1008 1009 1009 The 5V output time can be controlled by AT Command. ... ... @@ -1018,13 +1018,14 @@ 1018 1018 1019 1019 1020 1020 1021 -1. 985 +1. 1022 1022 11. LEDs 1023 1023 1024 1024 |**LEDs**|**Feature** 1025 1025 |**LED1**|Blink when device transmit a packet. 1026 1026 1027 -1. 991 + 992 +1. 1028 1028 11. Switch Jumper 1029 1029 1030 1030 |**Switch Jumper**|**Feature** ... ... @@ -1045,6 +1045,7 @@ 1045 1045 1046 1046 1. Case Study 1047 1047 1013 + 1048 1048 User can check this URL for some case studies. 1049 1049 1050 1050 [[http:~~/~~/wiki.dragino.com/index.php?title=APP_RS485_COMMUNICATE_WITH_SENSORS>>url:http://wiki.dragino.com/index.php?title=APP_RS485_COMMUNICATE_WITH_SENSORS]] ... ... @@ -1070,7 +1070,7 @@ 1070 1070 1071 1071 1072 1072 1073 -1. 1039 +1. 1074 1074 11. Common AT Command Sequence 1075 1075 111. Multi-channel ABP mode (Use with SX1301/LG308) 1076 1076 ... ... @@ -1089,8 +1089,8 @@ 1089 1089 1090 1090 ATZ 1091 1091 1092 -1. 1093 -11. 1058 +1. 1059 +11. 1094 1094 111. Single-channel ABP mode (Use with LG01/LG02) 1095 1095 1096 1096 AT+FDR Reset Parameters to Factory Default, Keys Reserve ... ... @@ -1132,6 +1132,7 @@ 1132 1132 * For bug fix 1133 1133 * Change LoRaWAN bands. 1134 1134 1101 + 1135 1135 Below shows the hardware connection for how to upload an image to RS485-BL: 1136 1136 1137 1137 [[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image030.png]] ... ... @@ -1165,7 +1165,7 @@ 1165 1165 [[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image035.png]] [[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image036.png]] 1166 1166 1167 1167 1168 -1. 1135 +1. 1169 1169 11. How to change the LoRa Frequency Bands/Region? 1170 1170 1171 1171 User can follow the introduction for [[how to upgrade image>>path:#upgrade_image]]. When download the images, choose the required image file for download. ... ... @@ -1172,9 +1172,10 @@ 1172 1172 1173 1173 1174 1174 1175 -1. 1142 +1. 1176 1176 11. How many RS485-Slave can RS485-BL connects? 1177 1177 1145 + 1178 1178 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>>path:#downlink_A8]]. 1179 1179 1180 1180 ... ... @@ -1185,11 +1185,11 @@ 1185 1185 1186 1186 Please see this link for debug: 1187 1187 1188 -[[http:~~/~~/wiki.dragino.com/index.php?title=Main_Page#LoRaWAN_Communication_Debug>>url:http://wiki.dragino.com/index.php?title=Main_Page#LoRaWAN_Communication_Debug]] 1156 +[[http:~~/~~/wiki.dragino.com/index.php?title=Main_Page#LoRaWAN_Communication_Debug>>url:http://wiki.dragino.com/index.php?title=Main_Page#LoRaWAN_Communication_Debug]] 1189 1189 1190 1190 1191 1191 1192 -1. 1160 +1. 1193 1193 11. Why I can’t join TTN V3 in US915 /AU915 bands? 1194 1194 1195 1195 It might about the channels mapping. Please see for detail. ... ... @@ -1200,6 +1200,7 @@ 1200 1200 1201 1201 1. Order Info 1202 1202 1171 + 1203 1203 **Part Number: RS485-BL-XXX** 1204 1204 1205 1205 **XXX:** ... ... @@ -1215,6 +1215,7 @@ 1215 1215 * **RU864**: frequency bands RU864 1216 1216 * **KZ865: **frequency bands KZ865 1217 1217 1187 + 1218 1218 1. Packing Info 1219 1219 1220 1220 **Package Includes**: ... ... @@ -1223,6 +1223,7 @@ 1223 1223 * Stick Antenna for LoRa RF part x 1 1224 1224 * Program cable x 1 1225 1225 1196 + 1226 1226 **Dimension and weight**: 1227 1227 1228 1228 * Device Size: 13.5 x 7 x 3 cm ... ... @@ -1230,6 +1230,7 @@ 1230 1230 * Package Size / pcs : 14.5 x 8 x 5 cm 1231 1231 * Weight / pcs : 170g 1232 1232 1204 + 1233 1233 1. Support 1234 1234 1235 1235 * Support is provided Monday to Friday, from 09:00 to 18:00 GMT+8. Due to different timezones we cannot offer live support. However, your questions will be answered as soon as possible in the before-mentioned schedule.
- 1652953414711-647.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -119.3 KB - Content
- 1652953462722-299.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -202.7 KB - Content
- 1652953542269-423.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -118.5 KB - Content
- 1652953553383-907.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -94.0 KB - Content
- 1652953568895-172.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -109.3 KB - Content
- 1652954654347-831.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -138.7 KB - Content
- 1653271044481-711.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -27.8 KB - Content
- 1653271276735-972.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -26.6 KB - Content
- 1653271581490-837.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -138.7 KB - Content
- 1653271648378-342.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -131.4 KB - Content
- 1653271657255-576.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -142.6 KB - Content
- 1653271763403-806.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -27.7 KB - Content
- 1653272787040-634.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -294.0 KB - Content
- image-20220519174512-1.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -32.2 KB - Content
- image-20220519174512-2.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -42.7 KB - Content
- image-20220519174512-3.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -36.3 KB - Content
- image-20220519174512-4.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -19.1 KB - Content