View previous topic :: View next topic |
Author |
Message |
chrisale
Joined: 09 Nov 2005 Posts: 187
|
Posted: Fri Nov 11, 2005 12:57 am Post subject: Debian not communicating with USB |
|
|
I think...
I feel like I'm so close... everything is compiled and seems happy. *Except* it doesn't seem to be actually communicating with the Vantage Pro through the USB connection.
It *seems* to be trying to communicate through /dev/ttyS0 ... it was giving a READ ERROR before, but now, nothing is comeing up in syslog or messages.
Is there anyway I can confirm in Debian that I can communicate with the Vantage without the wview daemon?
I'm not a Linux expert, so I'm trying hard, bt I think I must be missing something.
This is what dmesg is saying about the USB port:
hub.c: new USB device 00:04.2-1, assigned address 3
usb.c: USB device 3 (vend/prod 0x10c4/0xea60) is not claimed by any active driver.
ip_tables: (C) 2000-2002 Netfilter core team
now if it's not claimed by a driver, does it get a /dev address anyway for wview to point at?
If it *is* supposed to be connected to ttyS0 then I've set the speed so that setserial reports:
/dev/ttyS0, Line 0, UART: 16550A, Port: 0x03f8, IRQ: 4
Baud_base: 19200, close_delay: 50, divisor: 0
closing_wait: 3000
Flags: spd_normal skip_test
Should I set ttys0 port to 0x10c4 and IRQ to 12?
Thank you for any help you can provide!
This is what messages is saying:
Code: |
Nov 10 22:29:18 debian wviewd[13955]: <2114159553> : wview 1.8.2 starting ...
Nov 10 22:29:18 debian wviewd[13955]: <2114159554> : station interface: serial ...
Nov 10 22:29:18 debian wviewd[13955]: <2114159555> : console polling interval set to 15 seconds
Nov 10 22:29:18 debian wviewd[13955]: <2114159556> : SQLDB metric archiving enabled ...
Nov 10 22:29:19 debian htmlgend[13959]: <2114160615> : radlib: htmlgend started as a daemon ...
Nov 10 22:29:19 debian htmlgend[13959]: <2114160619> : !! configured for metric units/conversion !!
Nov 10 22:29:19 debian wvalarmd[13961]: <2114160621> : radlib: wvalarmd started as a daemon ...
Nov 10 22:29:19 debian wvalarmd[13961]: <2114160625> : alarms: added 2 alarm definitions from wvalarm.conf
Nov 10 22:29:19 debian wvwunderd[13966]: <2114160626> : radlib: wvwunderd started as a daemon ...
Nov 10 22:29:19 debian wvwunderd[13966]: <2114160629> : WUNDERGROUND: configured to submit station IBCPORTA1 data to wunderground.com
Nov 10 22:29:19 debian wviewftpd[13968]: <2114160638> : radlib: wviewftpd started as a daemon ...
Nov 10 22:29:19 debian wviewftpd[13968]: <2114160642> : FTP: 5 rules added
Nov 10 22:29:19 debian htmlgend[13959]: <2114160647> : generating to /var/wview/img
|
Thank you for any help you can give!
Chris |
|
Back to top |
|
|
mteel
Joined: 30 Jun 2005 Posts: 435 Location: Collinsville, TX
|
Posted: Fri Nov 11, 2005 3:41 am Post subject: |
|
|
If that is all you are seeing in the message log, you are definitely NOT communicating with the VP console - did you install the CP2101 USB serial driver (I am assuming you have the Davis USB data logger) found on the wview site (if you are running a 2.4 kernel, else it must be a 2.6.12.1 kernel or higher with the CP2101 driver already built in).
From the User Manual:
Quote: | USB - the USB to UART bridge chip Davis uses in their data logger is the Silicon Labs CP2101. They have released their 2.4 kernel driver for it under the GPL license. I have successfully built it for SuSE 9.0 (2.4.21-286). See the file Linux-Readme.txt in the cp2101 driver distribution for build details. It presents the VP Console as a serial device, namely /dev/ttyUSB0. This ONLY works for 2.4 linux kernels - this driver will NOT work on 2.6 kernels. There is native support in 2.6.12.1 and up kernels for the CP2101, check your kernel config. |
The 2.4 kernel driver can be downloaded from the wview home page.
Once installed, look at your dmesg output to determine the serial device to give to the wviewconfig script - probably /dev/ttyUSB0 or similar. |
|
Back to top |
|
|
chrisale
Joined: 09 Nov 2005 Posts: 187
|
Posted: Fri Nov 11, 2005 8:53 am Post subject: |
|
|
omg
*slap*
thank you |
|
Back to top |
|
|
chrisale
Joined: 09 Nov 2005 Posts: 187
|
Posted: Fri Nov 11, 2005 9:44 am Post subject: |
|
|
works now!
thanks man! |
|
Back to top |
|
|
chrisale
Joined: 09 Nov 2005 Posts: 187
|
Posted: Fri Nov 11, 2005 9:45 am Post subject: |
|
|
Just for posterity... I'll confirm it attached to /dev/ttyUSB0 |
|
Back to top |
|
|
Rig
Joined: 30 Aug 2006 Posts: 12
|
Posted: Wed Aug 30, 2006 8:19 pm Post subject: CP2101 |
|
|
Hi! I need help! I don't know how to install USB driver for Debian. (CP2101).
I don't understand the "Linux-Readme.txt":
Building Package
----------------
1) Edit Makefile file paths for target Linux kernel.
2) Type "make" at the command prompt, in the directory
containing the driver files.
Makefile:
# MST: Edit THESE for your distribution:
TARGETKERNEL=linux-2.4.20-20.8 [I should change this line??]
KERNELINCLUDEPATH=/usr/src/$(TARGETKERNEL)/include
SYSTEMINCLUDEPATH=/usr/src/$(TARGETKERNEL)/include
COMPILERINCLUDEPATH=/usr/lib/gcc-lib/i386-redhat-linux/3.2/include
My kernell is : debian : 2.4.27-2-386 and I have nothing under /usr/src/
I changed "COMPILERINCLUDEPATH=/usr/lib/gcc-lib/i486-linux/3.3.5/include"
WVIEW seems correct!
Thanks for help! |
|
Back to top |
|
|
bhnb
Joined: 28 Nov 2005 Posts: 127
|
Posted: Thu Aug 31, 2006 6:00 am Post subject: |
|
|
apt-get install kernel-headers-2.4.27-2-386 |
|
Back to top |
|
|
Rig
Joined: 30 Aug 2006 Posts: 12
|
Posted: Fri Sep 01, 2006 7:44 am Post subject: |
|
|
Thanks a lot! |
|
Back to top |
|
|
Rig
Joined: 30 Aug 2006 Posts: 12
|
Posted: Fri Sep 01, 2006 10:24 am Post subject: |
|
|
USB is fantastic when it's work!
Well... the CP2101 doen't work for me and I have no clue...
Makefile:
TARGETKERNEL=kernel-headers-2.4.27-2-386
KERNELINCLUDEPATH=/usr/src/$(TARGETKERNEL)/include
SYSTEMINCLUDEPATH=/usr/src/$(TARGETKERNEL)/include
COMPILERINCLUDEPATH=/usr/lib/gcc-lib/i486-linux/3.3.5/include
make: no error message!
syslog:
Sep 1 12:14:17 localhost kernel: hub.c: new USB device 00:04.2-2, assigned address 3
Sep 1 12:14:17 localhost kernel: usb.c: USB device 3 (vend/prod 0x10c4/0xea60) is not claimed by any active driver.
Sep 1 12:14:17 localhost hal.hotplug[1668]: could not get mountpoint for sysfs
# vpconfig /dev/ttyUSB0 show
stationInit failed
Thanks for help! |
|
Back to top |
|
|
Rig
Joined: 30 Aug 2006 Posts: 12
|
Posted: Fri Sep 01, 2006 8:47 pm Post subject: |
|
|
I tried another kernel: kernel-image-2.6-686-smp
syslog:
Sep 1 22:34:19 localhost wviewd[17070]: <1818256651> : -- Station Init Start --
Sep 1 22:34:20 localhost wviewsqld[17074]: <1818257674> : radlib: wviewsqld started as a daemon ...
Sep 1 22:34:20 localhost wviewsqld[17074]: <1818257676> : SQLDB: basic US archiving enabled -
Sep 1 22:34:20 localhost wviewsqld[17074]: <1818257676> : SQLDB: to localhost table wviewDB.archive
Sep 1 22:34:20 localhost htmlgend[17077]: <1818257676> : radlib: htmlgend started as a daemon ...
Sep 1 22:34:20 localhost htmlgend[17077]: <1818257678> : generating to /var/wview/img
Sep 1 22:34:20 localhost wviewsshd[17084]: <1818257710> : /etc/wview/wviewssh.conf does not exist - exiting...
Sep 1 22:34:20 localhost wviewftpd[17082]: <1818257713> : radlib: wviewftpd started as a daemon ...
Sep 1 22:34:20 localhost wviewftpd[17082]: <1818257715> : FTP: INIT: 5 rules added
Sep 1 22:34:20 localhost wviewftpd[17082]: <1818257715> : starting ftp timer for 1 mins 55 secs
Sep 1 22:34:20 localhost htmlgend[17077]: <1818258243> : running...
Sep 1 22:34:26 localhost wviewd[17070]: <1818264209> : Vantage Pro on /dev/ttyS0 opened ...
seems good... until that :
Sep 1 22:34:30 localhost wviewd[17070]: <1818267470> : vproStartProcState: WAKEUP failed - retry
And still have:
# vpconfig /dev/ttyUSB0 show
stationInit failed
And I'm going to have a ftp problem: ftp: A: unknown option
I tried "tnftp-20050625.tar.gz" with strange error messages.
Last edited by Rig on Sat Sep 02, 2006 10:46 pm; edited 1 time in total |
|
Back to top |
|
|
Rig
Joined: 30 Aug 2006 Posts: 12
|
Posted: Sat Sep 02, 2006 8:00 pm Post subject: |
|
|
Back to 2.4:
The USB port seems good now! I didn't load the driver: "load_mcci_usb" ... arg!
syslog:
Sep 2 21:49:07 localhost kernel: usbserial.c: MCCI USB Adapter converter detected
Sep 2 21:49:07 localhost kernel: usbserial.c: MCCI USB Adapter converter now attached to ttyUSB0 (or usb/tts/0 for devfs)
> vpconfig /dev/ttyUSB0 show
Firmware Version: Apr 10 2006
Station Location: 35.6 N, 60 W, 0 feet
Archive Interval: 1 minutes
Rain Season Start Month: 1
RX Check Stats: 28452 2204 0 77 1141 recvd:missed:resyncs:good-pkts-in-a-row:CRC errors
I'm still having some problems.. but, I'm closer...
Rig |
|
Back to top |
|
|
Rig
Joined: 30 Aug 2006 Posts: 12
|
Posted: Sun Sep 03, 2006 8:32 pm Post subject: |
|
|
I reran the wviewconfig before to start wview and now I got datas in Mysql and "/var/wview/archive"!
Now I'm working on these problems:
Quote: | /var/wview # /usr/local/bin/htmlgend: relocation error: /usr/local/bin/htmlgend: undefined symbol: gdImagePng
|
message:
Quote: | Sep 3 22:26:04 localhost radmrouted[6943]: <1990562064> : radQueueSend: write failed on fd 9: Broken pipe |
|
|
Back to top |
|
|
bhnb
Joined: 28 Nov 2005 Posts: 127
|
Posted: Tue Sep 05, 2006 9:43 am Post subject: |
|
|
Hi Rig
Good to see you're making some progress! For your gdImagePng problem, the gd manual suggests checking that there are no old versions of libpng in your library directories.
Cheers
Jon |
|
Back to top |
|
|
Rig
Joined: 30 Aug 2006 Posts: 12
|
Posted: Tue Sep 05, 2006 11:46 am Post subject: |
|
|
Thanks a lot Jon,
I originally installed libz and libpng from "OS distribution" (Debian with apt-get) as suggested from "wview User Manual". Finally, I reinstalled both packages as you proposed (appropriate versions of libpng):
libz: http://www.zlib.net/
libpng: http://www.libpng.org/pub/png/ (requires zlib)
Packages suggested by Boutell "http://www.boutell.com/gd/manual2.0.33.html"
So far... so good for my gdImagePng problem!
Now I'm working on:
Quote: | htmlgend: recv sig 11: shutting down!
htmlgend: recv sig 6: exiting! |
Quote: | radQueueSend: write failed on fd 10: Broken pipe
sendToConsumer: htmlgend: radProcessQueueSend failed!
msgHandler: htmlgend: sendToConsumer failed! |
I saw some info here... I'm going closer!... I hope!
Thank you, Rig! |
|
Back to top |
|
|
Rig
Joined: 30 Aug 2006 Posts: 12
|
Posted: Tue Sep 05, 2006 8:46 pm Post subject: |
|
|
Wview is working!! Woohoo! Thank you Jon for your help! |
|
Back to top |
|
|
|