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 4019) - 03 April 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

A few issues Raspberry Pi and Davis Vantage Pro

Topics about the Beta trials up to Build 3043, the last build by Cumulus's founder Steve Loft. It was by this time way out of Beta but Steve wanted to keep it that way until he made a decision on his and Cumulus's future.

Moderator: mcrossley

Locked
Safety
Posts: 54
Joined: Fri 09 Apr 2010 7:32 pm
Weather Station: Davis Pro
Operating System: Windows 11

A few issues Raspberry Pi and Davis Vantage Pro

Post by Safety »

Hi,
The following observations are against version 3002 using:-
1. pi model “B”
2. logilink AU0002B USB to serial converter
3. Davis vantage pro +weather enoy
First stage worked OK i.e. up to setting station and port etc, reset and the following was displayed under Station type changed restart required:-
Exception : inside unhandledexception handler: The object was used after being disposed .

After the station was restarted the displays via the URL showed no data from the station.

Log file stated:-
2015-01-06 17:09:13.196 ========================== Cumulus MX starting ==========================
2015-01-06 17:09:13.239 Cumulus MX v.3.0.0 build 3002
2015-01-06 17:09:13.311 Platform: Unix
2015-01-06 17:09:13.312 Current culture: English (United Kingdom)
2015-01-06 17:09:13.312 06/01/2015 17:09:13
2015-01-06 17:09:13.320 Data path = data/
2015-01-06 17:09:13.356 Creating backup folder backup/20150106170913/
2015-01-06 17:09:13.610 Reading Cumulus.ini file
2015-01-06 17:09:13.844 Cumulus start date: 06 January 2015
2015-01-06 17:09:14.221 Station type: Davis Vantage Pro
2015-01-06 17:09:14.227 Cumulus Starting
2015-01-06 17:09:14.233 Opening station
Last update time from today.ini: 06/01/2015 17:09:14
Read today file: Date = 00/00/00, LastUpdateTime = 06/01/2015 17:09:14, Month = 1
ET not initialised
/media/AADA-E692/CumulusMXDist/data/alltime.ini
Alltime.ini file read
MonthlyAlltime.ini file read
Finding raintoday from logfile data/Jan15log.txt
Setting raintoday from logfile = 0
Calculating rain counter = -1
Rain counter negative, setting to zero
Midnight rain not found, using raindaystart
Getting rain totals, rain season start = 1
2015-01-06 17:09:15.572 Station type = Davis
2015-01-06 17:09:15.573 COM port = 1
2015-01-06 17:09:15.605 No such file or directory
2015-01-06 17:09:15.607 Not Connected
2015-01-06 17:09:16.192 624 web tags initialised
2015-01-06 17:09:17.283 HTML root path = /media/AADA-E692/CumulusMXDist/interface
2015-01-06 17:09:18.035 Starting web socket server on port 8002
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: A few issues Raspberry Pi and Davis Vantage Pro

Post by steve »

Safety wrote:2015-01-06 17:09:15.573 COM port = 1
You've put "1" for the serial port name. You need to supply the name of the device. On the Pi this will be /dev/ something or other.
Steve
Safety
Posts: 54
Joined: Fri 09 Apr 2010 7:32 pm
Weather Station: Davis Pro
Operating System: Windows 11

Re: A few issues Raspberry Pi and Davis Vantage Pro

Post by Safety »

Thank you for the update
I have updated the field to read /dev/ttyUSB0
pressed save and this time the conformation message to say all is well has not been displayed and no conformation has been displayed on my pi terminal . please advice
Regards
swyman18
Posts: 56
Joined: Fri 24 Apr 2009 5:27 am
Weather Station: Davis Vantage Pro2
Operating System: Ubuntu Server 14.04
Location: Honoka'a, HI

Re: A few issues Raspberry Pi and Davis Vantage Pro

Post by swyman18 »

If you browse your file system, do you actually see /dev/ttyUSB0?

I was able to get it to work on ubuntu server using a serial-USB adapter, as soon as I plugged in the station I checked the /dev directory and I would see ttyUSB0 show up. If I unplugged it, ttyUSB0 went away.

Perhaps the adapter is being assigned a different device name like ttyUSB1 (or 2, or 3, etc.)?
Safety
Posts: 54
Joined: Fri 09 Apr 2010 7:32 pm
Weather Station: Davis Pro
Operating System: Windows 11

