What this guide works from. One rig: a Growatt SPF 5000 ES, a JK Inverter BMS (PB2A16S-30P) on a 16-cell LiFePO4 pack, 280 Ah, resting at 52.8 V, JK app showing 47% charge. We built a new 2-wire CAN cable by hand, crimp by crimp, and tested it with a meter at each step.
The short answer. The JK Inverter BMS has three RJ45 sockets, and only two talk to an inverter. On the CAN socket, JK’s own papers disagree: the V19 spec lists pin 4 as CAN-L and pin 5 as CAN-H, while other JK docs list them the other way round. Read the print on your own board. Wire H to H and L to L. On our rig, the board print said pin 4 CAN-H and pin 5 CAN-L. We wired it that way, set CAN to 500 kbps, set DIP 1000, and the link came up in under a minute.
The rig that would not link
It was a new build, and it looked right. The SPF 5000 ES sat on the wall. 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 charge state showed. Charge state, or SOC, is how full the battery is. Without data, the inverter will not trust the battery. On Program 05 LI it cuts output when the link fails.
The plug was the fault, twice over. First, the cable sat in RS485-2, the pack-to-pack socket. It fits the plug, but it carries no inverter link. Second, the old cable was a full 8-wire patch lead. It joined the RS485 pins at the same time as the CAN pins. So we moved the plug to the CAN socket and built a fresh 2-wire cable. The Li icon went solid after about 40 seconds, and the screen showed 47% SOC, the same number the JK app showed.
The three sockets, and what each one is for
The PB board holds the sockets in a row. The CAN socket is the inverter link on a CAN build. The RS485-1 socket is the inverter link on an RS485 build. The RS485-2 socket is for pack-to-pack links and for a PC. Plug the inverter into the wrong socket and nothing talks. The table below is the map for all three. The pairing guide for this rig is the JK BMS to Growatt SPF 5000 ES CAN setup.
| Socket | Job | Pins that matter | Speed | Plug the inverter here? |
|---|---|---|---|---|
| CAN (RJ45) | Inverter link, CAN bus. | 4 and 5 CAN, 7 GND (V19 spec). | 500 kbps for inverter profiles (stock 250 kbps). | Yes, on a CAN build. |
| RS485-1 (RJ45) | Inverter link, RS485 bus. | 1, 8 RS485-B1; 2, 7 RS485-A1; 3, 6 GND. | Follows the protocol profile. | Yes, on an RS485 build. |
| RS485-2 (RJ45 or 4-pin) | Pack-to-pack parallel, PC check. | 1, 8 RS485-B2; 2, 7 RS485-A2. | 115200 baud stock. | No, never the inverter. |
Some JK boards have a small 4-pin plug on the board, part name A1254WF. On most boards, CAN sits on pins 1 and 2 of that small plug, and RS485 sits on pins 3 and 4. On some boards it is the reverse. Do not mix its pin count with the RJ45 sockets. The WiFi port is a second trap. Do not plug the inverter cable into it. On that port, pins 7 and 8 carry RS485. Pins 1 and 2 carry power and ground for the WiFi stick.

The CAN socket: pins 4 and 5, and the swap warning
Here is the pinout from the JK V19 spec. This spec covers the JK-PB2A16S-30P and the V19 build: pin 4 is CAN-L, pin 5 is CAN-H, pin 7 is ground, and pins 1, 2, 3, 6, and 8 are not linked. The manual lists a stock CAN speed of 250 kbps, not the 500 kbps your inverter wants. Set it to 500 kbps in the JK app first, then test the link.
Other JK docs list the same two pins the other way round. A JK gateway wire guide lists pin 4 as CAN-H and pin 5 as CAN-L on its joint 485/CAN port. A long forum thread tells of both kinds. The JK manual adds to the mix-up: its double-RJ45 plans count the jacks 1 to 16 across both jacks, so the CAN pins show up as pins 12 and 13. They are really pins 4 and 5 of the CAN jack. A reader who counts from the wrong end flips the pair.
So no one JK pinout fits each board. The V19 spec says 4 is CAN-L and 5 is CAN-H. Other JK docs say the reverse. Read the print on your own board. Then wire CAN-H to CAN-H and CAN-L to CAN-L, even if pins 4 and 5 swap ends. Never wire H to L. If the print has worn off, meter the cable. Test one swap at one end only. Ground has the same mix-up, on a small scale. The V19 spec puts CAN ground on pin 7. A forum post puts it on pin 6. For a short run you do not need the ground wire at all.

