Giter Club home page Giter Club logo

Comments (14)

tbnobody avatar tbnobody commented on August 24, 2024

Hello,
the "Connection error" means that the RF module is either not connected or the connection is wrong.

You could change the line (in platformio.ini) from
monitor_filters = time, colorize, log2file, esp32_exception_decoder
to
monitor_filters = log2file, esp32_exception_decoder

and compile, upload and run the code again. Then the esp32_exception_decoder should decode the core dump and the backtrace and you should see a more detailed exception description.

from opendtu.

Mearten avatar Mearten commented on August 24, 2024

I changed the line, but the result in the serial monitor is still the same:

Starting OpenDTU

Initialize FS... done
Reading configuration... done
Initialize Network... done
Setting Hostname... Configuring WiFi STA using new credentials... done
Initialize NTP... done
Initialize MqTT... done
Initialize WebApi... done
Initialize Hoymiles interface... Connection error!!
Guru Meditation Error: Core  1 panic'ed (LoadProhibited). Exception was unhandled.

Core  1 register dump:
PC      : 0x4017209b  PS      : 0x00060230  A0      : 0x800e128a  A1      : 0x3ffb27b0  
A2      : 0x00000000  A3      : 0x3ffc3aa0  A4      : 0x00000000  A5      : 0x00000000  
A6      : 0x17481253  A7      : 0x00000116  A8      : 0x800ee53e  A9      : 0x3ffb2750  
A10     : 0x00000000  A11     : 0xffffeff5  A12     : 0x00000000  A13     : 0x00000008  
A14     : 0x3ffd0e18  A15     : 0x3ffd0e18  SAR     : 0x0000001b  EXCCAUSE: 0x0000001c  
EXCVADDR: 0x000001d0  LBEG    : 0x4008b3cd  LEND    : 0x4008b3de  LCOUNT  : 0xffffffff  

Backtrace:0x40172098:0x3ffb27b00x400e1287:0x3ffb27d0 0x400f3e96:0x3ffb2820 

I have not connected the RF24L01+, I'm nowhere near the hoymiles either.
But my thought is that I want to be able to get into the configuration without having the RF24L01+ connected without being near my hoymiles.

A noob question, when I upload new code everything is gone, it can't be that something is left behind from a previous project that gets in the way.

from opendtu.

ahinrichs avatar ahinrichs commented on August 24, 2024

You can leave out the Hoymiles part by commenting out the Hoymiles.loop() in src.main.cpp line 105 and 106. I used this on a second ESP for testing.

from opendtu.

Mearten avatar Mearten commented on August 24, 2024

Thanks it works
Before the void loop he already went into the reboot, commenting lines 105 and 106 was not enough.
After turning off lines 80 to 98, it will continue to run.
In the configuration of the inverter there was a series of characters (no serial number of the inverter) I have removed this. Lines 80 through 98 turned on. After this, the aspen starts up.

Got an error message buffer full, but after disconnecting the RF24L01+ this message was gone, so here I have the next challenge how to connect it correctly.

from opendtu.

tbnobody avatar tbnobody commented on August 24, 2024

Buffer full is a good hint that your wiring is wrong.

from opendtu.

Mearten avatar Mearten commented on August 24, 2024

The buffer full message also comes without the RF24L01+ being connected, I see now

from opendtu.

Mearten avatar Mearten commented on August 24, 2024

This has nothing to do with my initial problem.

Can I also see somewhere when the RF24L01+ is properly connected? or only after I have added an Inverter and start reading?

from opendtu.

tbnobody avatar tbnobody commented on August 24, 2024

Can I also see somewhere when the RF24L01+ is properly connected?

Yes. You will get the following message:
Initialize Hoymiles interface... done

from opendtu.

Mearten avatar Mearten commented on August 24, 2024

The message is now: Initialize Hoymiles interface... Connection successfull
Tomorrow I'm going to the Hoymiles again so I can try if they are approachable.

For this I had to adjust the platformio.ini, lines 48 to 54 also placed under [env:generic]
the lines:

build_flags = ${env.build_flags}
     -DHOYMILES_PIN_MISO=15
     -DHOYMILES_PIN_MOSI=2
     -DHOYMILES_PIN_SCLK=14
     -DHOYMILES_PIN_IRQ=13
     -DHOYMILES_PIN_CE=16
     -DHOYMILES_PIN_CS=5

from opendtu.

Mearten avatar Mearten commented on August 24, 2024

After adding the serial number of the Hoymiles, it keeps rebooting.
After I disable lines 41 through 53 in the src.main.cpp file, it no longer reboots. Error in the config.bin?
If I delete the config.bin (how I don't know yet). Will a new one be created automatically? So I can start again at 0.

from opendtu.

tbnobody avatar tbnobody commented on August 24, 2024

I would try to erase the flash. This removes all partitions. (see https://community.platformio.org/t/how-to-erase-flash-of-esp32/27955)

After that you have to flash the esp again. but currently it seams that your littlefs partition contains junk.

from opendtu.

Mearten avatar Mearten commented on August 24, 2024

After a full reset, I was able to add and read both my Hoymiles without any problems.
@tbnobody where can i find the donate button? 😃

from opendtu.

tbnobody avatar tbnobody commented on August 24, 2024

Nice that it works now. I would say the issue was because of old data on in the flash memory. But not sure. Due to the fact that it's working now I am going to close this issue. Please feel free to open a new one if the error occours again.

from opendtu.

github-actions avatar github-actions commented on August 24, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion or issue for related concerns.

from opendtu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.