Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
WMRUSB driver question
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  17 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
SteveB05  
View profile  
 More options Feb 10, 8:27 pm
From: SteveB05 <ste...@connectricks.com>
Date: Fri, 10 Feb 2012 17:27:25 -0800 (PST)
Local: Fri, Feb 10 2012 8:27 pm
Subject: WMRUSB driver question
Hey all,

First off, let me say this is an awesome project. There isn't much out
there for Linux and I'm very happy to see a solution this solid.

I'm running the latest Debian package on an ARM processor (NSLU2) and
the install couldn't have been easier...okay, maybe if I didn't have
to restart the logging service myself to get the logs in the right
place (I'M KIDDING!!)

I have a UV sensor on my OS WMR88A. Before coming to this package I
was running another solution (something about a frog) and it saw my UV
sensor data. WView doesn't. I've looked at the source and it appears
the driver supports it, but maybe the Debain package is somehow
restricted, or maybe turning on expanded graphics isn't enough to
enable it. In either case, can someone point me to a possible
solution? I've Googled for DAYs trying to find the answer myself, but
to no avail.

Thanks!
Steve


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Maxwell  
View profile  
 More options Feb 11, 2:37 am
From: Maxwell <maxwell.tay...@virgin.net>
Date: Fri, 10 Feb 2012 23:37:43 -0800 (PST)
Local: Sat, Feb 11 2012 2:37 am
Subject: Re: WMRUSB driver question
Have more or less the same configuration but with a WMR100N. Make sure
that you have the "Generate Extended Sensor Values" option selected in
the File Generation section of the configuration. Hopefully you have
been recording data but not seeing it.

This should generate graphs for UV, Solar Radiation and EVAPot (no
sensor for these on my station)
It hasn't been sunny enough to register anything on my station since I
got things working but I it does generate a graph for UV with a
flatline value of 1 (station reports 0). I'm lookiing forward to
seeing some higher values soon :-).

On Feb 11, 1:27 am, SteveB05 <ste...@connectricks.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
KT. Pedersen  
View profile  
 More options Feb 11, 3:00 am
From: "KT. Pedersen" <kjel...@gmail.com>
Date: Sat, 11 Feb 2012 09:00:50 +0100
Local: Sat, Feb 11 2012 3:00 am
Subject: Re: [wview-group] Re: WMRUSB driver question

It does support UV from wmr200.   Enable the plus templates and the
variable is UV.

--
*Best Regards,*
*
*
*Kjell Thomas Pedersen*
*kjel...@gmail.com*
*
*
*
*

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
KT. Pedersen  
View profile  
 More options Feb 11, 3:02 am
From: "KT. Pedersen" <kjel...@gmail.com>
Date: Sat, 11 Feb 2012 09:02:07 +0100
Local: Sat, Feb 11 2012 3:02 am
Subject: Re: [wview-group] Re: WMRUSB driver question

sorry wmr88..

--
*Best Regards,*
*
*
*Kjell Thomas Pedersen*
*kjel...@gmail.com*
*
*
*
*

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
SteveB05  
View profile  
 More options Feb 11, 8:07 am
From: SteveB05 <ste...@connectricks.com>
Date: Sat, 11 Feb 2012 05:07:16 -0800 (PST)
Local: Sat, Feb 11 2012 8:07 am
Subject: Re: WMRUSB driver question
Ahhh...interesting. I do have the graphs running but didn't think I
was getting data since I don't see any "received packet UV" in the
logs and the graphs are like Maxwell says...flatlined at 1. Guess I'll
wait for more Sun and see what I get!

Thanks!

On Feb 11, 1:02 am, "KT. Pedersen" <kjel...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
KT. Pedersen  
View profile  
 More options Feb 11, 8:20 am
From: "KT. Pedersen" <kjel...@gmail.com>
Date: Sat, 11 Feb 2012 14:20:22 +0100
Local: Sat, Feb 11 2012 8:20 am
Subject: Re: [wview-group] Re: WMRUSB driver question

Keep in mind that the OS UV sensor only shows increments of 1, not decimals.

--
*Best Regards,*
*
*
*Kjell Thomas Pedersen*
*kjel...@gmail.com*
*
*
*
*

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
SteveB05  
View profile  
 More options Feb 11, 3:03 pm
