Comments (9)
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.
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.
I'm using the simple Gnz from Tindie, is that the same? How can I manually trigger a reset?
from rpi-ttn-gateway.
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.
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.
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.
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.
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.
Awesome! Thanks for the clarification!
from rpi-ttn-gateway.
Related Issues (10)
- Suggest password change in README
- Avoid usage of "latest" or git-master dependencies
- Document simple gateway EUI command
- Document Docker daemon mode
- Document how to persist container log files
- Consider droping optional config params
- Make reset pin configurable
- Make the TTN server configurable HOT 1
- Run CI only when the Dockerfile actually changes HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rpi-ttn-gateway.