Sandaysoft

Support forum for Cumulus weather station software
It is currently Mon May 20, 2013 12:47 pm
Please click here before posting. Help me to help you!
Useful Links: Cumulus FAQ • Enhancement requests • Wiki (documentation)
Please put your approximate location into your profile
Add your web site to the Cumulus user map
Vantage Pro2 users with firmware 3.00 should upgrade to fw 3.12 and Cumulus 1.9.4

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: WMR88 USB Дата protocol
PostPosted: Mon Dec 05, 2011 1:38 pm 
Offline

Joined: Mon Dec 05, 2011 1:28 pm
Posts: 3
Location: Russia
Weather Station: WMR88
Operating System: Windows XP
Hello.
I'm sorry for my english.
The Institute are developing stand.
Measure performance in different weather conditions.
To obtain data using metio WMR88.
Write a program in Delphi.
Write a procedure to USB HID device, but can not decode and manipulate the data reception.
Prompt please decryption.
Program will be used only for the institute.


Top
 Profile  
 
 Post subject: Re: WMR88 USB Дата protocol
PostPosted: Mon Dec 05, 2011 2:03 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17558
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
See this: http://www.dg1sfj.de/hardware/hw_wmr100_protokoll.html and the WMR100 spreadsheet in this thread: http://sandaysoft.com/forum/viewtopic.php?f=16&t=5912

Is Cumulus not suitable for your purposes?

_________________
Steve
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: WMR88 USB Дата protocol
PostPosted: Tue Dec 06, 2011 7:50 am 
Offline

Joined: Mon Dec 05, 2011 1:28 pm
Posts: 3
Location: Russia
Weather Station: WMR88
Operating System: Windows XP
steve wrote:
See this: http://www.dg1sfj.de/hardware/hw_wmr100_protokoll.html and the WMR100 spreadsheet in this thread: http://sandaysoft.com/forum/viewtopic.php?f=16&t=5912

Is Cumulus not suitable for your purposes?

Thanks for the links
Wrote the program. Sent to the device:
20 00 08 01 00 00 00 00
Prehvatil data from the device:

02 F8 00 00 0C 01 01 09
01 FF 00 00 0C 01 01 09
01 FF 00 00 0C 01 01 09
07 00 60 04 00 16 0B 06
05 0C 0B 02 A4 00 0B 06
01 FF 0B 02 A4 00 0B 06
05 FF 00 46 E9 03 0B 06
04 E9 03 1E 02 03 0B 06
01 FF 03 1E 02 03 0B 06
04 FF 00 48 07 03 0B 06
07 0C 1C C0 01 01 80 B9
01 01 1C C0 01 01 80 B9
01 FF 1C C0 01 01 80 B9
01 FF 1C C0 01 01 80 B9
07 00 42 80 E1 00 20 32
05 00 00 20 15 02 20 32
01 FF 00 20 15 02 20 32
01 FF 00 20 15 02 20 32
06 00 48 07 0C 1C C0 32
05 01 01 80 B9 01 C0 32
01 FF 01 80 B9 01 C0 32
01 FF 01 80 B9 01 C0 32
07 00 42 C1 16 00 5F 14
05 00 00 20 AC 01 5F 14
01 FF 00 20 AC 01 5F 14
03 FF 00 60 AC 01 5F 14
07 04 00 17 0B 06 0C 0B
03 02 A5 00 0B 06 0C 0B
01 FF A5 00 0B 06 0C 0B
05 FF 00 46 E9 03 0C 0B
04 E9 03 1E 02 03 0C 0B
01 FF 03 1E 02 03 0C 0B
01 FF 03 1E 02 03 0C 0B
07 00 42 80 E1 00 20 32
05 00 00 20 15 02 20 32
01 FF 00 20 15 02 20 32
03 FF 00 48 15 02 20 32
07 06 0C 19 90 01 00 00
02 04 01 19 90 01 00 00
01 FF 01 19 90 01 00 00
05 FF 00 41 00 00 00 00
07 00 00 00 00 9F 01 00
06 0C 01 01 09 F8 00 00
01 FF 01 01 09 F8 00 00
01 FF 01 01 09 F8 00 00
07 00 60 04 00 18 0B 06
05 0C 0B 02 A6 00 0B 06
01 FF 0B 02 A6 00 0B 06
03 FF 00 46 A6 00 0B 06
06 E9 03 E9 03 1E 02 06
01 FF 03 E9 03 1E 02 06
07 FF 00 42 80 E1 00 20
06 32 00 00 20 15 02 20
01 FF 00 00 20 15 02 20
03 FF 00 48 20 15 02 20
07 07 0C 22 20 02 01 80
02 20 01 22 20 02 01 80
01 FF 01 22 20 02 01 80
01 FF 01 22 20 02 01 80
07 00 48 07 0C 22 20 02
04 01 80 20 01 22 20 02
01 FF 80 20 01 22 20 02
01 FF 80 20 01 22 20 02
06 00 42 C1 15 00 5F 02
06 14 00 00 20 AB 01 02
01 FF 00 00 20 AB 01 02
01 FF 00 00 20 AB 01 02
07 00 41 00 00 00 00 00
07 00 9F 01 00 0C 01 01
03 09 F8 00 00 0C 01 01
01 FF F8 00 00 0C 01 01
06 FF 00 60 04 00 19 01
07 0B 06 0C 0B 02 A7 00
01 FF 06 0C 0B 02 A7 00
03 FF 00 46 0B 02 A7 00
06 E9 03 E9 03 1E 02 00
01 FF 03 E9 03 1E 02 00
07 FF 00 42 80 E1 00 20
06 32 00 00 20 15 02 20
01 FF 00 00 20 15 02 20
01 FF 00 00 20 15 02 20
07 00 48 0B 0C 18 80 01
04 00 00 F8 00 18 80 01
01 FF 00 F8 00 18 80 01
05 FF 00 60 04 00 80 01
07 1A 0B 06 0C 0B 02 A8
01 00 0B 06 0C 0B 02 A8
01 FF 0B 06 0C 0B 02 A8
04 FF 00 46 E9 0B 02 A8
05 03 E9 03 1E 02 02 A8
01 FF E9 03 1E 02 02 A8
07 FF 00 42 80 E1 00 20
06 32 00 00 20 15 02 20
01 FF 00 00 20 15 02 20
04 FF 00 48 0B 15 02 20
07 0C 18 80 01 00 00 F8
01 00 18 80 01 00 00 F8
01 FF 18 80 01 00 00 F8
01 FF 18 80 01 00 00 F8
07 00 42 C1 15 00 5F 14
05 00 00 20 AB 01 5F 14
01 FF 00 20 AB 01 5F 14
01 FF 00 20 AB 01 5F 14
07 00 41 00 00 00 00 00
07 00 9F 01 00 0C 01 01
03 09 F8 00 00 0C 01 01
04 FF 00 42 80 14 00 00
07 E2 00 20 32 00 00 20
02 16 02 20 32 00 00 20
01 FF 02 20 32 00 00 20
01 FF 02 20 32 00 00 20
07 00 48 07 0C 12 20 01
04 00 00 8E 00 12 20 01
01 FF 00 8E 00 12 20 01
05 FF 00 60 04 00 20 01
07 0E 0B 06 0C 0B 02 9C
01 00 0B 06 0C 0B 02 9C
01 FF 0B 06 0C 0B 02 9C
06 FF 00 46 E9 03 E9 9C
03 03 1E 02 E9 03 E9 9C
01 FF 1E 02 E9 03 E9 9C



