Page 1 of 1
Cumulus MX running on a Raspberry PI B+ no data displayed
Posted: Wed 15 Jul 2015 4:28 am
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
Re: Cumulus MX running on a Raspberry PI B+ no data displaye
Posted: Wed 15 Jul 2015 6:59 am
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.
Re: Cumulus MX running on a Raspberry PI B+ no data displaye
Posted: Wed 15 Jul 2015 9:08 am
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
Re: Cumulus MX running on a Raspberry PI B+ no data displaye
Posted: Wed 15 Jul 2015 9:31 am
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?
Re: Cumulus MX running on a Raspberry PI B+ no data displaye
Posted: Wed 15 Jul 2015 9:47 am
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.
Re: Cumulus MX running on a Raspberry PI B+ no data displaye
Posted: Wed 15 Jul 2015 10:46 am
by wavejet
serial port is set to 9600, 8-N-1.
Re: Cumulus MX running on a Raspberry PI B+ no data displaye
Posted: Wed 15 Jul 2015 10:51 am
by wavejet
the version on my PI is Mono JIT compiler version 3.2.8 (Debian 3.28+dfsg-4+rpil)
Re: Cumulus MX running on a Raspberry PI B+ no data displaye
Posted: Sun 02 Aug 2015 4:11 am
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
Re: Cumulus MX running on a Raspberry PI B+ no data displaye
Posted: Sun 02 Aug 2015 8:48 am
by steve
OK - thanks for the feedback.