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

Raspberry Pi, and an Instromet logger - USB/ serial adaptor

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
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Raspberry Pi, and an Instromet logger - USB/ serial adap

Post by steve »

Doesn't seem to have made any difference. I'm afraid I have no idea why this is happening now, when it was getting further than this previously.
Steve
Hobbyist
Posts: 89
Joined: Mon 30 Jun 2014 12:02 pm
Weather Station: Instromet Mk 3
Operating System: Raspberry Pi Zero & CumulusMX
Location: Kent

Re: Raspberry Pi, and an Instromet logger - USB/ serial adap

Post by Hobbyist »

Thanks Steve very frustrating.

Just in case I completely wiped my PI SD card and reinstalled Jessie/Mono V4 etc and reran just in case I had corrupted something in all the reloads of MX versions.
Unfortunately the end results were the same.

One of those 'funnies' of software and hardware.

Dave
Hobbyist
Posts: 89
Joined: Mon 30 Jun 2014 12:02 pm
Weather Station: Instromet Mk 3
Operating System: Raspberry Pi Zero & CumulusMX
Location: Kent

Re: Raspberry Pi, and an Instromet logger - USB/ serial adap

Post by Hobbyist »

Steve I have an update on MX which may or may not be a help!

Having been trying to get MX to run on a Raspberry PI as it seemed a great step forward in a stand alone system and reaching a stone wall.

I thought that it may be an idea to try the PI on Windows IOT just in case Jessie was the 'problem' however I read on one of your forum posts that you did not think that IOT net framework would work being a bit limited.

So long story short I fired up a windows 10 laptop, Windows 10, CumulusMX 3038 and the Instromet logger.

It all worked first time, all web updates seemed to happen where and when they should and the dashboard runs perfectly.

So the query is why does Windows 10 cope when the PI and Jessie don't.

Does that help at all?

Dave
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: Raspberry Pi, and an Instromet logger - USB/ serial adap

Post by steve »

Perhaps some difference between the serial port code in Mono and .Net - the code in Cumulus is exactly the same. Or a difference in the USB hardware or drivers.
Steve
Hobbyist
Posts: 89
Joined: Mon 30 Jun 2014 12:02 pm
Weather Station: Instromet Mk 3
Operating System: Raspberry Pi Zero & CumulusMX
Location: Kent

Re: Raspberry Pi, and an Instromet logger - USB/ serial adap

Post by Hobbyist »

Thanks Steve.

I know that there have been several instances of folk with various Weather stations having connection problems due to MONO versions.

At present on the PI2 I am running Mono version 4.0.2.

Is it possible that a earlier version or a later version of Mono may actually work?

If you think Mono could be a possibility for my problem can you suggest a range of version to try out?

Thanks

Dave
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: Raspberry Pi, and an Instromet logger - USB/ serial adap

Post by steve »

I'm afraid I have no idea whether one version of mono would be better than any other version. And there are so many differences between the Windows platform and the Pi that it's difficult to suggest where to start. It really requires someone with an understanding of serial port operation, particularly where USB converters are involved, to look at the raw serial communication to determine what the difference is, and why it is different.
Steve
Hobbyist
Posts: 89
Joined: Mon 30 Jun 2014 12:02 pm
Weather Station: Instromet Mk 3
Operating System: Raspberry Pi Zero & CumulusMX
Location: Kent

Re: Raspberry Pi, and an Instromet logger - USB/ serial adap

Post by Hobbyist »

Steve I have been having a 'play' and seem to be making some progress.

I have fitted a raspberry pi3 with a 32GB Samsung micro SD card.

Loaded MX 3038 and set up Jessie with Mono Version 3.2.8.

When I fired the system up with NO old data in the data folder and resetting the Instromet EEPROM pointer using the WRST command the system seemed to run. I was able to watch the gauges on a browser window. The data flow on the logger flashed as normal. I allowed the system to run until it also loaded a correct web page and then shut it sown. The attached zip file ending 114646 shows that data.
I then tried to update the Data folder with a copy of all my old data from my Cumulus1 data folder but this seemed to fail to run although data flow seemed to be happening as the led was flashing on the logger. The attached zip file 112927 is a copy of the failing MXdiags file.

I then reset the logger EEPROM pointer and retried the system, it once again seems to be running. So far an hour or so. The MXdiags zip file 180628 shows this run.

It maybe the fact that I have gone back to an early version of Mono 3.2.8 from 4.0.2 or a combination of the resetting of the Logger EEprom pointer.

When you get a 'spare' minute you may get a clue from the attached files.

Many thanks

Dave
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: Raspberry Pi, and an Instromet logger - USB/ serial adap

Post by steve »

It was apparently getting the same archive log back from the station every time - as if the 'progress logs' command was having no effect - this is the command which is supposed to move the pointer on to then next archive record, as you may know. This is an issue I have seen several times before, and Instromet have sent me a station to investigate this kind of problem (it hasn't arrived yet). I'm pretty sure the problem is with the station and not Cumulus, but we will see. The logger is actually acknowledging that it has seen the command, so that seems pretty conclusive to me that the problem is in the logger. This evidence has been presented to Instromet previously, but for some reason their hardware guy is unable to fix it, or doesn't accept there is a problem, or whatever.

Don't forget that there is a bug in MX which causes it to set the logger interval to seconds instead of minutes - this may have some undesired affect (although the station should in theory cope with this, it's allowed in the protocol spec).

