Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

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

Legacy Cumulus 1 release 1.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

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

USB connection dropped

Discussion and questions about Cumulus weather station software version 1. This section is the main place to get help with Cumulus 1 software developed by Steve Loft that ceased development in November 2014.
Post Reply
User avatar
Ned
Posts: 258
Joined: Mon 19 Jul 2010 11:15 am
Weather Station: WS2083 (aspirated)
Operating System: Win 10
Location: Auckland NZ

USB connection dropped

Post by Ned »

Today I plugged in a new device to the USB hub which also connects to my console. Seems the PC or hub had a tiz and dropped the console connection. I discovered that 3½ hours later, on observing a series of flat line graphs.
I was able to restore the missing data from the logger easily by editing the today.ini timestamp and deleting all the bad data from Jun11log.txt, then restarting Cumulus to download a fresh data set. All became well, although Wunderground is now showing both sets of data and weird graphs - no biggie ;)
Would it be feasible to enable Cumulus to detect this condition and activate an error light or alarm before too much time has passed?
Cheers
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: USB connection dropped

Post by steve »

Ned wrote:Would it be feasible to enable Cumulus to detect this condition and activate an error light or alarm before too much time has passed?
I thought it did already, to be honest. I'll have a look at the code. If you upload the relevant diags file, I can see if it knew about the USB problem.
Steve
User avatar
Ned
Posts: 258
Joined: Mon 19 Jul 2010 11:15 am
Weather Station: WS2083 (aspirated)
Operating System: Win 10
Location: Auckland NZ

Re: USB connection dropped

Post by Ned »

Thanks. It failed at 12:52 and the USB failure was reported. I don't recall an error light just before 16:09 when I pulled and inserted the USB plug to re-establish connection and restarted cumulus, but then I may have missed it?
You do not have the required permissions to view the files attached to this post.
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: USB connection dropped

Post by steve »

I was going to suggest that you could use the 'restart if unplugged' setting, which at least stops it logging lots of identical data and makes it easier to get going again once you've fixed the problem. But it doesn't actually get an 'unplugged' indication here, it just can't write to the USB device.

I see in the code that I did at one time log the 'failed to write to USB' message to the error window, and flash the error light, but I've 'commented out' the code. I can only assume that a number of people were getting the error as a temporary issue, and I had lots of queries about the error light flashing, so i took the code out. So I'm not really sure what to do about it.
Steve
User avatar
Ned
Posts: 258
Joined: Mon 19 Jul 2010 11:15 am
Weather Station: WS2083 (aspirated)
Operating System: Win 10
Location: Auckland NZ

Re: USB connection dropped

Post by Ned »

Cheers. I have the 'restart if unplugged' option active, but not a help as you say.
Would if be possible to check the USB writing status every time data is saved to disc and sound an alarm if it failed on two successive occasions?
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: USB connection dropped

Post by steve »

Ned wrote:Would if be possible to check the USB writing status every time data is saved to disc and sound an alarm if it failed on two successive occasions?
Yes, but it appears that wouldn't have helped in your case. It appears that it only got the one error, and that somehow after that it didn't get an error, but didn't get any new data either. I could perhaps look at some sort of mechanism for detecting this kind of situation. Simply detecting that the data hasn't changed is quite tricky, particularly if there's no wind, so it would have to be rather more sophisticated than that.
Steve
User avatar
Ned
Posts: 258
Joined: Mon 19 Jul 2010 11:15 am
Weather Station: WS2083 (aspirated)
Operating System: Win 10
Location: Auckland NZ

Re: USB connection dropped

Post by Ned »

OK thanks, hope you can think of something. I imagine checking for flatlining on multiple sensors would be resource hungry as well as a pain to implement.
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: USB connection dropped

Post by steve »

Did you happen to notice whether the "last data read" time in the bottom right hand corner was being updated. In theory, that should only be updated when it's actually managed to get data from the station, so checking on that once a minute should catch a number of 'flat line' problems.
Steve
User avatar
Ned
Posts: 258
Joined: Mon 19 Jul 2010 11:15 am
Weather Station: WS2083 (aspirated)
Operating System: Win 10
Location: Auckland NZ

Re: USB connection dropped

Post by Ned »

Sorry, I didn't notice that, in the panic to get operational once more :lol:
If you like, I could pull the plug for a few minutes and watch it....
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: USB connection dropped

Post by steve »

Ned wrote:If you like, I could pull the plug for a few minutes and watch it....
No need, I tried that myself and it did stop updating. I just wondered if it had done in your case. But it does seem like a worthwhile addition.
Steve
User avatar
Ned
Posts: 258
Joined: Mon 19 Jul 2010 11:15 am
Weather Station: WS2083 (aspirated)
Operating System: Win 10
Location: Auckland NZ

Re: USB connection dropped

Post by Ned »

Sounds promising. Is an audible alarm possible, recurring regularly until the problem is fixed? A red light can avoid detection when Cumulus is buried under other programmes.
Cheers!
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: USB connection dropped

Post by steve »

I was thinking it would just restart, as that might actually fix the problem depending on what it was.
Steve
User avatar
GraemeT
Posts: 312
Joined: Wed 21 Oct 2009 11:19 am
Weather Station: La Crosse WS-2355 & WS-2306
Operating System: Windoze 7, 10, 11
Location: Bayswater, Australia
Contact:

Re: USB connection dropped

Post by GraemeT »

Ned, I'm just wondering whether your problem was due to USB power. Is your hub powered or does it get it's power from the PC's USB port?
USB 2.0 ports can supply 500ma, but if the hub isn't externally powered then the available current is reduced with each additional connected device.
It's likely that your weather station port suffered a reduced current level when you plugged in the additional device. As an example, a Logitech webcam 600 requires the full 500ma, which will significantly reduce the power available to other ports on an unpowered hub, and even some of the lower-quality powered ones.
For added reliability I'd suggest not using a hub for the weather station, but connect directly to a port on the PC.
Cheers,
Graeme.
User avatar
Ned
Posts: 258
Joined: Mon 19 Jul 2010 11:15 am
Weather Station: WS2083 (aspirated)
Operating System: Win 10
Location: Auckland NZ

Re: USB connection dropped

Post by Ned »

Thanks Graeme, good idea. I've had a look and can rearrange the cables to avoid the non-powered hub, although the external drive I connected to it had its own power supply.
Post Reply