Page 1 of 1

Unable to Connect to Davis Vue as a Windows Service

Posted: Wed 07 Apr 2021 3:04 am
by klinebau
I have a Davis Vue with USB logger and want to run Cumulus MX as a service on Windows 10. When I attempt to run as a service, CMX is unable to find the weather station (see log snippet below). When I run cumulusmx.exe from the command line, it is able to connect with no problem. Is there anything I can do to get the service working properly? I am running Cumulus MX v.3.10.5 build 3122.

2021-04-06 22:56:46.107 Station type = Davis
2021-04-06 22:56:46.107 LOOP2 enabled
2021-04-06 22:56:46.107 Serial device = COM3
2021-04-06 22:56:46.107 Serial speed = 19200
2021-04-06 22:56:46.107 InitSerial: Connecting to the station
2021-04-06 22:56:46.107 InitSerial: Error opening port - The port 'COM3' does not exist.
2021-04-06 22:56:46.107 InitSerial: Failed to connect to the station, waiting 30 seconds before trying again
2021-04-06 22:56:46.523 This Cumulus MX instance is running the latest version
2021-04-06 22:57:16.128 InitSerial: Connecting to the station
2021-04-06 22:57:16.128 InitSerial: Error opening port - The port 'COM3' does not exist.
2021-04-06 22:57:16.128 InitSerial: Failed to connect to the station, waiting 30 seconds before trying again

Re: Unable to Connect to Davis Vue as a Windows Service

Posted: Wed 07 Apr 2021 7:12 am
by ConligWX
Hi there.

CumulusMX is set for COM3. and COM3 does not exist on your PC. unless you can prove via screenshots

I suggest you find what port your USB Logger is reporting on (in device manager), and then change the COM port number to whatever it is, then restart CumulusMX.

cumulus.ini

Code: Select all

ComportName=COMx

Re: Unable to Connect to Davis Vue as a Windows Service

Posted: Wed 07 Apr 2021 12:47 pm
by klinebau
As I mentioned in my first post, CMX is able to communicate on COM3 with the weather station if it is not running as a service (see successful log below). Obviously this means COM3 is configured and working correctly. The problem only occurs when I install CMX as a service and start the service. I thought that it might be a permissions problem, but I have tried running the service with different admin permissions with no success.

2021-04-06 22:55:50.258 Station type = Davis
2021-04-06 22:55:50.258 LOOP2 enabled
2021-04-06 22:55:50.258 Serial device = COM3
2021-04-06 22:55:50.258 Serial speed = 19200
2021-04-06 22:55:50.258 InitSerial: Connecting to the station
2021-04-06 22:55:50.760 This Cumulus MX instance is running the latest version
2021-04-06 22:55:50.776 InitSerial: Flushing input stream
2021-04-06 22:55:50.776 InitSerial: Sending TEST (1) command
2021-04-06 22:55:51.298 InitSerial: TEST (1) received - '0A-0D-54-45-53-54-0A-0D'
2021-04-06 22:55:51.298 InitSerial: TEST (1) successful
2021-04-06 22:55:51.298 InitSerial: Connection confirmed
2021-04-06 22:55:51.298 Connected OK

Re: Unable to Connect to Davis Vue as a Windows Service

Posted: Wed 07 Apr 2021 12:59 pm
by freddie
Looks like an issue in your Windows setup. If the port exists then it should be available to the program running as a service. It obviously isn't available to that program. Perhaps Google may be able to assist you?

Re: Unable to Connect to Davis Vue as a Windows Service

Posted: Wed 07 Apr 2021 11:34 pm
by klinebau
I played around with this some more and I uninstalled and then reinstalled the drivers for the data logger. Apparently something was messed up with the drivers and the reinstallation solved the problem. I am now successfully running Cumulus MX as a service on Windows 10.

Re: Unable to Connect to Davis Vue as a Windows Service

Posted: Thu 08 Apr 2021 4:16 pm
by mcrossley
:thumbsup: