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

[Errno 121] Remote I/O error #10

Open
nateProjects opened this issue May 4, 2022 · 7 comments
Open

[Errno 121] Remote I/O error #10

nateProjects opened this issue May 4, 2022 · 7 comments

Comments

@nateProjects
Copy link

Followed installation instructions exactly. Raspberry Pi Zero W 2

Touch_e-Paper_HAT/python/examples $ sudo python3 TP2in9_test.py
INFO:root:epd2in9_V2 Touch Demo
INFO:root:init and Clear
INFO:root:[Errno 121] Remote I/O error

Any ideas?

@SSYYL
Copy link
Contributor

SSYYL commented May 9, 2022

On the premise that Raspberry Pi Zero W 2 's I2C can be used normally:

  • Check the /boot/config.txt file to ensure that the I2C is not occupied by other devices
  • After the restart, enter 'i2cdetect -y 1' to check whether 48 is detected

@nateProjects
Copy link
Author

Thanks for getting back to me. Here is what I was able to find out:

The only line in /boot/config.txt regarding i2c is -

dtparam=i2c_arm=on

i2cdetect -y 1 does not detect anything

(just has -- in every line)

Anything else I can try?

@nateProjects
Copy link
Author

It turned out to be a fault Pi Zero - swapped it out with another one and it worked!

Thanks

@SSYYL
Copy link
Contributor

SSYYL commented May 16, 2022

I'm glad it's working.

@navanchauhan
Copy link

I am having the same issue:

pi@pizero:~/Touch_e-Paper_HAT/c $ i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --                         
pi@pizero:~/Touch_e-Paper_HAT/c $ i2cdetect -F 1
Functionalities implemented by /dev/i2c-1:
I2C                              yes
SMBus Quick Command              yes
SMBus Send Byte                  yes
SMBus Receive Byte               yes
SMBus Write Byte                 yes
SMBus Read Byte                  yes
SMBus Write Word                 yes
SMBus Read Word                  yes
SMBus Process Call               yes
SMBus Block Write                yes
SMBus Block Read                 no
SMBus Block Process Call         no
SMBus PEC                        yes
I2C Block Write                  yes
I2C Block Read                   yes
pi@pizero:~/Touch_e-Paper_HAT/c $ cat /boot/config.txt | grep i2c
dtparam=i2c_arm=on
pi@pizero:~/Touch_e-Paper_HAT/c $ 

@eqikkwkp25-cyber
Copy link

Unfortunately i have the same issue. The python code for the 2in9 epd works pretty well in general but not if i use a battery attached to the back of the raspberry, called pisugar https://github.com/PiSugar/PiSugar/wiki/PiSugar2

pi@raspberrypi:~/Touch_e-Paper_HAT/python/examples $ i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- 32 -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- 48 -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
pi@raspberrypi:~/Touch_e-Paper_HAT/python/examples $ python TP2in9_test.py
INFO:root:epd2in9_V2 Touch Demo
INFO:root:init and Clear
INFO:root:[Errno 121] Remote I/O error
pi@raspberrypi:~/Touch_e-Paper_HAT/python/examples $ i2cdetect -F 1
Functionalities implemented by /dev/i2c-1:
I2C                              yes
SMBus Quick Command              yes
SMBus Send Byte                  yes
SMBus Receive Byte               yes
SMBus Write Byte                 yes
SMBus Read Byte                  yes
SMBus Write Word                 yes
SMBus Read Word                  yes
SMBus Process Call               yes
SMBus Block Write                yes
SMBus Block Read                 no
SMBus Block Process Call         no
SMBus PEC                        yes
I2C Block Write                  yes
I2C Block Read                   yes

Can someone solve this puzzle please?

@rscmbbng
Copy link

I followed all installation instructions on the wiki, including installing the BCM2835 libraries. I got the same errors as above. However, if one uses python, I do not believe this library is necessary and it might even conflict with other methods. After installing BCM2835 I no longer have the above error.

i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- -- -- -- -- -- 
10: -- -- -- -- 14 -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --                      

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