Assuming you know how to drive the logger using a terminal program (that's how you reset the pointer?) you could try this yourself - do a RDLG,1 to read a logger entry, then do a PRLG,1 and another RDLG,1 to get another logger entry. You should get a different entry, but when Cumulus does it, it gets the same one again - entry 266301 timestamped 11:55:02 12/05/2106.
Steve
Hobbyist
Posts: 89
Joined: Mon 30 Jun 2014 12:02 pm
Weather Station: Instromet Mk 3
Operating System: Raspberry Pi Zero & CumulusMX
Location: Kent

Re: Raspberry Pi, and an Instromet logger - USB/ serial adap

Post by Hobbyist »

Thanks Steve for the fast response and I am glad that Instromet have shipped the 'test' logger that should help in diagnosis.

As for the RDLG & PRLG commands I can certainly hit the logger with those commands using my Windows based machine that Cumulus 1 is running on but I suspect that it will possibly just work!

I have a suspicion that there is a funny between the Instromet and CumulusMX when 'talking' on the Raspberry pi set up.

I am not really sure how to interrogate the logger using the PI as my understanding of Pi/Raspian is not too good.

I will see what I can find out.

Thanks again
Dave

.
Hobbyist
Posts: 89
Joined: Mon 30 Jun 2014 12:02 pm
Weather Station: Instromet Mk 3
Operating System: Raspberry Pi Zero & CumulusMX
Location: Kent

Re: Raspberry Pi, and an Instromet logger - USB/ serial adap

Post by Hobbyist »

Steve an update on Instromet logger commands.

The RDLG command works in all modes, RDLG produces a complete log line by line.

RDLG,1 produces the first line of the log.
RDLG,3 produces the first 3 lines etc etc.

LGCT produces the number of logs available with its checksum.

The PRLG command does not seem to progress the log count at all.

In a test using a Windows PC connected to the logger I received the following data......

RDLG,1 produced rdlg,266450,1,600, - - - - - - - - -
PRLG,1 produced PRLG,1,193
RDLG,1 produced rdlg,266450,1,600, - - - - - - - - -

It would seem that the advance log after reading command is not working, although occasionally reading through an MXDIAGS file, I can see an increment of 1 in the log count before it returns to the original value.
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: Raspberry Pi, and an Instromet logger - USB/ serial adap

Post by steve »

Instromet have been sending me various loggers for testing - there are (at least) two versions of the board, and there are also different versions of the firmware.

The 'old' logger I have also exhibits problems with the PRLG command, so the board is unusable.

I have a new logger where they have tried reducing the baud rate to 19200, and I have been testing that with Cumulus 1.9.4 and Cumulus MX. This new logger has been working fine, both on Windows and on the Pi. I have reported this back to Instromet, so I expect I will be hearing from them on Monday.

I will need to release new versions of Cumulus 1.9.4 and MX to work with the 19200 baud rate boards., and I should be doing that in the next few days, once I have heard back from Instromet.
Steve
Hobbyist
Posts: 89
Joined: Mon 30 Jun 2014 12:02 pm
Weather Station: Instromet Mk 3
Operating System: Raspberry Pi Zero & CumulusMX
Location: Kent

Re: Raspberry Pi, and an Instromet logger - USB/ serial adap

Post by Hobbyist »

That is sounding very encouraging Steve and would tend to answer some the queries raised when connecting to the Instromet logger.

There is potentially light at the end of the tunnel.

Thanks for the update.

Dave
Jonathan Jefferies
Posts: 25
Joined: Fri 22 Apr 2016 5:38 pm
Weather Station: Instromet
Operating System: Raspberry pi
Location: Northamptonshire

Re: Raspberry Pi, and an Instromet logger - USB/ serial adap

Post by Jonathan Jefferies »

Hi

I too have an Instromet station and logger since February this year, i sent back the logger last month as was not working at all since ive had it and running with the new version of cumulus. Its the new board not the old which apparently have been told, the old board was working fine. I have posted on this forum before about the datalogger not working and its interesting to see what is happening as i don't hear nothing from Instromet on this problem which at times makes me frustrated. I have had my weather website setup and linked to WOW since February now and still cant get the live data and download because of the logger problem.
I have a PI and im hoping when the logger returns working i can use mx and have the live data running continuous as the pi will be on and not the pc.
Check out raundsweather.co.uk my weather website
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: Raspberry Pi, and an Instromet logger - USB/ serial adap

Post by steve »

Instromet have asked to me tell anyone having problems with their logger to get in touch with Instromet, and they will swap their logger for one of the new ones which run at 19200.

I'll be uploading versions of Cumulus 1.9.4 and MX which work with these new loggers shortly.
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: Raspberry Pi, and an Instromet logger - USB/ serial adap

Post by steve »

I've uploaded new builds of Cumulus 1.9.4 and MX with support for the new loggers which run at 19200 baud. The MX build also fixes the bug where the logger interval is set in seconds rather than minutes.
Steve
Locked