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)
- Interrupt received with CMT2300A HOT 2
- HMS-800-2T HOT 14
- /api/livedata/status -> too many decimal places via web query HOT 3
- [Request] Add support for TSUN TSOL_MS2000 inverter HOT 3
- "HMS-400BM" recognized as "HMS-500-1T v2" HOT 12
- MQTT connection lost, laggy web interface, restart required HOT 7
- _isAllEnabledProducing and _isAllEnabledReachable are true without connection to inverter HOT 4
- crashes especially after firmware update at tcp_update_rcv_ann_wnd HOT 4
- Version v24.8.1 läst sich nicht mit VSC neu bauen. HOT 3
- keine WLAN-Verbindung zum Ziel-WLAN HOT 21
- Nach WLAN-Router Neustart keine Verbindung mit der DTU HOT 55
- [Request] IPv6 support HOT 13
- nRF24 Chip-Status not connected HOT 5
- [Request] fail-safe limit option HOT 1
- HMT 2250 6T - connected but no data displayed HOT 4
- WiFi issue still exists HOT 45
- Überschusseinspeisung nur bei Netzfreqenz kleiner 50 Hz HOT 2
- "Poll interval" - Fix documentation or code HOT 2
- [Request] do not use night time if date is in the year 1970 HOT 2
- 2 HM WR - HMS-2000-4T wird nicht erkannt der HM-1500-4T aber schon HOT 3
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.