Vantage PRO2 + USB connection + Ubuntu

I have read through the forums and I can’t seem to find exactly what I am looking for. Has anyone successfully made a Vantage Pro2 work with a USB connection instead of a serial connection? I have tried entering /dev/ttyUSB0 for the port but that doesn’t seem to work. Ubuntu has the USB to serial driver built in and using the dmesg command I can find where it is loaded and appears to be working. All of this to say that I never receive any data from my console. Has anyone made this work? If so, can you please let me know what you did? Thanks.

This is an old problem:

The driver that kernel loads automatically when you connect the station doesn’t work, you need to download the driver of scilab and try to compile:

But there are more problems, when you compile the driver and you try to load with modprobe I have this error:

FATAL: Module ./cp210x.ko not found.

but the module it’s present.

I wrote to the costumer services of scilab, but they don’t provide any solution. I’ve tried with other distributions like Mandriva, and recompiling the kernel, but the problem persists

Try with this solutions, perhaps you will have more luck.

I think it is impossible for now to use VP2 + USB + linux. :oops:

yes, its not a normal USB to serial driver that is needed
it needs to be the one from silab
I could not get their driver to complile either

a serial data logger and then a general usb to serial adaptor works though

I also tried the silabs driver and it wouldn’t work. That is why I asked this question hoping either someone got it to work or else there was a solution using weather display directly with the built in driver.

Brian - do you know why the USB Vantage pro II station does not work? I was just curious and downloaded MiniCom and was able to talk to my station via the terminal. I did not install any special drivers. It just worked. I am experimenting right now at home with GTK and a simple window to simply read from the weather station. With Christmas I have not had a lot of time to do much experimenting. I would really like to make the jump from Windows to Linux but if I can’t read from my weather station this is not possible.

try using the ability to manualy set the driver name in the com port setup maybe (in the linux version)

I have been here several times and not given up yet. Problem is that only get to play with it every 6 weeks or so because the project is in France 500 miles from home in the UK.

I too can get everything to see the USB device but not get any data from it. I must admit I hadn’t tried a terminal on it but it is interesting that you can communicate with one.

Today I have tried to install the cp210x-3.0.0-2 driver but my Ubuntu (2.6 kernel) is having none of it. I am not sure if it is an RPM problem so I have blown a fresh install and working from there.

When yu say manually type the driver name in Brian do you mean like cp210x-3.0.0 or just cp210x like it shows in lsusb?

i meant like
/dev/ttyUSB0/

You were getting some data received at one stage Weatherfront, but the data received number was 655000 or something (i.e max range for a word variable)
I have seen other reports of that…seems that an older version of libcom.so, with an older wdconsole, did not do that…?
(but it also might be related to the libc version that .so file was compiled against, or to do with your libc version you have )

being 500 miles south converted to kms makes a little less than 900 Kms, or nearby the N44:30:00 a latitude I know very well, just tell me it’s on the east part (around E4:20:00) and I’ll be happy to give you a helpful hand if I may say.
:slight_smile:

Yves

Hi Yves

Thanks for the offer but I am actually SW - in Douarnenez. A little way from you. But you are always welcome to visit :wink:

Or you can visit www.treboul.net for the nasty Davis view.

Continuing on. At the moment I have temporarily abandoned my Linutop / Ubuntu device and for ease of use am working on a SuSe 11 laptop. I thought I would try a serial WLink (although I do want to use USB for the project). I have an EasySync / FTDI serial to USB adapter. The FTDI drivers are native to the 2.6 kernel and the machine sees it at /dev/ttyUSB0 fine but WD won’t see it as an adapter. I have tried manually entering the port but nothing.

Aha is this progress. Set the permissions on ttyUSB0 to 666. Now WeatherDisplay seems happier. In the Control Panel>Data Logger I am getting;

Loaded all time records
Connecting com port
trying to open comport /dev/ttyUSB0 ,handle → 8
Com port connected OK
set the comport OK to speed 19200
Time period too short

So we have connection but…?

Going back to WdConsole I now get;

Doing VP routine now
raw vp baro 1024.4
raw vp temp 6.2
Data OK
Current data : Temperature= 6.2 Windspeed =3.5 Gustspeed =5.2 Direction =54 Humidity=52 Barometer=1024.4 Daily Rain=0.0
*****Received count = -----------------------------> 65535
*****Received count = -----------------------------> 65535
*****Received count = -----------------------------> 65535
*****Received count = -----------------------------> 99
crc= 0

Hurrah! Data - but still with those 65535s thrown in!

Alistair

OK WD has started working.

I think it was because (while trying to get USB to work ) I had checked the 19200 button. Unchecking this seems to have got it working.

I still have some kind of problem because it can’t find libgnomebreakpad.so (it is there in /usr/lib/) in addition it occasionally comes up with;

WARNING: [TGtkWidgetSet.CreateFontIndirectEx] NOT found XLFD: <> Fontname=“”

and is constantly coming up with;

[HINT] TWinControl.CreateWnd creating Handle during loading csDesigning=False

Now I have gone back to my Linutop Ubuntu device and am trying to run WDconsole with the serial logger.

The results are patchy.

It will connect and run for a while but as above with a few lines of

*****Received count = -----------------------------> 65535

It is creating and trying to send the clientraw files but there is always one of these lines after and nothing is delivered to the server. I have played with passive and active and different folders.

However the lines of

*****Received count = -----------------------------> 65535

increase (with the occasional high CRC error line) until they become constant.

Then I have to restart WDC and sometimes it needs a couple of goes or an unplug the weather station.

Since with a USB logger all I ever get is

*****Received count = -----------------------------> 65535

perhaps there is something common between the two, i.e. find one and fix the other?

Just to confirm CentralOhio’s observation I decided to go back to my SuSe laptop and try a terminal connection.

Using an genuine EasySync / FTDI USB to serial adapter (just how standard can you get?) I could connect, TEST and LOOP.

So I went for it with the Davis / Silabs USB and TEST worked OK. So I sent it LOOP and data pours out of it.

Next I went back to WD and everything sems fine except no data although I did see a green data light once! Tried a manual download and in the data report widow get this;

Loaded all time records
Connecting com port
trying to open comport /dev/ttyUSB1 ,handle → 8
Com port connected OK
set the comport OK to speed 19200
restarting timer
Asking for archived data download
All data downloaded or did not sync correct!
Weather station type number 31

from another post
there is a different version of the libcom.so, which is compiled with a different version of libc
its called
libcomold.so
delete the libcom.so and rename the libcomold.so
in the deploy folder
(and also copy to the /usr/lib/ folder if you have a libcom.so file there)
that should help alot

Have tried but makes no difference.

Also I set ttyUSB0 to 19200 before starting WD.

In the data report it says the connection is OK and with the download turned on it keeps saying;

Asking for archived data download
re starting download, timer
restarting timer
<<<<
On the VP download the counter constantly changes between 1 & 2. On one occasion yesterday it counted to 12 and then closed.

I got it working in Ubuntu 8.04

I downloaded the driver https://www.silabs.com/Support%20Documents/Software/cp210x-3.0.0.tar.gz to the desktop.

I then installed alien.

sudo apt-get install alien

and then entered following

cd Desktop

gzip -cd cp210x-3.0.0.tar.gz | tar xvf -

cd cp210x-3.0.0

./makerpm

cd /var/tmp/silabs/rpmbuild/RPMS/i386

sudo alien -d -c cp210x-3.0.0-001.i386.rpm

sudo dpkg -i ./cp210x_3.0.0-2_i386.deb

before running the program

cd wdisplay

chmod 777 WeatherD

./GoWeather.sh

and then set /dev/ttyUSB0 for the port

and it works. However, I did not get it to work on intrepid but I did not try very long.

I tried the same thing with no success. Maybe tonight I can go back and try again to make sure I am doing the correct thing. Any additional tips you may have would be very helpful.

great that you got that compiled and working silo4321!

What does “trying to open comport U result → 3” mean in wdconsole? I am still trying to get this to work and seeing silo4321 get it to work i sdriving me nuts.

any result other than -1 is a good sign
but “U” as the com port name does not seem right