bluerobotics / bluerobotics/ms5837-python
Remote I/O error - running example.py
- 主要言語
- Python
- スター
- 33
- フォーク
- 41
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Hi,
I am trying to run example.py on a RPi4, but when I do, I get the following error:
```
Traceback (most recent call last):
File "./example.py", line 13, in
if not sensor.init():
File "/home/pi/ms5837-python/ms5837/ms5837.py", line 74, in init
self._bus.write_byte(self._MS5837_ADDR, self._MS5837_RESET)
IOError: [Errno 121] Remote I/O error
```
It appears that the ms5837 is recognized when I run `i2cdetect`:
```
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: -- -- -- -- -- -- 76 --
```
Any ideas why I'm getting this error? Any help would be greatly appreciated!
Thanks,
Jonathan
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
example.py の 13 行目と ms5837/ms5837.py の 74 行目から始め、アドレス 76 を示す i2cdetect の出力と比較しながら初期化の失敗を再現します。リセット書き込みが Remote I/O error を返す理由を特定し、検証済みの解決策を文書化または実装します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- embedded-iot
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100