<
From version < 156.1
edited by Kilight Cao
on 2024/06/22 10:43
To version < 153.1 >
edited by Xiaoye
on 2024/06/22 09:44
Change comment: Uploaded new attachment "image-20240622094409-1.png", version {1}

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.Kilight
1 +XWiki.Xiaoye
Content
... ... @@ -535,17 +535,9 @@
535 535  * (% style="color:#0000ff" %)**Auto run**(%%) dragino_fwd after boot:  sudo systemctl enable draginofwd
536 536  * (% style="color:#0000ff" %)**Show status** (%%)of dragino_fwd:  sudo systemctl status draginofwd
537 537  
538 -
539 -
540 -
541 541  === 5.2.2 Basic Station Mode. ===
542 542  
543 543  
544 -The following example is connecting to TTNv3 via basic station:
545 -
546 -**[[Server Addresses ~| The Things Stack for Basic Station (thethingsindustries.com)>>https://console.cloud.thethings.network/]]**
547 -
548 -
549 549  ==== **a). Get a gateway EUI from the device ETH MAC.** ====
550 550  
551 551  
... ... @@ -589,109 +589,59 @@
589 589  ==== **e.) Uploda API keys into the gateway** ====
590 590  
591 591  
592 -The user can find the Basic Station configuration directory in (% style="color:#0000ff" %)**/etc/station/:**
584 +the User can find the Basic Station configuration directory in (% style="color:#0000ff" %)**/etc/station/**(%%) there is the station.conf files, and ttnstack directory.
593 593  
594 594  //**directory tree:**//
595 595  
596 -/etc/station/
597 -└── station.conf  ~-~--> station configuration file
588 +///etc/station/
589 +├── station.conf 
590 +└── ttnstack  ~-~--> ** ttnstack configuration file directory**
591 + ├── cups.trust  ~-~-->  ttnstack auth file
592 + ├── cups.uri  ~-~-->  ttnstack server URI file
593 + └── station.conf  ~-~-~-~-> backup configuration file//
598 598  
599 599  
596 +
600 600  **and then upload the downloaded keys to this directory((% style="color:#0000ff" %)/etc/station/(%%))**
601 601  
602 602  eg:
603 603  
604 -/etc/station/.
605 -├── cups.key
606 -├── cups.trust
607 -├── cups.uri
608 -├── lns.key
609 -└── station.conf
610 -
601 +/etc/station/
602 +├── cups.key  ~-~--> uploaded by you
603 +├── lns.key  ~-~--> uploaded by you
604 +├── station.conf
611 611  
612 -**lns.key and cups.key are generated by the preceding steps**
613 613  
607 +==== **f). Configure gateway EUI and server address** ====
614 614  
615 -**Download cups.trust**
616 616  
617 -(% class="box infomessage" %)
618 -(((
619 -wget [[dragino.com/downloads/downloads/LoRa_Gateway/LPS8/Firmware/customized_script/cups.trust>>url:https://www.dragino.com/downloads/downloads/LoRa_Gateway/LPS8/Firmware/customized_script/cups.trust]]
620 -)))
610 +[[image:image-20230329195650-10.png]]
621 621  
622 622  
623 -**Manually create and edit the cups.uri file**
613 +After the user enters the correct parameters, the server will be run automatically
624 624  
625 -(% class="box infomessage" %)
626 -(((
627 -touch cups.uri
628 628  
629 -nano cups.uri
630 -)))
631 -
632 -Then enter the URI address of the server, for example: **https:~/~/eu1.cloud.thethings.network:443**
633 -
634 -
635 -
636 -==== **f). Configure Gateway EUI** ====
637 -
638 -[[image:image-20240622094409-1.png]]
639 -
640 -
641 -
642 -
643 -==== **g). **Start the station service ====
644 -
645 -After configuring the GWEUI and uploading the certificate, you can start the station service via the below command:
646 -
647 -(% class="box infomessage" %)
648 -(((
649 -ln -sf /usr/bin/station_sx1302 /usr/bin/station
650 -
651 -systemctl start draginostation
652 -)))
653 -
654 -
655 -systemctl start draginostation  ~-~- start draginostation service
656 -
657 -systemctl stop draginostation  ~-~- Stop draginostation service
658 -
659 -systemctl enable draginostation ~-~- enable boot auto start draginostation service
660 -
661 -systemctl disable  draginostation  ~-~- disable boot auto start draginostation service
662 -
663 -
664 -
665 665  Tree Directory:
666 666  
667 667  /etc/station/
668 -
669 -├── cups-bak.done
670 -├── cups-bak.key
671 -├── cups-bak.trust
672 -├── cups-bak.uri
673 673  ├── cups.key
674 674  ├── cups.trust
675 675  ├── cups.uri
676 676  ├── lns.key
623 +├── start-configure.sh
677 677  ├── station.conf
678 -├── tc-bak.crt
679 -├── tc-bak.done
680 -├── tc-bak.key
681 -├── tc-bak.trust
682 -├── tc-bak.uri
683 -├── tc.crt
684 -├── tc.key
685 -├── tc.trust
686 -└── tc.uri
687 -
625 +└── ttnstack
626 + ├── cups.trust
627 + ├── cups.uri
628 + └── station.conf
688 688  
689 689  
690 -==== **h). Check station running log** ====
631 +==== **g). Check station running log** ====
691 691  
692 692  
693 693  tail -f /var/log/station.log
694 694  
636 +
695 695  [[image:image-20230329201624-11.png]]
696 696  
697 697  
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0