Open mfu-mcosys opened 3 months ago
I'll have a look. You might need to run a separate instance for each device though
On Sun, Jun 16, 2024, 05:19 mfu-mcosys @.***> wrote:
if the config looks like this:
[JKBMS_UNTEN] type=jkbms protocol=jk04 port=C8:47:8C:E5:CC:9F command=getCellData outputs=screen
[JKBMS_BOX1_UNTEN] type=jkbms protocol=jkv11 port=C8:47:80:13:CC:AE command=getCellData outputs=screen
the output for the first proto (jk04) is wrong. If there is just one proto used in the config, it works.
I just upgraded from Python3.9 to Python3.11 to get latest mpp-solar (version: 0.16.34, python version: 3.11.2) ... but the problem is the same.
Any suggestions?
— Reply to this email directly, view it on GitHub https://github.com/jblance/mpp-solar/issues/496, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJVKNTNESOOBWG6PAZINVTZHRZSRAVCNFSM6AAAAABJL3BEQSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM2TKMBUHE2TKMI . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Thats what i do as workaround. Just dont run as a daemon and use a one line per device in a bash script which is triggered per cron.
You can run 2 daemons just need to call them something different and have 2 service files etc
On Sun, Jun 16, 2024, 19:50 mfu-mcosys @.***> wrote:
Thats what i do as workaround. Just dont run as a daemon and use a one line per device in a bash script which is triggered per cron.
— Reply to this email directly, view it on GitHub https://github.com/jblance/mpp-solar/issues/496#issuecomment-2171151088, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJVKNW5CLANCHGPXDRBQRTZHU7SZAVCNFSM6AAAAABJL3BEQSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZRGE2TCMBYHA . You are receiving this because you commented.Message ID: @.***>
Want work (tested it) - because the PI3 BLE-device seems to be blocked if in use by any of the 2 daemons.
Oh, bummer.
The ble stack and code are pretty rough. I'll see what I can do with it - though it might be in powermon code instead
On Sun, Jun 16, 2024, 19:55 mfu-mcosys @.***> wrote:
Want work (tested it) - because the PI3 BLE-device seems to be blocked if in use by any of the 2 daemons.
— Reply to this email directly, view it on GitHub https://github.com/jblance/mpp-solar/issues/496#issuecomment-2171171429, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJVKNQS5MSOESOVPGTIXCDZHVAFJAVCNFSM6AAAAABJL3BEQSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZRGE3TCNBSHE . You are receiving this because you commented.Message ID: @.***>
I don't want to hijack the post, But Mppsolar run here since 2021 with one Bms (daly wired) one Balancer (JK04 bluetooth) nd one inverter mppsolar wired. Run smooth since that. I justed add a second battery bank with JK BMS bluetooth (jkv11), since I added it, the first JK bms show erroned data in the same range of [mfu-mcosys] result.
So we are in the same boat
I don't want to hijack the post, But Mppsolar run here since 2021 with one Bms (daly wired) one Balancer (JK04 bluetooth) nd one inverter mppsolar wired. Run smooth since that. I justed add a second battery bank with JK BMS bluetooth (jkv11), since I added it, the first JK bms show erroned data in the same range of [mfu-mcosys] result.
So we are in the same boat
can you post your config file (as this shouldnt happen)
My config
This post
is from my tablet, hard time with post formating
Required section
[SETUP]
# Number of seconds to pause at the end of each loop (0 is no pause)
pause=7
# Hostname / IP address of the MQTT broker
mqtt_broker=localhost
#mqtt_broker=screen
[PIP3048]
model=standard
protocol=PI30
port=/dev/hidraw0
baud=2400
#command=QPGS0
command=QPIGS
tag=PIP3048
outputs=mqtt
[DALY]
protocol=DALY
port=/dev/ttyUSB0
#port=/dev/ttyUSB0
porttype=DALY
baud=9600
#command=mosStatus
#command=SOC,status,cellVoltages
command=SOC#mosStatus#status#cellMinMaxVoltages#cellVoltages#cellMinMaxTemps
tag=DALY
outputs=mqtt
[JKBMS]
type=jkbms
protocol=JK04
port=3C:A5:51:86:53:FF
command=getCellData
tag=Balancer
#outputs=influx_mqtt
outputs=mqtt
[JKBANK2]
type=jkbms
protocol=JKV11
port=C8:47:80:0B:F1:95
command=getCellData
tag=Bank2
outputs=mqtt
oh, nvm I missed that both JKBMSs were BLE this will need to wait on a code level fix and BLE re-write - sorry
if the config looks like this:
the output for the first proto (jk04) is wrong. If there is just one proto used in the config, it works.
I just upgraded from Python3.9 to Python3.11 to get latest mpp-solar (version: 0.16.34, python version: 3.11.2) ... but the problem is the same.
Any suggestions?
Output with wrong values for jk04