Shop OBEX P1 Docs P2 Docs Learn Events
BS2P to Oregon Scientific WMR918/WMR968 — Parallax Forums

BS2P to Oregon Scientific WMR918/WMR968

Dave-WDave-W Posts: 94
edited 2007-07-23 23:51 in BASIC Stamp
All,
There are tons of Windows programs to get and display the weather data from a weather station. Most of them work on 10 or more weather stations so the raw data must be in some common configuration. But, I do not want a windows computer running 24/7 just to collect some data when a BS2 and the new Parallax Datalogger can do the same. However, searching almost everywhere I cannot find the protocol necessary for the stamp to communicate with the serial port on the weather station. Someone out there must have the needed information for this simple task. Help

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
D. A. Wreski

Comments

  • stamptrolstamptrol Posts: 1,731
    edited 2007-07-23 18:59
    Dave,

    There's a good chance someone here has the exact info you need.

    But, if you have to get it by experimentation, you can use a computer with Hyperterminal (or any terminal program) running and grab a sample of the data coming from the weather station and have a look at it on the screen. Then, you can determine how to write the Stamp program.

    Similarly, you could have a Stamp do the job by reading in a dozen or so bytes and sending them to the DEBUG screen to have a look at.

    Cheers,

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tom Sisk

    http://www.siskconsult.com
    ·
  • Dave-WDave-W Posts: 94
    edited 2007-07-23 20:35
    Ton,
    Thanks for the reply. However, I cannot find what the weather station needs to wake it up and start sending the data.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    D. A. Wreski
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2007-07-23 21:53
    Dave,

    Maybe this will help. Also, remember that the AC adapter needs to be plugged in for RS232 to work. It won't operate with battery power.

    -Phil

    Post Edited (Phil Pilgrim (PhiPi)) : 7/23/2007 10:03:23 PM GMT
  • Dave-WDave-W Posts: 94
    edited 2007-07-23 22:44
    Hello Phil,
    Good point but it is AC powered. Given enough time I suspose I could intercept the signals sent by my Windowz program and decode the read data commands but it would take days I would think. Given all of the data that is sent from the station to the computer it would be a daunting task. There must be a listing out there somewhere given the huge amount of programs for windowz and some are free / share ware.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    D. A. Wreski
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2007-07-23 23:08
    You weren't able to glean the protocol from the link I gave you? I think everything you need is there...

    -Phil
  • Dave-WDave-W Posts: 94
    edited 2007-07-23 23:25
    Phil,
    I don't know how you did it but you did. Wow. I took a quick look at it before I saved it but it looks like almost everything is there. At least everything I need to get a really big start on the project. I cannot thank you enough. Wow again.

    I do not know why everyone has to use a Windows program when a Z80 or a Basic Stamp is enough. ( except for pretty graphs that could be done with a 4 X 40 )Now that the datalogger is available from Parallax, I would think a 2 gig stick would hold tons of weather data. I'll let you know how my project works out.

    Phil, can you give me a hint what the 'W' is in this data?

    Command 0 - Poll DCF Time
    Byte Nibble Bit(s) Datum Description
    sent:
    1 W all SOH
    2 W all 0
    3 W all -sum
    4 W all EOT


    received (7 + 4 bytes):
    1' W all STX
    2' W all length
    1 Bx 0-2 day of week
    1 xB 4 DCF OK
    2 DD all Time Hour 0<ab<23 @ 1
    3 DD all Time Minute 0<ab<59 @ 1
    4 BB all Time Seconds
    5 DD all Time Day 1<ab<31 @ 1
    6 DD all Time Month 1<ab<12 @ 1
    7 DD all Time Year
    3' W all chksum
    4' W all ETX

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    D. A. Wreski
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2007-07-23 23:51
    Dave,

    I looked at that and couldn't figure out what it meant either. I think it means "the whole byte" since the column heading indicates nibbles.

    BTW, if you're looking at the SOH/EOT protocol, you're in the wrong section. Do a page find using WMR918 to get to the right one. It starts out: "Protocol of the WMR918 weather Station(4)". There's an example sentence there, too.

    -Phil
Sign In or Register to comment.