Page 1 of 1

RaspberryPI with CumulusMX and Davis Vantage Vue

Posted: Thu 30 Jul 2015 4:53 pm
by do2fn
Hi Sandaysoft Members,

i hope Do any of you can help me with the following problem.

I have install Raspbian and momo-complet on my Raspberry PI

When i connect to the Raspberry in my Firefox Browser and will change to the Davis Vantage Vue i get this error:


error object Object.

Have anybody a idear?

Thx for help

Peter

Re: RaspberryPI with CumulusMX and Davis Vantage Vue

Posted: Thu 30 Jul 2015 5:34 pm
by steve
What version of Mono? Are you using a locale which uses decimal commas?

Re: RaspberryPI with CumulusMX and Davis Vantage Vue

Posted: Thu 30 Jul 2015 7:33 pm
by do2fn
Ok hier the Version from Mono

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

Re: RaspberryPI with CumulusMX and Davis Vantage Vue

Posted: Thu 30 Jul 2015 7:56 pm
by do2fn
do2fn wrote:Ok hier the Version from Mono

Mono JIT compiler version 3.2.8 (Debian 3.2.8+dfsg-4+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

Re: RaspberryPI with CumulusMX and Davis Vantage Vue

Posted: Thu 30 Jul 2015 8:27 pm
by slashmusic
do2fn wrote:Ok hier the Version from Mono

Mono JIT compiler version 3.2.8 (Debian 3.2.8+dfsg-4+rpi1)[\quote]
steve wrote:What version of Mono? Are you using a locale which uses decimal commas?
@Do2fn: Steve is asking this very important question because:
If you have a new Raspberry Pi 2, a new Mono Verison is available: Mono JIT compiler version 4.0.2 (Stable 4.0.2.5/c99aa0c Wed Jun 24 10:33:52 UTC 2015)
Please read this: https://cumulus.hosiene.co.uk/viewtopic.php?f=27&t=13587
Unfortunatley, this Version of Mono is not available for the old Raspberry pi.

The reason for the second part of his question, about the locale (I can see, you are using German) are you using Comma as a seperator in your Data or . ?
Or other question: Have you already moved data logfiles from your old existing Cumulis 1.x verison to the new Verison on the Raspberry Pi ?
to find out, what seperators you are using , please use this command and paste the 3 result lines here and read here: https://cumulus.hosiene.co.uk/viewtopic.php?f=27&t=12943


ls -t /home/pi/CumulusMX/data/*log.txt | head -1 | cut -d " " -f10 |xargs tail -n3


* so good to know what Raspberry Pi you are using (the ione with 1 GB or the one with 512 MB RAM)
* What seperators are you using in your data Logfiles

Re: RaspberryPI with CumulusMX and Davis Vantage Vue

Posted: Fri 31 Jul 2015 8:24 am
by steve
You're using a decimal comma, this won't work with Mono 3.2.8 - see the FAQ/known issues post.

Re: RaspberryPI with CumulusMX and Davis Vantage Vue

Posted: Fri 31 Jul 2015 6:54 pm
by do2fn
Thx for answer.

I have change to UK and now i can change the Weatherstation an Settings updated.

Must i install a driver or Silabs ????

I have see with dmesg CP210x

Thx for help

Kernel is 3.18.11+

Peter

Re: RaspberryPI with CumulusMX and Davis Vantage Vue

Posted: Sat 01 Aug 2015 9:01 am
by steve
Raspbian has the required driver already installed for the Davis USB logger.

Re: RaspberryPI with CumulusMX and Davis Vantage Vue

Posted: Sat 01 Aug 2015 11:07 am
by do2fn
Thx Steve for answer.

But i get this Error Message.

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
**** An error has occurred - please zip up the MXdiags folder and post it in the forum ****


I think I'm too stupid.

Thx Peter

Re: RaspberryPI with CumulusMX and Davis Vantage Vue

Posted: Sat 01 Aug 2015 11:50 am
by steve
What is the output from

dmesg | grep cp210x

and what have you put in the 'Serial port name' in the station settings in Cumulus?

Re: RaspberryPI with CumulusMX and Davis Vantage Vue

Posted: Sat 01 Aug 2015 1:09 pm
by do2fn
Steve here the output from dmesg

dmesg | grep cp210x
[ 6.775827] usbcore: registered new interface driver cp210x
[ 6.783480] usbserial: USB Serial support registered for cp210x
[ 7.027083] cp210x 1-1.2:1.0: cp210x converter detected
[ 7.118435] usb 1-1.2: cp210x converter now attached to ttyUSB0


By 'Seriel Port Name' i have COM0 wrote

It this correct?

Thx

Re: RaspberryPI with CumulusMX and Davis Vantage Vue

Posted: Sat 01 Aug 2015 1:27 pm
by water01
cp210x converter now attached to ttyUSB0
The clue is here, COM ports are not called COM ports in Linux type systems i.e. a RaspberryPI

Re: RaspberryPI with CumulusMX and Davis Vantage Vue

Posted: Sun 02 Aug 2015 9:36 am
by Sadgit
what should you put in the com port on a RPi. I am finally trying to get this working on my loft RPi :) but it doesn't detect the Davis Vue

output I have is
pi@raspberrypi ~ $ dmesg | grep cp210x
[ 6.538936] usbcore: registered new interface driver cp210x
[ 6.824456] usbserial: USB Serial support registered for cp210x
[ 6.832460] cp210x 1-1.3:1.0: cp210x converter detected
[ 7.195774] usb 1-1.3: cp210x converter now attached to ttyUSB0

Re: RaspberryPI with CumulusMX and Davis Vantage Vue

Posted: Sun 02 Aug 2015 9:55 am
by steve
Linux devices are represented by device files in /dev, so if dmesg says your adapter is connected to ttyUSB0, the serial device is /dev/ttyUSB0, as in the example in the MX FAQ post.

Re: RaspberryPI with CumulusMX and Davis Vantage Vue

Posted: Sun 02 Aug 2015 10:06 am
by Sadgit
steve wrote:Linux devices are represented by device files in /dev, so if dmesg says your adapter is connected to ttyUSB0, the serial device is /dev/ttyUSB0, as in the example in the MX FAQ post.
Ahh I think I was just a bit stupid this morning. Thanks Steve. I had it correct but had to restart CumulusMX to pick up the changes.. durr

2015-08-02 11:00:55.889 Station type = Davis
2015-08-02 11:00:55.890 LOOP2 enabled
2015-08-02 11:00:55.890 Serial device = /dev/ttyUSB0
2015-08-02 11:00:55.991 Connected OK

Looking good :)