# Problems with basicstation

**URL:** <https://forums.balena.io/t/problems-with-basicstation/176718>\
**Category:** Product support\
**Created:** [August 23, 2020, 7:56pm UTC](https://forums.balena.io/t/problems-with-basicstation/176718 "2020-08-23T19:56:14Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![barryjump](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@barryjump](https://forums.balena.io/u/barryjump)\
**Post date:** [August 25, 2020, 7:13pm UTC](https://forums.balena.io/t/problems-with-basicstation/176718/31 "2020-08-25T19:13:12Z")

</div>

Okay thanks. I’ll keep an eye out for any updates. Appreciate all your hard work.

---

<div class="post-metadata">

**Author:** ![mpous](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mpous/32/4742_2.png) [@mpous](https://forums.balena.io/u/mpous)\
**Post date:** [August 25, 2020, 7:29pm UTC](https://forums.balena.io/t/problems-with-basicstation/176718/32 "2020-08-25T19:29:26Z")

</div>

it works, isn’t it @barryjump ?

---

<div class="post-metadata">

**Author:** ![barryjump](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@barryjump](https://forums.balena.io/u/barryjump)\
**Post date:** [August 25, 2020, 8:22pm UTC](https://forums.balena.io/t/problems-with-basicstation/176718/34 "2020-08-25T20:22:24Z")

</div>

Yes, thank you! It’s odd that the SPI speed would have anything to do with the certs, but it certainly seems to have fixed the issues. Thanks a million.

One side question: Why does balena show two different MAC addresses? Is that one for the pi and one for the rak hat?

---

<div class="post-metadata">

**Author:** ![floion](https://avatars.discourse-cdn.com/v4/letter/f/45deac/32.png) [@floion](https://forums.balena.io/u/floion)\
**Post date:** [August 25, 2020, 9:30pm UTC](https://forums.balena.io/t/problems-with-basicstation/176718/35 "2020-08-25T21:30:44Z")

</div>

Hi, most likely yes. You can use the webterminal and ssh in the hostOS and check with `ifconfig` to see which MAC is assigned to which interface.

---

<div class="post-metadata">

**Author:** ![barryjump](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@barryjump](https://forums.balena.io/u/barryjump)\
**Post date:** [August 25, 2020, 10:33pm UTC](https://forums.balena.io/t/problems-with-basicstation/176718/37 "2020-08-25T22:33:45Z")

</div>

Great thanks @floion

In separate news, unfortunately @mpous I think we have a new problem. The gateway’s been running for 2 hours, but lost connection with TTN shortly after because of a time sync problem. I just rebooted and it confirmed that it does connect initially no problem, but time drifts cause a disconnect within minutes.

Did you encounter these errors?

```
25.08.20 18:26:25 (-0400) main 2020-08-25 22:26:25.098 [SYN:INFO] Mean MCU drift vs SX130X#0: -0.5ppm
25.08.20 18:26:33 (-0400) main 2020-08-25 22:26:33.499 [SYN:INFO] Time sync qualities: min=72 q90=122 max=3736 (previous q90=129)
25.08.20 18:26:37 (-0400) main 2020-08-25 22:26:37.703 [SYN:VERB] Time sync rejected: quality=3350 threshold=122
25.08.20 18:26:48 (-0400) main 2020-08-25 22:26:48.207 [SYN:VERB] Time sync rejected: quality=3369 threshold=122
25.08.20 18:26:50 (-0400) main 2020-08-25 22:26:50.308 [SYN:VERB] Time sync rejected: quality=135 threshold=122
25.08.20 18:27:10 (-0400) main 2020-08-25 22:27:10.260 [SYN:INFO] MCU/SX130X drift stats: min: +0.0ppm q50: -0.5ppm q80: +4.8ppm max: -15.7ppm - threshold q90: -9.8ppm
```

---

<div class="post-metadata">

**Author:** ![barryjump](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@barryjump](https://forums.balena.io/u/barryjump)\
**Post date:** [August 25, 2020, 10:36pm UTC](https://forums.balena.io/t/problems-with-basicstation/176718/38 "2020-08-25T22:36:06Z")

</div>

Might that be a GPS problem since the RAK gets time from the gps?

---

<div class="post-metadata">

**Author:** ![mpous](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mpous/32/4742_2.png) [@mpous](https://forums.balena.io/u/mpous)\
**Post date:** [August 26, 2020, 2:29pm UTC](https://forums.balena.io/t/problems-with-basicstation/176718/41 "2020-08-26T14:29:08Z")

</div>

Hey @barryjump i have been speaking with Jose and this “Time sync” issue seems like a normal issue for this code. We will talk with Semtech to see how to solve this and create a new PR to solve this.

having said that, it seems that this time sync issue, does not affect the uplinks and downlinks of the gateway. We have been testing gateways during the last month, i can see on mine the same logs and it looks like it works good.

We will keep you updated once we solve this issue.

BTW were you able to send the GPS information from your gateway?

Let’s stay connected

Marc

---

<div class="post-metadata">

**Author:** ![barryjump](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@barryjump](https://forums.balena.io/u/barryjump)\
**Post date:** [August 27, 2020, 10:51am UTC](https://forums.balena.io/t/problems-with-basicstation/176718/42 "2020-08-27T10:51:02Z")

</div>

Okay, makes sense. Yes I was able to get GPS data out - pretty accurate too.

I’ll keep an eye on your reply from Semtech and watch the repo too for the new PR.

---

<div class="post-metadata">

**Author:** ![whm](https://avatars.discourse-cdn.com/v4/letter/w/ce7236/32.png) [@whm](https://forums.balena.io/u/whm)\
**Post date:** [August 27, 2020, 7:27pm UTC](https://forums.balena.io/t/problems-with-basicstation/176718/44 "2020-08-27T19:27:33Z")

</div>

I am getting almost identical error messages:

```auto
27.08.20 14:19:54 (-0500) main 2020-08-27 19:19:54.893 [SYS:WARN] Station in NO-CUPS mode
27.08.20 14:19:55 (-0500) main 2020-08-27 19:19:55.094 [TCE:INFO] Starting TC engine
27.08.20 14:19:55 (-0500) main 2020-08-27 19:19:55.095 [any:INFO] ./tc.trust: 
27.08.20 14:19:55 (-0500) main cert. version : 3
27.08.20 14:19:55 (-0500) main serial number : 44:AF:B0:80:D6:A3:27:BA:89:30:39:86:2E:F8:40:6B
27.08.20 14:19:55 (-0500) main issuer name : O=Digital Signature Trust Co., CN=DST Root CA X3
27.08.20 14:19:55 (-0500) main subject name : O=Digital Signature Trust Co., CN=DST Root CA X3
27.08.20 14:19:55 (-0500) main issued on : 2000-09-30 21:12:19
27.08.20 14:19:55 (-0500) main expires on : 2021-09-30 14:01:15
27.08.20 14:19:55 (-0500) main signed using : RSA with SHA1
27.08.20 14:19:55 (-0500) main RSA key size : 2048 bits
27.08.20 14:19:55 (-0500) main basic constraints : CA=true
27.08.20 14:19:55 (-0500) main key usage : Key Cert Sign, CRL Sign
27.08.20 14:19:55 (-0500) main 2020-08-27 19:19:55.095 [AIO:INFO] tc has no key+cert configured - running server auth only
27.08.20 14:19:55 (-0500) main 2020-08-27 19:19:55.428 [TCE:INFO] Connecting to INFOS: wss://lns.us.thethings.network:443
27.08.20 14:19:55 (-0500) main 2020-08-27 19:19:55.852 [TCE:INFO] Infos: dca6:32ff:fe36:a8e4 muxs-::0 wss://lns.us.thethings.network:443/traffic/eui-DCA632FFFE36A8E4
27.08.20 14:19:55 (-0500) main 2020-08-27 19:19:55.852 [AIO:DEBU] [3] ws_close reason=1000
27.08.20 14:19:55 (-0500) main 2020-08-27 19:19:55.852 [AIO:DEBU] Echoing close - reason=1000
27.08.20 14:19:55 (-0500) main 2020-08-27 19:19:55.853 [AIO:ERRO] Recv failed: SSL - The peer notified us that the connection is going to be closed
27.08.20 14:19:55 (-0500) main 2020-08-27 19:19:55.853 [AIO:DEBU] [3] WS connection shutdown...

```

Here is a screenshot of my environmental variables:

 ![Screen Shot 2020-08-27 at 2.25.25 PM](https://global.discourse-cdn.com/balena/original/2X/4/40f31a3b52477f1e60490d29a6237b855b905473.jpeg)

@barryjump do you notice any major differences between my setup and yours? If it’s working for you, I would like to try to replicate your setup.

---

<div class="post-metadata">

**Author:** ![barryjump](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@barryjump](https://forums.balena.io/u/barryjump)\
**Post date:** [August 27, 2020, 7:33pm UTC](https://forums.balena.io/t/problems-with-basicstation/176718/45 "2020-08-27T19:33:04Z")

</div>

Override the SPI speed to 8000000 on icy-river

---

<div class="post-metadata">

**Author:** ![barryjump](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@barryjump](https://forums.balena.io/u/barryjump)\
**Post date:** [August 27, 2020, 7:35pm UTC](https://forums.balena.io/t/problems-with-basicstation/176718/46 "2020-08-27T19:35:23Z")

</div>

Also make sure you’ve pushed the latest release from here:

> **[balenalabs/basicstation](https://github.com/balenalabs/basicstation)**
>
> LoRa Basics™ Station - The LoRaWAN Gateway Software - balenalabs/basicstation

They did some updates to the repo in the last two days.

---

<div class="post-metadata">

**Author:** ![whm](https://avatars.discourse-cdn.com/v4/letter/w/ce7236/32.png) [@whm](https://forums.balena.io/u/whm)\
**Post date:** [August 27, 2020, 10:08pm UTC](https://forums.balena.io/t/problems-with-basicstation/176718/48 "2020-08-27T22:08:20Z")

</div>

Setting the SPI speed to 8000000 didn’t seem to make any difference, and I downloaded the repo today. But thanks anyway for sharing @barryjump.

@mpous do you have any ideas?

---

<div class="post-metadata">

**Author:** ![barryjump](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@barryjump](https://forums.balena.io/u/barryjump)\
**Post date:** [August 27, 2020, 11:51pm UTC](https://forums.balena.io/t/problems-with-basicstation/176718/49 "2020-08-27T23:51:41Z")

</div>

Sorry - have you tried setting GW\_GPS to true, you have it set to false on icy-river.

---

<div class="post-metadata">

**Author:** ![mpous](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mpous/32/4742_2.png) [@mpous](https://forums.balena.io/u/mpous)\
**Post date:** [August 28, 2020, 8:00am UTC](https://forums.balena.io/t/problems-with-basicstation/176718/50 "2020-08-28T08:00:01Z")

</div>

@barryjump and @whm Actually, SPI SPEED now is set in the code to 200000. We are working to improve the code when we will be able to talk with Semtech, as there is no source code of this part. On the GPS part i’m testing this, i will keep you updated 🙂

---

<div class="post-metadata">

**Author:** ![whm](https://avatars.discourse-cdn.com/v4/letter/w/ce7236/32.png) [@whm](https://forums.balena.io/u/whm)\
**Post date:** [August 28, 2020, 5:37pm UTC](https://forums.balena.io/t/problems-with-basicstation/176718/56 "2020-08-28T17:37:32Z")

</div>

I did enable GPS, thanks for the suggestion!

---

<div class="post-metadata">

**Author:** ![barryjump](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@barryjump](https://forums.balena.io/u/barryjump)\
**Post date:** [August 29, 2020, 6:58pm UTC](https://forums.balena.io/t/problems-with-basicstation/176718/58 "2020-08-29T18:58:32Z")

</div>

@mpous thanks for clarifying about the SPI speed. though I have to admit I was a little confused by the 800000 override since I believe you did that yourself in my app?

Anyway, let’s definitely keep the momentum on this one I think the Semtech feedback will be very useful.

BTW, I’m a little out of my depth on docker/multicontainer/makefiles so if anyone has more dummy proof advice on how to get basicstation running alongside other apps that would be VERY helpful!

PS. You guys are incredible with the support, keep it up! Balena rocks.

---

<div class="post-metadata">

**Author:** ![barryjump](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@barryjump](https://forums.balena.io/u/barryjump)\
**Post date:** [August 29, 2020, 7:02pm UTC](https://forums.balena.io/t/problems-with-basicstation/176718/59 "2020-08-29T19:02:31Z")

</div>

Also @mpous I saw Pycom retweeted your FiPy & gateway post. If you get your FiPy talking to your basicstation please let us know the setup details! Literally just bought the RAK gateway and some FiPy’s explicitly for this purpose. Small world.

---

<div class="post-metadata">

**Author:** ![mpous](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mpous/32/4742_2.png) [@mpous](https://forums.balena.io/u/mpous)\
**Post date:** [September 3, 2020, 4:13pm UTC](https://forums.balena.io/t/problems-with-basicstation/176718/66 "2020-09-03T16:13:00Z")

</div>

Hello!  
I stil didn’t had time to test my FiPy with the basicsstation LoRa gateway! in theory it should work great as the Basics Station is just the way the gateway sends data to TTN or TTI (or others). As far as i tested, at the moment it worked well with the TTN Arduino Uno from Kickstarter and the TTN button. I think there shouldn’t be a problem with FiPy.

If you can test it earlier than me let me know if you get any results! Have fun!

---

<div class="post-metadata">

**Author:** ![barryjump](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@barryjump](https://forums.balena.io/u/barryjump)\
**Post date:** [September 12, 2020, 10:24am UTC](https://forums.balena.io/t/problems-with-basicstation/176718/68 "2020-09-12T10:24:56Z")

</div>

I didn’t get a chance yet to test with the FiPy, but I did have another question:

Is basicstation compatible with Chirpstack? Curious if anyone has tried integrating a Balena deployed basicstation with a self hosted Chripstack deployment.

---

<div class="post-metadata">

**Author:** ![anujdeshpande](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/anujdeshpande/32/3155_2.png) [@anujdeshpande](https://forums.balena.io/u/anujdeshpande)\
**Post date:** [September 14, 2020, 5:37am UTC](https://forums.balena.io/t/problems-with-basicstation/176718/70 "2020-09-14T05:37:22Z")

</div>

Hi  
It looks like one of our former engineers was trying to do this - see chirpstack forum thread here - [https://forum.chirpstack.io/t/optimise-lora-app-server-for-raspberry-pi/5622/8](https://forum.chirpstack.io/t/optimise-lora-app-server-for-raspberry-pi/5622/8)  
I am not sure if Odysseas is still working on that - but by the looks of it, this requires some attention from the Chirpstack devs.

[Previous page](https://forums.balena.io/t/problems-with-basicstation/176718.md?page=1)

[Next page](https://forums.balena.io/t/problems-with-basicstation/176718.md?page=3)