Re: A few issues Raspberry Pi and Davis Vantage Pro

Post by Safety »

Yes just as you said i can see it when plugged in and the file is removed when unplugged.
using dmesg it returns usb1-1.2 : pl2303 converter now attached to ttyusb0.
when i hit any key on my terminal it returned an error :-

I see the comms port is still 1

2015-01-06 19:32:22.019 ========================== Cumulus MX starting ==========================
2015-01-06 19:32:22.060 Cumulus MX v.3.0.0 build 3002
2015-01-06 19:32:22.132 Platform: Unix
2015-01-06 19:32:22.132 Current culture: English (United Kingdom)
2015-01-06 19:32:22.133 06/01/2015 19:32:22
2015-01-06 19:32:22.141 Data path = data/
2015-01-06 19:32:22.167 Creating backup folder backup/20150106193222/
2015-01-06 19:32:22.421 Reading Cumulus.ini file
2015-01-06 19:32:22.653 Cumulus start date: 06 January 2015
2015-01-06 19:32:23.023 Station type: Davis Vantage Pro
2015-01-06 19:32:23.029 Cumulus Starting
2015-01-06 19:32:23.035 Opening station
Last update time from today.ini: 06/01/2015 19:32:23
Read today file: Date = 00/00/00, LastUpdateTime = 06/01/2015 19:32:23, Month = 1
ET not initialised
/media/AADA-E692/CumulusMXDist/data/alltime.ini
Alltime.ini file read
MonthlyAlltime.ini file read
Finding raintoday from logfile data/Jan15log.txt
Setting raintoday from logfile = 0
Calculating rain counter = -1
Rain counter negative, setting to zero
Midnight rain not found, using raindaystart
Getting rain totals, rain season start = 1
2015-01-06 19:32:24.475 Station type = Davis
2015-01-06 19:32:24.476 COM port = 1
2015-01-06 19:32:24.506 No such file or directory
2015-01-06 19:32:24.509 Not Connected
2015-01-06 19:32:25.107 624 web tags initialised
2015-01-06 19:32:26.192 HTML root path = /media/AADA-E692/CumulusMXDist/interface
2015-01-06 19:32:26.982 Starting web socket server on port 8002
2015-01-06 19:32:27.315 Cumulus closing
2015-01-06 19:32:27.519 Writing Cumulus.ini file
2015-01-06 19:32:27.836 Closing connection
System.InvalidOperationException: Specified port is not open.
at System.IO.Ports.SerialPort.CheckOpen () [0x00000] in <filename unknown>:0
at System.IO.Ports.SerialPort.Write (System.String str) [0x00000] in <filename unknown>:0
at System.IO.Ports.SerialPort.WriteLine (System.String str) [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.IO.Ports.SerialPort:WriteLine (string)
at A.cf7e9d95b4bca10284aa98260770f84ed.Stop () [0x00000] in <filename unknown>:0
at CumulusMX.Cumulus.Stop () [0x00000] in <filename unknown>:0
at A.c8142500dc9c7c9412dfdcbeaf39c4642.c4edc90ad7c8fb0571713952139ae9816 (System.String[] c068ecf5ea30894cab7ceb14d618db50b) [0x00000] in <filename unknown>:0
System.IO.IOException: Bad file descriptor
at System.IO.Ports.SerialPortStream.ThrowIOException () [0x00000] in <filename unknown>:0
at System.IO.Ports.SerialPortStream.Dispose (Boolean disposing) [0x00000] in <filename unknown>:0
at System.IO.Ports.SerialPortStream.Finalize () [0x00000] in <filename unknown>:0
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: A few issues Raspberry Pi and Davis Vantage Pro

Post by steve »

Safety wrote:2015-01-06 19:32:24.476 COM port = 1
That's odd. Could you check the ComportName setting in Cumulus.ini? And try build 3003, please.
Steve
Safety
Posts: 54
Joined: Fri 09 Apr 2010 7:32 pm
Weather Station: Davis Pro
Operating System: Windows 11

Re: A few issues Raspberry Pi and Davis Vantage Pro

Post by Safety »

Hi
Have installed build 3003 as requested
ComportName setting in Cumulus.ini = ComportName=/dev/ttyUSB0

Problem report as follows:-
2015-01-07 17:08:28.191 ========================== Cumulus MX starting ==========================
2015-01-07 17:08:28.233 Cumulus MX v.3.0.0 build 3003
2015-01-07 17:08:28.305 Platform: Unix
2015-01-07 17:08:28.306 Current culture: English (United Kingdom)
2015-01-07 17:08:28.307 07/01/2015 17:08:28
2015-01-07 17:08:28.315 Data path = data/
2015-01-07 17:08:28.349 Creating backup folder backup/20150107170828/
2015-01-07 17:08:28.606 Reading Cumulus.ini file
2015-01-07 17:08:28.838 Cumulus start date: 07 January 2015
2015-01-07 17:08:29.212 Station type: Davis Vantage Pro
2015-01-07 17:08:29.219 Cumulus Starting
2015-01-07 17:08:29.225 Opening station
Last update time from today.ini: 07/01/2015 17:08:29
Read today file: Date = 00/00/00, LastUpdateTime = 07/01/2015 17:08:29, Month = 1
ET not initialised
/media/AADA-E692/CumulusMXDist/data/alltime.ini
Alltime.ini file read
MonthlyAlltime.ini file read
Finding raintoday from logfile data/Jan15log.txt
Setting raintoday from logfile = 0
Calculating rain counter = -1
Rain counter negative, setting to zero
Midnight rain not found, using raindaystart
Getting rain totals, rain season start = 1
2015-01-07 17:08:30.607 Station type = Davis
2015-01-07 17:08:30.607 Serial device = /dev/ttyUSB0
2015-01-07 17:08:30.651 Connected OK
2015-01-07 17:08:30.652 Last update time = 07/01/2015 17:08:29
2015-01-07 17:08:30.653 Start reading archive data
2015-01-07 17:08:30.660 Reading archive data
2015-01-07 17:08:30.663 Loading last N hour data from data logs: 07/01/2015 17:08:29
2015-01-07 17:08:30.697 Loaded 0 entries to last hour data list
2015-01-07 17:08:30.744 Loaded 0 entries to last 3 hour data list
2015-01-07 17:08:30.804 Loaded 0 entries to last 24 hour data list
2015-01-07 17:08:30.851 Loaded 0 entries to recent data list
2015-01-07 17:08:31.311 Get Archive Data
2015-01-07 17:08:31.325 Rollover hour = 0
2015-01-07 17:08:31.327 Last Archive Date: 07/01/2015 17:08:29
2015-01-07 17:08:31.328 Date: 7719
2015-01-07 17:08:31.328 Time: 1708
2015-01-07 17:08:31.847 624 web tags initialised
2015-01-07 17:08:32.010 Sending DMPAFT
2015-01-07 17:08:32.057 Received response to DMPAFT, sending date and time
2015-01-07 17:08:32.072 Wait for ACK...
2015-01-07 17:08:33.178 HTML root path = /media/AADA-E692/CumulusMXDist/interface
2015-01-07 17:08:33.952 ACK received
2015-01-07 17:08:33.953 Waiting for response
2015-01-07 17:08:34.030 Starting web socket server on port 8002
2015-01-07 17:08:34.163 Response: 01 02 01 00 2B E5
2015-01-07 17:08:34.164 Reading data: 513 pages , offset = 1
2015-01-07 17:08:34.250 Cumulus closing
2015-01-07 17:08:34.459 Loaded archive record for Page=0 Record=1 Timestamp=20/12/2014 22:20:00
2015-01-07 17:08:34.460 Ignoring old archive data
2015-01-07 17:08:34.491 Loaded archive record for Page=0 Record=2 Timestamp=20/12/2014 22:30:00
2015-01-07 17:08:34.508 Ignoring old archive data
2015-01-07 17:08:34.509 Loaded archive record for Page=0 Record=3 Timestamp=20/12/2014 22:40:00
2015-01-07 17:08:34.509 Ignoring old archive data
2015-01-07 17:08:34.510 Loaded archive record for Page=0 Record=4 Timestamp=20/12/2014 22:50:00
2015-01-07 17:08:34.510 Ignoring old archive data
2015-01-07 17:08:34.499 Writing Cumulus.ini file
2015-01-07 17:08:34.711 Loaded archive record for Page=1 Record=0 Timestamp=20/12/2014 23:00:00
2015-01-07 17:08:34.712 Ignoring old archive data
2015-01-07 17:08:34.712 Loaded archive record for Page=1 Record=1 Timestamp=20/12/2014 23:10:00
2015-01-07 17:08:34.713 Ignoring old archive data
2015-01-07 17:08:34.713 Loaded archive record for Page=1 Record=2 Timestamp=20/12/2014 23:20:00
2015-01-07 17:08:34.714 Ignoring old archive data
2015-01-07 17:08:34.714 Loaded archive record for Page=1 Record=3 Timestamp=20/12/2014 23:30:00
2015-01-07 17:08:34.715 Ignoring old archive data
2015-01-07 17:08:34.715 Loaded archive record for Page=1 Record=4 Timestamp=20/12/2014 23:40:00
2015-01-07 17:08:34.716 Ignoring old archive data
2015-01-07 17:08:34.899 Closing connection
2015-01-07 17:08:34.969 Updating highs and lows
2015-01-07 17:08:35.091 Start normal reading loop
2015-01-07 17:08:35.103 Station stopped
2015-01-07 17:08:35.103 No data read this session, today.ini not written
2015-01-07 17:08:35.233 Start Timers
2015-01-07 17:08:35.234 Starting 1-minute timer
System.InvalidOperationException: Specified port is not open.
at System.IO.Ports.SerialPort.CheckOpen () [0x00000] in <filename unknown>:0
at System.IO.Ports.SerialPort.DiscardInBuffer () [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.IO.Ports.SerialPort:DiscardInBuffer ()
at A.cf7e9d95b4bca10284aa98260770f84ed.c0b733c832f79110a0f49c86a0a9ed7fb (System.IO.Ports.SerialPort c280b81a22ba57650c0bd1f113b9e6173, System.String c6f2e2480619541814a900d39230835dd) [0x00000] in <filename unknown>:0
at A.cf7e9d95b4bca10284aa98260770f84ed.Start () [0x00000] in <filename unknown>:0
at System.Threading.Thread.StartInternal () [0x00000] in <filename unknown>:0
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: A few issues Raspberry Pi and Davis Vantage Pro

Post by steve »

The serial device is correct now, and it was able to connect and start reading archive data from the logger. But something told the program to close just as it had got started. Did you accidentally hit a key?
Steve
Safety
Posts: 54
Joined: Fri 09 Apr 2010 7:32 pm
Weather Station: Davis Pro
Operating System: Windows 11

Re: A few issues Raspberry Pi and Davis Vantage Pro

Post by Safety »

Small steps as they say...
Not to my knowledge.
As soon at it started to display the usually url bit on the PI display i when to my laptop to refresh the url.

After a bit of time the browser displayed "This web page is not available" checking the Pi displayed showed error code data.
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: A few issues Raspberry Pi and Davis Vantage Pro

Post by steve »

Could you please try again, being careful not to press a key, and when it closes again like that, please show me what the console (i.e. the command line) looks like. Note that it is being given the entire contents of the logger to process, so even if it continues running it will be some time before it is fully up and running. The console displays 'normal running' when it's ready.
Steve
Safety
Posts: 54
Joined: Fri 09 Apr 2010 7:32 pm
Weather Station: Davis Pro
Operating System: Windows 11

Re: A few issues Raspberry Pi and Davis Vantage Pro

Post by Safety »

rerun and now displaying data I will get back to you with what happen, later this evening.
Safety
Posts: 54
Joined: Fri 09 Apr 2010 7:32 pm
Weather Station: Davis Pro
Operating System: Windows 11

Re: A few issues Raspberry Pi and Davis Vantage Pro

Post by Safety »

This part is now up and running the key is in your previous mail about it taking a bit of time and "The console displays 'normal running' when it's ready." very good point for all to note.
I have run this a number of times now and all is ok until as you say you hit a key then that error code comes up.

Up-to now I can report no more premature termination of cumulusMX

Regarding terminating the cumulusMX, in your next build could you display a yes / no dialog box if a key is pressed so a user can confirm either way.

I have noted that no rain data is being displayed on the dashboard or now tabs.

I will now test out the web-side.
Locked