Go to advanced search

by CharlesGodwin
Mon Oct 14, 2019 8:44 pm
Forum: Other projects
Topic: Management of multiple tasks
Replies: 3
Views: 209

Re: Management of multiple tasks

I vote for MQTT

Then you can link disjoint pieces that can run as separate processes or even on separate machines. AND the pieces can be easier to debug. I just finished a IoT project with temperature sensors that uses MQTT and a common JSON structure. all the little bits were easy to build and test.
by CharlesGodwin
Sat Aug 24, 2019 12:04 pm
Forum: Automation, sensing and robotics
Topic: Using a Pi to Log Data in a Magnum Energy System
Replies: 122
Views: 49374

Re: Using a Pi to Log Data in a Magnum Energy System

@dogman1155

I implemented a serial modbus version of my Morningstar controller interface. It has been running for a day with no faults. In the same interval my TCP version has had 8 faults. The only downside is the two must be near each other. That is not a problem for me.
by CharlesGodwin
Tue Aug 13, 2019 12:23 pm
Forum: Automation, sensing and robotics
Topic: Using a Pi to Log Data in a Magnum Energy System
Replies: 122
Views: 49374

Re: Using a Pi to Log Data in a Magnum Energy System

Replies may be out of order. I only discovered the USB/RS485 dongle about 18 months ago. Before that i was using an expensive add on board that became obsolete as the vendor stopped upgrading the Pi software. I have recently added support for a RS485 HAT as the HAT behaves slightly different that th...
by CharlesGodwin
Fri Aug 09, 2019 12:23 pm
Forum: Automation, sensing and robotics
Topic: Using a Pi to Log Data in a Magnum Energy System
Replies: 122
Views: 49374

Re: Using a Pi to Log Data in a Magnum Energy System

It's a pity that Magnum is so secretive about their protocol. There are days when I wonder if they are concerned about trade secrets or just embarrassed about its design or lack of design. It is a very rigid protocol that is hard to expand. In fairness to them it was developed in early days of moder...
by CharlesGodwin
Thu Aug 08, 2019 12:17 pm
Forum: Automation, sensing and robotics
Topic: Using a Pi to Log Data in a Magnum Energy System
Replies: 122
Views: 49374

Re: Using a Pi to Log Data in a Magnum Energy System

I have limited experience with multiple inverter setup. I had one user of my software https://gitlab.com/Magnum_Energy/distribution that had a multi-inverter and multi PT-100 setup but due to circumstances outside the scope of this software he was unable to implement and validate the software. Howev...
by CharlesGodwin
Tue Apr 02, 2019 6:46 pm
Forum: General discussion
Topic: Question on a code design
Replies: 2
Views: 168

Re: Question on a code design

<deleted by author>
by CharlesGodwin
Wed Mar 27, 2019 9:14 pm
Forum: Automation, sensing and robotics
Topic: Using a Pi to Log Data in a Magnum Energy System
Replies: 122
Views: 49374

Re: Using a Pi to Log Data in a Magnum Energy System

It's not as complicated as it sounds. I have a small function that does all the fiddly calculations and it's also code that's forgotten once it works.
by CharlesGodwin
Tue Mar 26, 2019 6:35 pm
Forum: Automation, sensing and robotics
Topic: Using a Pi to Log Data in a Magnum Energy System
Replies: 122
Views: 49374

Re: Using a Pi to Log Data in a Magnum Energy System

I'm going to try to explain getting battery voltage from MorningStar. It's not simple and I fear my language skills will get in the way. Voltages, as I mentioned in a prior post, are based on several values. Referring to page 3 of the document you referenced. A voltage value( adc_vb_f_med) is the va...
by CharlesGodwin
Mon Mar 25, 2019 12:35 pm
Forum: Automation, sensing and robotics
Topic: Using a Pi to Log Data in a Magnum Energy System
Replies: 122
Views: 49374

