Touch_e-Paper_HAT icon indicating copy to clipboard operation
Touch_e-Paper_HAT copied to clipboard

[Errno 121] Remote I/O error

Open nateProjects opened this issue 3 years ago • 7 comments
trafficstars

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?

nateProjects avatar May 04 '22 13:05 nateProjects

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

SSYYL avatar May 09 '22 07:05 SSYYL

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 avatar May 10 '22 15:05 nateProjects

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

Thanks

nateProjects avatar May 13 '22 07:05 nateProjects

I'm glad it's working.

SSYYL avatar May 16 '22 02:05 SSYYL

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 $ 

navanchauhan avatar May 23 '22 01:05 navanchauhan

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?

eqikkwkp25-cyber avatar May 30 '22 17:05 eqikkwkp25-cyber

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: -- -- -- -- -- -- -- --                      

rscmbbng avatar Nov 13 '22 20:11 rscmbbng