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

Waveshare UPS - I'm getting OSError: [Errno 121] Remote I/O error #1

Open
teospl opened this issue Feb 12, 2022 · 1 comment
Open
Labels
TODO maybe in future

Comments

@teospl
Copy link

teospl commented Feb 12, 2022

Hello,

at first I want to say the project looks very nice and huge thank you for your work!
I was able to run it without UPS options, but I've just got a UPS and when I try to run the original main.py I get:

Hi! Display routine has started!
Traceback (most recent call last):
File "/root/rpi_gui/main.py", line 1172, in
PowerOnReset(bus)
File "/root/rpi_gui/main.py", line 179, in PowerOnReset
bus.write_word_data(address, 0xfe, 0x0054)
OSError: [Errno 121] Remote I/O error

I have a Waveshare UPS HAT For Raspberry Pi Zero
do you have any idea how can I deal with it? It's probably about the communication ports differencies but how can I find the mapping for my ups?

@gloglas
Copy link
Owner

gloglas commented Feb 13, 2022

Hi, thanks❤ and that's great news!

Waveshare HAT operates bit differently than UPS Lite (Different commands & address). You can take a look on wiki https://www.waveshare.com/wiki/UPS_HAT_(C) , download example code and modify the existing UPS functions with it.
I am planning on making some sort of plugin system but not anytime soon.

@gloglas gloglas changed the title I'm getting OSError: [Errno 121] Remote I/O error Waveshare UPS - I'm getting OSError: [Errno 121] Remote I/O error Feb 13, 2022
@gloglas gloglas added the TODO maybe in future label May 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TODO maybe in future
Projects
None yet
Development

No branches or pull requests

2 participants