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

UPS Pack V2 Python codes dont work, error OSError: [Errno 25] Inappropriate ioctl for device #8

Open
hthouse opened this issue Jun 20, 2020 · 1 comment

Comments

@hthouse
Copy link

hthouse commented Jun 20, 2020

i cannot run any of the python codes , i am getting this error,
OSError: [Errno 25] Inappropriate ioctl for device

@CapCorrector
Copy link

CapCorrector commented Sep 25, 2020

Hi, first of all if you are using Pi4 add this into /boot/config.txt under [all] section:
enable_uart=1
dtoverlay=disable-bt
I believe (not sure though) for pi3 you need add:
enable_uart=1
dtoverlay=pi3-miniuart-bt

Also if you are having "serial.serialutil.SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)" error after a few successful readings (try launching script a few times) than you need to run sudo raspi-config and under "Interfacing options"-> "Serial" chose "No" to the question about the login shell and "Yes" to the second question. (It also could be "Advanced"-> "Serial")

Btw you probably want to use V3 of the sw: https://github.com/rcdrones/UPSPACK_V3

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

No branches or pull requests

2 participants