wviewweather.com Forum Index wviewweather.com
wview and Weather Topics
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Set elevation failed

 
Post new topic   Reply to topic    wviewweather.com Forum Index -> wview Installation
View previous topic :: View next topic  
Author Message
jensjk



Joined: 27 Feb 2006
Posts: 31
Location: Greenland

PostPosted: Mon Feb 27, 2006 3:40 pm    Post subject: Set elevation failed Reply with quote

I have spent some hours installing and compiling, and the simulator staion works fine. But however, when setting my Vantage Pro up, I cannot be allowed to set my elevation. I have tried with many figures (apart form the correct one), but keep getting " set elevation failed":

VP Console Device: /dev/ttyS0
Archive Interval: 5 (minutes)
Station Elevation: 0040 (feet)
Station Latitude: 641 (tenths of a degree)
Station Longitude: 514 (tenths of a degree)
Rain Season Start Month: 1
Year-to-Date Rain: 20
Year-to-Date ET: 2
-------------------------------------------------------------

WARNING: All archive records will be erased on the VP console!
Do you want to proceed with these values? (y/n)
(n): y

Configuring with new values (takes some time, be patient) ...

set elevation failed!
set elevation failed!


Hope to get help, so I can move on - I have searched for long for a decent linux weather station - and finallly found this! Thank you.

jensjk.dk
Back to top
View user's profile Send private message Send e-mail Visit poster's website
bhnb



Joined: 28 Nov 2005
Posts: 127

PostPosted: Tue Feb 28, 2006 5:22 am    Post subject: Reply with quote

Hi jensjk

Can you confirm that the VP is working on /dev/ttyS0?

vpconfig /dev/ttyS0 show

should display the current configuration.

Jon
Back to top
View user's profile Send private message
jensjk



Joined: 27 Feb 2006
Posts: 31
Location: Greenland

PostPosted: Tue Feb 28, 2006 6:39 am    Post subject: Set elevation failed Reply with quote

Well, no - but also tried ttys0 to S4, same result - and the station works ok in win xp on the same computer and port - so any suggestion? I really want to leave windows behind -
Back to top
View user's profile Send private message Send e-mail Visit poster's website
bhnb



Joined: 28 Nov 2005
Posts: 127

PostPosted: Tue Feb 28, 2006 6:58 am    Post subject: Reply with quote

OK I'm assuming /dev/ttyS0 = windows com1 and that it works on com1 under XP.

Is anything else using /dev/ttyS0? Some OSes run a terminal login process on that port by default. If you can post your OS/distro/version it might be possible to figure out what's going on.
Back to top
View user's profile Send private message
jensjk



Joined: 27 Feb 2006
Posts: 31
Location: Greenland

PostPosted: Tue Feb 28, 2006 8:33 am    Post subject: Set elevation failed Reply with quote

I am using Fedora Core 2. When accessing hardware control, the com ports/serial are not visible - I must admit, that I do not know whether they should be. In Win XP, the port used by VP is showing up as Com 2.

-and the exact machine reply from your suggestion:

[jjk@localhost jjk]$ vpconfig /dev/ttyS0 show
stationInit failed
Back to top
View user's profile Send private message Send e-mail Visit poster's website
bhnb



Joined: 28 Nov 2005
Posts: 127

PostPosted: Tue Feb 28, 2006 2:04 pm    Post subject: Reply with quote

If it is com2 on XP I'd assume it's /dev/ttyS1

Do you get the same output from 'vpconfig /dev/ttyS1 show' ?

Unfortunately my datalogger is USB. I almost destroyed it a few months ago trying to convert it to serial but that's a whole other story...

Anyone else got experience of setting up a serial datalogger?
Back to top
View user's profile Send private message
jensjk



Joined: 27 Feb 2006
Posts: 31
Location: Greenland

PostPosted: Tue Feb 28, 2006 2:24 pm    Post subject: Reply with quote

Yes - :

[jjk@localhost jjk]$ vpconfig /dev/ttyS1 show
stationInit failed

By the way, the communication goes not directly to the console, but via a wireless Weather Envoy (containing the data logger). This connects wirelessly to the console and to the ISS on the roof. Can that have anything to do with my problem? -

I also tried /usr/local/bin/wviewconfig using ttyS1, and after that /etc/init.d/wview start
- and the demons start, but no output is generated (ie, all figures are 0)

jensjk.dk
Back to top
View user's profile Send private message Send e-mail Visit poster's website
bhnb



Joined: 28 Nov 2005
Posts: 127

PostPosted: Tue Feb 28, 2006 2:44 pm    Post subject: Reply with quote

I don't believe the fact that it's an Envoy would change anything.

Try
stty -F /dev/ttyS1

It should come back with a speed, I've just tried this on a FC3 system and ttyS1 is set to 9600. If this is the speed you were using under XP we'll have to think of something else. If not, you can set the speed (to 19200 for example) with
stty -F /dev/ttyS1 speed 19200
Then try the vpconfig show command again.
Back to top
View user's profile Send private message
jensjk



Joined: 27 Feb 2006
Posts: 31
Location: Greenland

PostPosted: Tue Feb 28, 2006 3:04 pm    Post subject: Reply with quote

YES!

This worked - I am now just waiting for VP to digest settings the suggested 30 minutes - thank you from Greenland! - jensjk.dk
Back to top
View user's profile Send private message Send e-mail Visit poster's website
bhnb



Joined: 28 Nov 2005
Posts: 127

PostPosted: Tue Feb 28, 2006 4:32 pm    Post subject: Reply with quote

Excellent! Very Happy

To make this persistent across reboots I think you will need to put something in a startup script which runs before wview.

Cheers

Jon
Back to top
View user's profile Send private message
mteel



Joined: 30 Jun 2005
Posts: 435
Location: Collinsville, TX

PostPosted: Tue Feb 28, 2006 9:27 pm    Post subject: Reply with quote

Given that the portconfig routine for Vantage Pro contains:
Code:
    cfsetispeed (&port, B19200);
    cfsetospeed (&port, B19200);

I am confused how it would not be being set by vpconfig and wview...

You should not need to set the port speed before running wview. The only problem would be if the datalogger or envoy is not running at 19200-8-N-1.

Mark
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    wviewweather.com Forum Index -> wview Installation All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group