WXforum.net

Weather Software => Cumulus => Topic started by: fradaxx on November 04, 2018, 03:18:44 AM

Title: Davis VP2 and CumulusMX on a RPi3
Post by: fradaxx on November 04, 2018, 03:18:44 AM
Hi all,

I am working on the revamping of an old Vantage Pro2 cabled weather station (built pre-April 2006 with firmware updated to the last compatible version 1.90), equipped with a Davis USB datalogger; I done my first experiments with the desktop version of Cumulus on a Windows 10-based PC and all worked correctly at first attempt.

Also if I install and use CumulusMX on the same PC the communication with the VP2 works well (I see the data on the webpage at http://localhost:8998).

However my final goal is to have my VP2 connected to the Internet by a RPi3, so I completed the setup of CumulusMX 3.0.0.0 b3043 on the RPi following instructions available on the original post on sandaysoft.com (now migrated to https://cumuluswiki.wxforum.net/a/Cumulus_MX#Installing_Cumulus_MX (https://cumuluswiki.wxforum.net/a/Cumulus_MX#Installing_Cumulus_MX)); apparently all gone well and when I run CumulusMX (with sudo mono CumulusMX.exe of by Start|Stop|Restart Script V2.5.5.0 detailed here http://sandaysoft.com/forum/viewtopic.php?f=27&t=13767 (http://sandaysoft.com/forum/viewtopic.php?f=27&t=13767)), it starts without any error and its web interface is correctly accessible.

Of course the first thing I've done was to configure the VP2 connection parameters; in my case the virtual COM port of the USB datalogger is mapped as /dev/ttyUSB0, and this is what I've written in the Serial Port Name field of the setting page, selecting also Serial as connection type.

The problem is that when I save the configuration and exit the settings page, refreshing the CumulusMX webpage I obtain almost immediately a message popup with a "Connection closed..." message without any other detail about the problem. This persists also if I reboot RPi3.

If I spy on the serial communication traffic using command

cat /dev/ttyUSB0

I see that some (criptic) data is periodically exchanged between the RPi3 and the VP2 with a period of about 1-2 seconds, so I can guess that the connection is open.

I am trying to investigate in depth this problem but some hint by someone on this forum which has had and (hopefully) solved this a problem would be very useful to me.

Thanks in advance for any answer/advice.