Please read the posts in the Announcements section about the current status of Cumulus development now that I have retired

Please read this post before posting

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See this post for download

CumulusMX 3041 crash on startup

Discussion of version 3 of Cumulus, which runs on Windows, Linux, and OS X. All Cumulus MX queries in here, please.
User avatar
Werk_AG
Posts: 181
Joined: Sun Jan 13, 2013 8:04 pm
Weather Station: WeatherDuino Pro2
Operating System: Windows 7
Location: Cercal CDV - Portugal

CumulusMX 3041 crash on startup

Postby Werk_AG » Tue Aug 23, 2016 11:37 pm

Hi Steve

I installed today build 3041 of the CumulusMX, but I get a crash everytime I try to start it. It happens in Windows, on Linux (PI) it seems to start but don't communicate with the station.
I'm using an emulated David Vantage, build 3038 is working fine. Unfortunately I haven't tested build 3039 and 3040, so I don't know if the problem was started with the build 3041.

Here is a picture of what happens:

Image

Looking at the change log from 3038 to 3041 I don't see anything that could affect the serial connection. Any idea?

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

Re: CumulusMX 3041 crash on startup

Postby steve » Wed Aug 24, 2016 10:00 am

Ah, oops. I added a timeout of one second reading the data from Davis stations, to make sure that reads don't hang. Is it possible with your emulation that a read could take more than one second?
Steve
-----
Hosting available for Cumulus web sites. See http://sandaysoft.com/forum/viewtopic.php?f=2&t=11876

Please read the posts in the Announcements section about the current status of Cumulus development since I have retired from my day job

User avatar
hornychz
Posts: 5
Joined: Mon May 11, 2015 3:54 pm
Weather Station: WeatherDuino Pro2
Operating System: Raspbian Wheezy
Location: Brandys nad Labem - Stara Boleslav, Czech republic
Contact:

Re: CumulusMX 3041 crash on startup

Postby hornychz » Thu Aug 25, 2016 9:23 pm

Hi,

I have maybe the same problem too (maybe because I have the same weather station ? ;) Now I better get back to 3040 ...

Kind Regards
Zdenek

User avatar
Werk_AG
Posts: 181
Joined: Sun Jan 13, 2013 8:04 pm
Weather Station: WeatherDuino Pro2
Operating System: Windows 7
Location: Cercal CDV - Portugal

Re: CumulusMX 3041 crash on startup

Postby Werk_AG » Mon Aug 29, 2016 11:46 pm

hornychz wrote:Hi,

I have maybe the same problem too (maybe because I have the same weather station ? ;) Now I better get back to 3040 ...

Kind Regards
Zdenek


Hi Zdenek,

So, now we know that the problem was started with build 3040.
Thanks.

User avatar
Werk_AG
Posts: 181
Joined: Sun Jan 13, 2013 8:04 pm
Weather Station: WeatherDuino Pro2
Operating System: Windows 7
Location: Cercal CDV - Portugal

Re: CumulusMX 3041 crash on startup

Postby Werk_AG » Mon Aug 29, 2016 11:57 pm

steve wrote:Ah, oops. I added a timeout of one second reading the data from Davis stations, to make sure that reads don't hang. Is it possible with your emulation that a read could take more than one second?


Hi Steve,

It's possible that some readings can take more than one second, at least when Cumulus is starting.

Here is an extract of the log in the MXdiags folder. It always crash at that point, which seems to be just before it attempts to read the console time

2016-08-23 23:54:26.437 Station type = Davis
2016-08-23 23:54:26.437 LOOP2 disabled
2016-08-23 23:54:26.437 Serial device = COM12
2016-08-23 23:54:26.599 Connected OK
2016-08-23 23:54:26.619 Reading firmware version
2016-08-23 23:54:26.926 FW version = 1.90
2016-08-23 23:54:26.926 Last update time = 23/08/2016 23:54:26
2016-08-23 23:54:26.932 Setting console time
2016-08-23 23:54:27.034 Wait for ACK...
2016-08-23 23:54:27.042 ACK received
2016-08-23 23:54:27.043 Wait for ACK...

Here is an extract of the log, with CumulusMX build 3028

2016-08-24 00:16:10.839 Station type = Davis
2016-08-24 00:16:10.839 LOOP2 disabled
2016-08-24 00:16:10.839 Serial device = COM12
2016-08-24 00:16:10.915 Connected OK
2016-08-24 00:16:10.918 Reading firmware version
2016-08-24 00:16:11.224 FW version = 1.90
2016-08-24 00:16:11.224 Last update time = 24/08/2016 00:16:10
2016-08-24 00:16:11.230 Setting console time
2016-08-24 00:16:11.332 Wait for ACK...
2016-08-24 00:16:11.338 ACK received
2016-08-24 00:16:11.340 Wait for ACK...
2016-08-24 00:16:14.937 ACK received
2016-08-24 00:16:14.942 Reading console time
2016-08-24 00:16:16.042 0B-10-00-18-08-74-3F-3F
2016-08-24 00:16:16.043 Console clock: 24/08/2016 00:16:11

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

Re: CumulusMX 3041 crash on startup

Postby steve » Tue Aug 30, 2016 8:51 am

It looks like it takes over the three seconds to receive the ACK in response to sending the new time setting. I'll look at increasing the default timeout and making it configurable in Cumulus.ini in the next build. I'd assumed that one second would be long enough.

