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

Remote I/O Error FocuserExample.py #5

Open
fabiankopatschek opened this issue Nov 27, 2020 · 4 comments
Open

Remote I/O Error FocuserExample.py #5

fabiankopatschek opened this issue Nov 27, 2020 · 4 comments

Comments

@fabiankopatschek
Copy link

Hi,

i just tried to use the given examples and get the following stacktrace:

pi@raspberrypi:~/PTZ-Camera-Controller/pyCode $ sudo python FocuserExample.py
Traceback (most recent call last):
File "FocuserExample.py", line 233, in
main()
File "FocuserExample.py", line 225, in main
curses.wrapper(draw_menu,camera)
File "/usr/lib/python2.7/curses/wrapper.py", line 43, in wrapper
return func(stdscr, *args, **kwds)
File "FocuserExample.py", line 206, in draw_menu
RenderMiddleText(stdscr,k,focuser)
File "FocuserExample.py", line 84, in RenderMiddleText
focus_value = "Focus : {}".format(focuser.get(Focuser.OPT_FOCUS))[:width-1]
File "/home/pi/PTZ-Camera-Controller/pyCode/Focuser.py", line 120, in get
self.waitingForFree()
File "/home/pi/PTZ-Camera-Controller/pyCode/Focuser.py", line 69, in waitingForFree
while self.isBusy() and count < (5 / 0.01):
File "/home/pi/PTZ-Camera-Controller/pyCode/Focuser.py", line 65, in isBusy
return self.read(self.CHIP_I2C_ADDR,self.BUSY_REG_ADDR) != 0
File "/home/pi/PTZ-Camera-Controller/pyCode/Focuser.py", line 56, in read
value = self.bus.read_word_data(chip_addr,reg_addr)
IOError: [Errno 121] Remote I/O error`

I'm using a Raspberry Pi Model 3 B with Rasbian OS 10 Buster.

Hope you can help me solving this problem.

@crand1213
Copy link

Hello, I am having the exact same issue using Raspberry Pi Model 4 B.
using any of the FocuserExample.py or AutofocusExample.py gives me the same error.

configuration:
Raspberry pi 4 b 8Gb
Raspian buster
Camera was purchased and delivered Dec 2, 2020.

camera is enabled in config
i2c is enabled in config.
raspivid and raspistill produce images and video.
Using VNC to view desktop

Will be seeking refund if not rectified.

PiError1
PiError2

@mifi
Copy link

mifi commented Jul 30, 2021

Anyone found a solution?

@devinross
Copy link

I'm having the same issue 2 years later

@th-walker
Copy link

I am having the same problem. Anyone able to resolve it?

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

5 participants