Re: Using a Pi to Log Data in a Magnum Energy System

The Morningstar code is not on Gitlab - yet. I hadn't considered it as no one asked. But I can share if you send an email to magnum-at-godwin-dot-ca. I'll look for your email. The code is a bit different that what I would have sent you before. The difference is not in reading the ModBus information ...
by CharlesGodwin
Sun Mar 10, 2019 3:51 pm
Forum: General discussion
Topic: Is there a cheap and reliable UPS for raspberry pi 3b+?
Replies: 52
Views: 2948

Re: Is there a cheap and reliable UPS for raspberry pi 3b+?

If it's a cheap and reliable UPS you want, I think cheap OR reliable is your only choice. I think you can find some for under a $US 100 but unless you buy one that includes a communications interface so the Pi can know the power is about to go away as the UPS batteries are failing then the UPS has l...
by CharlesGodwin
Fri Mar 01, 2019 9:51 pm
Forum: Automation, sensing and robotics
Topic: Water Depth Sensing
Replies: 10
Views: 2045

Re: Water Depth Sensing

I have a friend who uses a laser based device to measure distance from the laser to the surface of the water, which he reads in a vertical pipe to reduce wave action. Once calibrated the water level change it is easily tracked. Measuring the depth of a natural body of water is problematic as the bot...
by CharlesGodwin
Sun Feb 24, 2019 4:22 pm
Forum: Networking and servers
Topic: autoSSH
Replies: 16
Views: 2632

Re: autoSSH

I've used reverse tunnelling for a few years but recently came upon this solution. https://blog.kylemanna.com/linux/ssh-reverse-tunnel-on-linux-with-systemd/ I like it because: It's easy to setup It's easy to manage systemd takes care of the monitoring, restarts, logging, etc. it works ;) When I swi...
by CharlesGodwin
Sun Feb 24, 2019 1:56 pm
Forum: Automation, sensing and robotics
Topic: Using a Pi to Log Data in a Magnum Energy System
Replies: 122
Views: 49374

Re: Using a Pi to Log Data in a Magnum Energy System

Hi I hope my system can help. The software as published will handle all your Magnum Energy (ME) components but, alas, not the Outback Energy ASX-Port. I presume, since you have managed to deal with the ME magweb device, that you have programming skills. I don't think it would be hard to extend the r...
by CharlesGodwin
Thu Jan 10, 2019 10:07 pm
Forum: Automation, sensing and robotics
Topic: Using a Pi to Log Data in a Magnum Energy System
Replies: 122
Views: 49374

Re: Using a Pi to Log Data in a Magnum Energy System

This is addressed to anyone using my software. I haven’t published any changes to my software but I plan a cleanup. More like pruning dead branches. Take a look at this https://gitlab.com/Magnum_Energy/distribution/blob/master/CHANGES_FOR_2.0.md and tell me if there are any problems. I’m trying to m...
by CharlesGodwin
Thu Dec 27, 2018 7:37 pm
Forum: Raspbian
Topic: Mirror director directing to broken repository mirror
Replies: 5
Views: 859

Re: Mirror director directing to broken repository mirror

raspbian.mirror.colo-serv.net is still not responding
by CharlesGodwin
Thu Nov 29, 2018 1:07 pm
Forum: Automation, sensing and robotics
Topic: Using a Pi to Log Data in a Magnum Energy System
Replies: 122
Views: 49374

Re: Using a Pi to Log Data in a Magnum Energy System

I hope its' something simple.
Before you rebuild and replace I suggest you delete all your magnum*.jar files in the lib directory so there are no old rogue versions getting in the way.

Code: Select all

rm lib/magnum*.jar
If you hit glitches please email me as my responses can be quicker and more specific. Thanks
by CharlesGodwin
Mon Nov 19, 2018 4:54 pm
Forum: Automation, sensing and robotics
Topic: Using a Pi to Log Data in a Magnum Energy System
Replies: 122
Views: 49374

Re: Using a Pi to Log Data in a Magnum Energy System

@scott I notice that building extra plugins can be complicated if you need to checkout the entire source, add your code and then build a private version. That's a lot of work. My method is to have a separate project for just compiling the extra plugin code. I then build a jar file with a different n...
by CharlesGodwin
Mon Nov 19, 2018 2:53 pm
Forum: Automation, sensing and robotics
Topic: Using a Pi to Log Data in a Magnum Energy System
Replies: 122
Views: 49374

Re: Using a Pi to Log Data in a Magnum Energy System

@scott I am confused as all my tests with release 1.0.6 supports the Z. This morning I did the following: Note : There are some changes to prior build instructions. I will list them at the bottom. I am also attaching a log of all these activities. I created a new directory on a Pi I installed ant an...
by CharlesGodwin
Sun Nov 18, 2018 11:35 pm
Forum: Automation, sensing and robotics
Topic: Using a Pi to Log Data in a Magnum Energy System
Replies: 122
Views: 49374

Re: Using a Pi to Log Data in a Magnum Energy System

Strange. I did that earlier and it worked. The old code worked by just dropping the Z.

I'm still not near my PC
by CharlesGodwin
Sun Nov 18, 2018 11:10 pm
Forum: Automation, sensing and robotics
Topic: Using a Pi to Log Data in a Magnum Energy System
Replies: 122
Views: 49374

Re: Using a Pi to Log Data in a Magnum Energy System

I have not tested that way for a while. I use eclipse which is slightly different. I'll look at it later. I'm not near my PC.
by CharlesGodwin
Sun Nov 18, 2018 11:02 pm
Forum: Automation, sensing and robotics
Topic: Using a Pi to Log Data in a Magnum Energy System
Replies: 122
Views: 49374

Re: Using a Pi to Log Data in a Magnum Energy System

You said "rebuild" are you really building from source or downloading the files and running setup_1.0.6 or...?
by CharlesGodwin
Sun Nov 18, 2018 7:46 pm
Forum: Automation, sensing and robotics
Topic: Using a Pi to Log Data in a Magnum Energy System
Replies: 122
Views: 49374

Re: Using a Pi to Log Data in a Magnum Energy System

@scott

I may have a fix. Please try it and if it is working, I will officially release it.

for now, go to this branch page, read the instructions titled Update without internet, restore older version or install pre-release version, download the two Release_1.0.6 files, run setup, and test.
by CharlesGodwin
Sun Nov 18, 2018 5:05 pm
Forum: Automation, sensing and robotics
Topic: Using a Pi to Log Data in a Magnum Energy System
Replies: 122
Views: 49374

Re: Using a Pi to Log Data in a Magnum Energy System

I have tested and the problem is the 'Z'. It works, in a test setup, without the Z. This code, same as that in the server, works. DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSS"); String now = LocalDateTime.now().format(formatter); System.out.println(now); If yo...
by CharlesGodwin
Sun Nov 18, 2018 2:03 am
Forum: Automation, sensing and robotics
Topic: Using a Pi to Log Data in a Magnum Energy System
Replies: 122
Views: 49374

Re: Using a Pi to Log Data in a Magnum Energy System

Thoughts

1 does the server work if you don't override dateformat
2 are there any messages in the server log file
3 have you considered reformating the date downstream

I'll test tomorrow when I'm near my system
by CharlesGodwin
Mon Oct 22, 2018 1:37 pm
Forum: Automation, sensing and robotics
Topic: Using a Pi to Log Data in a Magnum Energy System
Replies: 122
Views: 49374

Re: Using a Pi to Log Data in a Magnum Energy System

@scott Yes, I can send you the Morningstar java. Just send me an email and I forward it to you. I do not want to publish it. But.... I think that code will be overkill as it deals in painful detail with extracting data from a ModBus interface. If you're looking for an example of inserting some extra...

Go to advanced search