PTZ-Camera-Controller icon indicating copy to clipboard operation
PTZ-Camera-Controller copied to clipboard

Remote I/O Error FocuserExample.py

Open fabiankopatschek opened this issue 4 years ago • 4 comments

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.

fabiankopatschek avatar Nov 27 '20 15:11 fabiankopatschek

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

crand1213 avatar Dec 09 '20 07:12 crand1213

Anyone found a solution?

mifi avatar Jul 30 '21 06:07 mifi

I'm having the same issue 2 years later

devinross avatar Jul 15 '23 20:07 devinross

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

th-walker avatar Aug 05 '24 05:08 th-walker