RS485-1 and RS485-2: close cousins, different jobs
RS485-1 is the inverter socket on an RS485 build. Its pinout comes from the same V19 spec: pins 1 and 8 are RS485-B1, pins 2 and 7 are RS485-A1, pins 3 and 6 are ground, and pins 4 and 5 are not linked. Two things in that list catch folks out. First, pins 4 and 5 are dead on RS485-1. So a CAN cable in RS485-1 moves no data. An RS485 cable in the CAN socket moves no data too. Second, A and B each show up on two pins. A is on pins 2 and 7. B is on pins 1 and 8. The pairs join up inside the BMS. That is why field notes do not match. Use pins 1 and 2, the orange pair in T568B.
RS485-2 links packs side by side in a bank. It is also the port for a PC. On some PB boards it is a 4-pin plug: pin 1 RS485-B2, pin 2 RS485-A2, pin 3 ground, pin 4 not linked. On V19 kits it is an RJ45 socket: pins 1 and 8 RS485-B2, pins 2 and 7 RS485-A2, pins 4 and 5 not linked. Its job is pack-to-pack talk, not inverter talk. In a bank, the main pack talks to the inverter from its CAN or RS485-1 socket. The rest talk to the main pack through RS485-2 link cables. Set the main pack to DIP 1000, address 0. Give each other pack its own address. Do not set two packs to 1000. Do not plug the inverter into a slave pack’s RS485-2 socket.
Why a swapped pair kills the link
CAN works as a pair, not as two lone wires. CAN-H and CAN-L are one twisted pair. When the bus is idle, both lines sit near 2.5 V. When a unit sends a bit, CAN-H rises toward 3.5 V and CAN-L falls toward 1.5 V. The two lines move in step, in opposite ways. The chip at each end reads the gap between them, not the volts on one wire alone. Swap the pair, and the gap flips. The chip sees a gap of the wrong sign, so it reads each bit as its opposite. No frame ever checks out, so no frame ever gets an answer. The inverter waits, hears nothing it can use, and raises Error 20.
A straight patch lead adds a second fault. It joins pins 1, 2, 7, and 8 as well as pins 4 and 5. On the CAN socket those pins are dead, but on the inverter end they may not be. Growatt puts RS485 on pins 1 and 2. Deye puts RS485 on pins 1 to 3. That is why the fix is a 2-wire cable: blue to pin 4, white/blue to pin 5, both ends, and nothing else in the plug.
Crimp it, wire it, test it: nine steps, each with a check
Work the steps in order. If a check fails, stop there.
- Read the print on your own board. Find the CAN socket on the PB board. Read the small print next to it. Note which pin is CAN-H and which is CAN-L. Take a photo. Check: board print read, photo in hand, H and L noted.
- Cut the power before you touch a plug. Switch the battery breaker, DC isolator, and AC breaker off. Wait until the inverter screen is dark. Check: screen dark, battery breaker off.
- Cut a fresh length of shielded Cat5e. Keep it under 2 metres. Strip back the jacket by 25 mm. Pull out the blue pair only: solid blue and white/blue. Cut the other six wires back at the jacket and tape the cut ends. Check: only two wires stick out of each end, blue and white/blue.
- Crimp pin 4 and pin 5 at both ends. Hold the plug with the clip away from you, pin 1 on the left. Push solid blue into pin 4 and white/blue into pin 5. Push the jacket into the plug. Crimp, then tug each wire. On our rig the board print said pin 4 CAN-H, so blue went to CAN-H at the BMS end. Check: blue in pin 4, white/blue in pin 5, both ends, tug test passed.
- Meter the cable before you plug it in. Set the meter to ohms with a beep. Touch pin 4 at one end and pin 4 at the other: it should beep. Do the same for pin 5. Then test pin 4 to pin 5: it must not beep. Check: pin 4 to pin 4 beeps, pin 5 to pin 5 beeps, pin 4 to pin 5 stays silent.
- Test the bus with a meter. Plug the cable into the CAN socket and the inverter BMS port, power still off. Test ohms between CAN-H and CAN-L. A good bus reads about 60 ohms (two 120 ohm end resistors in parallel). On our rig it read 61 ohms. Check: about 60 ohms power off.
- Set the app and the inverter. In the JK app, set the CAN protocol to Pylontech at 500 kbps. Set DIP 1000 on one pack: switch 1 ON, the rest OFF. On the Growatt, set Program 05 to LI and Program 36 to L52. Check: JK app reads Pylontech CAN 500 kbps, Program 05 LI, Program 36 L52.
- 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 fast 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 a scope 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 7. |
| 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. | Plug in RS485-2, or wrong Program 36 code. | Steps 1 and 7: move the plug to CAN, then set L52. |
| Link dead even with the right socket. | CAN-H and CAN-L swapped at one end. | Swap the blue pair at one end only and test again. |
| Link dead, JK app shows 250 kbps. | Stock CAN speed, not the 500 kbps the inverter wants. | Set CAN to 500 kbps in the JK app. |
| Link works on one pack, fails on two. | Two packs set to DIP 1000, or the inverter plugged into a slave. | Main pack DIP 1000, slaves on their own address. |
| Volts show but the details page is blank. | The inverter runs on volts alone. The link is not live yet. | Work the nine steps from Step 5. |
A profile in the app is not a promise
The JK app lists inverter profiles. Each one is a named setup. Picking one does not mean it will work with your unit. It may fail on your exact inverter model or firmware build. On a Deye, the pairing guide is the JK BMS to Deye hybrid inverter setup. For the Growatt port the JK cable plugs into, see the Growatt SPF 5000 ES BMS pinout. The full Error 20 fix is the Growatt Error 20 BMS fix.
When open-loop is the right call
Closed-loop is better when it works. Open-loop is better than a broken closed-loop. If the JK link will not come up after a full check, or the board print has worn off and both pin orders fail, switch the inverter to a volts-based battery type and run the house tonight. Set the charge volts from the battery datasheet. 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. Volts-based SOC on LiFePO4 is rough, since the flat discharge curve makes the inverter guess SOC wrong. Set a safe low cut-off, and use the JK app or a shunt for a true SOC number. The full volt guide is the open-loop LiFePO4 voltage settings.
What can still go wrong
Both pin orders fail.
If both pin orders fail, stop swapping. Some inverters put CAN on other pins. Victron VE.Can puts CAN-H on pin 7 and CAN-L on pin 8. A cable that is right for a Growatt can be wrong for a Victron. Build a second lead for Victron, or use a Type A cable.
The parallel bank trap.
In a bank, the main pack talks to the inverter from its CAN or RS485-1 socket. The rest talk to the main pack through RS485-2 link cables. If the inverter cable goes into a slave pack, the inverter hears the wrong pack or hears nothing. Check the DIP on each pack before you power up.
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 the link drops under load, move the cable and shorten it.
Common questions
Which JK socket talks to the inverter?
The CAN socket on a CAN build, or RS485-1 on an RS485 build. RS485-2 never talks to the inverter. It links packs side by side and talks to a PC.
Which pin is CAN-H on the JK CAN socket?
It depends on your board. The V19 spec says pin 4 is CAN-L and pin 5 is CAN-H. Other JK docs say the reverse. Read the print on your own board and wire H to H and L to L.
What CAN speed does the JK BMS need?
500 kbps for Pylontech, GoodWe, Deye, and Growatt CAN profiles. The stock speed in the manual is 250 kbps, so set it to 500 kbps in the JK app first.
What DIP setting do I use for one pack?
DIP 1000: switch 1 ON, switches 2, 3, and 4 OFF. That gives address 0, the main pack. Set the switches first, then power the pack.
What should the meter read on a good CAN bus?
About 60 ohms with the power off, and about 2.5 V per line with the power on and the bus idle. On a live bus with traffic, CAN-H reads 2.6 to 3.0 V and CAN-L reads 2.0 to 2.4 V.
Do this next
- Read the print on your own board. Note which pin is CAN-H and which is CAN-L.
- Cut a fresh shielded Cat5e lead under 2 metres. Blue to pin 4, white/blue to pin 5, both ends. Cut the other six wires back and tape them.
- Meter the cable pin to pin, then test the bus: about 60 ohms with power off.
- Set the JK app to Pylontech CAN at 500 kbps. Set DIP 1000 on one pack.
- Plug the inverter into CAN or RS485-1, never RS485-2. Set the inverter to lithium and the right code: L52 on a Growatt SPF, Mode 00 on a Deye.
- Power up battery first, then inverter. Wait two minutes for a live SOC that moves.
- Still stuck? Read the Growatt Error 20 BMS fix and call JK support with board model, board print, app settings, and meter readings.
Sources
Checked on 20 November 2026. Unconfirmed items are labelled “not confirmed” in the text.
- JK Inverter BMS V19 specification (JK-PB2A16S-30P). CAN socket: pin 4 CAN-L, pin 5 CAN-H, pin 7 ground. RS485-1: pins 1 and 8 B1, pins 2 and 7 A1. Stock CAN speed 250 kbps.
- JK BMS gateway wire guide. Joint 485/CAN port lists pin 4 CAN-H and pin 5 CAN-L. Conflicts with the V19 spec; not confirmed which sheet is right for each board. The JK manual’s double-RJ45 plans count the jacks 1 to 16 across both jacks, so the CAN pins show as pins 12 and 13; they are pins 4 and 5 of the CAN jack.
- Growatt SPF 5000 ES User Manual, LCD settings page. Program 05 LI leads to Program 36. L51–L65 CAN. One link type at a time.
- Growatt SPF 3500 ES / SPF 5000 ES Manual, version 2.0. BMS port pin map: pin 1 RS485B, pin 2 RS485A, pin 4 CAN-H, pin 5 CAN-L.
- 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. Pylontech CAN at 500 kbps works on Growatt L52 and Deye Mode 00. Field-reported. JK papers conflict on CAN-H/L pins 4/5; not confirmed.
- Victron VE.Can documentation. VE.Can puts CAN-H on pin 7 and CAN-L on pin 8.
- This site: JK BMS to Growatt SPF 5000 ES CAN setup, JK BMS to Deye hybrid inverter setup, Growatt SPF 5000 ES BMS pinout, Growatt Error 20 BMS fix, open-loop LiFePO4 voltage settings.
Comments (0)