Comments (15)
BTW: The other LED diodes arrived: the Vishay TSHA4401 (IR LED 875nm) seem to work fine too - since the SFH487 family seems to be end-of-sales.
from vitowifi.
Developement takes places in the develop-KW branch. I made a quick first commit but it is completely untested!
from vitowifi.
Adjusted the datapoints and TX RX:
VitoWifi.addDatapoint("outsidetemp", "boiler", 0x0800, TEMP); VitoWifi.addDatapoint("boilertemp", "boiler", 0x0810, TEMP); VitoWifi.setGlobalCallback(globalCallbackHandler); VitoWifi.setLoggingPrinter(&Serial); VitoWifi.enableLogger(); VitoWifi.setup(&Serial1, 16, 17);
First read succeeds, afterwards keeps failing/rebooting. The addresses seem a bit odd...
`rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0010,len:4
load:0x3fff0014,len:588
load:0x40078000,len:0
load:0x40078000,len:9880
entry 0x400789d8
Setup finished...
reading datapoints
Datapoint outsidetemp READ action added
Datapoint boilertemp READ action added
READ request on address 0008, length 2
succes
Datapoint outsidetemp action successful
Value received
boiler - outsidetemp: 13.6
READ request on address 1008, length 2
succes
Datapoint boilertemp action successful
Value received
boiler - boilertemp: 43.2
READ request on address 1008, length 2
succes
Datapoint Guru Meditation Error of type LoadProhibited occurred on core 1. Exce ption was unhandled.
Register dump:
PC : 0x400e4af3 PS : 0x00060530 A0 : 0x800d106f A1 : 0x3f fca820
A2 : 0xfefefefe A3 : 0x3f40103f A4 : 0x00060120 A5 : 0x00 000001
A6 : 0x00060120 A7 : 0x3ffc8920 A8 : 0x800d1938 A9 : 0x3f fca800
A10 : 0x400d17d4 A11 : 0x3f40103f A12 : 0x80083f1c A13 : 0x3f fc0bb0
A14 : 0x00000003 A15 : 0x00060023 SAR : 0x00000018 EXCCAUSE: 0x00 00001c
EXCVADDR: 0xfefeff02 LBEG : 0x400014fd LEND : 0x4000150d LCOUNT : 0xff fffffd
Backtrace: 0x400e4af3:0x3ffca820 0x400d106c:0x3ffca840 0x400d09a4:0x3ffca870 0x4 00ddda1:0x3ffca890
Rebooting...
ets Jun 8 2016 00:22:57
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0010,len:4
load:0x3fff0014,len:588
load:0x40078000,len:0
load:0x40078000,len:9880
entry 0x400789d8
Setup finished...
READ request on address 0000, length 0
succes
Datapoint Guru Meditation Error of type LoadProhibited occurred on core 1. Exce ption was unhandled.
Register dump:
PC : 0x400e4af3 PS : 0x00060530 A0 : 0x800d106f A1 : 0x3f fca820
A2 : 0xfefefefe A3 : 0x3f40103f A4 : 0x00060120 A5 : 0x00 000001
A6 : 0x00060120 A7 : 0x00000000 A8 : 0x800d1938 A9 : 0x3f fca800
A10 : 0x400d17d4 A11 : 0x3f40103f A12 : 0x8008398c A13 : 0x3f fca720
A14 : 0x00000000 A15 : 0x3ffca7f0 SAR : 0x0000001f EXCCAUSE: 0x00 00001c
EXCVADDR: 0xfefeff02 LBEG : 0x400014fd LEND : 0x4000150d LCOUNT : 0xff fffffd
Backtrace: 0x400e4af3:0x3ffca820 0x400d106c:0x3ffca840 0x400d09a4:0x3ffca870 0x4 00ddda1:0x3ffca890
Rebooting...
ets Jun 8 2016 00:22:57`
from vitowifi.
I just tested myself with an esp8266 and it doesn't work at all 😢
I have to redo the complete optolink FSM I guess.
The addresses is something strange. Endianess? Is the ESP32 different from the ESP8266 wrt endianess?
from vitowifi.
the crazy part is that it worked in the first iteration. but yes, looks like the msb block moved
from vitowifi.
Could you try again with the newest commit?
I'm not completely if the "reset to KW"-method will also work on devices not compatible with the 300-protocol.
Keep in mind that the KW-protocol only supports datapoints up to 2 bytes in length.
from vitowifi.
no luck so far: "Setup finished.." is displayed all the time, but no readings...
from vitowifi.
You're using the globalcallback-esp32? (with your customization wrt pins)
I must have changed something on the serial-initialisation then... If you don't even see the "reading datapoints" message, we're back at where we started.
I can only test myself this evening.
from vitowifi.
I had the #ifdef-guard for esp8266 removed for some reason but it keeps the esp32 from starting up. I just committed the fix after testing with my lolin32 board.
from vitowifi.
I'll be offline for about 3 weeks :/ will test it directly as soon as I'm back.
from vitowifi.
If you want, you can also test with the branch develop-merge_protocols
You'll have to add VitoWifi_setProtocol(KW);
to your sketch, before setup()
.
from vitowifi.
Will try to find some time this weekend to pick-up testing...
from vitowifi.
Deleted the KW-branch as you can use the develop-branch and set the KW-protocol in your sketch.
from vitowifi.
Just tested the dev-branch and it works nicely!
Just found some typos in OptolinkKW, line 163 & 164 as well as optolinkp300, line 310, 31
success with two 's' at the end ;-)
from vitowifi.
Good news! Thanks for your testing and feedback!
from vitowifi.
Related Issues (20)
- V1: protocol blocked after invalid DP address HOT 2
- No Data with ESP8266, but data with ESP32 HOT 21
- Temperature-Datapoint with 3 Bytes HOT 3
- ESP32 Communication issue HOT 5
- "Betriebsart" as example delivers always "0" HOT 4
- DPCoP and group HOT 1
- 8 Byte read extension with uint64_t brings inconsistent results HOT 30
- VitoWiFi.readDatapoint() only on MQTT request HOT 5
- Serialmonitor "chksum 0x2d" HOT 4
- Blocking after 6 hours HOT 3
- Errors on high MQTT request rate HOT 9
- Keine Verbindung mit ESP32 über USB-Host möglich HOT 3
- Wemos D1 mini / Serial-Pins HOT 7
- Example for DPRaw HOT 2
- Can you explain a bit more how to install the library in Arduino IDE 2.0? HOT 4
- Queue full without any connection
- VitoWiFi 2.0 Debug funcionality HOT 7
- Solved: Vitocal300 WO1B does not start with VitoWifi attached HOT 4
- Vitoconnect passthrough HOT 12
- Up-to-date library version on PlatformIO 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 vitowifi.