Changes for page LTS5 LoRa HMI Touch Screen
Last modified by BoYang Xie on 2025/07/24 16:47
From version 195.13
edited by BoYang Xie
on 2025/07/24 16:47
on 2025/07/24 16:47
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Attachments (0 modified, 0 added, 7 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. xieby1 +XWiki.pradeeka - Content
-
... ... @@ -1,6 +1,7 @@ 1 1 2 2 3 -[[image:image-20241226135550-1.png||data-xwiki-image-style-alignment="center"]] 3 +(% style="text-align:center" %) 4 +[[image:image-20241226135550-1.png]] 4 4 5 5 6 6 ... ... @@ -30,9 +30,6 @@ 30 30 31 31 The LA66 LoRa module can be programmed to support either private LoRa protocols or the LoRaWAN protocol. 32 32 33 - 34 -**//Note: Due to the current incomplete functionality, it is not recommended to purchase at this time.//** 35 - 36 36 == 1.2 Features == 37 37 38 38 ... ... @@ -368,98 +368,65 @@ 368 368 369 369 The project can be found at [[this link>>url:https://github.com/dragino/LoRa-HMI-Touch-Screen/tree/main/Example/P2P]]. 370 370 371 -== 5.1 FirmwareFlashing ==369 +== 5.1 firmware flashing approach. == 372 372 371 +5.1.1 Download this project 373 373 374 - Thefollowingsoftware toolsarequiredtoflash firmwareo theESP32LA66.373 +5.1.2 Download esp32 firmware flash tool in [[this link>>https://docs.espressif.com/projects/esp-test-tools/en/latest/esp32/production_stage/tools/flash_download_tool.html]]. 375 375 376 -* Download the ESP32 firmware flash tool from [[this link>>https://docs.espressif.com/projects/esp-test-tools/en/latest/esp32/production_stage/tools/flash_download_tool.html]]. 377 -* Download the LA66 firmware flash tool from [[this link>>https://www.dropbox.com/scl/fo/9kqeqf6wmet10o9hgxuwa/h?rlkey=4ikrg6kg5v0yjxwhp0i37wrv7&e=1&dl=0]]. 375 +5.1.3 Download la66 firmware flash tool in [[this link>>https://www.dropbox.com/scl/fo/9kqeqf6wmet10o9hgxuwa/h?rlkey=4ikrg6kg5v0yjxwhp0i37wrv7&e=1&dl=0]]. 378 378 379 - ===5.1.1Uploadthe Firmware totheESP32===377 +5.1.4 Upload firmware to esp32 380 380 381 -Open //**flash_download_tool.exe**//and follow the steps below.379 +Open flash_download_tool.exe, and then follow the steps below. 382 382 383 -* **Chip Type**: ESP32-S3 384 -* **WorkMode**: Develop 385 -* **LoadMode**: UART 386 -* Click on the **OK** button. 387 - 388 388 [[image:1738893226894-758.png||height="170" width="176"]] 389 389 383 +[[image:image-20250207100150-7.png||height="476" width="538"]] 390 390 391 - Inthe **SPIDownload**tab,385 +5.1.5 Upload firmware to la66 392 392 393 -* Select the checkboxes for ESP32_LoRaC-P2P_CommonFW_v1.0.0.bin. 394 -* SPI Flashing Config(default configuration): 395 -** **SPI SPEED**: 40MHz 396 -** **SPI MODE**: DIO 397 -** Check **DoNotChgBin** option. 398 -* **COM**: Select the correct COM port. 399 -* **BAUD**: 1152000 400 -* Click on the **START** button. 387 +Open Dragino_Sensor_Manager_Utility.exe, and then follow the steps below. 401 401 402 -[[image:image-20250 505122103-4.png||height="551" width="705"]]389 +[[image:image-20250207101415-8.png||height="522" width="618"]] 403 403 404 - The progress bar will indicate the firmware update progress and display a **FINISH**messageonce theupdateis complete.391 +[[image:image-20250207101515-9.png||height="522" width="618"]] 405 405 393 +== 5.2 AT command and LTS5 panel data format == 406 406 407 - If you want to compile your own ESP32 project andburn the firmware instead of using the pre-provided firmware in theFirmware folder,please use the following method.395 +AT+SEND=1,014b69746368656e2d467269676531FFFFA84041000181D4A8**01**A4CBBB0A8E085C02,0,3 408 408 409 - ~1.The first method is to use the IDF plugin in VSCode for flashing. Just click thebutton circledin red in the picture.397 +AT+SEND=1,014b69746368656e2d467269676531FFFFA84041000181D4A8**02**A4CB00,0,3 410 410 411 - [[image:1752737375843-555.png]]399 +AT+SEND=1,014b69746368656e2d467269676531FFFFA84041000181D4A8**03**A4CB00,0,3 412 412 413 - 2. The second method is to use the FLASH DOWNLOADTOOL. Select the4in files under the build folder in the project as shown in the following figure.401 +AT+SEND=1,014b69746368656e2d467269676531FFFFA84041000181D4A8**04**A4CB00,0,3 414 414 415 - Click the "CombineBin" button (indicated by the red box) in the following figure to combine the selected4in files. The combined firmware can be found in the "flash_download_tool_3.9.7/combine/"directory of this software. The ESP32_LoRaC-P2P_CommonFW_v1.0.0.bin firmware is a combined firmware.403 +AT+SEND=1,014b69746368656e2d467269676531FFFFA84041000181D4A8**05**A4CB00,0,3 416 416 417 - [[image:1752738269428-241.png||height="574" width="674"]]405 +AT+SEND=1,014b69746368656e2d467269676531FFFFA84041000181D4A8**06**A4CB00,0,3 418 418 407 +**LTS5 panel data format**: 419 419 420 -=== 5.1.2 Upload the Firmware to the LA66 === 421 - 422 -Open **Dragino_Sensor_Manager_Utility.exe**, and then follow the steps below. 423 - 424 -* Click on the UART Update Firmware tab. 425 -* Select the correct COM port. 426 -* Click on the Upload_File button and select the LA66_P2P_FW_v1.0.0.bin file. 427 -* Click on the Start button. 428 - 429 - 430 - 431 -[[image:image-20250505121328-2.png]] 432 - 433 - 434 -[[image:image-20250505121531-3.png]] 435 - 436 -(% class="wikigeneratedid" %) 437 -The progress bar will indicate the firmware update progress. 438 - 439 - 440 -== 5.2 AT commands and LTS5 Panel Data Formats == 441 - 442 -Currently, there are two types of panel data formats in LTS5. One is the temperature and humidity type, and the other is the "switch" type. Here is the detailed introduction. 443 - 444 444 ~1. AT+SEND=1,**01** **4b69746368656e2d467269676531FFFF A84041000181D4A8 01 A4CB BB0A 8E08 5C02**,0,3 445 445 446 446 **01:** encrypt. 1 Byte. 01 ~-~-> no encryption. This 1-byte information is now invalid; simply write 0x01 instead. 447 447 448 -**4b69746368656e2d467269676531FFFF: **Device Name. 16 Bytes. The Device Name for this piece of information is "Kitchen-Frige1", and the subsequent 'FFFF' is intended to pad it up to 16 Bytes, but it is not necessary as the LTS5can handle shorter names as well.413 +**4b69746368656e2d467269676531FFFF: **Device Name. 16 Bytes. The Device Name for this piece of information is "Kitchen-Frige1," and the subsequent "FFFF" is intended to pad it up to 16 Bytes. The Device Name for this piece of information is 'Kitchen-Frige1,' and the subsequent 'FFFF' is intended to pad it up to 16 Bytes, but it is not necessary as the system can handle shorter names as well. 449 449 450 450 **A84041000181D4A8:** Device EUI. 8 Bytes. The last three Bytes will be extracted by the ESP32-S3 and displayed on the screen. 451 451 452 452 **01: **Panel Type. 1 Byte. 0x01~-~->Tem & Hum, 453 453 454 - 419 + 0x02~-~->Door, 455 455 456 - 421 + 0x03~-~->Water Leak, 457 457 458 - 423 + 0x04~-~->Occupied, 459 459 460 - 425 + 0x05~-~->Button, 461 461 462 - 427 + 0x06~-~->Alarm, 463 463 464 464 **A4CB: **Battery level//. //2 Bytes. Battery Voltage =0xCBA4&0x3FFF=0x0BA4=2980mV 465 465 ... ... @@ -469,7 +469,6 @@ 469 469 470 470 **5C02:**The humidity of the built-in sensor in LHT65N. 2 Bytes. Humidity: 0x025C/10=60.4% 471 471 472 - 473 473 2. AT+SEND=1,**01** **4b69746368656e2d467269676531FFFF** **A84041000181D4A8** **02 A4CB 00**,0,3 474 474 475 475 Specific sections of the data share the same function. ... ... @@ -476,31 +476,14 @@ 476 476 477 477 **00: Status. **1 Byte//. //If Panel Type is 0x02, **Status: 00~-~->Open; 01~-~->Close.** 478 478 479 - 443 + If Panel Type is 0x03, **Status: 00~-~->Normal; 01~-~->Water Leaking.** 480 480 481 - 445 + If Panel Type is 0x04, **Status: 00~-~->Free; 01~-~->Occupied.** 482 482 483 - 447 + If Panel Type is 0x05, **Status: 00~-~->OFF; 01~-~->ON.** 484 484 485 - 449 + If Panel Type is 0x06, **Status: 00~-~->OFF; 01~-~->Alarm.** 486 486 487 - 488 -Below are examples of AT commands for each type. 489 - 490 - 491 -AT+SEND=1,014b69746368656e2d467269676531FFFFA84041000181D4A8**01**A4CBBB0A8E085C02,0,3 492 - 493 -AT+SEND=1,014b69746368656e2d467269676531FFFFA84041000181D4A8**02**A4CB00,0,3 494 - 495 -AT+SEND=1,014b69746368656e2d467269676531FFFFA84041000181D4A8**03**A4CB00,0,3 496 - 497 -AT+SEND=1,014b69746368656e2d467269676531FFFFA84041000181D4A8**04**A4CB00,0,3 498 - 499 -AT+SEND=1,014b69746368656e2d467269676531FFFFA84041000181D4A8**05**A4CB00,0,3 500 - 501 -AT+SEND=1,014b69746368656e2d467269676531FFFFA84041000181D4A8**06**A4CB00,0,3 502 - 503 - 504 504 == 5.3 Usage == 505 505 506 506 After burning the firmware into LTS5, you can use an LA66 equipped with peer-to-peer firmware to send data to LTS5 via AT commands. ... ... @@ -597,14 +597,8 @@ 597 597 Image 7.1: a panel about water_leak 598 598 599 599 600 -2. **Export the UI file .**547 +2. **Export the UI file: **You need to adjust the export path first, then click '**Export -> Export UI Files**' on the menu bar. This step was introduced earlier. After that, you can get the UI files as shown in Image 7.2. 601 601 602 -You need to adjust the export path first, then click '**Export -> Export UI Files**' on the menu bar. The method for exporting UI files using the SquareLine software has already been described earlier. 603 - 604 -Next, create a new folder named "ui_water_leak" under "app_components/extra_lib/", and then cut all the UI files you just exported into this newly created folder. 605 - 606 -Image 7.2 shows the result of the operation. 607 - 608 608 [[image:image-20241121141120-4.png||height="383" width="795"]] 609 609 610 610 Image 7.2: Exported UI files ... ... @@ -888,8 +888,8 @@ 888 888 = 11. Reference material = 889 889 890 890 891 -* Datasheet : [[https:~~/~~/www.dropbox.com/scl/fo/fr7wjsdfh9huchg59p7bv/APASCR0elWtp_EbUZ1W9K-A?rlkey=pcuptw3dtg5pw9vgt4ag6hs9z&st=ds6hdztg&dl=0>>https://www.dropbox.com/scl/fo/fr7wjsdfh9huchg59p7bv/APASCR0elWtp_EbUZ1W9K-A?rlkey=pcuptw3dtg5pw9vgt4ag6hs9z&st=ds6hdztg&dl=0]]892 -* schematic: [[LTS5-V1>> https://www.dropbox.com/scl/fo/grwr5b4x1tk2omyjwg06y/ACleSdi5f7p5zRB2mfPH7CE?rlkey=vhcs83jrj9tkmw8wa9m9wo5rx&st=hkhe3bbj&dl=0]]832 +* Datasheet 833 +* schematic: [[LTS5-V1>>attach:LTS5-V1.pdf]] 893 893 * Source Code: [[dragino/LoRa-HMI-Touch-Screen: Open Source LoRa / LoRaWAN HMI Touch Screen Project>>url:https://github.com/dragino/LoRa-HMI-Touch-Screen/tree/main]] 894 894 * Mechinical 895 895
- 1752737128542-192.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.xieby - Size
-
... ... @@ -1,1 +1,0 @@ 1 -52.4 KB - Content
- 1752737375843-555.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.xieby - Size
-
... ... @@ -1,1 +1,0 @@ 1 -9.4 KB - Content
- 1752738269428-241.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.xieby - Size
-
... ... @@ -1,1 +1,0 @@ 1 -52.7 KB - Content
- image-20250505112032-1.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.xieby - Size
-
... ... @@ -1,1 +1,0 @@ 1 -43.9 KB - Content
- image-20250505121328-2.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.xieby - Size
-
... ... @@ -1,1 +1,0 @@ 1 -12.2 KB - Content
- image-20250505121531-3.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.xieby - Size
-
... ... @@ -1,1 +1,0 @@ 1 -21.3 KB - Content
- image-20250505122103-4.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.xieby - Size
-
... ... @@ -1,1 +1,0 @@ 1 -46.1 KB - Content