-
Notifications
You must be signed in to change notification settings - Fork 1
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
Problem with software serial? #1
Comments
After a bit of investigating, I found two problems (maybe there are even more):
|
So my current situation is the following:
I am sure that the data flowes porperly from the 75/15 to the ESP-01. But for some reason the parsing is not successful. The data packet is much larger than from the Phoenix device, that may also cause problems. |
Just a remark I had as I begun looking at your code. |
I have tested a version using Serial.swap() instead of SoftwareSerial. |
P.S. If you have reasons not to use Telnet and want absolutely to use serial communication, may I suggest to use Serial.swap() to let the hardware UART process the flow of data coming from the VE port and use SoftwareSerial to communicate with the user. The later is not demanding on Rx like the VE port is. |
First I want to say thank you for this solution and all your work.
My problem is that it just doesn't work, I am quite sure that I did everything right. The actual guess is that the esp8266 has a quite bad software serial and is not capable to receive the correct data from victron device (MPPT 75/15).
For debug purposes, I modified the code in function RecvWithEndMarker like so:
rc = victronSerial.read();
Serial.println("Daten empfangen!");
Serial.println(rc);
The output of this looks strange:
I am sure that I have the same hardware as you have. Here is my setup:
Do you have any idea what could be the problem?
The text was updated successfully, but these errors were encountered: