-
-
Notifications
You must be signed in to change notification settings - Fork 182
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
JK-B2A24S20P hardware 10.X-W, software 10.02 #37
Comments
Where did you buy the BMS? Could you ask the seller about some specifications? |
Please avoid the first UART it's used by the |
Yes I know I should avoid the UART and I disable the baud_rate: 0.... but the problem is I am using the two other UARTs of the ESP32.... and in order to let work, one of the three must be an hardware as far I understood.... Now I am doing some test with a standalone ESP32... I will check via software UART. What GPIO are you advised ? |
There is no software UART implementation (in Esphome) if you use a ESP32. The ESP32 supports 3 hardware UARTs (auto-assigned by some internal matrix). Software serial is a thing if you use a ESP8266. The ESP8266 doesn't have a "matrix" to wire some features (UARTs) internally. The hardware UARTs are assigned to some selected GPIOs. If you use another GPIOs (which doesn't support hardware UART) the software serial implementation is used (automatically). |
In other words: If you use vanilla ESPHome + ESP32 the maximal number of UARTs is limited to 3. |
I prefer this setup for poking around on a D1 Mini ESP32:
|
Ok :) ...Actually I am testing on a vanilla ESP32 with one unique softUART (04/14) as in your yaml. |
Hummm seems I wrote too fast... I had two data sequence ... then anything more :( |
Do you see anything at the logs? If the ESP32 reboots/crashs please try to reduce the number of sensors. |
Update ...
|
I guess I need to recompile in very_verbose for the logger :) |
Please check your wiring and try to swap the wires again. Another user had success using |
And please make sure |
Another user having trouble to interface this BMS model: #12 |
Ok first very_verbose in GPIO04/GPIO14 For the wiring ... it's so simple except if the black wire from the RS485 was not the ground :) .... but I guess it's the case |
Could you provide a photo of your setup? |
Going to wire with GPIO 16/17
Ok I will try...... coz the BMS is in woodbox. |
Please try to make your log less noisy by:
|
UART cannot work if you use 2 wires only. You have to attach RX, TX and GND! |
Of course there are 3 :) |
Ok here are the log as you asked :
|
with my current yaml
|
This is the important part of the capture:
It looks like the |
Ok ... I will check that point.... I just soldered a connector (JST XH 3p) from the provided cable. I will by able the check not before 2h. Anyway thanks for your Huge help ... |
I received the communication manual https://drive.google.com/file/d/1qFzNqvpd2mRP1vRA4yX7vIU6pnKJCSTB/view?usp=sharing |
Here are some picts So I wired a cable JST XH 3P, 15cm Then from this femmal cable into the ESP The other part of the RS485 is correctly plugged into the JKBMS |
I had a very similar output to yours above but then I switched to:
I have a slightly different BMS than yours but at least on my GPIO16 goes to the pin closest to ground and GPIO17 goes to the pin closest to V_Batt It's been working well for days now. |
Can you confirm to me that triplet color from your RS485 module are (black, white, yellow) and black is the ground ? In fact, what are the A/B colors respectively ? |
I don't have the RS-485 module. I made a custom cable that fits the RS-485 port on the BMS. |
You mean you attacked directly the RS-485 port from the JKBMS to the ESP32 without using the module ? |
Correct, |
OMG :) maybe it's the trick ..... Hope I have somewhere some JST picoblade 1.25mm 4P :) .. |
Maybe ... |
I am lucky tonight ..... I found an old molex 1.25mm 4p connector :).... I will be able to test asap |
The manual looks good to me. It's the implemented protocol. |
Good news :) It's WORKING fine :) |
And FYI, it's also working fine on my "PVbrain" ..... 3 UART used : JKBMS,PIPsolar and dual PZEM 004T :) |
Do you use the official PZEM component? I'm aware of one bug report telling the component is unstable. |
Yes ... I got some since 2 years ..... Super stable for me.... |
Cool! I will use one of these devices (PZEM-017 DC 0-300V 100A) as digital shunt in future. |
maybe ... I was not clear, the PZEM I installed are PZEM 004T V3 (modbus based). I don't plan to install the DC version with a shunt. The problem, the sens of current is not reported with PZEM ... it's big problem IMHO for solar application. |
Hi,
After being able to integrate your amazing pipsolar package for my axpert max I aka PIP8048, now I am trying your JKBMS Integration.
Actually it's plugged on the hardware UART0 GPIO01/GPIO03.... Unfortunatly absoluptly no oommunication is logged :(
Here is my little yaml
Of course I trried my swapping TX/RX GPIO definition without more success....
The text was updated successfully, but these errors were encountered: