-
-
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
YSI 600 communication #10
Comments
Hi Joseph, Happy to help if I can! Sorry if you emailed me and didn't get a response. I'm currently working in Perú and I am admittedly not checking all of my email accounts. I had no problems getting the YSI to work normally. It required 12v DC so I powered it off a separate power supply. I don't know if it is the same for all YSI probes, but the one I was using had a MS8 connector where each of the electrical contacts were lettered. I don't remember which letters correspond to which inputs, so take the following advise with caution, and refer to your user's manual if you have one. This company published a list that suggests SDI-12 should be connected to F, power to A, and ground to B: You will want to verify that with any official information you can get from YSI - but it's a start! Hope it helps - and good luck with everything! Kevin From: JDelesantro [notifications@github.com] First off, thanks for your contribution with this library. I have recently started using Arduino based data loggers in my work for Duke University's River Center and it has been very helpful. While I have had no issues communicating with other sensors, I have not been able to successfully communicate with the YSI 600. I noticed that you mentioned testing the library with a YSI in a google group. Do you have any code you could share or general tips on communicating with the YSI 600 through Arduino? I've also emailed you and I apologize for hassling you. Thanks, — |
Hi Kevin, Thanks for your reply. Hope your having fun in Peru. We log our YSIs to other data loggers via SDI12 (Campbell Scientific). So I know that the pin out is correct, I know that my addresses and commands are correct, and that the YSI is communicating in SDI12. My guess is that there is some sort of timing issue that does not allow the Arduino to recognize the YSI? When sending a "aM!" command, where I supply the address rather than scanning, I can get the YSI to come out of sleep, initiate the wiper and turn on the optics. Presumably the measurement has been initiated. However, while(mySDI12.available()) is never true, so nothing is read back from the YSI either in terms of an acknowledgement or data from the "aD0!" command. All of my attempts to use scans to recognize the YSI, as per your examples, have been fruitless, but I intend to play around with the checkactive() command more this afternoon. Any suggestions would be greatly appreciated. Thanks! |
Hi Joseph, I'm afraid I don't have any other suggestions based on what you've told me so far. So perhaps a little more info: Thanks! From: JDelesantro [notifications@github.com] Hi Kevin, Thanks for your reply. Hope your having fun in Peru. We log our YSIs to other data loggers via SDI12 (Campbell Scientific). So I know that the pin out is correct, I know that my addresses and commands are correct, and that the YSI is communicating in SDI12. My guess is that there is some sort of timing issue that does not allow the Arduino to recognize the YSI? When sending a "aM!" command, where I supply the address rather than scanning, I can get the YSI to come out of sleep, initiate the wiper and turn on the optics. Presumably the measurement has been initiated. However, while(mySDI12.available()) is never true, so nothing is read back from the YSI either in terms of an acknowledgement or data from the "aD0!" command. All of my attempts to use scans to recognize the YSI, as per your examples, have been fruitless, but I intend to play around with the checkactive() command more this afternoon. Any suggestions would be greatly appreciated. Thanks! — |
Arduino Uno R3 Thanks |
Hmm. I'm stumped. It is interesting that the probe physically responds to the command, but does not reply. It could certainly be a timing issue. Each vendor is responsible for implementing SDI-12 directly, and if the YSI 600 OMS is quite old, there's a chance Do you have a newer YSI device at your disposal to test on? Also, do you have access to the code you are running on your Campbell loggers that it works with? That might give some insight into a timing that works. Regards, From: JDelesantro [notifications@github.com] Arduino Uno R3 Thanks — |
Kevin, I just tried a newer YSI device. I used your sample logger code and a Thanks, On Fri, Aug 1, 2014 at 11:48 AM, Kevin M. Smith notifications@github.com
|
Hi Joseph, The examples in the library (at least in the first commit) worked for the YSI sondes I was using. Hopefully it wasn't just dumb luck that it worked with those models. Unfortunately, I don't have access to any YSI devices at the moment. I'm running out of ideas, but here's a few more questions:
There is a drag-and-drop image feature associated with the text box on the website. Regards, |
Also - if you get fed up with my code - you may want to see if this other SDI-12 library works for you: https://github.com/joranbeasley/SDISerial Regards, |
The address is 0 I'll be out of town for a week to sets up some new installations, but when Unfortunately I can't spend much more time on this so I've ordered a Thanks for your help and I really appreciate the work you put into the On Fri, Aug 1, 2014 at 7:02 PM, Kevin M. Smith notifications@github.com
|
Happy to help - sorry it didn't work out. I asked about the address because many manufacturers usually default the devices to address 0. It is a reasonable number to start with, but sometimes the sensors have alternate behavior when the address is 0. For example many Decagon sensors have a different default communication protocol when on address 0. Supposedly in these cases there is backwards compatibility of SDI-12, but I've had issues in the past. The world of serial communications can get wonky pretty fast. Regards, |
First off, thanks for your contribution with this library. I have recently started using Arduino based data loggers in my work for Duke University's River Center and it has been very helpful. While I have had no issues communicating with other sensors, I have not been able to successfully communicate with the YSI 600. I noticed that you mentioned testing the library with a YSI in a google group. Do you have any code you could share or general tips on communicating with the YSI 600 through Arduino?
I've also emailed you and I apologize for hassling you.
Thanks,
Joseph
The text was updated successfully, but these errors were encountered: