What this guide works from. One rig: a Growatt SPF 5000 ES, a JK Inverter BMS (PB series, JK-PB2A16S20P) on a 16-cell LiFePO4 pack, 280 Ah, resting at 52.8 V, JK app showing 47% charge, Error 20 on boot.
The short answer. Yes, a JK Inverter BMS can talk to a Growatt SPF 5000 ES. The link that works best is CAN. Set the Growatt to Program 05 LI, then set Program 36 to L52 for CAN Pylontech. Set the JK Inverter BMS to its Pylontech CAN profile, PYLON CAN V1.2 on boards that list it, at 500 kbps. Wire CAN-H to CAN-H and CAN-L to CAN-L. On our rig, the fault was one menu pick: Program 36 showed L51, the Growatt battery CAN code. A JK BMS speaking Pylontech will not answer it. We changed Program 36 to L52, kept Program 05 on LI, and Error 20 cleared in under two minutes.
The rig that would not link
It was a new build, and it looked right. The SPF 5000 ES sat on the wall, and the battery box held 16 LiFePO4 cells. A JK Inverter BMS sat on top of the pack. The pack read 52.8 V: 3.30 V per cell, times 16 cells. The JK app showed all 16 cells between 3.29 V and 3.31 V, and 47% charge. Then the inverter was switched on. Error 20 showed within seconds. The small Li icon flashed on and off, and no state of charge showed. State of charge, or SOC, is how full the battery is. The inverter still saw 52.8 V on the DC cables, but it had no data: no SOC, no charge limit, no cell temps. Without data, the inverter will not trust the battery. On Program 05 LI it cuts output when the link fails.
Which JK board can talk to a Growatt
Only the JK Inverter BMS can do this on its own. That is the PB series. Look for the PB board. It has RJ45 sockets marked CAN and RS485-1. It also has RS485-2 for packs wired side by side. And it has a DIP switch block. Common models are the JK-PB2A16S20P and other PB boards for 8S to 16S packs. DIP switches are tiny switches on the BMS board. They set the pack address.
The older JK-B boards are small smart BMS boards. They use Bluetooth only. They do not speak Pylontech CAN to an inverter on their own. They need a bridge, a small extra board that reads the JK-B and sends Pylontech CAN data to the Growatt. The common bridge is an ESP32 board running YamBMS or the esphome-jk-bms-can project.
Check the cell count too. Most home packs here are 16S LiFePO4, 51.2 V rated, made from 3.2 V cells. Pylontech packs are 15S, 48 V rated. If the BMS app shows a cell-count error, fix the pack first, because no menu setting will fix a wrong cell count.
One more check before you start. The SPF 5000 ES is not the same box as the SPF 5000TL HVM. The ES talks CAN, while the older HVM talks RS485. If your box says HVM, use the RS485 steps in the Growatt Error 20 fix instead.
What the pins carry
The SPF 5000 ES has one BMS port, and it carries both links. That is the first trap: the wrong wire in the right port still fails. The table below is the pin map for that port. The full guide is the Growatt SPF 5000 ES BMS pinout. For a CAN link, only pins 4 and 5 matter: CAN-H to CAN-H, CAN-L to CAN-L. For an RS485 link, only pins 1 and 2 matter. Do not wire both links at once, because the Growatt manual says to use one link type at a time, RS485 or CAN, never both. One warning about the JK side: JK’s own papers disagree on which pin is CAN-H and which is CAN-L on some boards. This is not confirmed as a misprint in either sheet, so this guide does not pick a winner. Read the print on your own board and wire H to H and L to L from that print. Step 6 will catch a swap.
| Pin | Wire | What it does. |
|---|---|---|
| 1 | RS485B | RS485 data, B side. |
| 2 | RS485A | RS485 data, A side. |
| 3 | Not used | No battery wire here. |
| 4 | CAN-H | CAN data, high line. |
| 5 | CAN-L | CAN data, low line. |
| 6 | Not used | No battery wire here. |
| 7 | Not used | No battery wire here. |
| 8 | Not used | No battery wire here. |
The other port trap is on the inverter: the SPF 5000 ES has a second RJ45 socket marked RS485, for expansion, not for the battery. The battery cable goes in the socket marked BMS. On our rig, the cable was in the right socket on the inverter and the right socket on the BMS. The fault was in the menu, not the plug.

Which setting fits your battery
Program 05 picks the battery type, and Program 36 picks the talk rules, the protocol. A protocol is the set of rules two units use to talk. On the SPF 5000 ES, Program 05 LI leads straight to Program 36. L01 to L50 are RS485 codes, and L51 to L99 are CAN codes. Our rig is row two: JK Inverter BMS, SPF 5000 ES, CAN, L52. L52 is the Pylontech CAN code, and it is the code JK users report as working when the JK BMS is set to its Pylontech CAN profile. That is a field report, not a line in the Growatt manual.
| Battery and inverter | Link and port | Program 05 | Program 36 |
|---|---|---|---|
| Pylontech US2000 / US3000 with SPF 5000TL HVM | RS485, battery RS485 port to BMS port. | LI | L02 or L04. |
| Pylontech US3000C with SPF 5000 ES | CAN, battery CAN port to inverter BMS port. | LI | L52. |
| JK Inverter BMS with SPF 5000 ES | CAN, BMS CAN port to BMS port. | LI | L52. |
| JK Inverter BMS with SPF 5000 ES, CAN will not link | RS485, BMS RS485 port to BMS port. | LI | L04. |
For the older SPF 5000TL HVM, the rows are different: that box has no CAN link for the battery, and it talks RS485 at 9600 bps. On the HVM, the battery DIP switches set the speed. For a single Pylontech pack on an HVM, Growatt China told PowerForum users to set the four switches to 1000: switch 1 ON, the rest OFF. A JK BMS has no Pylontech DIP switches.

Why the inverter cannot hear the battery
Error 20 is a handshake fault. A handshake is the short exchange where two units agree they can talk. The inverter sends a frame on the CAN bus: one short packet of data. The BMS must answer with its own frame: SOC, charge limit, cell volts, temps, alarms. If no answer comes back in time, the inverter raises Error 20 and stops trusting the pack. The talk failed. That talk can fail in only four ways: the wire is wrong, the port is wrong, the protocol is wrong, or the bus is broken. A reboot fixes none of these. It changes nothing about the wire, the protocol, or a DIP switch set for the wrong speed. One rare case: the BMS was asleep and woke up during the power cycle. That is luck, not a fix.
A plain Ethernet patch lead is the most common wire fault. The lead in the Pylontech box is a normal UTP Cat5 cable, and PowerForum users found it did not work on some Growatt models until they made a custom cable. Growatt’s own FAQ says the same thing in plain words: try a new BMS cable first. On our rig, the patch lead was fine. It was just set to the wrong code.
Fix it in order: nine steps, each with a check
Work the steps in order. If a check fails, stop there.
- Write down what you have. Note the inverter model, battery and BMS brands, and the code. Photograph Programs 05 and 36 and the DIP switches. Check: model names and photos in hand.
- Cut the power before you touch a plug. Switch the battery breaker, DC isolator, and AC breaker off. Wait until the LCD is dark. Check: LCD dark, battery breaker off.
- Check the cable with your eyes and hands. Pull the plug at each end and look for a bent pin, a plug that does not click home, and a crushed cable. If you have a spare cable you know is good, swap it in now. Check: both plugs click home, no bent pins.
- Check the ports. On the inverter, the battery cable goes in the socket marked BMS, not RS485. On the JK BMS, it goes in the socket marked CAN. Not RS485-1. Not RS485-2. Check: plug in the CAN port at the BMS end and the BMS port at the inverter end.
- Set Program 05 and Program 36. Hold ENTER for three seconds, go to Program 05, and pick LI. Press ENTER to jump to Program 36. Pick L52 for CAN on the SPF 5000 ES, or L02 for RS485 on the older HVM. Press ENTER until Program 36 flashes, then press ESC. On our rig, this was the fault: Program 36 showed L51. We changed it to L52. Check: Program 05 still reads LI, and Program 36 still reads L52.
- Set the JK app to match. Open the JK app over Bluetooth. Go to the protocol settings. Pick the Pylontech CAN profile, PYLON CAN V1.2 on boards that show versioned names, listed as CAN at 500 kbps. Set the CAN speed to 500 kbps if the app shows it. Check the cell count is 16 for a 16S pack, and check the battery type is LiFePO4. Check: JK app shows CAN Pylontech, 500 kbps, 16S, LiFePO4.
- Set DIP 1000 and test the bus with a meter. For one pack, set DIP 1000: switch 1 ON, switches 2, 3, and 4 OFF. That sets the pack as address 0, the master. With all power off, test ohms between CAN-H and CAN-L. A good bus reads about 60 ohms (two 120 ohm end resistors in parallel). With power on and the bus idle, test each line to ground: each should sit near 2.5 V DC. On our rig, the power-off test read 61 ohms, and the idle test read 2.5 V on each line. Check: DIP 1000 set, about 60 ohms power off, about 2.5 V per line power on.
- Power up in order and wait two minutes. Switch the battery on first, then the inverter, and wait two full minutes. A flashing Li icon means the inverter is still trying to shake hands with the BMS. A solid Li icon and a real SOC reading mean the link is up. On our rig, the Li icon went solid after about 40 seconds, and the screen showed 47% SOC, the same number the JK app showed. Check: solid Li icon, SOC matches the BMS app.
- Prove it under load. Put a load on the inverter and watch the SOC move, then charge the pack and watch it climb. On our rig, a 1,200 W kettle load pulled the SOC from 47% to 46% over ten minutes. On charge, the SOC reached 100% as the pack hit 55.2 V: 16 cells times 3.45 V per cell. Check: SOC moves with charge and discharge, and it reaches 100% without jumping.

If the reading differs, the reading is the answer
A meter can rule out a dead link in minutes. It cannot read CAN frames, but it can tell you if the bus is shorted or open. All volt numbers are DC to ground, on a high-speed CAN bus built to ISO 11898-2. On a live bus with traffic, a plain meter shows the average: CAN-H reads 2.6 to 3.0 V and CAN-L reads 2.0 to 2.4 V. Only an oscilloscope shows the true peaks: CAN-H toward 3.5 V, CAN-L toward 1.5 V. You do not need one here.
| Reading | What it means. | What to do. |
|---|---|---|
| About 60 ohms, power off. | Both 120 ohm end resistors are there. | Go to Step 8. |
| Near 120 ohms, power off. | One end resistor is missing. | Check the BMS end resistor. |
| Open circuit, power off. | No termination, a broken wire, or the plug is in a port with no CAN pair. | Check the port first, then test the cable. |
| Near zero ohms, power off. | A short between CAN-H and CAN-L. | Unplug each end in turn. If the short stays with the cable, replace the cable. |
| 2.5 V on each line, power on, idle. | Bus idle and healthy, but nobody is talking. | Check the protocol and the BMS power. |
| 2.6–3.0 V on CAN-H, 2.0–2.4 V on CAN-L. | Traffic is flowing. The link is alive. | Go to Step 8. |
| 0 V or pack volts on one line. | That line is shorted, or the signal chip is dead. | Stop. Unplug the BMS end. If the line clears, the fault is in the BMS. |
For RS485, the same idea holds with different pins. Flipped A and B is a common fault on third-party cables. If RS485 will not link, swap A and B at one end only, then test again.

What each symptom points to
| What you see. | Most likely cause. | Fix. |
|---|---|---|
| Error 20 on boot, flashing Li icon, no SOC. | Wrong Program 36 code, or plug in the wrong port. | Steps 4 and 5: match the port to the link, then set L52. |
| Error 20 clears, then comes back at noon. | Cable run tight against DC or AC wiring picks up noise at peak current. | Move the comms cable away from power cables and shorten it. |
| Error 20 only at night. | BMS asleep, or pack volt too low. | Charge the pack. Check the BMS sleep timer. |
| Error 20 plus Warning 04. | Low battery, and the inverter cannot read the BMS to trust the SOC. | Charge first if you can, then fix the link. See below. |
| Error 20 and Program 05 will not change. | Pack too flat, or a lock in the fault guide. | Re-install the software to clear Error 20, then set Program 01 to UTI and Program 14 to SNU. |
| Warning 401 on an SPH or MIN inverter. | Meter fault, not a BMS fault. | Check the meter power and cable. |
Error 20 is not Warning 401
Do not mix up Growatt code families. Error 20 on the SPF off-grid range is a BMS fault. The inverter cannot hear the battery BMS. On SPH and MIN hybrid inverters, Warning 401 is a meter fault. The inverter cannot talk to the meter. The SPH manual lists BMS COM Fault as a separate warning entry. A meter fault needs a check of the meter power and cable. A BMS fault needs a check of the battery cable, the port, and Program 36.
When Error 20 shows up with Warning 04
Warning 04 means low battery. Growatt’s SPF 3500 ES manual says Warning 04 is often caused by a link fault on lithium: fix the link fault first. Together they point to the same root cause: the inverter cannot read the BMS, so it cannot trust the SOC. Do not clear Warning 04 by raising a volt setting. Charge the battery first, then fix the data link.
When US2 is the right call
Growatt’s own FAQ gives the fallback: if your battery is not on the Growatt list, set the battery type to US2 in Program 05 and run without BMS data. US2 is User-Defined 2, made for lithium with no data link. USE is for lead-acid. You set the charge volts in Programs 19, 20, and 21 yourself, and Growatt says to set Programs 19 and 20 to the same full-charge volt. Check your battery datasheet first. For a 16S pack: 55.2 V bulk, 53.6 V float, 48.0 V cut-off. For a 15S pack: 51.75 V bulk, 50.25 V float, 45.0 V cut-off. See the open-loop LiFePO4 voltage settings and the Growatt closed-loop to user mode guide before you set them.
What can still go wrong
The JK pin swap.
JK’s own papers conflict on CAN-H and CAN-L pins 4 and 5. If the 60 ohm test, the volts, and the menu all read right, and Error 20 still will not clear, swap CAN-H and CAN-L at one end only and test again.
Firmware comes last, not first.
Firmware can fix a protocol bug. But it can also move the menu, so the list shifts. Growatt’s fault guide lists firmware after the protocol check, not before it. It says to reset to factory settings after the update. So save your settings first. Use firmware only with a file from Growatt support, or from the battery maker, for your exact model.
The cable that worked yesterday.
A comms cable run tight against DC lugs or AC wiring can pick up noise when current peaks. That is why a fault that clears in the morning can come back at noon, when solar output peaks. If Error 20 comes back under load, move the cable and shorten it.
Common questions
Will a JK BMS talk to a Growatt SPF 5000 ES?
Yes. Use CAN, Program 05 LI, Program 36 L52, and the Pylontech CAN profile in the JK app at 500 kbps. L52 is field-reported as working, not a line in the Growatt manual.
Can I use L51 instead of L52?
No. L51 is the Growatt battery CAN protocol. A JK BMS speaking Pylontech will not answer it. Use L52 for CAN, or L04 for RS485.
Can I use a normal Ethernet cable?
Sometimes. The Pylontech box ships a normal UTP Cat5 cable, and it works on some Growatt models. But a straight patch lead can put CAN-H onto CAN-L, so build the cable by hand and meter it first.
My battery is not on the Growatt list. What now?
Use US2 in Program 05 and run open-loop. Set Programs 19, 20, and 21 from the battery datasheet: for a 16S LiFePO4 pack, 55.2 V bulk, 53.6 V float, and 48.0 V cut-off.
What does a flashing Li icon mean?
It means the inverter is still trying to shake hands with the BMS. A solid Li icon and a real SOC mean the link is up.
Do this next
- Write down model names, and take a photo of Programs 05/36 and the DIP switches. Cut power, then check the cable and ports.
- Set Program 05 to LI, Program 36 to L52 for CAN (SPF 5000 ES) or L02 for RS485 (older HVM). Set the JK app to the Pylontech CAN profile.
- Test the bus: about 60 ohms with power off, about 2.5 V per line with power on and idle.
- Power up battery first, then inverter. Wait two minutes for a solid Li icon and a real SOC.
- Prove it under load and on charge, then write the settings on a note inside the battery box door.
- No Growatt protocol? Switch Program 05 to US2, set Programs 19, 20, and 21 from the datasheet, and run open-loop.
- Still stuck? Call Growatt support with model names, Program 05/36 settings, meter readings, and a photo of the DIP switches.
More pairings are on the Brand Pairings hub.
Sources
Checked on 20 November 2026. Unconfirmed items are labelled “not confirmed” in the text.
- Growatt SPF 5000 ES User Manual, LCD settings page. Program 05 LI leads to Program 36. L01–L15 RS485. L51–L65 CAN. One link type at a time.
- Growatt SPF 3500 ES Manual. Warning 04 is often a link fault.
- Growatt SPF3000TL HVM Fault Guide. Error 20 + Warning 04 with Program 05 locked: re-install software, then set Program 01 to UTI and Program 14 to SNU.
- Growatt FAQ via PowerForum (Growatt China reply). Try a new BMS cable first. Pylontech on HVM: L02/L04, DIP 1000. On ES: L52.
- PowerForum, “Growatt Inverter + Pylontech Batteries: BMS Comms Guide” (2020–2024). HVM: RS485 9600 bps, DIP 1000. ES: CAN, L52.
- ISO 11898-2 CAN standard (PCBCool, Apex Control, SCADA Protocols). Idle 2.5 V per line. Dominant 3.5 V / 1.5 V. 120 ohm per end, about 60 ohms measured.
- JK BMS community reports, esphome-jk-bms-can notes. JK Inverter BMS, Pylontech CAN, 500 kbps, works on L52. Field-reported. JK papers conflict on CAN-H/L pins 4/5; not confirmed.
- This site: Growatt SPF 5000 ES BMS pinout, Growatt Error 20 fix, open-loop LiFePO4 voltage settings, Growatt closed-loop to user mode, Brand Pairings hub.
Comments (0)