From: SteveB05 <ste...@connectricks.com>
Date: Sat, 11 Feb 2012 12:03:26 -0800 (PST)
Local: Sat, Feb 11 2012 3:03 pm
Subject: Re: WMRUSB driver question
Ok so, the console is showing 2 right now, but wview is still
flatlined at 1. I would expect 3 or at least 2 from wview. Any
suggestions?

On Feb 11, 6:20 am, "KT. Pedersen" <kjel...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
SteveB05  
View profile  
 More options Feb 13, 5:27 pm
From: SteveB05 <ste...@connectricks.com>
Date: Mon, 13 Feb 2012 14:27:40 -0800 (PST)
Local: Mon, Feb 13 2012 5:27 pm
Subject: Re: WMRUSB driver question
Bump...anyone?

On Feb 11, 1:03 pm, SteveB05 <ste...@connectricks.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
SteveB05  
View profile  
 More options Feb 18, 11:44 am
From: SteveB05 <ste...@connectricks.com>
Date: Sat, 18 Feb 2012 08:44:29 -0800 (PST)
Local: Sat, Feb 18 2012 11:44 am
Subject: Re: WMRUSB driver question
One last try before I move on...can anyone help with figuring out why
the WRMUSB driver is not trapping the UV packets?

On Feb 13, 3:27 pm, SteveB05 <ste...@connectricks.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Teel  
View profile  
 More options Feb 18, 12:09 pm
From: Mark Teel <mteel2...@gmail.com>
Date: Sat, 18 Feb 2012 11:09:39 -0600
Local: Sat, Feb 18 2012 12:09 pm
Subject: Re: [wview-group] Re: WMRUSB driver question
If you can build and run from a source tarball and are willing to
capture debug logs and report them here, I am planning to publish a test
version on the wviewweather.com site later today and I can place some
debug logs in the UV processing for WMRUSB. You will need to annotate
the console's value for UV corresponding to the logs you submit as well...

Mark

On 02/18/2012 10:44 AM, SteveB05 wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Gray  
View profile  
 More options Feb 18, 12:19 pm
From: Michael Gray <lmg...@gmail.com>
Date: Sat, 18 Feb 2012 12:19:21 -0500
Local: Sat, Feb 18 2012 12:19 pm
Subject: Re: [wview-group] Re: WMRUSB driver question
I don't have a UV sensor so can't offer any direct help...  But if it
were me, I think I'd
start by adding some debug writes.  In stations/WMRUSB/wmrusbprotocol.c
to see
if you're getting UV sensor data in the work packet:

***************
*** 216,221 ****
--- 219,228 ----
       {
           wmrWork.sensorData.UV = ptr[0] & 0x0F;
       }
+     if (! wmrWork.started)
+     {
+         radMsgLog (PRI_MEDIUM, "received UV packet... UV: %f",
wmrWork.sensorData.UV);
+     }
   }

   static int IsFFFFPacketStart (UCHAR* value)

If you're getting data there, next thing would be to turn on debugging
in stations/common/station.c
to see if it's getting copied into the loop packet.

Try the above and let us know results...

Michael

On 2/18/2012 11:44 AM, SteveB05 wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
SteveB05  
View profile  
 More options Feb 19, 11:16 am
From: SteveB05 <ste...@connectricks.com>
Date: Sun, 19 Feb 2012 08:16:40 -0800 (PST)
Local: Sun, Feb 19 2012 11:16 am
Subject: Re: WMRUSB driver question
I have the WMRUSB source but I'm not a Debian guy (been playing with
Arch and Fedora/Red Hat mostly) so I'm not sure how to compile. I've
learned how to use autoconfig to make the .configuration file but when
I run `./configure` I get this:

