bluerobotics / bluerobotics/ms5837-python

Remote I/O error - running example.py

Ouverte
#16 5 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Python
Étoiles
33
Forks
41
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

Commencez par example.py ligne 13 et ms5837/ms5837.py ligne 74, puis reproduisez l’échec de l’initialisation en le comparant à la sortie de i2cdetect indiquant l’adresse 76. Déterminez pourquoi l’écriture de réinitialisation renvoie l’erreur Remote I/O et documentez ou implémentez une résolution vérifiée.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
python
Domaine
embedded-iot
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.