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

Raspberry Pi serial port

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
blackie
Posts: 14
Joined: Sun 14 Feb 2016 3:41 pm
Weather Station: ws2350
Operating System: Raspbian
Location: Slovenia

Raspberry Pi serial port

Post by blackie »

Hi!
I have a LaCorsse WS2350 weather station. It has a USB/serial adapter which reads a lot of wrong data.
Now, I bought a serial port for my Raspberry. I connected it, and configured cumulus to read data from /dev/ttyAMA0 port.
The TX LED on serial port is blinking, but Cumulus isn't showing any data.
In the latest MXdiags says:

Code: Select all

2017-08-30 10:00:07.121 WS2300: Attempting to open /dev/ttyAMA0
2017-08-30 10:00:07.168 COM port opened
2017-08-30 10:00:07.176 Start reading history data
The entire MXdiag is zipped and attached to this post.
You do not have the required permissions to view the files attached to this post.
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: Raspberry Pi serial port

Post by steve »

You'll need to turn on debug logging and data logging by editing Cumulus.ini (instructions are in one of the announcement posts) so that the diags file (hopefully) contains some information to help with your problem.
Steve
blackie
Posts: 14
Joined: Sun 14 Feb 2016 3:41 pm
Weather Station: ws2350
Operating System: Raspbian
Location: Slovenia

Re: Raspberry Pi serial port

Post by blackie »

I attached the MX diags file.
You do not have the required permissions to view the files attached to this post.
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: Raspberry Pi serial port

Post by steve »

It's not getting any response from the station (assuming that's the correct serial port).
Steve
blackie
Posts: 14
Joined: Sun 14 Feb 2016 3:41 pm
Weather Station: ws2350
Operating System: Raspbian
Location: Slovenia

Re: Raspberry Pi serial port

Post by blackie »

There's something wrong with the serial port (or it's settings). I tried to use the serial port with python, but it isn't getting any response.

I found an information, that I have to disable the serial console on Pi. Are there any settings to set on Pi?
User avatar
ConligWX
Posts: 1622
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 22.04 LTS
Location: Bangor, NI
Contact:

Re: Raspberry Pi serial port

Post by ConligWX »

can you post the ouput of this command:

Code: Select all

dmesg | grep tty
Regards Simon

https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0

Image
blackie
Posts: 14
Joined: Sun 14 Feb 2016 3:41 pm
Weather Station: ws2350
Operating System: Raspbian
Location: Slovenia

Re: Raspberry Pi serial port

Post by blackie »

Code: Select all

[    0.001322] console [tty1] enabled
[    0.135559] 20201000.uart: ttyAMA0 at MMIO 0x20201000 (irq = 83, base_baud = 0) is a PL011 rev2
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: Raspberry Pi serial port

Post by steve »

You say that you've added a serial port, but that looks like the Pi's built in UART.
Steve
User avatar
ConligWX
Posts: 1622
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 22.04 LTS
Location: Bangor, NI
Contact:

Re: Raspberry Pi serial port

Post by ConligWX »

I think the "USB/Serial adapter" maybe the wrong terminology.

the LaCorsse WS2350 comes with a Serial plug cable from what I gather. which should plug directly into the raspi's serial port (just guessing)

Perhaps the baud rate needs to be set on the raspi's serial port?
Regards Simon

https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0

Image
blackie
Posts: 14
Joined: Sun 14 Feb 2016 3:41 pm
Weather Station: ws2350
Operating System: Raspbian
Location: Slovenia

Re: Raspberry Pi serial port

Post by blackie »

I found, what was wrong! My RS232 adapter has a wrong chip!

It must to have a MAX3232 chip!

Anyway, thanks for your answers!
Locked