configure: creating ./config.status
config.status: creating Makefile
config.status: error: cannot find input file: `config.h.in'

I would certainly be willing to capture any debug info that is
helpful. This is a sigle purpose machine so its no problem.

 On Feb 18, 10:19 am, Michael Gray <lmg...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Maxwell  
View profile  
 More options Feb 28, 8:08 am
From: Maxwell <maxwell.tay...@virgin.net>
Date: Tue, 28 Feb 2012 05:08:44 -0800 (PST)
Local: Tues, Feb 28 2012 8:08 am
Subject: Re: WMRUSB driver question
Had some sun at the weekend which caused the sensor to read UV = 1 on
my station for a long period (WMR100N) but no movement within wview. I
am expecting to have some rather dull charts over the summer if I
don't fix the problem. Have downloaded source code - what changes do I
need to make to generate debug info?

On Feb 19, 4:16 pm, SteveB05 <ste...@connectricks.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Maxwell  
View profile  
 More options Mar 2, 4:43 pm
From: Maxwell <maxwell.tay...@virgin.net>
Date: Fri, 2 Mar 2012 13:43:32 -0800 (PST)
Local: Fri, Mar 2 2012 4:43 pm
Subject: Re: WMRUSB driver question

Hi,

I am a total novice when it comes to c and, to a lesser extent linux.
I have updated wmrusbprotocol.c in line with Michael suggestions and
successfully compiled the code. I originally installed my current version
running on NSLU2 with Debian 6 using apt-get and the binaries reside
in /usr/bin. I dont' particulary won't to mess with the current
configuration and was hoping that I could insert a new module without too
much bother.

When running ./configure I made sure that --prefix /usr was included as a
suffix and this had the desired outcome of placing wviewd_wmrusb in the
right directory. However when I started wview again I got the error: *Cannot
create run directory: /usr/var/wview - aborting!* Is there something else
that I need to change in ./configure to get things working properly.

Thanks, Max


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Teel  
View profile  
 More options Mar 2, 9:02 pm
From: Mark Teel <mteel2...@gmail.com>
Date: Fri, 02 Mar 2012 20:02:33 -0600
Local: Fri, Mar 2 2012 9:02 pm
Subject: Re: [wview-group] Re: WMRUSB driver question

./configure --prefix=/ --bindir=/usr/bin --sysconfdir=/etc
--localstatedir=/var/lib --libdir=/usr/lib

On 3/2/12 3:43 PM, Maxwell wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark S. Teel  
View profile  
 More options Mar 3, 7:03 am
From: "Mark S. Teel" <mteel2...@gmail.com>
Date: Sat, 03 Mar 2012 06:03:39 -0600
Local: Sat, Mar 3 2012 7:03 am
Subject: Re: [wview-group] Re: WMRUSB driver question
I've already added a debug statement that logs the byte of data received
for UV in the latest test build (Latest Stable on wviewweather.com).

If you can build/run that version then when your WMR station is showing
UV values above 1, make note of the station's values alongside the wview
logs and submit them here or to me personally for analysis.

Thanks,
Mark

On 2/28/12 7:08 AM, Maxwell wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Maxwell  
View profile  
 More options Mar 3, 10:30 am
From: Maxwell <maxwell.tay...@virgin.net>
Date: Sat, 3 Mar 2012 07:30:40 -0800 (PST)
Local: Sat, Mar 3 2012 10:30 am
Subject: Re: [wview-group] Re: WMRUSB driver question

Thanks Mark,

I noticed that the test code looked a little different as I downloaded this
before the 5.19 source. In the end I modified 5.19 by putting the addition
that Michael suggested (without "if (! wmrWork.started)
)" and included the statement that you included in the test version of
wmrusbprotocol.c. Had some sun today and by tilting the sensor got values
on the station up to 4 but no change in the values logged by wview. The
output below is consistent regardless of sensor reading. Took the batteries
out of the sensor and stopped getting packets when station showed "--" so
wview definitely knows the sensor is there. I ran wfrog with python and
collected values consistent with the UV sensor so that should rule out a
problem with the station.

Test Version Statement: Mar  3 15:12:21 chester wviewd[1067]:
<1330787541320> : WMRUSB: received UV: 01
Michaels Statement: Mar  3 15:12:21 chester wviewd[1067]: <1330787541321> :
received UV packet... UV: 0.000000

I only modified decodeUV - if there are additional statements in the test
code that will help with debugging let me know and I will compile your test
code directly without edits. Otherwise I assume it's a case of checking the
raw values. How do I do that?

Thanks Max

For reference this is how my modified wmrprotocol.c looks:

static void decodeUV (unsigned char *ptr)
{
    if (ptr[0] == 0xFF)
    {
        wmrWork.sensorData.UV = -1;
    }
    else
    {
        wmrWork.sensorData.UV = ptr[0] & 0x0F;
        radMsgLog(PRI_MEDIUM, "WMRUSB: received UV: %2.2X", (unsigned
int)ptr[0]);
    }
         radMsgLog (PRI_MEDIUM, "received UV packet... UV: %f",
wmrWork.sensorData.UV);


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »