Errno 121 on SHT35

Grove is a modulated, ready-to-use tool set.
Much like Lego, it takes a building block approach to assembling electronics.

Moderators: lily.li, violet, jeremy882, crail.lyu969

Post Reply
yoongkhang.ooi
Pre-kindergarten
Pre-kindergarten
Posts: 4
Joined: Mon Jun 17, 2019 3:24 pm

Errno 121 on SHT35

Post by yoongkhang.ooi » Tue Aug 20, 2019 10:07 am

When I check the I2C connection between my raspberry pi and SHT35 using i2cdetect, it showed the address of the sensors. Therefore, I run my code and it works perfectly. However, when come to certain period, an error suddenly pop out and indicate "Errno 121". Image below showed the error message.

Image

bill.yu
Junior-7
Junior-7
Posts: 732
Joined: Mon Apr 02, 2018 11:05 am

Re: Errno 121 on SHT35

Post by bill.yu » Tue Aug 20, 2019 4:29 pm

Hi there~

We suspect the sensor lost connection with raspberry pi. I simulate it around 30 mins without issue.

Image

Code: Select all

Relative Humidity is 53.49 %
Temperature in Celsius is 28.87 C
Relative Humidity is 53.40 %
Temperature in Celsius is 28.87 C
Relative Humidity is 53.38 %
Temperature in Celsius is 28.87 C
Relative Humidity is 53.56 %
Temperature in Celsius is 28.86 C
Relative Humidity is 53.87 %
Temperature in Celsius is 28.87 C
Relative Humidity is 53.96 %
Temperature in Celsius is 28.86 C
Relative Humidity is 53.80 %
Temperature in Celsius is 28.82 C
Relative Humidity is 53.72 %
Temperature in Celsius is 28.81 C
Relative Humidity is 53.73 %
Temperature in Celsius is 28.81 C
Relative Humidity is 53.73 %
Temperature in Celsius is 28.79 C
Relative Humidity is 53.82 %
Temperature in Celsius is 28.78 C
Relative Humidity is 53.83 %
Temperature in Celsius is 28.79 C
Relative Humidity is 53.81 %
Temperature in Celsius is 28.81 C
Relative Humidity is 54.06 %
Temperature in Celsius is 28.82 C
Relative Humidity is 54.31 %
Temperature in Celsius is 28.82 C
Relative Humidity is 54.43 %
Temperature in Celsius is 28.81 C
Relative Humidity is 54.48 %
Temperature in Celsius is 28.83 C
Relative Humidity is 54.72 %
Temperature in Celsius is 28.81 C
Relative Humidity is 55.20 %
Temperature in Celsius is 28.82 C
Relative Humidity is 54.98 %
Temperature in Celsius is 28.82 C
Relative Humidity is 54.59 %
Temperature in Celsius is 28.79 C
Relative Humidity is 54.33 %
Temperature in Celsius is 28.79 C
Relative Humidity is 54.36 %
Temperature in Celsius is 28.82 C
Relative Humidity is 54.17 %
Temperature in Celsius is 28.81 C
Relative Humidity is 54.07 %
Temperature in Celsius is 28.81 C
Relative Humidity is 53.95 %
Temperature in Celsius is 28.82 C
Relative Humidity is 53.81 %
Temperature in Celsius is 28.83 C
Relative Humidity is 53.73 %
Temperature in Celsius is 28.81 C
Relative Humidity is 53.67 %
Temperature in Celsius is 28.82 C
Relative Humidity is 53.60 %
If i unplug the sensor, it will show up the error121. please check your connection. thanks.

Code: Select all

Relative Humidity is 53.62 %
Traceback (most recent call last):
  File "grove_I2C_High_Accuracy_tem_hum_SHT35_sensor.py", line 55, in <module>
    main()
  File "grove_I2C_High_Accuracy_tem_hum_SHT35_sensor.py", line 47, in main
    temperature, humidity = sensor.read()
  File "grove_I2C_High_Accuracy_tem_hum_SHT35_sensor.py", line 26, in read
    self.bus.write_i2c_block_data(self.address, 0x24, [0x00])
  File "/usr/local/lib/python2.7/dist-packages/smbus2/smbus2.py", line 482, in write_i2c_block_data
    ioctl(self.fd, I2C_SMBUS, msg)
IOError: [Errno 121] Remote I/O error

yoongkhang.ooi
Pre-kindergarten
Pre-kindergarten
Posts: 4
Joined: Mon Jun 17, 2019 3:24 pm

Re: Errno 121 on SHT35

Post by yoongkhang.ooi » Wed Aug 21, 2019 7:06 am

Hi,

What make it suddenly lost connection from Pi. The error always shown up when I run about 6 hours.

bill.yu
Junior-7
Junior-7
Posts: 732
Joined: Mon Apr 02, 2018 11:05 am

Re: Errno 121 on SHT35

Post by bill.yu » Wed Aug 21, 2019 4:59 pm

Hi there~

Let's keep running it tonight and see if any issue. thanks.

Post Reply