Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jktool on raspi #1

Open
pacmanmt opened this issue May 18, 2023 · 8 comments
Open

jktool on raspi #1

pacmanmt opened this issue May 18, 2023 · 8 comments

Comments

@pacmanmt
Copy link

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

@sshoecraft
Copy link
Owner

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

@pacmanmt
Copy link
Author

pacmanmt commented May 18, 2023 via email

@pacmanmt
Copy link
Author

Hi Steven,
have you had any chance of working on the static bin so far?
Thank you so much and sorry for asking
Cheers

@sshoecraft
Copy link
Owner

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)

@pacmanmt
Copy link
Author

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

@sshoecraft
Copy link
Owner

If you are not going to use bluetooth, you can compile it like this:

make BLUETOOTH=no

@pacmanmt
Copy link
Author

pacmanmt commented May 25, 2023 via email

@pacmanmt
Copy link
Author

pacmanmt commented May 26, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants