Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raspberry pi 5 support? #340

Open
deanfourie1 opened this issue Jan 6, 2024 · 2 comments
Open

Raspberry pi 5 support? #340

deanfourie1 opened this issue Jan 6, 2024 · 2 comments

Comments

@deanfourie1
Copy link

Hi I am assuming that this will not support the new Raspberry PI 5 hardware?

Thanks

@BenjiU
Copy link
Collaborator

BenjiU commented Feb 26, 2024

Hi @deanfourie1,

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

Thanks!
Benni

@JanFellner
Copy link

JanFellner commented Aug 17, 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants