reef-pi / drivers

Various sensors, controller and IC drivers for reef-pi
Other
5 stars 16 forks source link

Driver add "write /dev/i2c-1: remote I/O error" #57

Closed Vadech closed 4 years ago

Vadech commented 4 years ago

Hi,

When I try to add the Ph-board driver, i have this error. write /dev/i2c-1: remote I/O error

Everything seem fine: image

image

Do you have an idea ?

Thank by advance.

ranjib commented 4 years ago

HI can you detail what board you are using? along side the reef-pi version and little but of your setup. reef-pi only uses the opensource ph board driver or ezo driver.

Vadech commented 4 years ago

Hi, Thanks for you answer. My ReefPi version is: image

I use an ADS1115: WhatsApp Image 2020-05-26 at 18 42 18 (1) WhatsApp Image 2020-05-26 at 18 42 17 WhatsApp Image 2020-05-26 at 18 42 18

What do you mean with "the opensource ph board driver" ? How can i check that ?

For information, my "simpletest.py" works ONLY with python3 and not with python. Maybe it's the problem ??? But I dont' kno how to fix it.

Thank you.

Vadech commented 4 years ago

The error message: image

And my setting: image

Ranthalion commented 4 years ago

The pH board driver is compatible with ADS1119, so it will not work with ADS1115. We have a separate issue to add support for ADS1015/ADS1115. I expect to begin working on that feature in June.

I recommend closing this issue since it is not currently supported.

Vadech commented 4 years ago

Ok, thank's for your quick answer. Can i help you ? I can try to implement it if you explain me quickly how and where code this. Did you have a developper guide ? June is perfect if it's longer to explain to me than to developper by yourself ;-).

Ranthalion commented 4 years ago

You are welcome to give it a shot. I was planning to start on it this weekend, after I finish adding a few more light profiles to the UI.

We have a developer guide at https://reef-pi.github.io/additional-documentation/development/. It does not address driver development directly, but you would need to be able to build and run reef-pi in order to confirm the driver works. We also have a slack channel for more realtime dev discussion.

Developing the driver would require implementing the Driver, DriverFactory, AnalogInputDriver, and AnalogInputPin interfaces. You could use the pH-board driver as a sample.