EnviroDIY / Arduino-SDI-12

An Arduino library for SDI-12 communication with a wide variety of environmental sensors. This library provides a general software solution, without requiring any additional hardware.
https://github.com/EnviroDIY/Arduino-SDI-12/wiki
BSD 3-Clause "New" or "Revised" License
159 stars 100 forks source link

Help SDI-12 Communication #7

Closed jotam93 closed 8 years ago

jotam93 commented 10 years ago

Hello,

I am developing a project in which I will use SDI-12 sensors, but i will also use sensors that do not use any communication protocol and the aim is to mete them respond as if they were an SDI-12 sensor. For that, I will use an Arduino (where i will put the sensors that are not SDI-12) that receives requests from another arduino and respode as if it is an SDI-12 with measurements from sensors placed there. I am using a library SDI-12 developed by you, but I am with difficulties in putting the Arduino to respond to commands ... Will could help me? Sorry for bad english, but it is not my language: s

Best regards.

Kevin-M-Smith commented 10 years ago

Hi jotam93,

I’m happy to try and help, but I’m not sure that the library can do what you want.

The SDI-12 protocol is very different depending on which way the communication is going:

sensor — > datalogger vs. datalogger —> sensor

The timing and behavior are different.

This is only designed for: sensor —> datalogger (Arduino) and NOT (Arduino) sensor —> datalogger.

If you could send me a drawing of what you are trying to do, that would help me to more clearly understand what you are trying to accomplish.

To send the drawing, you can email me: sdi12@ethosengineering.orgmailto:sdi12@ethosengineering.org

Regards, Kevin

On Apr 11, 2014, at 8:59 PM, jotam93 notifications@github.com<mailto:notifications@github.com> wrote:

Hello Kevin M. Smith,

I am developing a project in which I will use SDI-12 sensors, but i will also use sensors that do not use any communication protocol and the aim is to mete them respond as if they were an SDI-12 sensor. For that, I will use an Arduino (where i will put the sensors that are not SDI-12) that receives requests from another arduino and respode as if it is an SDI-12 with measurements from sensors placed there. I am using a library SDI-12 developed by you, but I am with difficulties in putting the Arduino to respond to commands ... Will could help me? Sorry for bad english, but it is not my language: s

Best regards.

— Reply to this email directly or view it on GitHubhttps://github.com/StroudCenter/Arduino-SDI-12/issues/7.

jotam93 commented 10 years ago

Hi Kevin M. Smith,

Yes I realized that the library only works for "sensor -> logger (Arduino)" but my goal was to create a program or a library for Arduino that "respond" to the commands of the library developed by you, as if it were really a SDI-12 sensor. That is, what I meant was something like "(Arduino) sensor -> datalogger (Arduino)".

I sent him the drawing I intend to do to e-mail, I hope you understand better that way :)

Regards, jotam93

jotam93 commented 10 years ago

Hello M. Smith,

Needed his help again ... Have managed to do what he wanted, but now I will implement a protection circuit (one that is in Appendix A of the SDI-12 specification document), but I think I have to connect two-pin CMOS 3-STATE BUFFER, not just 1 to which the library is designed (but I'm not sure) ... It has to work with two pins almost as if it is a RX pin and a TX pin and have another pin that sets the state of the doors 3-state, right? Will could give me some tips on how I can do to change the library to work with protection?

Best regards.

Kevin-M-Smith commented 10 years ago

Hi Jotam93,

I am having trouble understanding exactly what you have managed to get working so far.

If Spanish is more familiar to you, we can switch to that.

As far as I understand, the pins on the Atmega328 (the brain of the Arduino) have a built-in a 3-state buffer: (LOW, HIGH, INPUT), so you would only need to add the spark-gap, diodes, etc, and shouldn’t need any more pins for control or any software modfiication.

I would recommend getting in touch with someone more familiar with electronics hardware to make sure you are getting the intended circuit protection.

Regards, Kevin

On May 29, 2014, at 1:18 PM, jotam93 notifications@github.com<mailto:notifications@github.com> wrote:

Hello M. Smith,

Needed his help again ... Have managed to do what he wanted, but now I will implement a protection circuit (one that is in Appendix A of the SDI-12 specification document), but I think I have to connect two-pin CMOS 3-STATE BUFFER, not just 1 to which the library is designed (but I'm not sure) ... It has to work with two pins almost as if it is a RX pin and a TX pin and have another pin that sets the state of the doors 3-state, right? Will could give me some tips on how I can do to change the library to work with protection?

Best regards.

— Reply to this email directly or view it on GitHubhttps://github.com/StroudCenter/Arduino-SDI-12/issues/7#issuecomment-44558029.

Kevin-M-Smith commented 10 years ago

Hi Jotam93,

Have you had any luck?

Regards, Kevin

jotam93 commented 10 years ago

(español) Hola Kevin,

Gracias por tu preocupación :) Terminé no implementa la última parte para que yo te pedí ayuda ... El trabajo final es casi en https://github.com/Jorge-Mendes/Agro-Shield podría dar su opinión una vez que ya está en el saber? Todavía le falta ese segundo código de Arduino que te he dicho, es de un segundo Arduino que funcionará como un sensor SDI-12, es decir, a partir de ese escudo ordenó medidas de otros sensores conectados a esta segunda Arduino y comunicar usando SDI -12. Cuál es su opinión? Espero no hacer nada sin sentido :)

saludos cordiales, Jorge

(english) Hy Kevin,

Thanks for your concern :) I ended up not implement that last part for which I asked you for help ... The almost final work is in https://github.com/Jorge-Mendes/Agro-Shield, could give me your opinion as it is already within the subject? Still lacks the second Arduino code that I told you, is one second Arduino which will function as an SDI-12 sensor, ie, from that shield ordered measurements from other sensors connected to this second Arduino and they communicate using SDI-12. What is your opinion ... Hope I'm not doing anything meaningless :)

Regards, Jorge

Date: Mon, 30 Jun 2014 17:46:30 -0700 From: notifications@github.com To: Arduino-SDI-12@noreply.github.com CC: j.mfsm@hotmail.com Subject: Re: [Arduino-SDI-12] Help SDI-12 Communication (#7)

Hi Jotam93,

Have you had any luck?

Regards,

Kevin

— Reply to this email directly or view it on GitHub.

Rico-van-Dongen commented 9 years ago

Hi jotam93,

Any progress on your project? I guess the key in in the "break" signal. (the wakeSensors() function in this library). instead of sending it you should now be able to detect it and enter receive mode.

Rico