Closed motti15 closed 1 year ago
I tried the same steps on an fresh venusOS installation on my RaspberryPi 4. It seems to work without problems but the step "Building wheel for dbus-fast" took very long. Could any time-out be a problem with the RaspberryPi 2w? Because they are much less powerfull.
Trying a fresh start with the RaspberryPi 2w worked today. The only difference i could find was no USB-devices plugged into the RP 2w. I won't do any further testing for now, because the RP 4 is currently used for the victron-system and the system is not installed at my home (but within my family). I'll also close the issue for now.
I had the same behaviour on my MultiPlus GX, but did not find a solution so I copied over the dbus-fast from my Raspberry Pi 4.
Now I found a solution. See https://github.com/Bluetooth-Devices/dbus-fast/issues/237
This will be implemented in the next version of this driver. For older drivers you have to run
export SKIP_CYTHON=false
before running the install.sh
or reinstall-local.sh
.
This problem still exists.
@fableman73 did you also use a RaspberryPi 2 w? Whats the driver version you tried and did you try the solutions from above? I haven't experienced the problem since then and had to install the latest stable release from mr-manuel today because of the appearance of another bug that was reported in nov. 2023 and seems to be fix in the current stable.
If I use export SKIP_CYTHON=false pip install mppsolar[ble]
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Requirement already satisfied: mppsolar[ble] in /usr/local/lib/python3.9/dist-packages (0.15.62) Requirement already satisfied: paho-mqtt>=1.6 in /usr/local/lib/python3.9/dist-packages (from mppsolar[ble]) (2.0.0) Requirement already satisfied: pyserial>3 in /usr/local/lib/python3.9/dist-packages (from mppsolar[ble]) (3.5) Requirement already satisfied: pydantic<2.0.0,>=1.10.7 in /usr/local/lib/python3.9/dist-packages (from mppsolar[ble]) (1.10.14) Requirement already satisfied: strenum<0.5.0,>=0.4.10 in /usr/local/lib/python3.9/dist-packages (from mppsolar[ble]) (0.4.15) Requirement already satisfied: PyYAML>=6 in /usr/local/lib/python3.9/dist-packages (from mppsolar[ble]) (6.0.1) Requirement already satisfied: bleak<0.21.0,>=0.20.2 in /usr/local/lib/python3.9/dist-packages (from mppsolar[ble]) (0.20.2) Requirement already satisfied: bluepy<2.0.0,>=1.3.0 in /usr/local/lib/python3.9/dist-packages (from mppsolar[ble]) (1.3.0) Requirement already satisfied: async-timeout<5,>=3.0.0 in /usr/local/lib/python3.9/dist-packages (from bleak<0.21.0,>=0.20.2->mppsolar[ble]) (4.0.3) Requirement already satisfied: dbus-fast<2.0.0,>=1.83.0 in /usr/local/lib/python3.9/dist-packages (from bleak<0.21.0,>=0.20.2->mppsolar[ble]) (1.95.2) Requirement already satisfied: typing-extensions>=4.2.0 in /usr/local/lib/python3.9/dist-packages (from pydantic<2.0.0,>=1.10.7->mppsolar[ble]) (4.10.0)
The installation will not hang But I get this error when I try to use mpp-solar:
`root@husb:~# mpp-solar -p C8:47:81:17:3E:36 -c getInfo
Exception ignored in: <function Client.del at 0x7f9c7e24c0>
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/paho/mqtt/client.py", line 874, in del
self._reset_sockets()
File "/usr/local/lib/python3.9/dist-packages/paho/mqtt/client.py", line 1133, in _reset_sockets
self._sock_close()
File "/usr/local/lib/python3.9/dist-packages/paho/mqtt/client.py", line 1119, in _sock_close
if not self._sock:
AttributeError: 'Client' object has no attribute '_sock'
Traceback (most recent call last):
File "/usr/local/bin/mpp-solar", line 8, in
Describe the bug
I tried to connect two JKBMS via bluetooth on an freshly installed venosOS, but the RP 2 w i'm using keeps getting stuck while "building wheels for dbus-fast .." and seems to crash after a while. Even manuell installing of bleak via "pip3 install bleak -no-cache-dir" fails while "building wheels for dbus-fast" and seems to show the same behavior. I even tried to reinstall venusOS, but i keep getting the same behavior. Any ideas where to find the root of the problem?
How to reproduce
Steps to reproduce the behavior:
Expected behavior
installing bleak
Driver version
v1.0.20230531
Venus OS device type
Raspberry Pi
Venus OS version
v3.01
BMS type
JKBMS / Heltec BMS
Cell count
16
Connection type
Bluetooth
Config file
Relevant log output
Any other information that may be helpful
There are two MPPTs connected via USB and an MK3 with 3 Multiplus-II 3000. The Batteries are close to the RP but the wifi signal is weak (only two bars are shown on the remote-console.)