<
From version < 165.2 >
edited by BoYang Xie
on 2025/02/08 14:35
To version < 165.3 >
edited by BoYang Xie
on 2025/02/08 16:45
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -471,7 +471,7 @@
471 471  
472 472  == 6.1 firmware flashing approach ==
473 473  
474 -The firmware flashing approach is the same as described in section [[5.1>>5.1]].
474 +The firmware flashing approach is the same as described in section 5.1.
475 475  
476 476  == 6.2 flowchart ==
477 477  
... ... @@ -479,7 +479,7 @@
479 479  
480 480  == 6.3 Usage ==
481 481  
482 -This section now describes a process about TTN downlink panel data to display on LTS5 screen.
482 +This section now describes a process involving TTN downlink panel data that is to be displayed on the LTS5 screen.
483 483  
484 484  6.3.1 Connect LA66 to the computer, open Serial Port Utility, and send the AT+CFG instruction to check whether the LA66 has downloaded correct program.
485 485  
... ... @@ -501,30 +501,30 @@
501 501  
502 502  [[image:image-20250207192107-28.png]]
503 503  
504 -6.3.5 TTN distributes panel data in three batches~-~-DEUI, Dev Name, Sensor Data. The Dev Name, the last three bytes of the DEUI, and the panel type union together ensure the identification of a panel. Data about the same panel type will update the existing panel display, while data about a different panel type will create a new panel display on the LTS5 screen.
504 +6.3.5 TTN distributes panel data in three phases: DEUI, Dev Name, and Sensor Data. The Dev Name, the last three bytes of the DEUI, and the panel type union together ensure the identification of a panel. Data about the same panel type will update the existing panel display, while data about a different panel type will create a new panel display on the LTS5 screen.
505 505  
506 -There is a example for TTN downlink.
506 +There is an example for TTN downlink.
507 507  
508 508  1. downlink DEUI F1A84041000181D4A8
509 509  1. downlink Dev Name F24B69746368656E2D467269676531FFFF
510 510  1. downlink Sensor Data 5501A4CBBB0A8E085C02 or 5504A4CB01. Both of them are vaild formats for LTS5. Note: 0x55 as prefix and any other prefix except 0xF1, 0xF2, 0xF3 means downlink is Sensor Data.
511 511  
512 -= 5. The method for adding a new type of panel to the project =
512 += 7. The method for adding a new type of panel to the project =
513 513  
514 514  If you don't have this need, then this part of the content can be ignored.
515 515  
516 -1. Design a panel in SquareLine Studio, as shown in Image 5.1 below for reference.
516 +1. Design a panel in SquareLine Studio, as shown in Image 7.1 below for reference.
517 517  
518 518  [[image:image-20241121113445-1.png||height="584" width="934"]]
519 519  
520 - Image 5.1: a panel about water_leak
520 + Image 7.1: a panel about water_leak
521 521  
522 522  
523 -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 5.2.
523 +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.
524 524  
525 525  [[image:image-20241121141120-4.png||height="383" width="795"]]
526 526  
527 - Image 5.2: Exported UI files
527 + Image 7.2: Exported UI files
528 528  
529 529  
530 530  3. **Delete and rename some file.** Here are the steps:
... ... @@ -537,114 +537,114 @@
537 537  
538 538  [[image:image-20241121151934-10.png||height="303" width="792"]]
539 539  
540 - image 5.3 rest file (1)
540 + image 7.3 rest file (1)
541 541  
542 542  [[image:image-20241121142925-7.png||height="141" width="793"]]
543 543  
544 - image 5.4 rest file (2)
544 + image 7.4 rest file (2)
545 545  
546 -4. Open the project in **VS Code**.
546 +4. Open the project in VS Code.
547 547  
548 -5. Add the file include path for **water_leak** in **extra_lib/CMakeLists.txt**, as shown in Images 5.5 and 5.6. Its format is similar to that of **tem_hum** or **door**."
548 +5. Add the file include path for **water_leak** in **extra_lib/CMakeLists.txt**, as shown in Images 7.5 and 7.6. Its format is similar to that of **tem_hum** or **door**."
549 549  
550 550  [[image:image-20241121181957-17.png||height="438" width="516"]]
551 551  
552 - image 5.5 extra_lib/CMakeLists.txt before add
552 + image 7.5 extra_lib/CMakeLists.txt before adding
553 553  
554 554  [[image:image-20241121182239-18.png||height="520" width="518"]]
555 555  
556 - image 5.6 extra_lib/CMakeLists.txt after add
556 + image 7.6 extra_lib/CMakeLists.txt after adding
557 557  
558 558  6.  **Modify the header files included in the fonts and images directories**.
559 559  
560 -Open the **fonts/ui_font_Font12.c** file, as shown in Image 5.7, and change **#include "../ui.h"** to **#include "../ui_water_leak.h"**. The modified file is shown in Image 5.8. Other font files need to be modified in the same way.
560 +Open the **fonts/ui_font_Font12.c** file, as shown in Image 7.7, and change **#include "../ui.h"** to **#include "../ui_water_leak.h"**. The modified file is shown in Image 7.8. Other font files need to be modified in the same way.
561 561  
562 562  [[image:image-20241121171629-11.png]]
563 563  
564 - image 5.7 before-modified font file
564 + image 7.7 unmodified font file
565 565  
566 566  [[image:image-20241121171901-12.png]]
567 567  
568 - image 5.8 modified font file
568 + image 7.8 modified font file
569 569  
570 -Open the **images/ui_img_battery_empty_png.c** file, as shown in Image 5.9, and change **#include "../ui.h"** to **#include "../ui_water_leak.h"**. The modified file is shown in Image 5.10. Other image files need to be modified in the same way.
570 +Open the **images/ui_img_battery_empty_png.c** file, as shown in Image 7.9, and change **#include "../ui.h"** to **#include "../ui_water_leak.h"**. The modified file is shown in Image 7.10. Other image files need to be modified in the same way.
571 571  
572 572  [[image:image-20241121172714-13.png]]
573 573  
574 - image 5.9 before-modified image file
574 + image 7.9 unmodified image file
575 575  
576 576  [[image:image-20241121172908-14.png]]
577 577  
578 - image 5.10 modified image file
578 + image 7.10 modified image file
579 579  
580 -7. Modify the **ui_water_leak/CMakeLists.txt**. Open this file, and modify it as shown in image 5.11 (before) and image 5.12 (after).
580 +7. Modify the **ui_water_leak/CMakeLists.txt**. Open this file, and modify it as shown in image 7.11 (before) and image 7.12 (after).
581 581  
582 582  [[image:image-20241121180030-15.png]]
583 583  
584 - image 5.11 ui_water_leak/CMakeLists.txt before modification
584 + image 7.11 ui_water_leak/CMakeLists.txt before modification
585 585  
586 586  [[image:image-20241121180517-16.png]]
587 587  
588 - image 5.12 ui_water_leak/CMakeLists.txt after modification
588 + image 7.12 ui_water_leak/CMakeLists.txt after modification
589 589  
590 590  
591 -8. Modify the **ui_water_leak.h** file. Images 5.13 and 5.14 show the code before modification, while Images 5.15 and 5.16 show the code after modification.
591 +8. Modify the **ui_water_leak.h** file. Images 7.13 and 7.14 show the code before modification, while Images 7.15 and 7.16 show the code after modification.
592 592  
593 593  [[image:image-20241122094200-23.png]]
594 594  
595 - image 5.13 ui_water_leak.h (1) before modification
595 + image 7.13 ui_water_leak.h (1) before modification
596 596  
597 597  [[image:image-20241122094320-24.png||height="852" width="554"]]
598 598  
599 - image 5.14 ui_water_leak.h (2) before modification
599 + image 7.14 ui_water_leak.h (2) before modification
600 600  
601 601  [[image:image-20241122094600-25.png||height="1078" width="554"]]
602 602  
603 - image 5.15 ui_water_leak.h (1) after modification
603 + image 7.15 ui_water_leak.h (1) after modification
604 604  
605 605  [[image:image-20241122094719-26.png||height="941" width="583"]]
606 606  
607 - image 5.16 ui_water_leak.h (2) before modification
607 + image 7.16 ui_water_leak.h (2) before modification
608 608  
609 -9. **Modify ui_water_leak.c file.** The image 5.17, 5.18, 5.19 show the code before modification, and the image 5.20, 5.21, 5.22 show the code after modification.
609 +9. **Modify ui_water_leak.c file.** The image 7.17, 7.18, 7.19 show the code before modification, and the image 7.20, 7.21, 7.22 show the code after modification.
610 610  
611 611  _ui_flag_modify( ((lv_obj_t *)(e->user_data)), LV_OBJ_FLAG_HIDDEN, _UI_MODIFY_FLAG_TOGGLE);  This code replaces 4 lines of code in ui_water_leak.c, so it is pasted here for convenience.
612 612  
613 613  [[image:image-20241122102929-27.png||height="619" width="426"]]
614 614  
615 - image 5.17 ui_water_leak.c (1) before modification
615 + image 7.17 ui_water_leak.c (1) before modification
616 616  
617 617  [[image:image-20241122112838-30.png||height="551" width="628"]]
618 618  
619 - image 5.18 ui_water_leak.c (2) before modification
619 + image 7.18 ui_water_leak.c (2) before modification
620 620  
621 621  [[image:image-20241122110815-29.png||height="725" width="712"]]
622 622  
623 - image 5.19 ui_water_leak.c (3) before modification
623 + image 7.19 ui_water_leak.c (3) before modification
624 624  
625 625  [[image:image-20241122113158-31.png||height="872" width="677"]]
626 626  
627 - image 5.20 ui_water_leak.c (1) after modification
627 + image 7.20 ui_water_leak.c (1) after modification
628 628  
629 629  [[image:image-20241122113259-33.png||height="874" width="724"]]
630 630  
631 - image 5.21 ui_water_leak.c (2) after modification
631 + image 7.21 ui_water_leak.c (2) after modification
632 632  
633 633  [[image:image-20241122113359-34.png||height="804" width="746"]]
634 634  
635 - image 5.22 ui_water_leak.c (3) after modification
635 + image 7.22 ui_water_leak.c (3) after modification
636 636  
637 -10. **Modify ui_water_leak_events.h file.** The image 5.23 show the code before modification, and the image 5.24 show the code after modification.
637 +10. **Modify ui_water_leak_events.h file.** The image 7.23 show the code before modification, and the image 7.24 show the code after modification.
638 638  
639 639  [[image:image-20241122134113-35.png||height="380" width="421"]]
640 640  
641 - image 5.23 ui_water_leak_events_.h before modification
641 + image 7.23 ui_water_leak_events_.h before modification
642 642  
643 643  [[image:image-20241122134420-37.png||height="201" width="283"]]
644 644  
645 -image 5.24 ui_water_leak_events_.h after modification
645 +image 7.24 ui_water_leak_events_.h after modification
646 646  
647 -11.** Modify ui_water_leak_events.c file.** The image 5.25 show the code before modification, and the image 5.26 show the code after modification.
647 +11.** Modify ui_water_leak_events.c file.** The image 7.25 show the code before modification, and the image 7.26 show the code after modification.
648 648  
649 649  Step1. '#include "ui.h"'~-~->'#include "ui_water_leak.h"'
650 650  
... ... @@ -658,11 +658,11 @@
658 658  
659 659  [[image:image-20241122135023-38.png||height="358" width="372"]]
660 660  
661 - image 5.25 ui_water_leak_events_.c before modification
661 + image 7.25 ui_water_leak_events_.c before modification
662 662  
663 663  [[image:image-20241122135258-39.png||height="403" width="559"]]
664 664  
665 - image 5.26 ui_water_leak_events_.c after modification
665 + image 7.26 ui_water_leak_events_.c after modification
666 666  
667 667  
668 668  12. **Modify ui_water_leak_style.c file.**
... ... @@ -675,67 +675,67 @@
675 675  
676 676  [[image:image-20241122141536-41.png||height="361" width="612"]]
677 677  
678 - image 5.27 ui_water_leak_style.c (1) before modification
678 + image 7.27 ui_water_leak_style.c (1) before modification
679 679  
680 680  [[image:image-20241122142129-42.png||height="386" width="613"]]
681 681  
682 - image 5.28 ui_water_leak_style.c (1) after modification
682 + image 7.28 ui_water_leak_style.c (1) after modification
683 683  
684 684  
685 685  Step2. modify 'void ui_ScreenMain_screen_init(void)'~-~->'panel_with_type create_water_leak(uint8_t index)'
686 686  
687 - delete code as shown in image 5.29
687 + delete code as shown in image 7.29
688 688  
689 689  [[image:image-20241122145620-44.png||height="757" width="671"]]
690 690  
691 - image 5.29 ui_water_leak_style.c (2)
691 + image 7.29 ui_water_leak_style.c (2)
692 692  
693 693  
694 -Step3. The image 5.30, 5.31 show the change.
694 +Step3. The image 7.30, 7.31 show the change.
695 695  
696 696  [[image:image-20241122152026-45.png||height="277" width="828"]]
697 697  
698 - image 5.30 ui_water_leak_style.c (3) before modification
698 + image 7.30 ui_water_leak_style.c (3) before modification
699 699  
700 700  [[image:image-20241122152542-46.png||height="293" width="830"]]
701 701  
702 - image 5.31 ui_water_leak_style.c (3) after modification
702 + image 7.31 ui_water_leak_style.c (3) after modification
703 703  
704 704  
705 -Step4. Copy partly the code in ui_water_leak.c, paste at extra_lib/sort.h(The process is shown in image 5.32, 5.33).
705 +Step4. Copy partly the code in ui_water_leak.c, paste at extra_lib/sort.h(The process is shown in image 7.32, 7.33).
706 706  
707 707  [[image:image-20241122153958-47.png]]
708 708  
709 - image 5.32 ui_water_leak_style.c (4)
709 + image 7.32 ui_water_leak_style.c (4)
710 710  
711 711  
712 712  [[image:image-20241122154755-49.png||height="864" width="513"]]
713 713  
714 - image 5.33 ui_water_leak_style.c (4)
714 + image 7.33 ui_water_leak_style.c (4)
715 715  
716 716  
717 -Step5. Delete event function in code which was just pasted in extra_lib/sort.h(The process is shown in image 5.34).
717 +Step5. Delete event function in code which was just pasted in extra_lib/sort.h(The process is shown in image 7.34).
718 718  
719 719  [[image:image-20241122155650-50.png||height="922" width="513"]]
720 720  
721 - image 5.34 ui_water_leak_style.c (5)
721 + image 7.34 ui_water_leak_style.c (5)
722 722  
723 723  
724 -Step6. Add some lines of code in extra_lib/sort.h as shown in image 5.35.
724 +Step6. Add some lines of code in extra_lib/sort.h as shown in image 7.35.
725 725  
726 726  [[image:image-20241122161934-51.png]]
727 727  
728 - image 5.35
728 + image 7.35
729 729  
730 730  
731 -Step7. Add a line of code in extra_lib/sort.h as shown in image 5.36.
731 +Step7. Add a line of code in extra_lib/sort.h as shown in image 7.36.
732 732  
733 733  [[image:image-20241122162852-53.png||height="330" width="529"]]
734 734  
735 - image 5.37
735 + image 7.37
736 736  
737 737  
738 -Step8. Add some code in ui_water_leak_style.c as shown in image 5.38 from line534 to line 576 in detail.
738 +Step8. Add some code in ui_water_leak_style.c as shown in image 7.38 from line534 to line 576 in detail.
739 739  
740 740  panel_with_type union_sensor;
741 741  
... ... @@ -751,16 +751,16 @@
751 751  
752 752  [[image:image-20250122173546-6.png||height="777" width="922"]]
753 753  
754 - image 5.38
754 + image 7.38
755 755  
756 756  
757 757  13. Rest midification in sort.h file.
758 758  
759 -In image 5.39 as below, we can see "WATER_LEAK_TYPE" at line 24 and water leak switch status definition at line 32,33, and these are what we need to add in sort.h.
759 +In image 7.39 as below, we can see "WATER_LEAK_TYPE" at line 24 and water leak switch status definition at line 32,33, and these are what we need to add in sort.h.
760 760  
761 761  [[image:image-20250122170230-1.png||height="580" width="513"]]
762 762  
763 - image 5.39 sort.h
763 + image 7.39 sort.h
764 764  
765 765  13. **Modify sort.c file.**
766 766  
... ... @@ -768,26 +768,26 @@
768 768  
769 769  [[image:image-20250122171910-5.png||height="524" width="510"]]
770 770  
771 - image 5.40 sort.c (1)
771 + image 7.40 sort.c (1)
772 772  
773 773  There are still some changes need to be done in sort.c, and omit here for the moment.
774 774  
775 775  
776 776  
777 -= 6. FAQ =
777 += 8. FAQ =
778 778  
779 -== 6.1 ==
779 +== 8.1 ==
780 780  
781 781  
782 -= 7. Order Info =
782 += 9. Order Info =
783 783  
784 -== 7.1  Part Number ==
784 +== 9.1  Part Number ==
785 785  
786 786  
787 787  Part Number: (% style="color:#4472c4" %)LTS5
788 788  
789 789  
790 -== 7.2  Packing Info ==
790 +== 9.2  Packing Info ==
791 791  
792 792  
793 793  **Package Includes**:
... ... @@ -796,13 +796,13 @@
796 796  * 5V,2A DC Power Adapter.
797 797  * USB Type C Program Cable
798 798  
799 -= 8. Support =
799 += 10. Support =
800 800  
801 801  
802 802  * 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.
803 803  * Provide as much information as possible regarding your enquiry (product models, accurately describe your problem and steps to replicate it etc) and send a mail to [[support@dragino.com>>url:file:///D:/市场资料/说明书/LoRa/LT系列/support@dragino.com]].
804 804  
805 -= 9.  Reference material =
805 += 11.  Reference material =
806 806  
807 807  
808 808  * Datasheet
... ... @@ -809,7 +809,7 @@
809 809  * 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]]
810 810  * Mechinical
811 811  
812 -= 10. FCC Warning =
812 += 12. FCC Warning =
813 813  
814 814  
815 815  This device complies with part 15 of the FCC Rules.Operation is subject to the following two conditions:
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0