-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
seplos_modbus reporting invalid header #46
Comments
Could you enable the |
did again with
|
The raw traffic doesn't look good. All responses should start with |
Before I had opened the ticket, I already tried a different RS485 module. After your suggestion I build it on a breadboard with a 3rd module and now it's working like a charm! I put the working module on my pcb and still working. So I had realy two broken modules... Thanks for the help! |
Could you provide the model name of your BMS? I would like to add the BMS to the list of supported models if it's missing. |
Part model: 1101-SP76 |
Unfortunately the problem reappears after adding a second rs485 adapter to the ESP32. Sometimes I can read valid frames but most of the time I got invalid header reports. Could it help to add something like the esphome documentation states:
|
The You have added the second RS485 adapter to a second |
I updated the project, you can find the setup and schematic of the pcb here: https://github.com/bagges/deye-esp32-bridge In a nutshell: 2x RS485 connected to one esp32 dev kit v4. First module reads the data from an deye inverter and the second module should read the data from seplos. Pins module one: |
I will provide a more verbose version of the seplos component later the day. Does the Deye inverter part of your setup work flawlessly? |
Please change the retrieval of the external component from the
Please flash your ESP another time and provide a new log. The "Invalid header" response indicates the rejected byte now. Furthermore another warning is raised if the RX buffer gets cleared due to a timeout (big gaps of silence between two bytes). |
Yes I have this running for few weeks without problems. Here is the log from the debug-decoder branch: |
The ESP receives a lot of noise probably because of long wires, bad grounding or bad components. There should be silence on the UART if the BMS doesn't send responses. |
I've pushed some additional changes. I would be happy about another log to verify my assumption is correct. |
I'll try it later. I also ordered some other rs485 modules (with automatic flow control). Will give them a try too. |
New log |
Thanks for testing! I am curious about the other rs485 converter (the one without flow control pin). |
I'll get back to you. But unfortunately I can only test the adapter without flow control tonight. |
No rush! Take your time. |
I added the RS485 module without flow control pin with some flying cables to the pcb and it is working without problems for now. |
May be it gets worse as soon you connect the inverter to the common ground (if there is/was one)? |
I have not connected the inverter or bms to common gnd. I will now create some adapter pcb for the other rs485 module... What I also will try is to connect the initial module to 5V. I saw on the details that this is a 5v and not a 3.3v module. |
If you power the module with 5V the logic level will be 5V too on the TTL side. The ESP should survive this but keep this in mind. |
Let's close this issue for now because I'm pretty sure it cannot be solved software-wise. |
@syssi I just want you to know. I got my new PCBs and I am now using the RS485 with automatic flow control. At first everything worked fine, but after about 12h I got the same issues with "invalid header". Also the RX LED did not turn off at all. Only a full power cycle did solve the issue again for some time. |
Could you provide a photo to visualize your change? Thanks in advance! |
Did you connect GND of the RS485 side to the BMS or do you use B- & A+ only? |
B- and A+ only. Do you have connected both GND from the RS485 to the GND of the BMS? |
It's hard to make a good recommendation here: Sometimes it solves issues. Sometimes it brings new issues IMO. ;-) |
I have now a stable version running for about 4 days. I changed the power supply. I was previously using an 12V output from the inverter which seems to only provide about 100mA ... |
First of all, thanks for your awesome projects!
I am using an RS458 adapter with MAX458 chip. I tried to use pins 1/3 and 15/13 for Tx/Rx on an ESP32 dev kit v4. As flow control pin I am using 4/5. I read that you do not recommend those boards with flow control, but I designed a PCB with those and try to get them working before I redesign the PCB ...
My config:
I configured debug logging and can see this:
Do you have any idea what could be the issue?
The text was updated successfully, but these errors were encountered: