Sandaysoft

Support forum for Cumulus weather station software
It is currently Sat May 25, 2013 8:17 pm
Please click here before posting. Help me to help you!
Useful Links: Cumulus FAQ • Enhancement requests • Wiki (documentation)
Please put your approximate location into your profile
Add your web site to the Cumulus user map
Vantage Pro2 users with firmware 3.00 should upgrade to fw 3.12 and Cumulus 1.9.4

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Cumulus 1069, Davis VVue, VVP 1 sec polling
PostPosted: Sat Apr 27, 2013 4:32 am 
Offline

Joined: Mon Jul 09, 2012 8:40 pm
Posts: 286
Location: Auckland, New Zealand
Weather Station: Davis VantageVue
Operating System: Windows 7 SP1
Have VantageVue fw2.14
Cumulus working through USB Clone Logger via serial.
Already have VP2SleepInterval set to 1500
Was working with low CPU and loop updates around 2.5secs.

Installed and configured VVP Ver1.2.5 on the same Com port that was always used, and configured VVP for Cumulus on IP.
Changed Cumulus from Serial to IP (127.0.0.1 port 5511)
All is working well but Cumulus is now polling VVP at 1 sec intervals shown in the Cumulus status bar and in VVP, and CPU load has increased dramatically.

All my reading and past experience indicates that this should not be happening!
Have restarted Cumulus - no change.
Removed the VPSleepInterval - no change
Changed VPSleepInterval to 0 - system went into overload - VVP activity screen could not keep up with Cumulus requests! Cumulus took ages to shut down!
Changed VPSleepInterval to various values finally settling on 2250 - system now behaving and VVP is reporting loop packets at just over 2 sec intervals and the Cumulus loop requests are now at around 2.5 secs (alternating between 2 and 3 secs in VVP and Cumulus).

So it would appear that since VVP gets the data from the console and stores it in memory, and, with Cumulus getting that data via IP & VVP from memory via IP internal loopback between Cumulus and VVP all in the same PC, there is almost no communication delay. This would explain why a higher VPSleepInterval setting is needed - or else something even more strange is going on!

Also the debug log no longer shows any sensible information about this exchange between Cumulus and VVP. I don't know if this is because it is no longer Serial but IP or if it relates to VVP not returning relevant responses.

_________________
BCJKiwi
http://silveracorn.co.nz/weather


Top
 Profile  
 
 Post subject: Re: Cumulus 1069, Davis VVue, VVP 1 sec polling
PostPosted: Sat Apr 27, 2013 10:15 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17614
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
BCJKiwi wrote:
So it would appear that since VVP gets the data from the console and stores it in memory, and, with Cumulus getting that data via IP & VVP from memory via IP internal loopback between Cumulus and VVP all in the same PC, there is almost no communication delay. This would explain why a higher VPSleepInterval setting is needed - or else something even more strange is going on!
Yes, that's why VVP users have always needed the sleep interval setting, as otherwise Cumulus is in a tight loop constantly reading and processing data.

I don't understand how you were getting reads at 1 per second with a sleep setting of 1500, because with that value the thread is suspended for 1.5 seconds between reads, and then there's the time taken to process the data. But anyway, if 2250 gives you reasonable results, that's all that matters. The value is configurable so that it can be adjusted to suit each system, after all.

_________________
Steve
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: Cumulus 1069, Davis VVue, VVP 1 sec polling
PostPosted: Sat Apr 27, 2013 11:21 am 
Offline

Joined: Mon Jul 09, 2012 8:40 pm
Posts: 286
Location: Auckland, New Zealand
Weather Station: Davis VantageVue
Operating System: Windows 7 SP1
steve wrote:
I don't understand how you were getting reads at 1 per second with a sleep setting of 1500, because with that value the thread is suspended for 1.5 seconds between reads, and then there's the time taken to process the data. But anyway, if 2250 gives you reasonable results, that's all that matters. The value is configurable so that it can be adjusted to suit each system, after all.
Neither do I which is why I posted - can only assume the processing time is less for some reason - specially as it is via IP rather than serial.

_________________
BCJKiwi
http://silveracorn.co.nz/weather


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group