Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. My Project
  3. Gateway using Odroid-N2 via 40pin->SPI

Gateway using Odroid-N2 via 40pin->SPI

Scheduled Pinned Locked Moved My Project
7 Posts 3 Posters 2.8k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Bogusz JagodaB Offline
    Bogusz JagodaB Offline
    Bogusz Jagoda
    wrote on last edited by
    #1

    Hello,

    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

    1 Reply Last reply
    2
    • NortonN Offline
      NortonN Offline
      Norton
      wrote on last edited by
      #2

      Hello,
      i plan to replace RPI 3B and use odroid n2 also via 40 pin SPI bus. Is your library working? Thanks for your work.

      Bogusz JagodaB 1 Reply Last reply
      0
      • NortonN Norton

        Hello,
        i plan to replace RPI 3B and use odroid n2 also via 40 pin SPI bus. Is your library working? Thanks for your work.

        Bogusz JagodaB Offline
        Bogusz JagodaB Offline
        Bogusz Jagoda
        wrote on last edited by
        #3

        @Norton yep, it works in polling mode (~1% of cpu).

        1 Reply Last reply
        0
        • NortonN Offline
          NortonN Offline
          Norton
          wrote on last edited by
          #4

          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?

          1 Reply Last reply
          0
          • NortonN Offline
            NortonN Offline
            Norton
            wrote on last edited by
            #5

            Solved - it was problem with armbian. i changed it to hardkernel´s ubuntu and now it working.
            Thanks.

            mfalkviddM 1 Reply Last reply
            1
            • NortonN Norton

              Solved - it was problem with armbian. i changed it to hardkernel´s ubuntu and now it working.
              Thanks.

              mfalkviddM Offline
              mfalkviddM Offline
              mfalkvidd
              Mod
              wrote on last edited by
              #6

              Nice work @Norton, thanks for reporting back!

              1 Reply Last reply
              0
              • Bogusz JagodaB Offline
                Bogusz JagodaB Offline
                Bogusz Jagoda
                wrote on last edited by
                #7

                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...

                1 Reply Last reply
                0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                19

                Online

                12.0k

                Users

                11.2k

                Topics

                113.4k

                Posts


                Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • MySensors
                • OpenHardware.io
                • Categories
                • Recent
                • Tags
                • Popular