Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 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

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Cumulus MX running on a Raspberry PI B+ no data displayed

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

Locked
wavejet
Posts: 5
Joined: Sun 12 Jul 2015 7:47 pm
Weather Station: wm-918
Operating System: win 7
Location: Havelock North

Cumulus MX running on a Raspberry PI B+ no data displayed

Post by wavejet »

hello

I am trying to get Cumulus MX running on a Raspberry PI B+ running Linux version 3.12.22+ the problem i am having is the the data sent from my WM-918 over serial /dev/ttyUSB0 is not being picked up by Cumulus MX the same serial USB device on win7 COM12 works ok. I have run minicom and there is data being received by the Raspberry PI and displayed in minicom Terminal. I have had a crash if the wrong port name is entered.

System.IO.Exception: Bad file decriptor
at System.IO.Ports.SerialPortStream.ThrowIOException () [0X00000] in <filename unknown>:0
at System.IO.Ports.SerialPortStream.Dispose (Boolean disposing) [0X00000] in <filename unknown>:0
at System.IO.Ports.SerialPortStream.Finalize () [0X00000] in <filename unknown>:0

any help would be greatly appreciated.

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

Re: Cumulus MX running on a Raspberry PI B+ no data displaye

Post by steve »

Could you zip up the MXdiags folder and attach it, please?

I suspect no-one else has tried a WM918 with MX yet - I may need to add further logging to the diagnostic files to get it working, with your help.
Steve
wavejet
Posts: 5
Joined: Sun 12 Jul 2015 7:47 pm
Weather Station: wm-918
Operating System: win 7
Location: Havelock North

Re: Cumulus MX running on a Raspberry PI B+ no data displaye

Post by wavejet »

Hello Steve

MX works under windows7 with my wm-918 when serial port set to COM12
receiving no data when running under Linux with serial port set to /dev/ttyUSB0

I have done some .net development so if I can help there let me know.

have attached MXdiags folder.

Kind regards
Andrew
You do not have the required permissions to view the files attached to this post.
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Cumulus MX running on a Raspberry PI B+ no data displaye

Post by steve »

The MX code is the same on the Pi as on Windows, the difference is that the system stuff is Mono and Linux. Currently MX only logs diagnostics for the WM918 stuff if it actually receives data but there is a problem with the data. I need to add logging of all of the received data. Unfortunately this won't help if it really isn't receiving any bytes at all - which is actually quite likely in this case (as it would either show values or complain).

MX opens the serial port with parameters 9600, 8-N-1. I don't know whether this is supposed to set the drivers and the hardware to the same settings - could you check what your virtual serial port is actually set to?
Steve
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Cumulus MX running on a Raspberry PI B+ no data displaye

Post by steve »

I think I know what the problem is - there was the same problem with the WMR928. Mono does not (or did not at the version on the Pi) support 'data received' events for serial ports. I had to rewrite the WMR928 code to poll for the data rather than using events. I'll have to do the same for the WM918.
Steve
wavejet
Posts: 5
Joined: Sun 12 Jul 2015 7:47 pm
Weather Station: wm-918
Operating System: win 7
Location: Havelock North

Re: Cumulus MX running on a Raspberry PI B+ no data displaye

Post by wavejet »

serial port is set to 9600, 8-N-1.
wavejet
Posts: 5
Joined: Sun 12 Jul 2015 7:47 pm
Weather Station: wm-918
Operating System: win 7
Location: Havelock North

Re: Cumulus MX running on a Raspberry PI B+ no data displaye

Post by wavejet »

the version on my PI is Mono JIT compiler version 3.2.8 (Debian 3.28+dfsg-4+rpil)
wavejet
Posts: 5
Joined: Sun 12 Jul 2015 7:47 pm
Weather Station: wm-918
Operating System: win 7
Location: Havelock North

Re: Cumulus MX running on a Raspberry PI B+ no data displaye

Post by wavejet »

data sent from my WM-918 over serial /dev/ttyUSB0 is being picked up by Cumulus MX build 3026 thank you for the fix
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Cumulus MX running on a Raspberry PI B+ no data displaye

Post by steve »

OK - thanks for the feedback.
Steve
Locked