Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Os to run DalyLog #2

Open
danielforster opened this issue Feb 6, 2021 · 34 comments
Open

Os to run DalyLog #2

danielforster opened this issue Feb 6, 2021 · 34 comments

Comments

@danielforster
Copy link

Hi,

What OS will DalyLog run on? I see that several people have it running on an RPi4, would that mean it runs on Raspbian Buster with Desktop?

Many thanks

Dan

@njfaria
Copy link
Owner

njfaria commented Feb 6, 2021

They call the Operating system now Raspberry PI OS.
Dalylog runs on Raspberry 2,3,4 and should run on the zero too.

@danielforster
Copy link
Author

Wonderful, I shall try today on a Raspberry Pi Zero and come back with the outcome. Many thnaks for coming back so fast - Take care - Daniel

@danielforster
Copy link
Author

Nuno,

Can you give me some install details for installing DalyLog?

I have a Raspbery Pi 4 Model B (4GB) and also to try, a Raspberry Pi Zero. I have downloaded the latest Raspian image and burnt this to two speperate micro sd cards (one for the RPi4 and one for the RPI Zero). I have these booting all fine. I have also downloaded the DalyBmsMonitorV1.1.5 zip. Do I need to unzip this before installing on the Pi OS?

Many thanks in advance.

Daniel

@njfaria
Copy link
Owner

njfaria commented Feb 8, 2021 via email

@danielforster
Copy link
Author

uno,

It all works fine :-). Very happy. I have gone with the RPi Zero which is very small and connects perfectly. My next ask is can you give some detailed instructions on how to run on reboot, so it always run, as I am running with no monitor. As always, your expert help is much appreciated (and your English is just perfect by the way).

Take care,

Daniel

@njfaria
Copy link
Owner

njfaria commented Feb 9, 2021 via email

@njfaria
Copy link
Owner

njfaria commented Feb 10, 2021

I just realized i didnt copy the setup.sh into the zip file..
Stay tuned for update

@danielforster
Copy link
Author

Nuno,

I did see that and was going to say something, but glad you have come back.

It all works really well on the Pi Zero. Interestingly I do note that only one of the mini USB sockets (with suitable adapter) works with the Daly USB-UART lead, the one more central to the Pi Zero, both work for power though, this stumped me for a while. I have made 4 Pi Zeros with the software you have coded, one for each of my 16 cell, 105 A 48V battery packs, and these are now reporting to MQTT. Today I will make up a nice dashboard for them all.

Again, a big thankyou for such excellent work, you are a clever person indeed.

Take care,

Dan

@spilegi
Copy link

spilegi commented Feb 11, 2021

Is there any source code on this? I'd love to see how you communicate with the BMS.

@njfaria
Copy link
Owner

njfaria commented Feb 11, 2021

@danielforster
i updated the release.. setup.sh is included
just unzip to dalylog folder
@spilegi
no source for this, but if you are interested in the protocoll i will search for the link.

@spilegi
Copy link

spilegi commented Feb 11, 2021

@njfaria Ok that would be cool I'm having trouble interacting with the can bus, and was curious on how you did that. I'm just looking to dump the cell values to a DB or even a text file.

@spilegi
Copy link

spilegi commented Feb 11, 2021

I use a program called mbpoll to interact with modbus. I was hoping there would be something similar for can, but your project seems to be the closest thing i see. Sorry for the double post.

@danielforster
Copy link
Author

Cheers Nuno. I will sort in the morning and come back to confirm all is good.

Take care,

Dan

@danielforster
Copy link
Author

Nuno,

Just added the .sh file, I do note that it is zipped with NO EXECUTE command flag, so I had to right click and change to EXECUTE for it to then make the required changes.

Have a lovely weekend.

Daniel

@danielforster
Copy link
Author

Nuno,

All going well. One question. My Dalylog RPi's report to my MQTT Server every 5 or 6 seconds (or so). Is it possible to reduce this rate to, say, every minute or couple of minutes?

Cheers

Dan

@spilegi
Copy link

spilegi commented Feb 16, 2021

@njfaria
Actually I realized this software does exactly what I want, I just wasn't familiar with mqqt. It appears to only run on arm, not intel. Is it something I'm doing wrong? or is it only compiled for arm?

@njfaria
Copy link
Owner

njfaria commented Feb 16, 2021 via email

@mrgram
Copy link

mrgram commented Mar 9, 2021

Hi Nuno! This is awesome, this solved a lot of inconveniences I had. One of the things I'm using it is in nodered to automate if the pack should be charged or not, and at what percentage, at night (low tariff) based on the weather for the next day (% of sun)
I noticed that after a day or 2, I stop receiving mqtt data in nodered. And just ticking the mqtt box in dalylog solves the problem for a couple of more days. Is anyone having this? issue?
Is it possible to comunicate the real SOC to inverter? Im using the pip5048mg inverter.
thanks!

@danielforster
Copy link
Author

Hi, If it helps, some tips I have found when using this really good software:-

  1. It wont run on a Pi 0, they seem to be too slow and dont give all the readings to MQTT all the time.
  2. On a Pi 4, it works perfectly, like it sings along.
  3. DalyLog seems to not like the MQTT link going down, if you are using WiFi on the Pi's, make sure its really strong. On the Pi 4's, I use the LAN wired connection, which is much better. Ditto if the MQTT server stops for some reason, DalyLog seems not want to reconnect, but if closed, then reopened, it runs again perfectly.

Dan

@ROQM76
Copy link

ROQM76 commented Apr 24, 2021

How do i monitor multiple daly bms's? Do i need multiple pi4's?

@danielforster
Copy link
Author

I use one pi 4 per BMS, 4 battery backs so 4 pi 4's. Get one pi working perfectly then duplicate the sdcard for the other pi's...

@njfaria
Copy link
Owner

njfaria commented Apr 26, 2021

uh, thats quite an investment. you may try to make separate folders. duplicate the folder.
change the prefix in the config separator. it will send to MQTT with a different name.
about the reconnections to MQTT, i am solving that problem if the broker is not available for some reason, to make a reconection.

@danielforster
Copy link
Author

Nuno,

I have 4 seperate batteries and like to keep them all individual. The RPi's cost a small amount compared to the 64 LifPo4 cells, and 4 BMS units. They all work really well together too. I do suffer from the odd MQTT disconnect, and like you say, DalyLog does not reconnect, meaning I remote in (VNC) when this happens and close/reopen DalyLog.

Other than that, its very good software, brilliant in fact.

Daniel

@mrgram
Copy link

mrgram commented Apr 27, 2021

Great!
I didn't think in using 2 instances to monitor more than one pack! I assumed that since they are connected in parallel it didn't really matter, but regarding detailed data its a great trick! thanks!
About the MQTT disconnections I still have them also, but its better since I overclocked my raspberry, happening approximately only once a week now. I use twitter node to notify me when SOC data as stopped being received, and then, also with vnc I reconnect dalylog. Its good news Nuno that you are working on it, thanks!

Thanks to this software I've been able, with nodered, to automate my home consumption to 100% green!

Before, because the SOC declared by the inverter wasn't correct I had it switching to grid mode during peak hours when in reality I still had a good SOC. One great thing also is the ability charge to a specific % depending on the weather(sun) prevision for the next day.

Thanks again

@danielforster
Copy link
Author

Nuno,

When you do the MQTT reconnect issue, is there any chance of a field in DalyLog to pick the time that the MQTT updates are sent? Maybe in minutes (to keep traffic down I would chose something like 10 mins or so).

Cheers

Daniel

@njfaria
Copy link
Owner

njfaria commented May 8, 2021

@danielforster @mrgram i uploaded a new version which should have the issues with MQTT solved.
a new field box allows to change the update rate.
It will give an error if you copy it over the old version and execute it, cause the config file has changed. Just delete your old config file before starting the software, and reconfigure to your values.

@danielforster
Copy link
Author

Nuno,

Superb :-).

Been testing for 12 or so hours on all four of my battery pack/Pi's and all good. The MQTT update time interval addition is perfect.

Many thanks for your hard work. You are a star...

Take care,

Daniel

@danielforster
Copy link
Author

Nuno,

Quick update. DalyLog stays connected to MQTT perfectly now, no dropping connection at all, so a huge thanks :-)

Take care,

Daniel

@spilegi
Copy link

spilegi commented May 12, 2021

I can confirm the same. Great update. It appears to resolve another issue I was seeing where the first 2 or 3 cell's would sometimes display zero values.

@Eumobong
Copy link

Which communication interface if the Daly bms are you guys using? Uart or CAN?

@danielforster
Copy link
Author

Hi,

UART is what I am using, in fact, I have the BT module plugged into the CAN, the LightBoard plugged in, the the Pi on the UART. All outputs work together fine, while outputting via DalyLog I can still make adjustments via the iPhone app (to the BMS settings) and see the battery level on the light board.

As a test for the updated v1 of DalyLog, my internet went down and came back 6 hours later, DalyLog reconnected to my MQTT server (some 4000 miles distant - via draytek/draytek router tunnel) without delay.

Daniel

@danielforster
Copy link
Author

Nuno,

A huge thanks for adding he battery status.

Take care.

Daniel

@antoncatalin
Copy link

Hello,
I have one raspberry pi 4 with ICMPI instaled OS from https://iccsoftware.co.za/. I tried to connect to a BMS daly with dalylog but I don't know what the communication settings are. Can you help me?

@mrgram
Copy link

mrgram commented Mar 28, 2022

Ola @njfaria, I come back with the issue that some had and may still have, I tried to make it start on boot several ways but I cant figure it out. Is anyone having this issue? I tried to us alternative methods like crontab, rc.local file, etc... but nothing.
Any help would be much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants