Replies: 21 comments 132 replies
-
Thanks Manual. |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
Hi Manual root@raspberrypi4:/data/etc/dbus-serialbattery# bluetoothctl info "C8:47:8C:E9:13:FB"
Device C8:47:8C:E9:13:FB not available
root@raspberrypi4:/data/etc/dbus-serialbattery# bluetoothctl scan on
Discovery started
[CHG] Controller DC:A6:32:B5:7F:AC Discovering: yes
[NEW] Device 08:66:98:DD:30:53 08-66-98-DD-30-53
[NEW] Device 07:5C:53:7F:74:D8 07-5C-53-7F-74-D8
[NEW] Device 46:2C:93:95:22:FD 46-2C-93-95-22-FD
[NEW] Device C8:47:8C:E9:13:FB JK_B2A20S20P
[NEW] Device 4A:C0:6C:53:AC:4A 4A-C0-6C-53-AC-4A |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
Hi, I saw this discussion for the new bluetooth version of the JKBMS-driver and I'm interested in trying out the new driver. I downloaded the tar.gz.-file, unrar, installlocal.sh and modified utils.py for MAC and performed reboot. I still have the USB-RS485-connection connected. Would it be possible to have the same JKBMS connected simultaniously via bluetooth and RS485? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
@baranator I was reading in #372 and I think starting it using the serial-starter is really not the best way. I attached two serial dongles and the whole thing went crazy, trying to access the same JKBMS twice etc. AFAICS, starting services is really easy. All that needs to be done is to create a symlink or file named /service/myservicename/run and it will automatically be started. I will try that today. If this works, then we can even make it work standalone with multiple BMS and no need for a serial dongle. |
Beta Was this translation helpful? Give feedback.
-
I have observed the problem that the memory usage of |
Beta Was this translation helpful? Give feedback.
-
I cannot pair it i am getting Failed to pair: org.bluez.Error.AuthenticationCanceled [JK_B2A8S20P]# pair C8:47:8C:EC:8D:37 [JK_B2A8S20P]# info C8:47:8C:EC:8D:37 need help to change pairing code as i cannot change it on JK, can you point me where is it |
Beta Was this translation helpful? Give feedback.
-
@crafty911 I don't think you have to pair. Just try to "trust". |
Beta Was this translation helpful? Give feedback.
-
The |
Beta Was this translation helpful? Give feedback.
-
Just to say: I thought about automatic adding of all found BMS and it's probably quite easy. Since we already scan for all devices and then only filter out the one with the given MAC, it seems even better to just detect all, check if they are 'JK-' or 'JK_' devices and then add each one as a separate device. I think I can try this out some time. Alternatively, we could also just try to connect to any Bluetooth device in range and use the current |
Beta Was this translation helpful? Give feedback.
-
Hi, I have successfully installed the driver on my RPI3b with VenusOS 2.94 and DVCC enabled. The BMS is an JK BMS B2A8S20P. Everything is functioning also together with 2 Ruuvi Bluetooth temperature meters. The only thing I now run into is in the VRM portal there is an alarm. |
Beta Was this translation helpful? Give feedback.
-
Hi, today i tried your Bluetooth-Version, but I get the following error message: @400000006443c9f50d5ae06c INFO:SerialBattery:Starting dbus-serialbattery
@400000006443c9f50d65c194 INFO:SerialBattery:dbus-serialbattery v1.0.0-jkbms_ble (20230420)
@400000006443c9f50d792a54 INFO:SerialBattery:init of jkbmsble at C8:47:8C:E5:18:3D
@400000006443c9f50d7f3534 INFO:SerialBattery:test of jkbmsble at C8:47:8C:E5:18:3D
@400000006443c9fc117a76e4 ERROR:root:A message handler raised an exception: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte.
@400000006443c9fc117a8e54 Traceback (most recent call last):
@400000006443c9fc117a9a0c File "/usr/lib/python3.8/site-packages/dbus_fast/message_bus.py", line 811, in _process_message
@400000006443c9fc117aad94 result = user_handler(msg)
@400000006443c9fc117ab564 File "/usr/lib/python3.8/site-packages/bleak/backends/bluezdbus/manager.py", line 874, in _parse_msg
@400000006443c9fc117c1cc4 on_value_changed(message.path, self_interface["Value"])
@400000006443c9fc117c2c64 File "/usr/lib/python3.8/site-packages/bleak/backends/bluezdbus/client.py", line 172, in on_value_changed
@400000006443c9fc117c3c04 callback(bytearray(value))
@400000006443c9fc117c47bc File "/data/etc/dbus-serialbattery/jkbms_brn.py", line 260, in ncallback
@400000006443c9fc117c5374 self.assemble_frame(data)
@400000006443c9fc117cc0d4 File "/data/etc/dbus-serialbattery/jkbms_brn.py", line 255, in assemble_frame
@400000006443c9fc117cd074 self.decode()
@400000006443c9fc117cd844 File "/data/etc/dbus-serialbattery/jkbms_brn.py", line 229, in decode
@400000006443c9fc117ce7e4 self.decode_device_info_jk02()
@400000006443c9fc117cefb4 File "/data/etc/dbus-serialbattery/jkbms_brn.py", line 177, in decode_device_info_jk02
@400000006443c9fc117cff54 self.translate(fb, t, self.bms_status)
@400000006443c9fc117de5cc File "/data/etc/dbus-serialbattery/jkbms_brn.py", line 152, in translate
@400000006443c9fc117df56c self.translate(fb, translation, o[translation[0][i]], f32s=f32s, i=i + 1)
@400000006443c9fc117e050c File "/data/etc/dbus-serialbattery/jkbms_brn.py", line 139, in translate
@400000006443c9fc117e10c4 val = val.decode("utf-8").rstrip(" \t\n\r\0")
@400000006443c9fc117e1c7c UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
@400000006443c9fc117e85f4
@400000006443c9fc13a2f84c ERROR:root:A message handler raised an exception: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte.
@400000006443c9fc13a313a4 Traceback (most recent call last):
@400000006443c9fc13a31f5c File "/usr/lib/python3.8/site-packages/dbus_fast/message_bus.py", line 811, in _process_message
@400000006443c9fc13a32efc result = user_handler(msg)
@400000006443c9fc13a336cc File "/usr/lib/python3.8/site-packages/bleak/backends/bluezdbus/manager.py", line 874, in _parse_msg
@400000006443c9fc13a434b4 on_value_changed(message.path, self_interface["Value"])
@400000006443c9fc13a44454 File "/usr/lib/python3.8/site-packages/bleak/backends/bluezdbus/client.py", line 172, in on_value_changed
@400000006443c9fc13a453f4 callback(bytearray(value))
@400000006443c9fc13a45fac File "/data/etc/dbus-serialbattery/jkbms_brn.py", line 260, in ncallback
@400000006443c9fc13a46b64 self.assemble_frame(data)
@400000006443c9fc13a4d4dc File "/data/etc/dbus-serialbattery/jkbms_brn.py", line 255, in assemble_frame
@400000006443c9fc13a4e47c self.decode()
@400000006443c9fc13a4ec4c File "/data/etc/dbus-serialbattery/jkbms_brn.py", line 229, in decode
@400000006443c9fc13a4fbec self.decode_device_info_jk02()
@400000006443c9fc13a503bc File "/data/etc/dbus-serialbattery/jkbms_brn.py", line 177, in decode_device_info_jk02
@400000006443c9fc13a5135c self.translate(fb, t, self.bms_status)
@400000006443c9fc13a5f5ec File "/data/etc/dbus-serialbattery/jkbms_brn.py", line 152, in translate
@400000006443c9fc13a601a4 self.translate(fb, translation, o[translation[0][i]], f32s=f32s, i=i + 1)
@400000006443c9fc13a61144 File "/data/etc/dbus-serialbattery/jkbms_brn.py", line 139, in translate
@400000006443c9fc13a61cfc val = val.decode("utf-8").rstrip(" \t\n\r\0")
@400000006443c9fc13a628b4 UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte I have a JKBMS JK-B2A24S15P. My System is VenusOS 3.00 on a Raspberry 4. |
Beta Was this translation helpful? Give feedback.
-
I have some nice new features for you :-D See #581 |
Beta Was this translation helpful? Give feedback.
-
Installed the nightly version, and it just work with BT 👍 Only thing that I discovered, is the a wrong MOS Temperature. |
Beta Was this translation helpful? Give feedback.
-
Changes 2023.05.01
|
Beta Was this translation helpful? Give feedback.
-
BREAKING Changes 2023.05.03
The
|
Beta Was this translation helpful? Give feedback.
-
Changes 2023.05.04
|
Beta Was this translation helpful? Give feedback.
-
Changes 2023.05.05
|
Beta Was this translation helpful? Give feedback.
-
Changes 2023.05.06
|
Beta Was this translation helpful? Give feedback.
-
jkbms_ble was merged into master
I opened a discussion here, so we can collect and discuss all here
Until now there are informations here:
Install latest version
If you want to try the latest driver run this line to download and install it.
wget -O /tmp/install.sh https://raw.githubusercontent.com/Louisvdw/dbus-serialbattery/dev/etc/dbus-serialbattery/install.sh && bash /tmp/install.sh
Then modify the
installble.sh
at the bottom. Uncomment (remove the#
) and insert the MAC address of your Bluetooth device. You can edit the file by executingnano /data/etc/dbus-serialbattery/installble.sh
. After saved the file run the filebash /data/etc/dbus-serialbattery/installble.sh
You can check the logs with
tail -n 100 -f /data/log/dbus-blebattery*/current | tai64nlocal
Beta Was this translation helpful? Give feedback.
All reactions