Rising HF Lorawan Gateway for Things Network on xu4

Moderators: mdrjr, odroid

Rising HF Lorawan Gateway for Things Network on xu4

Unread postby xenek » Sun Jun 04, 2017 10:54 am

Hello,

I am trying to get a Raspberry Pi version of a docker based TTN packet forwarder working on my XU4 with Shifter Shield, to run as a high powered The Things Network Lorawan gateway using budget Rising HF brand IMST IC880a compatible hardware.

The software is running inside docker pushed to the XU4 through a resin.io image that runs on an eMMC card.

The 5-board hardware stack looks like this

top

RisingHF RHF0M301 – 2017-01-23 915 Mhz LoRa Gateway and Concentrator Module
RisingHF RHF4T002_V2 (Adapter for Rpi and RHF0M301 - Powered by Genuine RPi 3 PSU)
Odroid XU4 shifter shield r0.2 20150605 (set to 3.3v)
Odroid XU4 r0.1 20151201 (Powered by Genuine hardkernel PSU)
Hardkernel eMMC v0.3 16GB

bottom

This is the relevant code I am using that is built into docker onto resin.io

https://github.com/jpmeijers/ttn-resin- ... ter/run.py

This is the error that appears when the code starts running on the XU4

04.06.17 11:04:29 (+1000) Started application 'registry.resin.io/testxu4/f1c21afa7f5bf4840383574dbd35a9a8577c3600' 04.06.17 11:04:29 (+1000) Systemd init system enabled. 04.06.17 11:04:30 (+1000) systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR) 04.06.17 11:04:30 (+1000) Detected virtualization 'other'. 04.06.17 11:04:30 (+1000) Detected architecture 'arm'. 04.06.17 11:04:30 (+1000) Set hostname to <odroid-xu4-5e98108>. 04.06.17 11:04:30 (+1000) Failed to initialize automounter: Permission denied 04.06.17 11:04:30 (+1000) Unit proc-sys-fs-binfmt_misc.automount entered failed state. 04.06.17 11:04:33 (+1000) Traceback (most recent call last): 04.06.17 11:04:33 (+1000) File "./run.py", line 20, in <module> 04.06.17 11:04:33 (+1000) import RPi.GPIO as GPIO 04.06.17 11:04:33 (+1000) ImportError: No module named RPi.GPIO

I am guessing I need to fork the git project by jpmeijers, then replace RPi.GPIO with the odroid version of wiringPi, or something like that. But before I start I figure I would ask here in case someone has a better idea. I know next to nothing about wiringPi, no python, and am a Linux beginner so ideally am after a cookie cutter solution. I'll be sharing full details on the completed setup once it's working so others can build or improve on it.

Best,
Xenek
xenek
 
Posts: 24
Joined: Sun Apr 17, 2016 3:51 pm
languages_spoken: english
ODROIDs: XU4

Re: Rising HF Lorawan Gateway for Things Network on xu4

Unread postby odroid » Sun Jun 04, 2017 11:35 am

What is the physical interface on LoRa Gateway?
If it is SPI, you should write your own function since our WiringPi port doesn't support the SPI.
http://odroid.com/dokuwiki/doku.php?id= ... rdware_spi
User avatar
odroid
Site Admin
 
Posts: 24602
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Rising HF Lorawan Gateway for Things Network on xu4

Unread postby xenek » Tue Jun 06, 2017 5:16 pm

The interface is SPI.
Any plans to extend wiringPi to include SPI ?

Cheers,
x
xenek
 
Posts: 24
Joined: Sun Apr 17, 2016 3:51 pm
languages_spoken: english
ODROIDs: XU4

Re: Rising HF Lorawan Gateway for Things Network on xu4

Unread postby odroid » Tue Jun 13, 2017 10:47 am

It was already available.
Refer this example.
http://odroid.com/dokuwiki/doku.php?id= ... lling_text
User avatar
odroid
Site Admin
 
Posts: 24602
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID


Return to Projects

Who is online

Users browsing this forum: No registered users and 1 guest