mpp-solar: JK-B1A20S15P not working, JK-B2A24S20P works well. Seems like some init commands should be reverse engineered
Hi
Trying
mpp-solar -p 20:21:11:28:15:EF -P JK02 -c getCellData --tag solar/lutsk/jkbms100 -q 127.0.0.0 -o mqtt
And getting
Traceback (most recent call last):
File "/usr/local/bin/mpp-solar", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.10/dist-packages/mppsolar/__init__.py", line 417, in main
results = _device.run_command(command=_command)
File "/usr/local/lib/python3.10/dist-packages/mppsolar/devices/device.py", line 316, in run_command
raw_response = self._port.send_and_receive(
File "/usr/local/lib/python3.10/dist-packages/mppsolar/inout/jkbleio.py", line 37, in send_and_receive
response = self.ble_get_data(full_command)
File "/usr/local/lib/python3.10/dist-packages/mppsolar/inout/jkbleio.py", line 88, in ble_get_data
serviceId = self._device.getServiceByUUID(btle.AssignedNumbers.genericAccess)
File "/usr/local/lib/python3.10/dist-packages/bluepy/btle.py", line 490, in getServiceByUUID
raise BTLEGattError("Service %s not found" % (uuid.getCommonName()), rsp)
bluepy.btle.BTLEGattError: Service Generic Access not found
Next to it JK-B2A24S20P works well
Sysinfo
root@metrics:/var/lib/bluetooth# mpp-solar --version
Solar Device Command Utility, version: 0.14.1
root@metrics:/var/lib/bluetooth# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy
Any suggestion how to fix it?
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15 (6 by maintainers)
Playing around with the above (using the construct library to try to determine what bytes equal what result), i get a pretty good match up
(ignore the need to /1000 or /10 for some of these numbers)
this is using:
there are some obvious gaps / possible mistakes Do you have another seet of data - perhaps with balancing turned on?