Code Monkey home page Code Monkey logo

Comments (9)

bjoernbusch avatar bjoernbusch commented on June 13, 2024

When I'm installing the software native on my RaspberryPi, the concentrator works fine, so the hardware is working fine.

I'm running on a RaspberryPi3 with HypriotOS v1.4. Any hint would be highly appreciated.

from rpi-ttn-gateway.

squix78 avatar squix78 commented on June 13, 2024

Which backplane are you using? We are using Charles' backplane which has the reset pin connected to PIN 17 of the RPi. You might have it connected to PIN 25?

from rpi-ttn-gateway.

bjoernbusch avatar bjoernbusch commented on June 13, 2024

I'm using the simple Gnz from Tindie, is that the same? How can I manually trigger a reset?

from rpi-ttn-gateway.

marcelstoer avatar marcelstoer commented on June 13, 2024

The pin re-assignment is the most likely reason for what you're seeing I believe. Could you please try commenting line 34 of the Dockerfile and build your own image (either on macOS or the Pi)?

from rpi-ttn-gateway.

bjoernbusch avatar bjoernbusch commented on June 13, 2024

YES! That looks much better!! That seems to solve the issue!

Now I just have one last question about the MAC that needs to be supplied, how do you format that? When I run it native, I get B827EBFFFEA10C04 and I don't seem to get FFFE when running the docker image?

from rpi-ttn-gateway.

marcelstoer avatar marcelstoer commented on June 13, 2024

That seems to solve the issue!

Great, good to hear!

Just hours before you raised this issue we had been discussing options for making that pin assignment configureable (Dockerfile env config, multiple Dockerfiles in subfolders, custom base image with extensions, etc.). I'm positive we'll make "that", which ever way it's going to be, available sooner rather than later.

I'm not sure about your MAC address question, though. The address on the host OS (Hypriot) is the same as in the Docker container:

$ cat /sys/class/net/eth0/address
b8:27:eb:97:73:e2
$ docker run -it --privileged --net=host --restart=always netceteragroup/rpi-ttn-gateway /bin/bash
root@black-pearl:/opt/ttn-gateway/bin# cat /sys/class/net/eth0/address
b8:27:eb:97:73:e2

However, if by running 'native' you mean running the install.sh from TTN ZH GitHub repo then https://github.com/ttn-zh/ic880a-gateway/blob/master/install.sh#L47 is probably what you're looking for.
If I'm not mistaken gateway_ID in local_conf.json simply has to be a unique 8 byte number - the MAC address is as good as any and just so happens to be 64 bits.

from rpi-ttn-gateway.

bjoernbusch avatar bjoernbusch commented on June 13, 2024

ok, yes, this is what I mean. Is there a specific reason that ttn-zh injects the FFFE and you don't?

Anyways, after correcting several typos on my end, I realized that I can just supply the gateway_ID in that format to the container and it works then as I want it to.

Thanks for the help!!

from rpi-ttn-gateway.

marcelstoer avatar marcelstoer commented on June 13, 2024

Is there a specific reason that ttn-zh injects the FFFE and you don't?

Now we do 😉 Sorry my previous comment

the MAC address is as good as any and just so happens to be 64 bits.

was of course wrong. The Pi MAC address is 48 bits, not 64 bits. I added a note about that to the README (→ GATEWAY_EUI).

from rpi-ttn-gateway.

bjoernbusch avatar bjoernbusch commented on June 13, 2024

Awesome! Thanks for the clarification!

from rpi-ttn-gateway.

Related Issues (10)

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.