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. Development
  3. Gateway and Python are fighting over access to the GPIO?

Gateway and Python are fighting over access to the GPIO?

Scheduled Pinned Locked Moved Development
1 Posts 1 Posters 380 Views 1 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.
  • alowhumA Offline
    alowhumA Offline
    alowhum
    Plugin Developer
    wrote on last edited by alowhum
    #1

    I have Pi Zero W with am NRF24 MQTT MySensors gateway. It works great.

    At the same time I am developing a small 433 clone plugin for Domoticz in Python.

    When I ask the plugin to start recording the 433 signal, which works, the MySensors gateway stops working. It doesn't come back up.

    Could it be that the GPIO initialisation in the Python script "takes over" everything from MySensors? Is it not possible for software to share different parts of the GPIO?

    There is another option. While trying to export pin 36 to use it as a switch, I discovered that pin 22, which MySensors uses, is also "exported". This also stopped the gateway from working. Could this be the issue again? But I couldn't find where this pin was exported (not in /etc/rc.local), so my assumption was that maybe it was MySensors itself that did this?

    //EDIT

    Some more data:
    ls /sys/class/gpio/unexport shows:
    export gpio16 gpio22 gpiochip0 unexport

    GPIO22 seems to be the CE pin. Is that exposed to allow me to temporarily disable an then re-enable MySensors I wonder..

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


    19

    Online

    11.7k

    Users

    11.2k

    Topics

    113.0k

    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