Giter Club home page Giter Club logo

Comments (2)

BenjiU avatar BenjiU commented on September 27, 2024

Hi @deanfourie1,

I hope it does... Have you had the possibility to try it?

Thanks!
Benni

from mqtt-io.

JanFellner avatar JanFellner commented on September 27, 2024

Just humbling over this topic. I am using https://wiki.loxberry.de/plugins/multi_io/start which is based on mqtt-io and it is not working with raspi 5 at the moment...

2024-08-17 11:55:33,329 mqtt_io.__main__ (ERROR): MqttIo crashed!
Traceback (most recent call last):
File "/usr/local/lib/python3.11/dist-packages/mqtt_io/__main__.py", line 107, in main
mqtt_gpio.run()
File "/usr/local/lib/python3.11/dist-packages/mqtt_io/server.py", line 1448, in run
self._init_digital_inputs()
File "/usr/local/lib/python3.11/dist-packages/mqtt_io/server.py", line 420, in _init_digital_inputs
gpio_module.setup_pin_internal(PinDirection.INPUT, in_conf)
File "/usr/local/lib/python3.11/dist-packages/mqtt_io/modules/gpio/__init__.py", line 208, in setup_pin_internal
return self.setup_pin(
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/mqtt_io/modules/gpio/raspberrypi.py", line 56, in setup_pin
self.io.setup(pin, direction, pull_up_down=pullup, initial=initial_int)
RuntimeError: Cannot determine SOC peripheral base address
Traceback (most recent call last):
File " ", line 198, in _run_module_as_main
File " ", line 88, in _run_code
File "/usr/local/lib/python3.11/dist-packages/mqtt_io/__main__.py", line 115, in
main()
File "/usr/local/lib/python3.11/dist-packages/mqtt_io/__main__.py", line 107, in main
mqtt_gpio.run()
File "/usr/local/lib/python3.11/dist-packages/mqtt_io/server.py", line 1448, in run
self._init_digital_inputs()
File "/usr/local/lib/python3.11/dist-packages/mqtt_io/server.py", line 420, in _init_digital_inputs
gpio_module.setup_pin_internal(PinDirection.INPUT, in_conf)
File "/usr/local/lib/python3.11/dist-packages/mqtt_io/modules/gpio/__init__.py", line 208, in setup_pin_internal
return self.setup_pin(
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/mqtt_io/modules/gpio/raspberrypi.py", line 56, in setup_pin
self.io.setup(pin, direction, pull_up_down=pullup, initial=initial_int)
RuntimeError: Cannot determine SOC peripheral base address

I can get it executing but i can´t get it working... There seem to be larger changes in how raspi 5 handles ios.
Found these topics helpful:
https://rpi-lgpio.readthedocs.io/en/release-0.4/index.html
This was the first puzzle piece.

And then i was forced to change within mqtt_io/modules/gpio/raspberrypi.py

// self.io.setup(pin, direction, pull_up_down=pullup, initial=initial_int)  // remove the "initial=initial_int"
self.io.setup(pin, direction, pull_up_down=pullup)

This leads at least to getting it executed but it does not really function
I get no input values, i cannot control outputs...

Giving up with raspi5 on this.

from mqtt-io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.