ESP32_to_SMA icon indicating copy to clipboard operation
ESP32_to_SMA copied to clipboard

Can't get any byte after connection & connection only last 16 seconds

Open serniko97 opened this issue 2 years ago • 5 comments

Hi @delhatch, I was trying out this awesome project but unfortunately I can't get it to work. I always get this error message: *** FATAL ERROR *** About to do a soft restart of the ESP32 now!

I tried to understand the root cause and found the following:

  • I have to use setPin("0000") otherwise it recognizes 6 zeros instead of 4;
  • Every time, no matter what, when connecting to the SMA it needs to do 10 attempts with BTStart() (is this strange behavior normal?);
  • After it connects successfully it only remains connected for around 16 seconds.

The biggest issue is that I never get any byte from the SMA as after calling initialiseSMAConnection() it waits for SerialBT.available() to become true until the connection drops because of the 16 seconds limit and the fatal error above is returned.

The model of my SMA inverter is SMC 6000A-IT (Sunny Mini Central) and the bluetooth board inside is an SMA Bluetooth Piggy-Back. I also have an SMA Sunny Beam and that is working fine without any issue, it's NetID is 2. The software version of the inverter is 12.09.121.R.

serniko97 avatar Jul 03 '22 21:07 serniko97