jktool on raspi
pacmanmt opened this issue · 8 comments
Hi Steven,
I recently bought some JK BMSs and would like to integrate them replacing the JBD ones.
I have NodeRed flows that were using your jbdtool and maybe for me is easier to replace it with jktool, since I am not a developer.
May I kindly ask you some help getting it installed on a raspberry pi, please?
I tried using the static version got from github, but i get an error regarding mybmm.
I have tried to install mybmm, but got an error even there.
Thank you in advance for your availability
I havent worked on or used jktool in a long time ... ill compile it into a static bin for ya but my ownly remaining JK BMS is no longer hooked up
Sad too, because the JK BMs is superior to the JBD ones but theres no published API and the way you "wake them up"/turn them on is stupid IMO
Hi Steven,
have you had any chance of working on the static bin so far?
Thank you so much and sorry for asking
Cheers
I'm not able to produce a static binary for it since it uses bluetooth. I did update the repo and it should compile cleanly on your system now (provided you built both paho mqtt lib and gattlib)
Thank you so much Steven, much appreciated.
Anyway I will be using the serial connection not the BT one.
I am going to compile and let you know.
Cheers
If you are not going to use bluetooth, you can compile it like this:
make BLUETOOTH=no
Hi Steven,
sorry for being such a dumb, I managed to install the dependencies (or I hope so), compiled and installed.
Now if I launch jktool, I get errors:
jktool -t serial:/dev/ttyUSB0,115200 -J
main.c(507) main: transport: 0x7fe0e8453d, target: 0x7fe0e84544
main.c(530) main: transport: serial
module.c(51) mybmm_load_module: NOT found.
module.c(72) mybmm_load_module: init: 0x55593d0fd8
module.c(79) mybmm_load_module: adding module: serial
module.c(45) mybmm_load_module: mp->name: serial, mp->type: 2
module.c(51) mybmm_load_module: NOT found.
module.c(72) mybmm_load_module: init: 0x55593c5b74
module.c(79) mybmm_load_module: adding module: jk
jk.c(31) jk_new: transport: serial
jk.c(40) jk_new: pp->target: /dev/ttyUSB0,115200, pp->opts:
serial.c(99) serial_new: target: /dev/ttyUSB0,115200
serial.c(160) serial_new: target: /dev/ttyUSB0, speed: 9600, data: 8, parity: N, stop: 1, vmin: 0, vtime: 5
main.c(328) init_pack: handle: 0x5562f0e890
main.c(550) main: outfp: 0x5562f0e900
serial.c(256) serial_open: target: /dev/ttyUSB0
serial.c(264) serial_open: path: /dev/ttyUSB0
serial.c(171) set_interface_attribs: fd: 3, speed: 9600, data: 8, parity: 0, stop: 1, vmin: 0, vtime: 5
serial.c(485) serial_close: fd: 3
{}
Would you mind pointing me in the right direction, please?
Thanks