Skip to content
  • 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. Troubleshooting
  3. Raspberry Pi 5: invalid GPIO 9
  • Getting Started
  • Controller
  • Build
  • Hardware
  • Download/API
  • Forum
  • Store

Raspberry Pi 5: invalid GPIO 9

Scheduled Pinned Locked Moved Troubleshooting
4 Posts 4 Posters 24 Views 4 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.
  • I Offline
    I Offline
    igo
    wrote on last edited by
    #1

    Hi,
    after migrating to RPi5 from RPi4 I cannot run mysgw:

    pi@pi:~/projects/MySensors $ ./configure --my-transport=rf24 --my-gateway=mqtt --my-controller-ip-address=127.0.0.1 --my-mqtt-publish-topic-prefix=mysensors-out --my-mqtt-subscribe-topic-prefix=mysensors-in --my-mqtt-client-id=mysgw1
    pi@pi:~/projects/MySensors $ make
    pi@pi:~/projects/MySensors $ sudo ./bin/mysgw 
    Aug 27 15:16:32 INFO  Starting gateway...
    Aug 27 15:16:32 INFO  Protocol version - 2.4.0-alpha
    Aug 27 15:16:32 DEBUG MCO:BGN:INIT GW,CP=RNNGL---,FQ=NA,REL=1,VER=2.4.0-alpha
    Aug 27 15:16:32 DEBUG TSF:LRT:OK
    Aug 27 15:16:32 DEBUG TSM:INIT
    Aug 27 15:16:32 DEBUG TSF:WUR:MS=0
    Aug 27 15:16:43 ERROR Could not open /sys/class/gpio/gpio9/direction
    

    Any idea what is happening or how can I debug it? I found this which says "raspi-gpio is deprecated and doesn't support Pi 5".

    W 1 Reply Last reply
    1
    • I igo

      Hi,
      after migrating to RPi5 from RPi4 I cannot run mysgw:

      pi@pi:~/projects/MySensors $ ./configure --my-transport=rf24 --my-gateway=mqtt --my-controller-ip-address=127.0.0.1 --my-mqtt-publish-topic-prefix=mysensors-out --my-mqtt-subscribe-topic-prefix=mysensors-in --my-mqtt-client-id=mysgw1
      pi@pi:~/projects/MySensors $ make
      pi@pi:~/projects/MySensors $ sudo ./bin/mysgw 
      Aug 27 15:16:32 INFO  Starting gateway...
      Aug 27 15:16:32 INFO  Protocol version - 2.4.0-alpha
      Aug 27 15:16:32 DEBUG MCO:BGN:INIT GW,CP=RNNGL---,FQ=NA,REL=1,VER=2.4.0-alpha
      Aug 27 15:16:32 DEBUG TSF:LRT:OK
      Aug 27 15:16:32 DEBUG TSM:INIT
      Aug 27 15:16:32 DEBUG TSF:WUR:MS=0
      Aug 27 15:16:43 ERROR Could not open /sys/class/gpio/gpio9/direction
      

      Any idea what is happening or how can I debug it? I found this which says "raspi-gpio is deprecated and doesn't support Pi 5".

      W Offline
      W Offline
      wotu
      wrote on last edited by
      #2

      @igo
      Is it resolved?

      1 Reply Last reply
      0
      • OldSurferDudeO Offline
        OldSurferDudeO Offline
        OldSurferDude
        wrote on last edited by
        #3

        @igo As you may be aware, MySensors is not well supported these days. In fact, the support comes from people like you and me who still find value in MySensors.

        That said, search for a replacement for raspi-gpio. There may be a few. See if they work. It's important to the MySensors community that you report your success or failure to do so.

        I've done this sort of thing before and learned a lot from the experience. Let us know how it goes!

        OSD

        1 Reply Last reply
        1
        • mfalkviddM Offline
          mfalkviddM Offline
          mfalkvidd
          Mod
          wrote on last edited by mfalkvidd
          #4

          https://github.com/mysensors/MySensors/pull/1562 switches to using libgpiod instead of the earlier interface. I have not tested it myself but it looks good.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          8

          Online

          11.7k

          Users

          11.2k

          Topics

          113.0k

          Posts


          Copyright 2019 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
          • OpenHardware.io
          • Categories
          • Recent
          • Tags
          • Popular