Closed Redzone003 closed 1 year ago
what do you mean by "status command"?
what do you mean by "status command"?
service status I guess
@Redzone003 post result fortuneteller is missing
After the execution of : sudo systemctl status invertermon
After the execution of :
sudo systemctl status invertermon
Posing result from terminal help others to see what you see.
i'm assuming the binary craps out because you've downloaded the incorrect binary for your device's architecture. what are you running this on?
execute the binary manually ./InverterMon.Server
and post the output as well like @Saentist suggested.
the more detail you give us, easier it is to get an idea what's happenning.
it's running on an old intel proccesor - i3/370m and i've downloaded the "linux-x64" zip file. like you sugested, after the execution of the binary, here is the result:
info: FastEndpoints.StartupTimer[0] Registered 7 endpoints in 1364 milliseconds. warn: InverterMon.Server.BatteryService.JkBms[0] trying to open bms port at: /dev/ttyUSB0 fail: InverterMon.Server.InverterService.CommandExecutor[0] inverter connection failed: UnauthorizedAccess_IODenied_Path, /dev/hidraw0 fail: InverterMon.Server.InverterService.CommandExecutor[0] inverter connection failed: UnauthorizedAccess_IODenied_Path, /dev/hidraw0 fail: InverterMon.Server.InverterService.CommandExecutor[0] inverter connection failed: UnauthorizedAccess_IODenied_Path, /dev/hidraw0 warn: InverterMon.Server.BatteryService.JkBms[0]
I've executed the binary with sudo and now the server started, but something it's not good.When i try to enter in setting from the app, nothing happens (the page stays on loading), and meanwhile in terminal i have the following error:
fail: Microsoft.AspNetCore.Server.Kestrel[13]
Connection id "0HMPDDQBS8M29", Request id "0HMPDDQBS8M29:0000005B": An unhandled exception was thrown by the application.
System.Threading.Tasks.TaskCanceledException: TaskCanceledException_ctor_DefaultMessage
at InverterMon.Server.InverterService.Commands.Command1.WhileProcessing(CancellationToken c) at InverterMon.Server.Endpoints.Settings.GetChargeAmpereValues.Endpoint.HandleAsync(CancellationToken c) at FastEndpoints.Endpoint
2.ExecAsync(CancellationToken ct)
at FastEndpoints.Endpoint2.ExecAsync(CancellationToken ct) at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication
1)
sudo ./InverterMon.Server
regular user do not have full access to all devices
Yes, i've done it allready...but i encountered another issue - please see in the previous post.
still less then needed information What os you use? What connection to inverter?
Ubuntu 20.4, and connection through micro usb cable. I can always change the operation system if you consider...
InverterMon.Server.Endpoints.Settings.GetChargeAmpereValues.Endpoint.HandleAsync()
this leads me to believe the inverter didn't respond in a timely mannery when querying for the charge current values.
@Redzone003 what's your inverter make/model?
getting the live status works fine yes? only issue is you can't load the inverter settings page yes?
most likely your inverter doesn't support the &
commands for retrieving charge current values.
you might be able to verify that by using a commandline app such as this: https://github.com/jblance/mpp-solar
try these command using the above and see if it returns any results:
mpp-solar -p /dev/hidraw0 -c QMCHGCR -I
mpp-solar -p /dev/hidraw0 -c QMUCHGCR -I
if those commands fail also, i'm afrais you're out of luck with your inverter.
Live status works fine only the first time when open the app, and then never refresh. The inverter is a mpp solar - 6048mt. I will try the commands you sugested and i will provide a feedback. Thank you.
Is Inverter use protocol PI30MAX
?
Use mpp-solar -p /dev/ttyUSB0 --getDeviceId
(replace /dev/ttyUSB0 with correct port for your device)
Parameter Value Unit deviceid PI30:055:VMIII-6000
Parameter Value Unit
max_utility_charging_current 002 A
unknown_value_in_response_1 010
unknown_value_in_response_2 020
unknown_value_in_response_3 030
unknown_value_in_response_4 040
unknown_value_in_response_5 050
unknown_value_in_response_6 060
unknown_value_in_response_7 070
unknown_value_in_response_8 080
unknown_value_in_response_9 090
unknown_value_in_response_10 100
sudo mpp-solar -p /dev/hidraw0 -c QMUCHGCR -P
Parameter Value Unit
daly Daly BMS protocol handler
daly40 Daly40 BMS protocol handler
jk02 JK02 - JKBMS BLE 2 byte data communication protocol handler
jk04 JK04 - JKBMS BLE 4 byte data communication protocol handler
jk232 JKBMS RS232 serial communication protocol handler
jk485 JKBMS RS485 serial communication protocol handler
jkv11 JKBMS BLE communication protocol handler software v11.x
pi16 PI16 protocol handler
pi17 PI17 protocol handler
pi17infini PI17INFINI protocol handler
pi18 PI18 protocol handler
pi18sv PI18 protocol handler for Easun SV inverters
pi30 PI30 protocol handler
pi30max PI30 protocol handler for LV6048MAX and similar inverters
pi30mst PI30 protocol handler for PIP4048MST with 3 PV and similar inverters
pi30revo PI30 protocol handler for REVO and similar inverters
pi41 PI41 protocol handler
ved VED protocol handler for Victron direct SmartShunts
sudo mpp-solar -p /dev/hidraw0 -c QMUCHGCR -P
Command: protocols help - List available protocol modules Parameter Value Unit daly Daly BMS protocol handler daly40 Daly40 BMS protocol handler jk02 JK02 - JKBMS BLE 2 byte data communication protocol handler jk04 JK04 - JKBMS BLE 4 byte data communication protocol handler jk232 JKBMS RS232 serial communication protocol handler jk485 JKBMS RS485 serial communication protocol handler jkv11 JKBMS BLE communication protocol handler software v11.x pi16 PI16 protocol handler pi17 PI17 protocol handler pi17infini PI17INFINI protocol handler pi18 PI18 protocol handler pi18sv PI18 protocol handler for Easun SV inverters pi30 PI30 protocol handler pi30max PI30 protocol handler for LV6048MAX and similar inverters pi30mst PI30 protocol handler for PIP4048MST with 3 PV and similar inverters pi30revo PI30 protocol handler for REVO and similar inverters pi41 PI41 protocol handler ved VED protocol handler for Victron direct SmartShunts
logic is to put protocol pi30max for example
Live status works fine only the first time when open the app, and then never refresh.
@Saentist does this sound like a connection dropping issue? probably related to usb/power/interference?
@Redzone003 can you post what the terminal shows after executing the InverterMon.Server
?
just wanna see if there's any errors related to usb connection being dropped.
I've attached 2 pictures, one with the app in the settings menu and another one, with the terminal, after executing the setting button from the app, or after i hit refresh on the page.
In second terminal window
sudo dmesg -wHT
when
sudo ./InverterMon.Server
is started.
Here is the log attached.. log.zip
can't see anything obviously wrong in the log. so i'm kinda stumped as to why it shows the live status once and stops. most likely some sort of communication break with the inverter. this kind of issue is really difficult to debug unless i have access to the particular inverter+computer combo in question. what i can suggest is to try it on a different linux computer if you have one handy. i used to get intermittent connection issues with a raspberry-pi i had and it got sorted by itself when i switched to using an orange-pi.
i'll close this issue since there's not much else i can offer.
you guys can keep chatting if you like and see if something can be sorted out.
I've tried with another computer and this time i installed linux mx 21.2 - the same result. What configuration do you use, guys ? What os ?
Try with rg45>rs232 cable with come with inverter
I use Ubuntu 20.04 on old Asus AiO, without problems.
WatchPower also work under Linux LINK Enable debug, this will show all used commands.
@Redzone003 sooo... i just bought myself a PIP 3624 MT and now i have the exact issue you're describing.
for the life of me i can't seem to figure out why the inverter comms lock up when issued certain commands such as QMCHGCR
. which is why it was crapping out at startup.
i do have a workaround for the time being with v1.15
release, which is to disable querying for the charge current ampere values at startup by updating the appsettings.json
file like this:
"TroubleMode": "yes"
so by doing the above, you can use the app in a sort of "read only" mode. if you try to set any settings using the app, the inverter comms may lock up again.
if anybody knows why this happens, please do let me know.
dj-nitehawk - I'm glad to see that i'm not crazy and the inverter is not faulty...maybe in the near future the problem will be solved with the help of comunity. Thank you for the feedback.
Hy, i have a litle problem - after i type the status comand, it shows me -> main pid:2410 (code=exited, status=200/CHDIR). What seems to be the problem ? I'm using Ubuntu 20.4.