TTOG - Basic Station Firmware

Hi Guys,

I updated our Things Outdoor Gateway yesterday, to support Basics Station.

Does anyone have any experience of this?

EUI looks like it has changed (looking at logs).

I have installed the Trust certificate, and API Key LNS file… But all I see is Websocket back off requests in the logs.

Only obvious pointer is the internal clock at default of 2012. From experience time/date and certificates don’t play nicely if not sync’d.

… Are there any SSH details out there to set NTP?

Hi,

How did you upgrade TTOG to support BasicsStation? Can you please point me to the firmware? Thanks in advance.

  • Janakiram
1 Like
1 Like

Thanks for sharing the firmware! Were you able to configure CUPS and LNS successfully? Are there any issues with the NTP and certificates as you mentioned in the previous post?

Regards,
Janakiram

Just make sure the internal clock is synchronised (check the logs in the console)

If not, you will need to SSH to the TTOG and set the time/date.

Didnt use CUPS, just the manual LNS.

I’m trying to register a new TTOG gateway using the Basic Station… but so far unsuccessful.

Can you share the steps for LNS?

What I’ve done:

  1. Created a New Gateway using the EUI from the logs of the TTOG
  2. created a LNS key, and converted it to a key file and uploaded that key file to the “key” field in the TTOG interface
  3. Uploaded the Trust Certicate File
  4. Left the Cert File Empty (what file is this?)
  5. Configured the Rest of the Connection per the screenshot below
  6. The TTOG remains “disconnected” in the Console.

image

This is the Logs from the TTOG:

2021-07-02 03:59:32.123 [SYS:INFO] Logging     : /tmp/station.log (maxsize=10000000, rotate=3)

2021-07-02 03:59:32.123 [SYS:INFO] Station Ver : 2.0.3(brwodu/debugn) 2020-02-07 03:02:29

2021-07-02 03:59:32.123 [SYS:INFO] Package Ver : 1.0.0

2021-07-02 03:59:32.123 [SYS:INFO] proto EUI   : 0:8002:9ccb:96b4	(/sys/class/net/eth0/address)

2021-07-02 03:59:32.123 [SYS:INFO] prefix EUI  : ::1	(builtin)

2021-07-02 03:59:32.123 [SYS:INFO] Station EUI : 8002:9cff:fecb:96b4

2021-07-02 03:59:32.123 [SYS:INFO] Station home: /opt/basicstation/	(--home)

2021-07-02 03:59:32.123 [SYS:INFO] Station temp: /var/tmp/	(builtin)

2021-07-02 03:59:32.123 [SYS:INFO] GPS device: /dev/ttyS3

2021-07-02 03:59:32.123 [SYS:WARN] Station in NO-CUPS mode

2021-07-02 03:59:32.125 [RAL:DEBU] execvp argv[0]: </proc/self/exe>

2021-07-02 03:59:32.125 [RAL:DEBU]        argv[1]: <-S>

2021-07-02 03:59:32.125 [RAL:DEBU]        argv[2]: <(null)>

2021-07-02 03:59:32.128 [S00:INFO] Logging     : /tmp/station.log (maxsize=10000000, rotate=3)

2021-07-02 03:59:32.128 [S00:INFO] Station Ver : 2.0.3(brwodu/debugn) 2020-02-07 03:02:29

2021-07-02 03:59:32.128 [S00:INFO] Package Ver : 1.0.0

2021-07-02 03:59:32.128 [S00:INFO] proto EUI   : 0:8002:9ccb:96b4	(/sys/class/net/eth0/address)

2021-07-02 03:59:32.128 [S00:INFO] prefix EUI  : ::1	(builtin)

2021-07-02 03:59:32.128 [S00:INFO] Station EUI : 8002:9cff:fecb:96b4

2021-07-02 03:59:32.128 [S00:INFO] Station home: /opt/basicstation/	(STATION_HOME)

2021-07-02 03:59:32.129 [S00:INFO] Station temp: /var/tmp/	(builtin)

2021-07-02 03:59:32.129 [S00:INFO] Station slave: 0

2021-07-02 03:59:32.129 [S00:WARN] Station in NO-CUPS mode

2021-07-02 03:59:32.129 [S00:INFO] Slave LGW (0) - started.

2021-07-02 03:59:32.124 [RAL:INFO] Master has started slave: pid=3377 idx=0 (attempt 1)

2021-07-02 03:59:32.329 [TCE:INFO] Starting TC engine

2021-07-02 03:59:32.331 [any:INFO] cert. version     : 3

serial number     : 82:10:CF:B0:D2:40:E3:59:44:63:E0:BB:63:82:8B:00

issuer name       : C=US, O=Internet Security Research Group, CN=ISRG Root X1

subject name      : C=US, O=Internet Security Research Group, CN=ISRG Root X1

issued  on        : 2015-06-04 11:04:38

expires on        : 2035-06-04 11:04:38

signed using      : RSA with SHA-256

RSA key size      : 4096 bits

basic constraints : CA=true

key usage         : Key Cert Sign, CRL Sign

2021-07-02 03:59:32.331 [AIO:INFO] tc has no cert configured - running server auth and client auth with token

2021-07-02 03:59:32.439 [TCE:INFO] Connecting to INFOS: wss://lns.au.thethings.network:443

2021-07-02 03:59:33.005 [TCE:INFO] Infos: 8002:9cff:fecb:96b4 muxs-::0 wss://lns.au.thethings.network:443/traffic/eui-80029CFFFECB96B4

2021-07-02 03:59:33.005 [AIO:DEBU] [7] ws_close reason=1000

2021-07-02 03:59:33.005 [AIO:ERRO] Recv failed: SSL - The peer notified us that the connection is going to be closed

2021-07-02 03:59:33.005 [AIO:DEBU] [7] WS connection shutdown...

2021-07-02 03:59:33.006 [any:INFO] cert. version     : 3

serial number     : 82:10:CF:B0:D2:40:E3:59:44:63:E0:BB:63:82:8B:00

issuer name       : C=US, O=Internet Security Research Group, CN=ISRG Root X1

subject name      : C=US, O=Internet Security Research Group, CN=ISRG Root X1

issued  on        : 2015-06-04 11:04:38

expires on        : 2035-06-04 11:04:38

signed using      : RSA with SHA-256

RSA key size      : 4096 bits

basic constraints : CA=true

key usage         : Key Cert Sign, CRL Sign

2021-07-02 03:59:33.006 [AIO:INFO] tc has no cert configured - running server auth and client auth with token

2021-07-02 03:59:33.110 [TCE:VERB] Connecting to MUXS...

2021-07-02 03:59:33.672 [S00:WARN] Ignoring unsupported/unknown field: antenna_gain

2021-07-02 03:59:33.676 [S00:INFO] Lora gateway library version: Version: 5.0.1;

2021-07-02 03:59:33.676 [S00:DEBU] SX1301 txlut table (0 entries)

2021-07-02 03:59:33.676 [S00:VERB] SX1301 rxrfchain 0: enable=1 freq=917200000 rssi_offset=-166.000000 type=2 tx_enable=1 tx_notch_freq=0

2021-07-02 03:59:33.677 [S00:VERB] SX1301 rxrfchain 1: enable=1 freq=917900000 rssi_offset=-166.000000 type=2 tx_enable=0 tx_notch_freq=0

2021-07-02 03:59:33.677 [S00:VERB] SX1301 ifchain  0: enable=1 rf_chain=0 freq=-400000 bandwidth=0 datarate=0 sync_word=0/0

2021-07-02 03:59:33.677 [S00:VERB] SX1301 ifchain  1: enable=1 rf_chain=0 freq=-200000 bandwidth=0 datarate=0 sync_word=0/0

2021-07-02 03:59:33.677 [S00:VERB] SX1301 ifchain  2: enable=1 rf_chain=0 freq=0 bandwidth=0 datarate=0 sync_word=0/0

2021-07-02 03:59:33.677 [S00:VERB] SX1301 ifchain  3: enable=1 rf_chain=0 freq=200000 bandwidth=0 datarate=0 sync_word=0/0

2021-07-02 03:59:33.677 [S00:VERB] SX1301 ifchain  4: enable=1 rf_chain=1 freq=-300000 bandwidth=0 datarate=0 sync_word=0/0

2021-07-02 03:59:33.677 [S00:VERB] SX1301 ifchain  5: enable=1 rf_chain=1 freq=-100000 bandwidth=0 datarate=0 sync_word=0/0

2021-07-02 03:59:33.677 [S00:VERB] SX1301 ifchain  6: enable=1 rf_chain=1 freq=100000 bandwidth=0 datarate=0 sync_word=0/0

2021-07-02 03:59:33.677 [S00:VERB] SX1301 ifchain  7: enable=1 rf_chain=1 freq=300000 bandwidth=0 datarate=0 sync_word=0/0

2021-07-02 03:59:33.677 [S00:VERB] SX1301 ifchain  8: enable=1 rf_chain=0 freq=300000 bandwidth=1 datarate=4 sync_word=0/0

2021-07-02 03:59:33.677 [S00:VERB] SX1301 ifchain  9: enable=0 rf_chain=0 freq=0 bandwidth=0 datarate=0 sync_word=0/0

2021-07-02 03:59:33.677 [S00:VERB] SX1301 LBT not enabled

2021-07-02 03:59:33.677 [S00:INFO] Station device: /dev/spidev0.0 (PPS capture enabled)

2021-07-02 03:59:33.579 [TCE:VERB] Connected to MUXS.

2021-07-02 03:59:33.620 [RAL:INFO] Region plan hwspec 'sx1301/1' mapped to 1 slaves 'sx1301/1'

2021-07-02 03:59:33.620 [RAL:INFO] Master sending 768 bytes of JSON sx1301conf to slave (0)

2021-07-02 03:59:33.626 [S2E:INFO] Configuring for region: AU915 -- 915.0MHz..928.0MHz

2021-07-02 03:59:33.627 [S2E:VERB]   DR0  SF12/BW125 

2021-07-02 03:59:33.627 [S2E:VERB]   DR1  SF11/BW125 

2021-07-02 03:59:33.627 [S2E:VERB]   DR2  SF10/BW125 

2021-07-02 03:59:33.627 [S2E:VERB]   DR3  SF9/BW125 

2021-07-02 03:59:33.627 [S2E:VERB]   DR4  SF8/BW125 

2021-07-02 03:59:33.627 [S2E:VERB]   DR5  SF7/BW125 

2021-07-02 03:59:33.627 [S2E:VERB]   DR6  SF8/BW500 

2021-07-02 03:59:33.627 [S2E:VERB]   DR7  FSK 

2021-07-02 03:59:33.627 [S2E:VERB]   DR8  SF12/BW500 

2021-07-02 03:59:33.627 [S2E:VERB]   DR9  SF11/BW500 

2021-07-02 03:59:33.627 [S2E:VERB]   DR10 SF10/BW500 

2021-07-02 03:59:33.627 [S2E:VERB]   DR11 SF9/BW500 

2021-07-02 03:59:33.627 [S2E:VERB]   DR12 SF8/BW500 

2021-07-02 03:59:33.627 [S2E:VERB]   DR13 SF7/BW500 

2021-07-02 03:59:33.627 [S2E:VERB]   DR14 FSK 

2021-07-02 03:59:33.627 [S2E:VERB]   DR15 FSK 

2021-07-02 03:59:33.627 [S2E:VERB]   TX power: 14.0 dBm EIRP

2021-07-02 03:59:33.627 [S2E:VERB]   JoinEui list: 0 entries

2021-07-02 03:59:33.627 [S2E:VERB]   NetID filter: FFFFFFFF-FFFFFFFF-FFFFFFFF-FFFFFFFF

2021-07-02 03:59:33.627 [S2E:VERB]   Dev/test settings: nocca=1 nodc=1 nodwell=1

2021-07-02 03:59:40.838 [SYN:INFO] First PPS pulse acquired

2021-07-02 03:59:40.838 [SYN:INFO] Obtained initial PPS offset (859570) - starting timesync with LNS

2021-07-02 03:59:40.839 [SYN:DEBU] Timesync #2 sent to server

2021-07-02 03:59:40.910 [SYN:DEBU] Timesync #3 sent to server

2021-07-02 03:59:40.981 [SYN:DEBU] Timesync #4 sent to server

2021-07-02 03:59:41.052 [SYN:DEBU] Timesync #5 sent to server

2021-07-02 03:59:41.123 [SYN:DEBU] Timesync #6 sent to server

2021-07-02 03:59:41.194 [SYN:DEBU] Timesync #7 sent to server

2021-07-02 03:59:41.265 [SYN:DEBU] Timesync #8 sent to server
1 Like

eu-lns

You got to change the URL of the server. Refer to the screenshot above.

For Trust certificate, download the PEM file from here.

Delete the default certificate already uploaded. Leave the CRT to blank.

For LNS Key, generate an API key from TTN V3 Console and generate a key as per the instructions mentioned here.

1 Like

You’ve managed to connect to the V2 LNS successfully there…

For Version 3 - au1.cloud.thethings.network Port - 8887

No. I am able to see the gateway connected in V3 console.

In response to the other users question. Glad to hear yours is running on V3! Awesome.

1 Like

Ok - I see it now, but when turning on verbose mode, I see the following error:
image

Can that be ignored? (I’m based in Singapore)

Is the gateway forwarding traffic okay now? I’m not sure on that one - maybe someone with knowledge of that frequency plan can comment?

Whats the advantage of this firmware over opdk-1.01.23 that I’m running now?
(Just curious just got my TTOG 2 days ago, still testing if we are going to deploy it in production)