Gateway using Odroid-N2 via 40pin->SPI
I've made necessary changes to MySensors 2.4.0-alpha in order to work on Odroid-N2 SBC running Ubuntu 21.04 with 5.13.0 kernel
Library would have worked if every reference to pin number was at least uint16_t (not uint8_t, like it is). That's because Odroid-N2 have >2^8 pin numbering, and GPIO ranges in 460-490 decimal.
I've made my fork@github and pushed odroid-n2 required changes version.
Using polling (non-IRQ) mysgw drains 1.0% cpu time.
Still waiting for interrupt issues to resolve with HK team - hopefully soon.
Github repo @ https://github.com/Gobol/MySensors
i plan to replace RPI 3B and use odroid n2 also via 40 pin SPI bus. Is your library working? Thanks for your work.
@Norton yep, it works in polling mode (~1% of cpu).
i tried it on my odroid N2 with Ubuntu 21.04, kernel 5.14.0 but i can't get it work. I got this error:
Could not open /sys/class/gpio/gpio9/direction
i used your github repo. I don't know what is wrong or did i forget something?
Solved - it was problem with armbian. i changed it to hardkernel´s ubuntu and now it working.
Nice work @Norton, thanks for reporting back!
My repo depends on hardkernel's linux kernel, esp. 4.9.277. It won't work with kernels >4.9 for Odroid N2, because the developers left GPIO subsystem down (no IRQs, no /dev/gpiomem), and it only works partially...