Giter Site home page Giter Site logo

Comments (20)

dml96 avatar dml96 commented on July 18, 2024 2

There seems to be a simple hack to get this working using legacy semtech mode. This is how I did it using the Chrome browser.

1. Create an API key for the device

2. Enable legacy semtech mode

3. Scroll down to the Gateway Key field, right click on the field and select "inspect"

4. In the inspector window, change minlength="101" to minlength="98"

5. Fill in the details and paste the API key into the Gateway Key field

6. Save settings

It seems like there's no back end error checking so changing the minlength value in the browser seems to work. I have one of mine running fine using that quick hack!

Edit....

Although doing this seems to get the gateway working and accepting uplink messages, it fails to transmit downlink messages. Not sure if that's an issue with TTN V3 or the iot-lora-image.

As far as I understand, the API-key is needed for verification in both uplink and downlink process -- so for one to work and not the other? Interesting. Just based of experience with other gateways migrated to TTN V3 where there were no problems. I guess the problem is deeper in the code of iot-lora-image.

from iot-lora-image.

bapman avatar bapman commented on July 18, 2024 2

Hi All,
Working for me now, will document my alternative in case it helps someone. I went down the RAKWireless route (concentrator used by Pi-Supply hat), which have more up-to-date drivers.

Basically you can follow the installation guidelines as per following link:
RAK Wireless - RAK Common for Gateway

... with 1 exception

The Pi-Supply hat uses another pin to reset the concentrator, so you'll need to update a configuration file BEFORE you run the install. Details are documented in following resolved issue:
Resolved issue - failed to start concentrator pi-supply hat

Cheers, bap.

from iot-lora-image.

m0lmk avatar m0lmk commented on July 18, 2024 1

There seems to be a simple hack to get this working using legacy semtech mode. This is how I did it using the Chrome browser.

  1. Create an API key for the device
  2. Enable legacy semtech mode
  3. Scroll down to the Gateway Key field, right click on the field and select "inspect"
  4. In the inspector window, change minlength="101" to minlength="98"
  5. Fill in the details and paste the API key into the Gateway Key field
  6. Save settings

It seems like there's no back end error checking so changing the minlength value in the browser seems to work. I have one of mine running fine using that quick hack!

Edit....

Although doing this seems to get the gateway working and accepting uplink messages, it fails to transmit downlink messages. Not sure if that's an issue with TTN V3 or the iot-lora-image.

from iot-lora-image.

R-Marshall avatar R-Marshall commented on July 18, 2024 1

There seems to be a simple hack to get this working using legacy semtech mode. This is how I did it using the Chrome browser.

1. Create an API key for the device

2. Enable legacy semtech mode

3. Scroll down to the Gateway Key field, right click on the field and select "inspect"

4. In the inspector window, change minlength="101" to minlength="98"

5. Fill in the details and paste the API key into the Gateway Key field

6. Save settings

It seems like there's no back end error checking so changing the minlength value in the browser seems to work. I have one of mine running fine using that quick hack!

Edit....

Although doing this seems to get the gateway working and accepting uplink messages, it fails to transmit downlink messages. Not sure if that's an issue with TTN V3 or the iot-lora-image.

Thanks for this workaround! it has allowed me to connect to my gateway to the TTN network V3. Haven't tested downlink messages yet.

Hope to see a proper update to this. But i'm worried we won't since PiSupply and Nebra are supporting the Helium network as of Jan 2021... https://learn.pi-supply.com/nebra-pi-supply-launches-two-new-hardware-miners-for-helium-hnt-cryptocurrency/

As an alternative anyone try the Balena route? https://github.com/jpmeijers/ttn-resin-gateway-rpi

from iot-lora-image.

TheNetStriker avatar TheNetStriker commented on July 18, 2024 1

@bapman I've just tried your solution. I've changed the reset pin and changed to TTN in the gateway-config, but where do I enter the gateway key? And is there also a webinterface for TTN on this image?

from iot-lora-image.

markus1203 avatar markus1203 commented on July 18, 2024

also for the Node pHAT?

from iot-lora-image.

TheNetStriker avatar TheNetStriker commented on July 18, 2024

I'm also trying to get the gateway into the new v3 console. I tried to configure the device in legacy semtech mode with the new ttn server, but the device does not show up as connected in the v3 console. (I also setup an API key)

Did anyone found a solution for this yet?

from iot-lora-image.

dml96 avatar dml96 commented on July 18, 2024

I have tried a couple of things. What I find interesting when compared to other systems (balena for ex.) is we are not allowed to import an API key less then 101 characters. TTN v3 API key is 98 characters long.
Not sure this is necessarily the fix, but with an updated device ID, updated API key, and server. I don't see why it wouldn't work

