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
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
Is it possible that when the DSR goes high it causes the DTR to go low for some reason and my capacitor has the effect of holding the DTR line high. Without the capacitor DTR in the low state would leave DSR low and maybe allow DTR to go high again. As the relay is closed for 50ms there would seem to be enough time for Cumulus to see the double tip.
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 »

how often does cumulus look at the port?
that is what i was meaning in my earlier post about timing issues
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 »

apenwith wrote:Is it possible that when the DSR goes high it causes the DTR to go low for some reason and my capacitor has the effect of holding the DTR line high. Without the capacitor DTR in the low state would leave DSR low and maybe allow DTR to go high again. As the relay is closed for 50ms there would seem to be enough time for Cumulus to see the double tip.
I'm afraid I have no idea; my electronics knowledge is very basic. I enjoy assembling electronic kits (e.g. for my model railway), but rarely have much idea how they work. I added support for this device because I mistakenly thought that this DTR/DSR connection method was a tried and understood interface. It's clearly not as straightforward as I thought.

I'm basically waiting for some consistent results so that I can make the code in Cumulus fit whatever it is that you come up with. I'm tempted to say that we should go with the unmodified cable if it consistently produces "double tips", but there's this annoying inconsistency where you get on-off-on-off and others get on-on-off. Whatever solution we eventually end up with, I think it's important that we understand why we've done it that way and how it works.
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:how often does cumulus look at the port?
that is what i was meaning in my earlier post about timing issues
It doesn't work that way. It never looks at the port. It gets told when the state changes. That's why the on-on-off sequence makes no sense.
Steve
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
I'm no expert either but I thought the reasoning logical (though the 2 ON's is harder to fathom) - to add to the confusion - maybe adapters work differently to real serial ports.

Regards
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 »

apenwith wrote:maybe adapters work differently to real serial ports.
I'd forgotten that your on-off-on-off was with an adapter, and the on-on-off results were from a real serial port. At least there's a possible explanation for the difference.
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 »

i have ordered a usd to rs232 convertor to compair results.

it could well be how the direct port and convertor see the change and prestent that change for cumulus.

more testing under various conditions is needed so that Steve can workout which way this could progress
User avatar
mcrossley
Posts: 12694
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Hydreon double tips

Post by mcrossley »

Only getting Cumulus to increase the count when a on-off transition occurs would solve the double 'on' wouldn't it?
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 »

mcrossley wrote:Only getting Cumulus to increase the count when a on-off transition occurs would solve the double 'on' wouldn't it?
In the on-on-off case, yes. But not in the on-off-on-off case.
Steve
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
Could it be that the missing OFF is of such short duration that it is superceded by the ON and debug misses it but it is there really. Is there still a double count with on on off.
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 »

apenwith wrote:Could it be that the missing OFF is of such short duration that it is superceded by the ON and debug misses it but it is there really.
This could be the case lower down in the system - in Windows somewhere - but if Cumulus is being notified then it would be logged, the duration has no bearing on it.
Is there still a double count with on on off.
Yes; basically Cumulus ignores 'off' events and increments the counter for 'on' events.
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 »

hi all
fitted 10uf cap to cts/rts and poured water over the rg11
debug.log
does not make any sence to me.

i have received the usb convertor so could try that instead of the direct port

Steve if you want i could try the dtr/dsr for results to compare
You do not have the required permissions to view the files attached to this post.
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:does not make any sence to me.
Yes, looks pretty random.
i have received the usb convertor so could try that instead of the direct port

Steve if you want i could try the dtr/dsr for results to compare
Well I guess the more tests of different setups, the better. But at the moment it's all looking inconsistent.
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 »

thanks Steve

the pouring water from jug is ok to test the operation of thr rg11 but the rg11 looks for rain drops not flowing water.the tip bucket and jug would just keep tipping. so i think its not really a valid test. could try the other usb method and see what happends but think the only real test for the unit is real rain. i will give the dtr/dsr but think it could be the same sort of results.
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 »

I'll dig out a serial cable and do some testing here just closing the connection manually.
Steve
Post Reply