I'm assuming that no-one with a Davis station has hit this - or perhaps no-one with a Davis is running the latest build yet. I wasn't easily able to test it myself as I have an IP logger plugged in. I'll try it with my USB logger later today.
Steve
-----
Hosting available for Cumulus web sites. See http://sandaysoft.com/forum/viewtopic.php?f=2&t=11876

Please read the posts in the Announcements section about the current status of Cumulus development since I have retired from my day job

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

Re: CumulusMX 3041 crash on startup

Postby steve » Tue Aug 30, 2016 11:25 am

I've tried the latest build with my VP2 and a USB logger, and the responses are very quick, much less than a second.

2016-08-30 12:22:36.263 Setting console time
2016-08-30 12:22:36.364 Wait for ACK...
2016-08-30 12:22:36.372 ACK received
2016-08-30 12:22:36.372 Wait for ACK...
2016-08-30 12:22:36.378 ACK received

So I'm going to leave the default timeout at 1 second, but add a Cumulus.ini setting to allow it to be set to a longer period where required.
Steve
-----
Hosting available for Cumulus web sites. See http://sandaysoft.com/forum/viewtopic.php?f=2&t=11876

Please read the posts in the Announcements section about the current status of Cumulus development since I have retired from my day job

User avatar
Werk_AG
Posts: 181
Joined: Sun Jan 13, 2013 8:04 pm
Weather Station: WeatherDuino Pro2
Operating System: Windows 7
Location: Cercal CDV - Portugal

Re: CumulusMX 3041 crash on startup

Postby Werk_AG » Wed Aug 31, 2016 4:09 am

Thank you Steve, that option in Cumulus.ini will be much appreciated by me and all that are using the WeatherDuino.
Anyway I'm gonna check my code and try to improve the response time to the Set Time and Get Time command.

User avatar
hornychz
Posts: 5
Joined: Mon May 11, 2015 3:54 pm
Weather Station: WeatherDuino Pro2
Operating System: Raspbian Wheezy
Location: Brandys nad Labem - Stara Boleslav, Czech republic
Contact:

Re: CumulusMX 3041 crash on startup

Postby hornychz » Thu Sep 01, 2016 3:03 pm

Hi Steve and Werk_AG,

if is it interesting for you, here is some parts from my logs (I recall that I also use weatherDuino).
Version 3040 is without this issue:

2016-08-23 05:00:15.352 Station type = Davis
2016-08-23 05:00:15.352 LOOP2 disabled
2016-08-23 05:00:15.353 Serial device = /dev/ttyUSB0
2016-08-23 05:00:15.370 Connected OK
2016-08-23 05:00:15.376 Reading firmware version
2016-08-23 05:00:15.691 FW version = 1.90
2016-08-23 05:00:15.696 Reading reception stats
2016-08-23 05:00:15.997 0 0 0 0 0
2016-08-23 05:00:15.999 Last update time = 23/08/2016 05:00:00
2016-08-23 05:00:16.008 Setting console time
2016-08-23 05:00:16.109 Wait for ACK...
2016-08-23 05:00:16.116 ACK received
2016-08-23 05:00:16.118 Wait for ACK...
2016-08-23 05:00:19.714 ACK received
2016-08-23 05:00:19.722 Reading console time
2016-08-23 05:00:20.023 14-00-05-17-08-74-3F-29
2016-08-23 05:00:20.024 Console clock: 23/08/2016 05:00:20
2016-08-23 05:00:20.025 Start reading archive data
2016-08-23 05:00:20.029 Reading archive data


But in version 3041 I have the same problem as Werk_AG has:

2016-08-19 14:10:55.567 Station type = Davis
2016-08-19 14:10:55.567 LOOP2 disabled
2016-08-19 14:10:55.567 Serial device = /dev/ttyUSB0
2016-08-19 14:10:55.585 Connected OK
2016-08-19 14:10:55.590 Reading firmware version
2016-08-19 14:10:56.811 FW version = 1.90
2016-08-19 14:10:56.815 Reading reception stats
2016-08-19 14:10:57.116 0 0 0 0 0
2016-08-19 14:10:57.118 Last update time = 19/08/2016 13:55:00
2016-08-19 14:10:57.127 Setting console time
2016-08-19 14:10:57.228 Wait for ACK...
2016-08-19 14:10:57.235 ACK received
2016-08-19 14:10:57.237 Wait for ACK...


Regards
Zdenek

User avatar
Werk_AG
Posts: 181
Joined: Sun Jan 13, 2013 8:04 pm
Weather Station: WeatherDuino Pro2
Operating System: Windows 7
Location: Cercal CDV - Portugal

Re: CumulusMX 3041 crash on startup

Postby Werk_AG » Fri Sep 02, 2016 6:09 am

Hi Zdenek

It will be great if Steve will make the default timeout configurable in Cumulus.ini, however I've been working in the WeatherDuino code and managed to speed up the routines which cause the timeout error.
In a few days I will publish an updated WeatherDuino Pro2 package which works with CumulusMX build 3041

Regards
Werk_AG

User avatar
hornychz
Posts: 5
Joined: Mon May 11, 2015 3:54 pm
Weather Station: WeatherDuino Pro2
Operating System: Raspbian Wheezy
Location: Brandys nad Labem - Stara Boleslav, Czech republic
Contact:

Re: CumulusMX 3041 crash on startup

Postby hornychz » Fri Sep 02, 2016 8:51 am

If this works, at least one of you, it'll be great. If both leads, it will be amazing! :idea:
:)

Good luck!

Zdenek


Return to “Cumulus MX”

Who is online

Users browsing this forum: No registered users and 8 guests