Arduino-SDI-12 icon indicating copy to clipboard operation
Arduino-SDI-12 copied to clipboard

Corrupted data on SDI-12 interface

Open tsujido3r opened this issue 5 years ago • 2 comments

While trying SDI-12 library with 2 Arduino nano boards, one as an SDI-12 slave and another as a Datalogger, I am getting junk values on the device serial monitor while requesting for data (D0!)

I am using the default examples: Datalogger - f_basic_data_request Sensor - h_SDI-12_slave_implementation

image

Any idea on what could be causing these errors? I am not sure if it's on the SDI data line or data corruption or the serial print issues.

tsujido3r avatar Apr 08 '20 16:04 tsujido3r

Hm. Do you have any pull-ups on the data line? Maybe the internal pull-ups aren't enough to overcome noise. Do you have long cables between the two boards? Can you shorten them? Do you have any SDI-12 sensors you can test against? Does it work when talking to one of those?

SRGDamia1 avatar Apr 08 '20 22:04 SRGDamia1

I suppose you meant the pulldown, its around 1M ohm. The cable is not long, it's just a jumper cable 10cm in length. That's why I suspect the memory overruns or excessive/incorrect use of String as the main culprit, rather than the line noise.

Currently, I don't have SDI-12 sensor to test against, sorry. Would it be possible for you to test these two applications against each other(as a sensor and datalogger) in two different arduino dev boards? If you could also verify this, it will be really helpful.

Thanks in advance.

tsujido3r avatar Apr 16 '20 12:04 tsujido3r