The data do not fit the description WMR100 :(
Prompt treatment
I have tried so:


07 FF 00 42 80 E1 00 20 - termometr indoor 22.5 C, 32% - Ok

04 FF 00 42 80 14 00 00 - termometr indoor 2,0 C, 0% - no correct

Please Help


Top
 Profile  
 
 Post subject: Re: WMR88 USB Дата protocol
PostPosted: Tue Dec 06, 2011 8:50 am 
Online
User avatar

Joined: Thu Jan 07, 2010 9:44 pm
Posts: 2511
Location: Wilmslow, Cheshire, UK
Weather Station: Davis VP2
Operating System: XP SP3, Win 7
The messages back from the station will be of variable length, it looks like your program is using a fixed sized window?

Have you tried just connecting up a terminal emulator and see what is really coming back from the station?

_________________
Mark
Wilmslow Astro Weather


Top
 Profile  
 
 Post subject: Re: WMR88 USB Дата protocol
PostPosted: Tue Dec 06, 2011 9:10 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17558
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
JTlex wrote:
The data do not fit the description WMR100 :(
Prompt treatment
I have tried so:


07 FF 00 42 80 E1 00 20 - termometr indoor 22.5 C, 32% - Ok

04 FF 00 42 80 14 00 00 - termometr indoor 2,0 C, 0% - no correct

Please Help

You haven't understood the protocol correctly. The first byte in each USB frame tells you how many bytes in that frame are valid. You then have to reassemble the data packets from the fragments in the USB frames. In the second line you quote, only the first 4 bytes are valid, so you have to look at the next frame(s) for the rest of your temperature packet.

_________________
Steve
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: WMR88 USB Дата protocol
PostPosted: Tue Dec 06, 2011 9:59 am 
Offline

Joined: Mon Dec 05, 2011 1:28 pm
Posts: 3
Location: Russia
Weather Station: WMR88
Operating System: Windows XP
steve wrote:
JTlex wrote:
The data do not fit the description WMR100 :(
Prompt treatment
I have tried so:


07 FF 00 42 80 E1 00 20 - termometr indoor 22.5 C, 32% - Ok

04 FF 00 42 80 14 00 00 - termometr indoor 2,0 C, 0% - no correct

Please Help

You haven't understood the protocol correctly. The first byte in each USB frame tells you how many bytes in that frame are valid. You then have to reassemble the data packets from the fragments in the USB frames. In the second line you quote, only the first 4 bytes are valid, so you have to look at the next frame(s) for the rest of your temperature packet.



A very big thank you.
For All Example:

01 FF 01 80 B9 01 C0 32
07 00 42 C1 16 00 5F 14
05 00 00 20 AC 01 5F 14
Is: FF 00 42 C1 16 00 5F 14 00 00 20 AC 01
FF - Start Data
00 42 -Termometer
C1 - 1 channel
16 00 - "+ 2,2C"
5F - 95% humidity
20 - End Data
01AC -CS = 20+00+00+14+5F+00+16+C1+42+00

:lol:


Top
 Profile  
 
 Post subject: Re: WMR88 USB Дата protocol
PostPosted: Tue Dec 06, 2011 10:09 am 
Online
User avatar

Joined: Thu Jan 07, 2010 9:44 pm
Posts: 2511
Location: Wilmslow, Cheshire, UK
Weather Station: Davis VP2
Operating System: XP SP3, Win 7
You've got it. It also tells you:

temp trend = 0 = steady
dew point = +2°C
humidity trend = 0 = steady

Though you may not be interested in that!

_________________
Mark
Wilmslow Astro Weather


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group