Comments (14)
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.
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.
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.
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.
Buffer full is a good hint that your wiring is wrong.
from opendtu.
The buffer full message also comes without the RF24L01+ being connected, I see now
from opendtu.
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.
Can I also see somewhere when the RF24L01+ is properly connected?
Yes. You will get the following message:
Initialize Hoymiles interface... done
from opendtu.
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.
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.
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.
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.
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.
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)
- Unknown device HOT 3
- Grid Profile is detected as XX - EN 50549-1:2019 but Smiles Cloud shows as 2.0.0 (DE_VDE4105_2018) HOT 10
- Login-Felder bei "Anmelden" sind verdeckt HOT 2
- Connection to DTUs lost after changing NRF transmit power HOT 1
- Button "Gesamtertrag" bei String 2 im Startscreen nicht sichbar am Handy HOT 2
- Button "Speichern" in den "Netzwerkeinstellungen" am Handy nicht sichtbar HOT 1
- Morgens keine Verbindung zu HMS-1600-4T HOT 14
- AutoScan for frequency change HOT 1
- Rename/add description to strings HOT 1
- [Request] Time based deactivation of Display
- Diverse Probleme mit OpenDTU HOT 14
- [Request] täglicher Wechselrichter Neustart Timer, Tagesbezugskorrektur
- falsche Berechnung der gesammten AC Leistung Phase 1 bei niedriger String Spannung (Zendure AB2000) HOT 3
- Sicherheitsproblem: WLAN-Passwort im Klartext in config.json HOT 10
- Kritisch: Setzen von Einstellungen über den Web-API unterbricht die Verbindung zum Wechselrichter HOT 2
- platformio esp32 build fails due to import pkg_resources in auto_firmware_version.py HOT 2
- Hoymiles HMS-800W hat scheinbar neuen SN-Bereich HOT 1
- FW-Update von Fusion 2.1 DTU nicht möglich HOT 1
- 2,4kW bei 5% WR Limit HOT 1
- Grid Profil / Frequency Watt (FW) / Wrong shown value "Recovery High Frequency (RVHF)" HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opendtu.