-
-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not read measurements #89
Comments
That's strange. The sensors are giving clear responses to the information requests, so the library is working. I have no idea why it would fail for the data commands. Have you tried adjusting the "extra wake time" parameter when you send the commands? Per specifications, sensors are allowed to have up to 100ms "extra" time after a break before they have to be ready to receive a command. I doubt it would help you in this case, since the sensors are responding to non-data commands, but you might try it. Are the results the same for the concurrent measurement requests? |
Thanks for the suggestions.
Still same results... |
Have you tested it with a non-Arduino logger? Does it work with that? |
I want to add to the discussion that I have Acclima 310-H sensors that behave similarly to OP. A single sensor at any address behaves as expected. When I connect another sensor to the same bus, a complete data "set" of the 5 elements will not be returned from the sensors. Has anyone come across a potential solution here? Edit: Forgot to mention I am also using an Arduino Mega 2560 |
Im using a board with 4 sensors ports on it and I have the same issue. The SDi-12 command arrive to the board (There is a LED to confirm that), but none of the commands is actually aknoledge by the board (I cannot even change the address of the board nor read the different sensors) |
I have been experiencing the same when using example D (and I think a few of the other examples) shipped with the library, and Decagon 5TM sensors. Nevertheless, the actual problem apparantly is the timing between sending the measure command (0M!) and the get data (0D0!) command. E.g., in the takeMeasurement() function of example D, after sending the measure command and getting the corresponding reply from the sensor, by default 30 ms is waited before clearing the buffer and calling the getResults() function. Within the getResults() function, the first thing done is sending the get data request. If I increase the delay in line 184 from 30 ms to 50 ms, the 0D0! command yields the expected results. |
Yes, 0R0! Was my solution as well. It works great with the Licor 710 ET
sensor. Regarding the delay, I remember trying increasing to 100ms, but I
still had the problem. However, last time I tried it was over a year ago.
…On Mon, Jun 10, 2024, 5:30 AM physikant ***@***.***> wrote:
I have been experiencing the same when using example D (and I think a few
of the other examples) shipped with the library, and Decagon 5TM sensors.
Here, I had to use the 0R0! command instead of 0D0! to actually read the
data of a sensor with address 0 (which is actually strange).
Nevertheless, the actual problem apparantly is the timing between sending
the measure command (0M!) and the get data (0D0!) command. E.g., in the
takeMeasurement() function of example D, after sending the measure command
and getting the corresponding reply from the sensor, by default 30 ms is
waited before clearing the buffer and calling the getResults() function.
Within the getResults() function, the first thing done is sending the get
data request. If I increase the delay in line 184 from 30 ms to 50 ms, the
0D0! command yields the expected results.
Apparently the sensor needs some time between different commands to be
able to handle them properly.
—
Reply to this email directly, view it on GitHub
<#89 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZI6T4NB3EBJJH756DNPQ2DZGVW3HAVCNFSM6AAAAABJB5JM7WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJXHAZTGMRYHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Hi
I am trying to use this library to interface Acclima soil sensors (TDT and with TDR315H) with Arduino/ESP32. When connecting the sensors and using the d_simple_logger.ino example sketch (after changing the DATA_PIN to fit my connections) I get communication with the sensors as their addresses and information show up. It seems that they immediately respond to the M! command with the time and number of measurements, but no measurements are retrieved after D0!. I have tried a few other examples with no success. I used different boards as well - ESP32 (pin 32), Arduino nano (pin 7) and Arduino Mega 2560 (pin 11), with all I get the same behavior.
They are all powered with 12v from a bench power supply, the data wires are all connect to the same pin on the microcontroller and the grounds are all connected.
In the image below, you can see the serial print that I get (using Arduino Mega 2560):
![image](https://user-images.githubusercontent.com/106031601/169711812-cb501604-2bbf-4e87-bd93-da33e3d97931.png)
Thanks
Erez
The text was updated successfully, but these errors were encountered: