sshoecraft / jktool

JIKONG BMS Linux command line utility

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JIKONG BMS linux-based utility

requires MYBMM for the modules

requires gattlib https://github.com/labapart/gattlib to be installed for bluetooth

Transports specified exactly as in mybmm.conf

jktool -t transport:target,opt1[,optN]

For CAN:

jktool -t can:[,speed]

example:

jktool -t can:can0,500000

For Serial:

jktool -t serial:[,speed]

example:

jktool -t serial:/dev/ttyS0,9600

For Bluetooth:

jktool -t bt:[mac addr][,desc]

exmples:

jktool -t bt:01:02:03:04:05,06

jktool -t bt:01:02:03:04:05:06,ff01

For IP/esplink:

jktool -t ip:[,port]

example:

jktool -t ip:10.0.0.1,23

for CANServer/Can-over-ip

jktool -t can_ip:,[port],,[speed]

example:

jktool -t can_ip:10.0.0.1,3930,can0,500000

CAN bus cannot read/write parameters

to read all parameters using bluetooth:

jktool -t bt:01:02:03:04:06 -r -a

to list the params the program supports, use -l

to specify single params, specify them after -r

jktool -t bt:01:02:03:04:06 -r BalanceStartVoltage BalanceWindow

to read a list of parameters using a file use -f:

jktool -t serial:/dev/ttyS0,9600 -r -f jbd_settings.fig

use -j and -J (pretty) to specify filename is a json file

to write parameters, specify a key value pair after -w

jktool -t ip:10.0.0.1 -w BalanceStartVoltage 4050 BalanceWindow 20

to send all output to a file, use -o. If the filename ends with .json, file will be written in JSON format:

jktool -t can:can0,500000 -j -o pack_1.json

About

JIKONG BMS Linux command line utility

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:C 99.0%Language:Makefile 1.0%