Git Product home page Git Product logo

Comments (18)

carsonfee avatar carsonfee commented on June 2, 2024 1

netty-common-4.1.94.Final.jar is in my lib folder

Its a Pi 4B.
I'll try running directly on the pi, I need to spin up a linux build on my PC

openjdk version "17.0.10" 2024-01-16
OpenJDK Runtime Environment (build 17.0.10+7-Debian-1deb12u1)
OpenJDK 64-Bit Server VM (build 17.0.10+7-Debian-1deb12u1, mixed mode, sharing)

from bms-to-inverter.

ai-republic avatar ai-republic commented on June 2, 2024

Have you downloaded the latest Configurator application?

from bms-to-inverter.

carsonfee avatar carsonfee commented on June 2, 2024

Yes I have

from bms-to-inverter.

ai-republic avatar ai-republic commented on June 2, 2024

Please get the new Configurator app again. I've tested it and it works fine for me

from bms-to-inverter.

carsonfee avatar carsonfee commented on June 2, 2024

got latest configurator. couldn't do a clean install as the BMS tab was still empty. I copied my config.properties to the location of the new configurator and ran again. it read the configuration and I updated and did a clean install. the install window was also blank but I watched files get added and closed the window when it stopped adding files. ran ./start and the web server fails. I'm attaching the log
start.log

from bms-to-inverter.

ai-republic avatar ai-republic commented on June 2, 2024

Just tested the Configurator app on my Pi and also there it works.

2024-03-18-144833_1024x768_scrot

The Webserver won't run if the BMS-to-Inverter application is not running. You need to select the Webserver in the Configurator and it will automatically also select the MQTT broker and client.

Have you tried to run the Configurator on a PC or laptop and then transfer the installation folder per e.g. WinSCP or Putty to the Pi?

from bms-to-inverter.

carsonfee avatar carsonfee commented on June 2, 2024

I have the gui working now. something is messed up with file permissions. if I run sudo configurator.jar all of the dialogs are blank. I tried chmod 777 and ran sh configurator. the gui is correct now but it fails to write the configuration and also fails to install. doing a combination of adding a config folder and a temp folder seemed to let me save and clean install. The web server is still crashing however. here's a new log :

b2log.log

from bms-to-inverter.

ai-republic avatar ai-republic commented on June 2, 2024

Ok, that is strange. I will have a look at that tomorrow.

The crash of the webserver is due to the Bms-to-Inverter application (and its MQTT broker) not running or not started in time.
Be sure to have the Webserver, MQTT Broker and MQTT Client enabled in the Services tab of the Configurator.
Maybe try to run the app seperately first and then the webserver.

In your installation folder run:

java -DconfigFile=config/config.properties -Dlog4j2.configurationFile=file:config/log4j2.xml -jar lib/bms-to-inverter-main-0.0.1-SNAPSHOT.jar

and then in another terminal when that is started and running:

java -jar lib/webserver-0.0.1-SNAPSHOT.jar --spring.config.location=file:config/config.properties

from bms-to-inverter.

carsonfee avatar carsonfee commented on June 2, 2024

the bms-to-inverter application fails to run:

bms_cli.log

from bms-to-inverter.

ai-republic avatar ai-republic commented on June 2, 2024

Could you please replace your log4j2.xml in your config folder with this one (please remove the suffix .txt):
log4j2.xml.txt

and run the program again to get more information. It is very strange that there is not more in the log.

from bms-to-inverter.

carsonfee avatar carsonfee commented on June 2, 2024

here you go.
newlog.log

from bms-to-inverter.

ai-republic avatar ai-republic commented on June 2, 2024

It looks like your install did not finish downloading all the libraries. Please check your lib directory in the installation folder. I'm pretty sure its missing a file called netty-common-4.1.94.Final.jar.

But back to the problem of this issue:

  1. Have you tried to run the Configurator application on a PC? How does it look there? Then you can copy the files over via SCP or a USB stick.
  2. Have you tried running the_Configurator_ application directly on the PI without using VNC but a connected monitor?
  3. Could you tell me what PI model you are using and which Java is installed (java -version in the terminal)

I'm sure we'll find the cause of this now pretty quickly. I've tested the Configurator application from here now on 3 Pi's (3B, 4B and 5) and its working on all 3, including PC.
My guess it might be a problem with the VNC.

from bms-to-inverter.

carsonfee avatar carsonfee commented on June 2, 2024

running directly on the Pi the configurator worked correctly without issues but I still have the crash in bms-inverter

from bms-to-inverter.

ai-republic avatar ai-republic commented on June 2, 2024

Still the java.lang.ClassNotFoundException: io.netty.util.internal.PlatformDependent exception?
Could you please delete the .m2 folder in your home folder and also delete your installation folder and do a fresh Clean install again and be sure to enable the Webserver, the MQTT Broker Server and MQTT Producer services.
Maybe the Netty Jar file is corrupt due to a incomplete download.

from bms-to-inverter.

carsonfee avatar carsonfee commented on June 2, 2024

did a clean install on PC and copied over to the PI. it's running again but the can info is still wrong on the web page. A can dump does look correct but not the values displayed on the page

image

from bms-to-inverter.

carsonfee avatar carsonfee commented on June 2, 2024

can0 35E [8] 4C 45 4F 43 48 20 20 20 'LEOCH '
can0 359 [8] 00 00 00 00 04 50 4E 00 '.....PN.'
can0 351 [8] 34 02 D0 07 A0 0F B0 01 '4.......'
can0 355 [8] 42 00 64 00 00 00 00 00 'B.d.....'
can0 356 [8] CE 14 F7 FF BE 00 00 00 '........'
can0 35C [8] C0 00 00 00 00 00 00 00 '........'

from bms-to-inverter.

ai-republic avatar ai-republic commented on June 2, 2024

Hi,
can you confirm that the Configurator is working? Because then I would close this issue and continue the discussion in the issue #20

from bms-to-inverter.

carsonfee avatar carsonfee commented on June 2, 2024

Yes. Configurator is working correctly. We can close this

from bms-to-inverter.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.