Page 1 of 1

Unable to connect to Davis Vantage Pro2 with Raspberry Pi 2

Posted: Mon 11 Jan 2016 5:55 am
by peter94506
Just got a Raspberry Pi 2 running Raspbian Wheezy
mono version 4.0.2
I can start CumulusMX and access via the web browser and edit setting. I've done the restart, and tried rebooting but can't connect to the console. When I start Cumulus is says it's unable to connect to the station.
The problem seems to be with the connection of the console to the USB of the Raspberry Pi 2
See below:

Mono JIT compiler version 4.0.2 (Debian 4.0.2.5+dfsg-2~rpi1)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. http://www.mono-project.com
TLS: __thread
SIGSEGV: normal
Notifications: epoll
Architecture: armel,vfp+hard
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: sgen


pi@Cumulus:/CumulusMX $ sudo mono CumulusMX.exe
Current culture: English (United Kingdom)
Serial: 85CFE94DA2C5D6B4B18E8F5D2839FD27
Cumulus MX v.3.0.0 build 3036
Today.ini = data/today.ini
Last update=2016-01-10T21:24:46
Unable to connect to station
Cumulus running at: http://*:8998/
(Replace * with any IP address on this machine, or localhost)
Starting web socket server on port 8002
10/01/2016 21:24:47
Type Ctrl-C to terminate

Bus 001 Device 004: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

lsusb -D /dev/bus/usb/001/004
Device: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light
Couldn't open device, some information will be missing
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x10c4 Cygnal Integrated Products, Inc.
idProduct 0xea60 CP210x UART Bridge / myAVR mySmartUSB light
bcdDevice 1.00
iManufacturer 1
iProduct 2
iSerial 3
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 2
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0


It's getting the "can't open device", I'm not sure why it's unable to see the Davis console.

Any help would be appreciated.

Re: Unable to connect to Davis Vantage Pro2 with Raspberry P

Posted: Mon 11 Jan 2016 8:13 am
by steve
What COM port does dmesg say the cp210x converter is attached to, and what do you have for "Serial port name" in the Cumulus station settings?

Re: Unable to connect to Davis Vantage Pro2 with Raspberry P

Posted: Mon 11 Jan 2016 8:53 am
by peter94506
not 100% sure how to read the output from dmesg, but looks like 0, and I have com0 set in CumulusMX. Strange thing, even though I have set the station type/model to the Davis Vantage Pro2/Vue, when I look into the ini file , it's blank

[Station]
Type=1
Model=
ComportName=COM0


dmesg | grep -i usb
[ 0.820460] usbcore: registered new interface driver usbfs
[ 0.826101] usbcore: registered new interface driver hub
[ 0.831588] usbcore: registered new device driver usb
[ 1.233975] usbcore: registered new interface driver smsc95xx
[ 1.759563] dwc_otg 3f980000.usb: DWC OTG Controller
[ 1.766326] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[ 1.777007] dwc_otg 3f980000.usb: irq 32, io mem 0x00000000
[ 1.795139] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.805302] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.815992] usb usb1: Product: DWC OTG Controller
[ 1.822451] usb usb1: Manufacturer: Linux 4.1.13-v7+ dwc_otg_hcd
[ 1.830250] usb usb1: SerialNumber: 3f980000.usb
[ 1.837524] hub 1-0:1.0: USB hub found
[ 1.849599] usbcore: registered new interface driver usb-storage
[ 1.962485] usbcore: registered new interface driver usbhid
[ 1.969939] usbhid: USB HID core driver
[ 2.232991] usb 1-1: new high-speed USB device number 2 using dwc_otg
[ 2.443360] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[ 2.453803] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 2.465707] hub 1-1:1.0: USB hub found
[ 2.752980] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[ 2.873320] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[ 2.884185] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 2.967111] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:ca:6e:0a
[ 3.062975] usb 1-1.4: new full-speed USB device number 4 using dwc_otg
[ 3.189556] usb 1-1.4: New USB device found, idVendor=10c4, idProduct=ea60
[ 3.200608] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3.212089] usb 1-1.4: Product: CP2102 USB to UART Bridge Controller
[ 3.220592] usb 1-1.4: Manufacturer: Silicon Labs
[ 3.227389] usb 1-1.4: SerialNumber: 0001
[ 7.427349] usbcore: registered new interface driver usbserial
[ 7.427498] usbcore: registered new interface driver usbserial_generic
[ 7.427620] usbserial: USB Serial support registered for generic
[ 7.432802] usbcore: registered new interface driver cp210x
[ 7.433108] usbserial: USB Serial support registered for cp210x
[ 7.435016] usb 1-1.4: cp210x converter now attached to ttyUSB0

Re: Unable to connect to Davis Vantage Pro2 with Raspberry P

Posted: Mon 11 Jan 2016 9:04 am
by steve
It's on ttyUSB0, so you need to put /dev/ttyUSB0 for the serial port name in Cumulus. This is documented here - https://cumulus.hosiene.co.uk/viewtopic.php?f=27&t=12943

Re: Unable to connect to Davis Vantage Pro2 with Raspberry P

Posted: Mon 11 Jan 2016 5:45 pm
by peter94506
Thanks for the quick reply. That worked! I just missed that bit of information in the FAQ ;-(

Check your Paypal account. I'll periodically continue to donate as long as I use CumulusMX. Very nice software.

Re: Unable to connect to Davis Vantage Pro2 with Raspberry P

Posted: Mon 11 Jan 2016 5:49 pm
by steve
OK - many thanks.