Hi all, I’m trying to use my Davis VP2 with usb datalogger with WD in a gNewSense linux distribution. I have connect the usb and the lsusb command said this:
lsusb
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 002: ID 10c4:ea60 Cygnal Integrated Products, Inc.
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 003: ID 046d:c50e Logitech, Inc. MX-1000 Cordless Mouse Receiver
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
I see that Bus 003 Device 002: ID 10c4:ea60 Cygnal Integrated Products, Inc. is the usb of Davis.
Now I use this command to load the kernel module for usbserial:
modprobe usbserial vendor=0x10c4 product=0xea60
and the dsmeg said me
[ 6508.343761] /srv/tmp/linux-2.6.24/drivers/usb/serial/usb-serial.c: USB Serial support registered for cp2101
[ 6508.343787] cp2101 3-2:1.0: cp2101 converter detected
[ 6508.455557] usb 3-2: reset full speed USB device using uhci_hcd and address 2
[ 6508.599658] usb 3-2: cp2101 converter now attached to ttyUSB0
[ 6508.599673] usbcore: registered new interface driver cp2101
[b][ 6508.599676] /srv/tmp/linux-2.6.24/drivers/usb/serial/cp2101.c: Silicon Labs CP2101/CP2102 RS232 serial adaptor driver v0.07[/b]
I think that all it’s ok, but now I’m lost, how can I configure WD? What it’s the number of the comm port to use? When I click in the botton " Refresh list of COMM port" nothing appear.
Ok, The Davis web doesn’t have a linux driver for _USB data logger. But I have used Windows driver with ndiswrapper utility to load the driver in the Linux system:
I believe that ttyUSB0 is a serial port despite its name. Just try using it with that name (assuming WDfL allows you to do that, ie to enter a text string as a port identifier rather than just a COM number)). I’ve used ttyUSB0 as a serial port with a Python program running under Linux to read VP2 data and it works fine. I was using Ubuntu 8.0.4 (is I’ve remembered the version number correctly) and the relevant USB-to-VCP driver was loaded by default :D.
Prodata, I would like running your Python program in my computer to check the communication between the computer and Davis VP2. Could you share the code?
you can set to use that serial name in the latest linux full version of WD
I have seen and downloaded the driver for the usb data logger from the davis web site.,…so it does exist…but its not obvious…
it has also been posted on this forum before
in the com port setup you should be able
(in the USB to serial name)
which version of WD linux are you using?
(the more information you can provide the better)
I’m frustrated, but again I try to use WD with Davis VP2 with USB data logger. Maybe I can provide more information about the problem using the WD Linux console version.
All in my system appear correct, again I put the information of dmesg command:
usbcore: registered new interface driver usbserial
[ 27.322512] /build/buildd/linux-2.6.24/drivers/usb/serial/usb-serial.c: USB Serial support registered for generic
[ 27.322587] usbcore: registered new interface driver usbserial_generic
[ 27.322592] /build/buildd/linux-2.6.24/drivers/usb/serial/usb-serial.c: USB Serial Driver core
[ 27.364031] /build/buildd/linux-2.6.24/drivers/usb/serial/usb-serial.c: USB Serial support registered for cp2101
[ 27.364091] cp2101 4-1:1.0: cp2101 converter detected
[ 27.472542] usb 4-1: reset full speed USB device using uhci_hcd and address 2
[ 27.616759] usb 4-1: cp2101 converter now attached to ttyUSB0
[ 27.616782] usbcore: registered new interface driver cp2101
[ 27.616788] /build/buildd/linux-2.6.24/drivers/usb/serial/cp2101.c: Silicon Labs CP2101/CP2102 RS232 serial adaptor driver v0.07
The station it’s appear to attached to ttyUSB0 port.
Weather station type=31 // Davis VP
Comport number (e.g 1)=U //use U for ttyUSB0 (i.e usb to serial)
Now I run ./GoWdconsole.sh
utc hour=10
local hour=12
31 2
Weather station type is a Davis VP
Station name =My station
Comport is USB to serial
Yes Revb Davis VP
Davis rain gauge 0.2mm
trying to open comport U result -> 3
Requesting Loop data
Requesting Loop data
Requesting Loop data
Requesting Loop data
Requesting Loop data
Requesting Loop data
Requesting Loop data
its possible its a baud rate setting that is wrong
consolewd is expecting the baud rate to be 19200 for the VP
I found some old posts on this subject
i.e
I talked with folks at Davis yesterday and they indicated they do not currently have a USB to UART driver for the USB data logger and Linux. They said at this time there are no plans to support Linux, but they may if there was enough customer interest.
Does anyone know if the Davis USB datalogger will work with Ubunto 8.04? I am new to this OS and am trying to get an idea of how big of a project it will be to get WD working…