Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Re: Hydreon double tips

Discussion of this sensor and its uses
bruce45
Posts: 365
Joined: Wed 07 Jan 2009 10:36 pm
Weather Station: wh1081
Operating System: windows 10
Location: Oban Scotland

Re: Hydreon double tips

Post by bruce45 »

capacitor on the dtr/dsr makes it even worse close to 4 inches on startup

removed the cap and back to two on's one off.

so far thats the only thing thats the same
apenwith
Posts: 418
Joined: Sun 26 Apr 2009 7:30 pm
Weather Station: w8681 BlakeLarsen Sun Recorder
Operating System: Windows 7 SP1
Location: West Cornwall UK
Contact:

Re: Hydreon double tips

Post by apenwith »

Hi
One thing I noticed about Bruce's debug log is that all the switching seems to occur within a single second. I am still getting correct ON/OFF (single) but there is at least 1 second between ON and OFF. I've contacted my electronics expert friend Ole to see if he can shed any light.
Are you sure the polarity of the capacitor is correct DTR +ve - the other way round it could be the decaying voltage is showing up on the DSR line and appearing like changes. Another Alan guess !!
Regards
Alan
bruce45
Posts: 365
Joined: Wed 07 Jan 2009 10:36 pm
Weather Station: wh1081
Operating System: windows 10
Location: Oban Scotland

Re: Hydreon double tips

Post by bruce45 »

hi alan

the two on's then one off is without a cap fitted

just tried the usb to rs232 convetor with and without cap same results i am thinking that it could be the old dell c400 notebook which has the direct rs232 port not working as well as it should. setting it up on a insprion 6400 with win7 on it to see what it sees
bruce45
Posts: 365
Joined: Wed 07 Jan 2009 10:36 pm
Weather Station: wh1081
Operating System: windows 10
Location: Oban Scotland

Re: Hydreon double tips

Post by bruce45 »

ok set up with win7 laptop via usb to rs232 convertor
debug.log
looks the same as other laptop no capacitor fitted

two on's then one off.

looks like we are in for a down pour so will leave it to see what real rain records but dont think it will be any different
You do not have the required permissions to view the files attached to this post.
apenwith
Posts: 418
Joined: Sun 26 Apr 2009 7:30 pm
Weather Station: w8681 BlakeLarsen Sun Recorder
Operating System: Windows 7 SP1
Location: West Cornwall UK
Contact:

Re: Hydreon double tips

Post by apenwith »

Hi
I had this message from Ole

I guess it is contact bounce in the relay which is the cause – at every closure there could be an additional number of open/closures each only a fraction of a milli second.
The capacitor can normally handle such problems but I would try out some lower values – reason is that charge on the capacitor will be shorted by the relay contact and they might be burned for that reason.
You could probably also use the 10uF in series with a resistor say 47 -100 ohm – that would limit the discharge current and protect the contacts better.

I have fitted an LED on the DTR line to ground so if my theory of DTR going low (I found a liitle on Google which suggests it's possible) the LED should flash OFF but a) I need some rain and B) if I blink I'll miss it. But worth a try.
Alan
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Hydreon double tips

Post by steve »

Could you please download, unzip and run the attached .net test program? I thought it might be useful to see whether there's an issue with the Delphi serial port component that I'm using in Cumulus. Put the com port number in the box and click the start button. Then 'make it rain'. It should display a message each time DSR changes. It doesn't quite work the same way as in Cumulus, because the event message doesn't carry the current state of the port, so I have to read that from the port when the message arrives. It's possible that the state may have changed by the time the program reads it. But it will still be useful to see how many event messages are raised for each 'tip'.
You do not have the required permissions to view the files attached to this post.
Steve
bruce45
Posts: 365
Joined: Wed 07 Jan 2009 10:36 pm
Weather Station: wh1081
Operating System: windows 10
Location: Oban Scotland

Re: Hydreon double tips

Post by bruce45 »

ok Steve what am i doing wrong

tried with culumus running and cumulus closed

both times error message access to com port denied

pressed continue poured water nothing

im still using the usb rs232 convertor is this for direct rs232 ports?

sorry to be a pain


bruce
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Hydreon double tips

Post by steve »

You'll have to run it without Cumulus running. You might have to run it 'elevated' - right click and 'run as administrator'. If that doesn't work, something else probably has the com port open - I don't explicitly close it in Cumulus, so maybe something odd is happening and you may need to reboot and then run this.
Steve
bruce45
Posts: 365
Joined: Wed 07 Jan 2009 10:36 pm
Weather Station: wh1081
Operating System: windows 10
Location: Oban Scotland

Re: Hydreon double tips

Post by bruce45 »

ok thats easy to try will report back shortly
bruce45
Posts: 365
Joined: Wed 07 Jan 2009 10:36 pm
Weather Station: wh1081
Operating System: windows 10
Location: Oban Scotland

Re: Hydreon double tips

Post by bruce45 »

ok tried that both times got
Capture.JPG
You do not have the required permissions to view the files attached to this post.
duke

Re: Hydreon double tips

Post by duke »

Morning all. Ok, going out on a limb here, and I don't mean to sound ungrateful because I am extremely grateful for all that Steve has done thus far in implementing and supporting the RG11 into Cumulus and trying to solve and understand this issue :clap: . Hopefully I shall be implementing both my RG11's tomorrow using this method.

But, if I am correct, back at the beginning of all this, Alan already had the RG11 recording tips (on/offs) reliably via the A/D converter to Ole's software. Could this not be a better interface of connection to Cumulus? As what I believe we are trying to achieve is exactly what this module is designed to do - convert analogue (relay) into digital (USB).

There was even a brief discussion about the COM port using FTDI drivers.

The A/D converter is about £20.00 in the UK and similar in the states and can support 8 devices so only one would be required for what we are trying to achieve using two RG11's.

Just a thought. Especially if it alleviates the "double tips" issue.
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Hydreon double tips

Post by steve »

If the A/D converter is easy enough to drive, then I can add support for that, since I've written the rest of the code anyway. I had a quick look at the protocol earlier and it seems to be straightforward. But there may be an issue because the protocol requires polling rather than being event driven. If Cumulus is busy doing something else for more than 50 ms, it may miss a 'tip'.
As what I believe we are trying to achieve is exactly what this module is designed to do - convert analogue (relay) into digital (USB).
I may be misunderstanding, but I don't think that's the case, as the RG-11 is using the digital input, it's not actually using the analogue to digital capability of this device.
Steve
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Hydreon double tips

Post by steve »

bruce45 wrote:ok tried that both times got
I think something must be opening the com port on your PC; the test program runs fine on my PC.
Steve
bruce45
Posts: 365
Joined: Wed 07 Jan 2009 10:36 pm
Weather Station: wh1081
Operating System: windows 10
Location: Oban Scotland

Re: Hydreon double tips

Post by bruce45 »

ok any idea how i could find out if the port is open?

if it is then how would i close it?
apenwith
Posts: 418
Joined: Sun 26 Apr 2009 7:30 pm
Weather Station: w8681 BlakeLarsen Sun Recorder
Operating System: Windows 7 SP1
Location: West Cornwall UK
Contact:

Re: Hydreon double tips

Post by apenwith »

Hi Steve
This is the result of my hosepipe test - quite heavy 'rain'
Incidentally I took Ole's advice and added a resistor (DTR - 800k resistor - +ve capacitor -ve - DSR) to avoid the relay arcing - I only had a bigger resistor than Ole recommended but it still works.
Regards
Alan


08:45:58.547 DSR change: off
08:47:56.057 DSR change: on
08:47:56.659 DSR change: off
08:47:59.608 DSR change: on
08:48:00.232 DSR change: off
08:48:03.751 DSR change: on
08:48:04.380 DSR change: off
08:48:07.521 DSR change: on
08:48:08.133 DSR change: off
08:48:11.247 DSR change: on
08:48:11.884 DSR change: off
08:48:15.785 DSR change: on
08:48:16.396 DSR change: off
08:48:19.532 DSR change: on
08:48:20.166 DSR change: off
Post Reply