{
  "spec_version": 1,
  "slug": "jk-bms-rs485-modbus",
  "manufacturer": "JK BMS (Jikong)",
  "model": "JK BMS (Jikong) lithium protection boards with the RS485 Modbus general protocol V1.1",
  "category": "Home battery",
  "supplier_url": "https://www.jk-bms.com/",
  "default_configuration": {
    "protocol": "modbus_rtu",
    "unit_id": 1,
    "addressing": "zero_based",
    "byte_order": "BigEndian",
    "word_order": "HighFirst",
    "native_interface": "rs485",
    "serial": {
      "baud_rate": 115200,
      "parity": "None",
      "data_bits": 8,
      "stop_bits": 1
    }
  },
  "coils": [],
  "discrete_inputs": [],
  "input_registers": [],
  "holding_registers": [
    {
      "address": 4608,
      "count": 1,
      "name": "Cell voltage 0",
      "data_type": "UInt16",
      "units": "mV",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4609,
      "count": 1,
      "name": "Cell voltage 1",
      "data_type": "UInt16",
      "units": "mV",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4610,
      "count": 1,
      "name": "Cell voltage 2",
      "data_type": "UInt16",
      "units": "mV",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4611,
      "count": 1,
      "name": "Cell voltage 3",
      "data_type": "UInt16",
      "units": "mV",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4612,
      "count": 1,
      "name": "Cell voltage 4",
      "data_type": "UInt16",
      "units": "mV",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4613,
      "count": 1,
      "name": "Cell voltage 5",
      "data_type": "UInt16",
      "units": "mV",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4614,
      "count": 1,
      "name": "Cell voltage 6",
      "data_type": "UInt16",
      "units": "mV",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4615,
      "count": 1,
      "name": "Cell voltage 7",
      "data_type": "UInt16",
      "units": "mV",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4616,
      "count": 1,
      "name": "Cell voltage 8",
      "data_type": "UInt16",
      "units": "mV",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4617,
      "count": 1,
      "name": "Cell voltage 9",
      "data_type": "UInt16",
      "units": "mV",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4618,
      "count": 1,
      "name": "Cell voltage 10",
      "data_type": "UInt16",
      "units": "mV",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4619,
      "count": 1,
      "name": "Cell voltage 11",
      "data_type": "UInt16",
      "units": "mV",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4620,
      "count": 1,
      "name": "Cell voltage 12",
      "data_type": "UInt16",
      "units": "mV",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4621,
      "count": 1,
      "name": "Cell voltage 13",
      "data_type": "UInt16",
      "units": "mV",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4622,
      "count": 1,
      "name": "Cell voltage 14",
      "data_type": "UInt16",
      "units": "mV",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4623,
      "count": 1,
      "name": "Cell voltage 15",
      "data_type": "UInt16",
      "units": "mV",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4624,
      "count": 1,
      "name": "Cell voltage 16",
      "data_type": "UInt16",
      "units": "mV",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4625,
      "count": 1,
      "name": "Cell voltage 17",
      "data_type": "UInt16",
      "units": "mV",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4626,
      "count": 1,
      "name": "Cell voltage 18",
      "data_type": "UInt16",
      "units": "mV",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4627,
      "count": 1,
      "name": "Cell voltage 19",
      "data_type": "UInt16",
      "units": "mV",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4628,
      "count": 1,
      "name": "Cell voltage 20",
      "data_type": "UInt16",
      "units": "mV",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4629,
      "count": 1,
      "name": "Cell voltage 21",
      "data_type": "UInt16",
      "units": "mV",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4630,
      "count": 1,
      "name": "Cell voltage 22",
      "data_type": "UInt16",
      "units": "mV",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4631,
      "count": 1,
      "name": "Cell voltage 23",
      "data_type": "UInt16",
      "units": "mV",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4632,
      "count": 1,
      "name": "Cell voltage 24",
      "data_type": "UInt16",
      "units": "mV",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4633,
      "count": 1,
      "name": "Cell voltage 25",
      "data_type": "UInt16",
      "units": "mV",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4634,
      "count": 1,
      "name": "Cell voltage 26",
      "data_type": "UInt16",
      "units": "mV",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4635,
      "count": 1,
      "name": "Cell voltage 27",
      "data_type": "UInt16",
      "units": "mV",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4636,
      "count": 1,
      "name": "Cell voltage 28",
      "data_type": "UInt16",
      "units": "mV",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4637,
      "count": 1,
      "name": "Cell voltage 29",
      "data_type": "UInt16",
      "units": "mV",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4638,
      "count": 1,
      "name": "Cell voltage 30",
      "data_type": "UInt16",
      "units": "mV",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4639,
      "count": 1,
      "name": "Cell voltage 31",
      "data_type": "UInt16",
      "units": "mV",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4640,
      "count": 2,
      "name": "Battery status (cell present bitmap)",
      "data_type": "UInt32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Bit n set means cell n is present; the document prints BIT[n] meaning this."
    },
    {
      "address": 4642,
      "count": 1,
      "name": "Average cell voltage",
      "data_type": "UInt16",
      "units": "mV",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4643,
      "count": 1,
      "name": "Maximum cell voltage difference",
      "data_type": "UInt16",
      "units": "mV",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4645,
      "count": 1,
      "name": "Balance wire resistance 0",
      "data_type": "UInt16",
      "units": "mΩ",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4646,
      "count": 1,
      "name": "Balance wire resistance 1",
      "data_type": "UInt16",
      "units": "mΩ",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4647,
      "count": 1,
      "name": "Balance wire resistance 2",
      "data_type": "UInt16",
      "units": "mΩ",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4648,
      "count": 1,
      "name": "Balance wire resistance 3",
      "data_type": "UInt16",
      "units": "mΩ",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4649,
      "count": 1,
      "name": "Balance wire resistance 4",
      "data_type": "UInt16",
      "units": "mΩ",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4650,
      "count": 1,
      "name": "Balance wire resistance 5",
      "data_type": "UInt16",
      "units": "mΩ",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4651,
      "count": 1,
      "name": "Balance wire resistance 6",
      "data_type": "UInt16",
      "units": "mΩ",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4652,
      "count": 1,
      "name": "Balance wire resistance 7",
      "data_type": "UInt16",
      "units": "mΩ",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4653,
      "count": 1,
      "name": "Balance wire resistance 8",
      "data_type": "UInt16",
      "units": "mΩ",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4654,
      "count": 1,
      "name": "Balance wire resistance 9",
      "data_type": "UInt16",
      "units": "mΩ",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4655,
      "count": 1,
      "name": "Balance wire resistance 10",
      "data_type": "UInt16",
      "units": "mΩ",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4656,
      "count": 1,
      "name": "Balance wire resistance 11",
      "data_type": "UInt16",
      "units": "mΩ",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4657,
      "count": 1,
      "name": "Balance wire resistance 12",
      "data_type": "UInt16",
      "units": "mΩ",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4658,
      "count": 1,
      "name": "Balance wire resistance 13",
      "data_type": "UInt16",
      "units": "mΩ",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4659,
      "count": 1,
      "name": "Balance wire resistance 14",
      "data_type": "UInt16",
      "units": "mΩ",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4660,
      "count": 1,
      "name": "Balance wire resistance 15",
      "data_type": "UInt16",
      "units": "mΩ",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4661,
      "count": 1,
      "name": "Balance wire resistance 16",
      "data_type": "UInt16",
      "units": "mΩ",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4662,
      "count": 1,
      "name": "Balance wire resistance 17",
      "data_type": "UInt16",
      "units": "mΩ",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4663,
      "count": 1,
      "name": "Balance wire resistance 18",
      "data_type": "UInt16",
      "units": "mΩ",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4664,
      "count": 1,
      "name": "Balance wire resistance 19",
      "data_type": "UInt16",
      "units": "mΩ",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4665,
      "count": 1,
      "name": "Balance wire resistance 20",
      "data_type": "UInt16",
      "units": "mΩ",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4666,
      "count": 1,
      "name": "Balance wire resistance 21",
      "data_type": "UInt16",
      "units": "mΩ",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4667,
      "count": 1,
      "name": "Balance wire resistance 22",
      "data_type": "UInt16",
      "units": "mΩ",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4668,
      "count": 1,
      "name": "Balance wire resistance 23",
      "data_type": "UInt16",
      "units": "mΩ",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4669,
      "count": 1,
      "name": "Balance wire resistance 24",
      "data_type": "UInt16",
      "units": "mΩ",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4670,
      "count": 1,
      "name": "Balance wire resistance 25",
      "data_type": "UInt16",
      "units": "mΩ",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4671,
      "count": 1,
      "name": "Balance wire resistance 26",
      "data_type": "UInt16",
      "units": "mΩ",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4672,
      "count": 1,
      "name": "Balance wire resistance 27",
      "data_type": "UInt16",
      "units": "mΩ",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4673,
      "count": 1,
      "name": "Balance wire resistance 28",
      "data_type": "UInt16",
      "units": "mΩ",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4674,
      "count": 1,
      "name": "Balance wire resistance 29",
      "data_type": "UInt16",
      "units": "mΩ",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4675,
      "count": 1,
      "name": "Balance wire resistance 30",
      "data_type": "UInt16",
      "units": "mΩ",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4676,
      "count": 1,
      "name": "Balance wire resistance 31",
      "data_type": "UInt16",
      "units": "mΩ",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4677,
      "count": 1,
      "name": "Power board (MOS) temperature",
      "data_type": "Int16",
      "units": "°C",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4678,
      "count": 2,
      "name": "Balance wire resistance status",
      "data_type": "UInt32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Bit n set means balance wire n reports an alarm."
    },
    {
      "address": 4680,
      "count": 2,
      "name": "Battery total voltage",
      "data_type": "UInt32",
      "units": "mV",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4682,
      "count": 2,
      "name": "Battery power",
      "data_type": "UInt32",
      "units": "mW",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4684,
      "count": 2,
      "name": "Battery current",
      "data_type": "Int32",
      "units": "mA",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4686,
      "count": 1,
      "name": "Battery temperature sensor 1",
      "data_type": "Int16",
      "units": "°C",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4687,
      "count": 1,
      "name": "Battery temperature sensor 2",
      "data_type": "Int16",
      "units": "°C",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4688,
      "count": 2,
      "name": "Alarm word",
      "data_type": "UInt32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Bit field. Sourced bit meanings (bit: name): 0 wire resistance alarm, 1 MOS over temperature protection, 2 cell count differs from setting, 3 current sensor error, 4 cell over-voltage protection, 5 battery over-voltage protection, 6 charge over-current protection, 7 charge short-circuit protection, 8 charge over-temperature protection, 9 charge under-temperature protection, 10 internal (CPU/aux) communication error, 11 cell under-voltage protection, 12 battery under-voltage protection, 13 discharge over-current protection, 14 discharge short-circuit protection, 15 discharge over-temperature protection, 16 charge MOSFET fault, 17 discharge MOSFET fault, 18 GPS disconnected, 19 password change overdue, 20 discharge enable failed, 21 battery over-temperature alarm, 22 temperature sensor error, 23 parallel module (PCL) error. Each bit is 1 = fault, 0 = normal."
    },
    {
      "address": 4690,
      "count": 1,
      "name": "Balance current",
      "data_type": "Int16",
      "units": "mA",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4692,
      "count": 2,
      "name": "Remaining capacity",
      "data_type": "Int32",
      "units": "mAh",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4694,
      "count": 2,
      "name": "Full charge capacity",
      "data_type": "UInt32",
      "units": "mAh",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4696,
      "count": 2,
      "name": "Cycle count",
      "data_type": "UInt32",
      "units": "cycles",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4698,
      "count": 2,
      "name": "Accumulated cycle capacity",
      "data_type": "UInt32",
      "units": "mAh",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4701,
      "count": 1,
      "name": "User alarm word",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Bit field; the document names the register but prints no bit table for it."
    },
    {
      "address": 4702,
      "count": 2,
      "name": "Run time",
      "data_type": "UInt32",
      "units": "s",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4705,
      "count": 1,
      "name": "User alarm word 2",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Bit field; the document names the register but prints no bit table for it."
    },
    {
      "address": 4706,
      "count": 1,
      "name": "Discharge over-current protection release time",
      "data_type": "UInt16",
      "units": "s",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4707,
      "count": 1,
      "name": "Discharge short-circuit protection release time",
      "data_type": "UInt16",
      "units": "s",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4708,
      "count": 1,
      "name": "Charge over-current protection release time",
      "data_type": "UInt16",
      "units": "s",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4709,
      "count": 1,
      "name": "Charge short-circuit protection release time",
      "data_type": "UInt16",
      "units": "s",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4710,
      "count": 1,
      "name": "Cell under-voltage protection release time",
      "data_type": "UInt16",
      "units": "s",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4711,
      "count": 1,
      "name": "Cell over-voltage protection release time",
      "data_type": "UInt16",
      "units": "s",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4714,
      "count": 1,
      "name": "Emergency switch time",
      "data_type": "UInt16",
      "units": "s",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4715,
      "count": 1,
      "name": "Discharge current correction factor",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "The document prints no unit for this factor."
    },
    {
      "address": 4716,
      "count": 1,
      "name": "Charge current sensor voltage",
      "data_type": "UInt16",
      "units": "mV",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4717,
      "count": 1,
      "name": "Discharge current sensor voltage",
      "data_type": "UInt16",
      "units": "mV",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4718,
      "count": 2,
      "name": "Battery voltage correction factor",
      "data_type": "Float32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "IEEE-754 single as printed by the document; the document prints no unit for this factor."
    },
    {
      "address": 4722,
      "count": 1,
      "name": "Battery voltage",
      "data_type": "UInt16",
      "units": "V",
      "scale_factor": 0.01,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4723,
      "count": 1,
      "name": "Heating current",
      "data_type": "Int16",
      "units": "mA",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4728,
      "count": 2,
      "name": "System tick counter",
      "data_type": "UInt32",
      "units": "s",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4732,
      "count": 1,
      "name": "Battery temperature sensor 3",
      "data_type": "Int16",
      "units": "°C",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4733,
      "count": 1,
      "name": "Battery temperature sensor 4",
      "data_type": "Int16",
      "units": "°C",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4734,
      "count": 1,
      "name": "Battery temperature sensor 5",
      "data_type": "Int16",
      "units": "°C",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4736,
      "count": 2,
      "name": "RTC counter",
      "data_type": "UInt32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Ticks counted from 2020-01-01, as printed by the document; no unit is printed."
    },
    {
      "address": 4740,
      "count": 2,
      "name": "Time until sleep",
      "data_type": "UInt32",
      "units": "s",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 4152,
      "count": 2,
      "name": "Charging switch",
      "data_type": "UInt32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "1 = charging enabled, 0 = charging disabled (the document prints the switch mnemonic ending EN, its effect column and the values 1:on, 0:off). Read-only here: only the switch's name, effect column and values are printed; no operating range is given, so no write is offered."
    },
    {
      "address": 4154,
      "count": 2,
      "name": "Discharging switch",
      "data_type": "UInt32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "1 = discharging enabled, 0 = discharging disabled (the document prints the switch mnemonic ending EN, its effect column and the values 1:on, 0:off). Read-only here: only the switch's name, effect column and values are printed; no operating range is given, so no write is offered."
    },
    {
      "address": 4156,
      "count": 2,
      "name": "Balancing switch",
      "data_type": "UInt32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "1 = balancing enabled, 0 = balancing disabled (the document prints the switch mnemonic ending EN, its effect column and the values 1:on, 0:off). Read-only here: only the switch's name, effect column and values are printed; no operating range is given, so no write is offered."
    }
  ],
  "combined_registers": [
    {
      "id": "soc-from-capacities",
      "label": "State of charge (remaining / full capacity, calculated)",
      "operator": "/",
      "operand_a": {
        "register_type": "holding_registers",
        "register_address": 4692
      },
      "operand_b": {
        "register_type": "holding_registers",
        "register_address": 4694
      },
      "units": "%",
      "scale_factor": 100,
      "offset": 0,
      "description": "Remaining capacity divided by full charge capacity. The document also lists a ready-made SOC byte next to the balance-state byte, but it does not print that byte's own offset, so it is not seeded."
    }
  ],
  "notes": "Source: JK BMS (Jikong) \"BMS RS485 Modbus\" map V1.1, vendor-hosted as 极空BMS RS485 Modbus通用协议V1.1 (jk-bms.com/Upload/2024-01-05/1029228503.pdf, read 2026-11-23, SHA-256 7f3d436c49bc6d2bbd819f4f50d8999da035318ace8d84aed25cdccc74f47871). Framing from the vendor protocol part V1.0 (jk-bms.com/Upload/2023-11-28/1721459145.pdf, 6caa200a925cdb67d01c816112052775ec7b41c35c98582c048ea0e1eba030dd): RS-485, 115200 8N1, no parity, 03H read, 10H write, addresses 1-247; the map prints no framing itself. Addressing: one base per block (0x1000, 0x1200 live data, 0x1400, 0x1600 commands) and a per-row 偏移Index that counts bytes (16-bit rows step 2, 32-bit rows 4, 长度Length in bytes), so register = base + offset/2 - the dense reading in which the 32 cell voltages occupy 0x1200-0x121F. Only 03H reads are documented, hence holding registers. The community ESPHome definition of the same map (secondary: github.com/tlamoureux24/JK-BMS-by-Modbus-RS485, commit 247d4f2) reads 0x1200 with those byte offsets as holding registers; its comments print base+offset and are not the register. No vendor document prints a factory slave address (frames use 01H; DevAddr 0x1084 is a setting), so unit 1 is a placeholder. Word order is not printed; HighFirst is a declared convention. Not seeded: the rest of 0x1000 (thresholds, the 0x0114 switch bits, cell count), because no write range is printed and a wrong threshold can damage a battery; the 0x1600 commands (calibration, shutdown, chemistry presets, emergency start), whose values are not printed; 0x1400 (version ASCII, counters, protocol selection, dry contacts), whose offsets restart at 0; UINT8 pairs that share a register without the second byte offset; Reserved rows. WRITES: none. The map prints each switch's name (ending EN), the effect column and both values 1:on/0:off, but no operating range, so the three switches are readable only. No hardware validation claimed."
}
