Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Rpi and WMR928 data

Topics about the Beta trials up to Build 3043, the last build by Cumulus's founder Steve Loft. It was by this time way out of Beta but Steve wanted to keep it that way until he made a decision on his and Cumulus's future.

Moderator: mcrossley

User avatar
laulau
Posts: 678
Joined: Tue 13 Oct 2009 10:52 pm
Weather Station: WeatherDuino Pro2
Operating System: Win 7
Location: Meyenheim, Alsace, FR
Contact:

Rpi and WMR928 data

Post by laulau »

Hi,
Here : https://cumulus.hosiene.co.uk/viewtopic.p ... 22#p102222
steve wrote:Assuming you have Logging=1 in Cumulus.ini, that means it's not receiving any data after it opens the serial port. I'm afraid I don't know why, because it's the same code that works in Windows.
laulau wrote:YES!
So I have a station that works with CMX build 3007 under Windows but refuses to work on my RPi.
I can see the WMR928 row data incoming on my pi with cat /dev/ttyUSB0 and the data are similar to those in windows.

Is there a linux expert who can help us solve this problem?
Thanks
Laurent

Image
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Rpi and WMR928 data

Post by steve »

It appears that Mono does not (or did not) support 'data received' events for serial ports, which is what my code for the WMR928 (and WM918) uses. There is documentation that this used to be the case, and I can't find anything to say it has been fixed.

https://bugzilla.xamarin.com/show_bug.cgi?id=2075
Steve
User avatar
laulau
Posts: 678
Joined: Tue 13 Oct 2009 10:52 pm
Weather Station: WeatherDuino Pro2
Operating System: Win 7
Location: Meyenheim, Alsace, FR
Contact:

Re: Rpi and WMR928 data

Post by laulau »

It's a pity :groan:
Laurent

Image
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Rpi and WMR928 data

Post by steve »

I'll have a go at re-writing the code to use polling rather than events.
Steve
User avatar
laulau
Posts: 678
Joined: Tue 13 Oct 2009 10:52 pm
Weather Station: WeatherDuino Pro2
Operating System: Win 7
Location: Meyenheim, Alsace, FR
Contact:

Re: Rpi and WMR928 data

Post by laulau »

It's really nice :D
Laurent

Image
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Rpi and WMR928 data

Post by steve »

I've just uploaded build 3008 with the changes. It might be best to try it on Windows first, to see if it works at all.
Steve
User avatar
laulau
Posts: 678
Joined: Tue 13 Oct 2009 10:52 pm
Weather Station: WeatherDuino Pro2
Operating System: Win 7
Location: Meyenheim, Alsace, FR
Contact:

Re: Rpi and WMR928 data

Post by laulau »

It is still running and window.
And "Cerises sur le gateau" it also works on raspberry! :D :D :clap:
I have not tried everything, just have a quick go.
Laurent

Image
User avatar
laulau
Posts: 678
Joined: Tue 13 Oct 2009 10:52 pm
Weather Station: WeatherDuino Pro2
Operating System: Win 7
Location: Meyenheim, Alsace, FR
Contact:

Re: Rpi and WMR928 data

Post by laulau »

And you know what?
The Alltime.ini not loading in windows works like a charm on the (en-GB) RPi :oops: :lol:
Laurent

Image
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Rpi and WMR928 data

Post by steve »

I'm actually surprised that it still works on Windows. I was lying in bed about an hour ago (0645), thinking that I didn't want to get up yet, and I suddenly realised that I hadn't taken out the code that hooks up the event handler. So on Windows it's both polling and using events. It must be by luck that it still works. Good that it works on the Pi, though!
Steve
User avatar
laulau
Posts: 678
Joined: Tue 13 Oct 2009 10:52 pm
Weather Station: WeatherDuino Pro2
Operating System: Win 7
Location: Meyenheim, Alsace, FR
Contact:

Re: Rpi and WMR928 data

Post by laulau »

I'm not able to read my old monthlog files because of en-GB locals.
I Could rename them but Pffff. :roll:
Is there a way to customize the locals in linux like in window (to only change the month naming part) ?
Laurent

Image
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Rpi and WMR928 data

Post by steve »

I think you do it with 'LC_' environment variables - https://wiki.debian.org/Locale

You can use LC_TIME to change the date and time formatting to another locale, but I don't know if that will achieve what you want.
Steve
User avatar
laulau
Posts: 678
Joined: Tue 13 Oct 2009 10:52 pm
Weather Station: WeatherDuino Pro2
Operating System: Win 7
Location: Meyenheim, Alsace, FR
Contact:

Re: Rpi and WMR928 data

Post by laulau »

I've added LC_TIME=fr_FR.UTF-8 to /etc/default/locale but it doesn't achieve what i wanted.
Laurent

Image
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Rpi and WMR928 data

Post by steve »

I suspect that Mono isn't taking any notice - same as with having to supply the locale to Cumulus on the command line :(
Steve
User avatar
laulau
Posts: 678
Joined: Tue 13 Oct 2009 10:52 pm
Weather Station: WeatherDuino Pro2
Operating System: Win 7
Location: Meyenheim, Alsace, FR
Contact:

Re: Rpi and WMR928 data

Post by laulau »

I'll put my Rpi test back to fr_FR.UTF-8 and try sudo mono CumulusMX.exe -lang en-GB to look what happens.
Laurent

Image
User avatar
laulau
Posts: 678
Joined: Tue 13 Oct 2009 10:52 pm
Weather Station: WeatherDuino Pro2
Operating System: Win 7
Location: Meyenheim, Alsace, FR
Contact:

Re: Rpi and WMR928 data

Post by laulau »

With those settings Cmx has issue at sartup when trying to read Jan15log.txt but is receiving data.
Curiously the Data log viewer is able to read the file.
You do not have the required permissions to view the files attached to this post.
Laurent

Image
Locked