View previous topic :: View next topic |
Author |
Message |
pe1pqf
Joined: 06 Aug 2005 Posts: 2 Location: Den Bosch / The Netherlands
|
Posted: Sat Aug 06, 2005 10:24 am Post subject: USB -> Serial and vpconfig not working |
|
|
Hi,
have been running a Davis weatherstation (Vantage Pro) for some time now and I decided to hook it up to my notebook using a USB to serial convertor (MCT U232-P25) and the wview software.
Running '/usr/local/bin/vpconfig /dev/ttyUSB0 show' gives several error messages:
# /usr/local/bin/vpconfig /dev/ttyUSB0 show
VP console WAKEUP failed - retry
VP console WAKEUP failed - retry
VP console WAKEUP failed - retry
VP console WAKEUP failed - retry
VP console WAKEUP failed - retry
VP console WAKEUP failed - retry
VP console WAKEUP failed - retry
VP console WAKEUP failed - retry
VP console WAKEUP failed - retry
VP console WAKEUP failed - retry
VP console WAKEUP failed - aborting
However, accessing the Vantage Pro through the same port with a simple terminal emulator, works fine:
# ./wermit
C-Kermit 8.0.211, 10 Apr 2004, for Linux
Copyright (C) 1985, 2004,
Trustees of Columbia University in the City of New York.
Type ? or HELP for help.
(/usr/src/kermit/) C-Kermit>set line /dev/ttyUSB0
(/usr/src/kermit/) C-Kermit>set speed 19200
/dev/ttyUSB0, 19200 bps
(/usr/src/kermit/) C-Kermit>c
Connecting to /dev/ttyUSB0, speed 19200
Escape character: Ctrl-\ (ASCII 28, FS): enabled
Type the escape character followed by C to get back,
or followed by ? to see other options.
----------------------------------------------------
RXCHECK
OK
26066 15 0 7470 3
Anyone got a clue as to what is happening?
-- Jan -- |
|
Back to top |
|
|
mteel
Joined: 30 Jun 2005 Posts: 435 Location: Collinsville, TX
|
Posted: Sat Aug 06, 2005 10:37 am Post subject: |
|
|
What version of wview are you using? Older versions had more strict timing requirements for the serial interface...
Have you tried running vpconfig after a reboot (i.e., before running any other terminal programs on that device)? I believe that the wview device initialization should be removing any "cooked" serial configuration on the device, but if it isn't, and some other terminal program leaves it in a state where not all bytes are being passed through the driver, this would be a problem for vpconfig.
Mark |
|
Back to top |
|
|
mteel
Joined: 30 Jun 2005 Posts: 435 Location: Collinsville, TX
|
Posted: Sat Aug 06, 2005 10:40 am Post subject: |
|
|
Also, the ASCII commands entered in a terminal program do not prove or disprove that the non-ASCII characters used in the VP protocol (such as to wake up the console) are being received or transmitted through the serial driver...
Mark |
|
Back to top |
|
|
pe1pqf
Joined: 06 Aug 2005 Posts: 2 Location: Den Bosch / The Netherlands
|
Posted: Sat Aug 06, 2005 11:40 am Post subject: |
|
|
I am using version 1.6.3, downloaded it from the web yesterday. Rebooting does not fix the problem. It keeps telling me wakeup failed.
When running the terminal program, I first have to hit ENTER one or two times to wake-up the VP, after that it will react on the ASCII commands I enter.
-- Jan -- |
|
Back to top |
|
|
|