from iot-lora-image.

R-Marshall avatar R-Marshall commented on July 18, 2024

Any success on registering the gateway on V3? or other solutions? I have seen this post too late it seems...

I have tried a couple of things. What I find interesting when compared to other systems (balena for ex.) is we are not allowed to import an API key less then 101 characters. TTN v3 API key is 98 characters long.
Not sure this is necessarily the fix, but with an updated device ID, updated API key, and server. I don't see why it wouldn't work

from iot-lora-image.

jakobfriis avatar jakobfriis commented on July 18, 2024

I have tried a couple of things. What I find interesting when compared to other systems (balena for ex.) is we are not allowed to import an API key less then 101 characters. TTN v3 API key is 98 characters long.
Not sure this is necessarily the fix, but with an updated device ID, updated API key, and server. I don't see why it wouldn't work

Same problem here.

from iot-lora-image.

m0lmk avatar m0lmk commented on July 18, 2024

I've also got 4 of these that I would like to get working with V3. Any chance we can get un updated and compatible image?

from iot-lora-image.

aallan avatar aallan commented on July 18, 2024

Same.

from iot-lora-image.

Bovbjergdk avatar Bovbjergdk commented on July 18, 2024

Be aware, that the Gateway ID is fixed to the Raspberry MAC adress. So if you have registeret it once in TTN and the for any reason deleted the Gateway again, you can not register the same Gateway ID twice. This is very annoying, and complete unnecessary. I had to buy a new Raspberry. There may be a solution to change the raspberry MAC, but i dont know how.

from iot-lora-image.

Bovbjergdk avatar Bovbjergdk commented on July 18, 2024

@bapman Are you sure you connect to ttn V3 and not to V2?
And if so, where did you put the gateway key as TheNetStriker asks?

from iot-lora-image.

bapman avatar bapman commented on July 18, 2024

Hi both, sorry for the slow response time. I ended up not connecting to TTN, not sure if because of v2 vs. v3 problems, but I couldn't get MQTT connection to work (Lora messages from the node were showing up ok). Instead I ended up going the "chirpstack" route, and deployed it on the raspberry pi with the lora gateway. I don't recall any isses with bound MAC addresses back then.
I'll look into TTN in 2-3 weeks with a new raspberry pi and new rakwireless lora gateway units. Will post here if I can get it to work.

from iot-lora-image.

m0lmk avatar m0lmk commented on July 18, 2024

Jan 2022 and I still have 4 useless gateways, along with many other users, that have seemingly been abandoned by Pi Supply. Has anyone managed to come up with a solution that works fully with TTN V3?

from iot-lora-image.

TheNetStriker avatar TheNetStriker commented on July 18, 2024

@m0lmk I'm currently using the RAKWireless image. It is not as easy to configure using a webinterface as with the PiSupply image, but works perfectly for month now.

On this image you have to install the service for the PoE Hat Display and log2ram yourself. After that you can configure the gateway using the config files in the directory /opt/ttn-gateway/packet_forwarder/lora_pkt_fwd.

from iot-lora-image.

R-Marshall avatar R-Marshall commented on July 18, 2024

@m0lmk I was able to use the PiSupply Hat and deploy a working TTN v3 gateway using Balena Cloud and Balena Basic Station Aplication
basicstation GitHub](https://github.com/mpous/basicstation)
You'll need to configure the reset pin and a few other things specific to the PiSupply Hat. The web interface through Balena Cloud works well and configuration was straight forward.

from iot-lora-image.

hardillb avatar hardillb commented on July 18, 2024

@TheNetStriker I think I've got the RAKWireless stuff setup properly, but my devices are not connecting. I'm seeing the JoinEUI messages in the gateway console, but I suspect there should be a downlink response I'm not seeing.

Any ideas?

EDIT
Never mind, it's working now (at least for one sensor, got to work out what's up with the other)

from iot-lora-image.

fleutot avatar fleutot commented on July 18, 2024

@m0lmk I was able to use the PiSupply Hat and deploy a working TTN v3 gateway using Balena Cloud and Balena Basic Station Aplication basicstation GitHub](https://github.com/mpous/basicstation) You'll need to configure the reset pin and a few other things specific to the PiSupply Hat. The web interface through Balena Cloud works well and configuration was straight forward.

Where to you find the documentation about what to put where? I see for example two variables: GW_RESET_GPIO and GW_RESET_PIN, which one is what?
Screenshot_2023-08-10_095055

Edit:
I see from the documentation of the RAK2247 that the Reset pin is 11, connected to the Raspberry Pi GPIO17. This is also the default I get when setting up a rPi3 as gateway in BalenaCloud. No manual change required from these default, it seems.

from iot-lora-image.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.