Heizkoerper Thermostat Programm: Unterschied zwischen den Versionen
Kiwi (Diskussion | Beiträge) K |
Kiwi (Diskussion | Beiträge) |
||
Zeile 9: | Zeile 9: | ||
+ | Folgende Sachen mal runterladen... | ||
+ | <gallery> | ||
+ | Bild:Thermy.diff.txt | ||
+ | Bild:Zbusloader thermy.diff.txt | ||
+ | Bild:Compile.sh.txt | ||
+ | Bild:Thermy.src.txt | ||
+ | </gallery> | ||
+ | http://www.ethersex.de/images/2/27/Thermy.diff.txt | ||
+ | http://www.ethersex.de/images/a/a5/Zbusloader_thermy.diff.txt | ||
+ | http://www.ethersex.de/images/e/e4/Compile.sh.txt | ||
+ | http://www.ethersex.de/images/8/8f/Thermy.src.txt | ||
− | + | gummi:/usr/src/ethersex# | |
− | // | + | gummi:/usr/src/ethersex# |
− | // | + | gummi:/usr/src/ethersex# mkdir ethersex_100515_Thermy |
− | // # | + | gummi:/usr/src/ethersex# cd ethersex_100515_Thermy |
− | // # | + | gummi:/usr/src/ethersex/ethersex_100515_Thermy# |
− | // | + | gummi:/usr/src/ethersex/ethersex_100515_Thermy# git clone git://github.com/ethersex/ethersex.git |
− | // | + | gummi:/usr/src/ethersex/ethersex_100515_Thermy# |
− | // # | + | gummi:/usr/src/ethersex/ethersex_100515_Thermy# cd ethersex/ |
− | // | + | gummi:/usr/src/ethersex/ethersex_100515_Thermy/ethersex# |
− | // | + | gummi:/usr/src/ethersex/ethersex_100515_Thermy/ethersex# git checkout --track -b wip-hr20 origin/wip-hr20 |
− | // | + | Branch wip-hr20 set up to track remote branch refs/remotes/origin/wip-hr20. |
− | // | + | Switched to a new branch "wip-hr20" |
− | // # | + | gummi:/usr/src/ethersex/ethersex_100515_Thermy/ethersex# |
− | // | + | gummi:/usr/src/ethersex/ethersex_100515_Thermy/ethersex# make menuconfig |
− | // | ||
− | // | ||
− | // # | ||
− | |||
− | // | ||
− | // | ||
− | |||
− | // | ||
− | // # | ||
− | / | + | Load a Default Configuration ---> |
− | + | Rondostat HR20/Thermotronic Basic/Thermy | |
− | + | General Setup ---> | |
− | + | MCU frequenc ---> 8000000 | |
− | + | Enable Debugging ---> off | |
+ | control6 scripts ---> on | ||
+ | Network ---> | ||
+ | ZBus Support --> on | ||
+ | ZBus usart select ---> 0 | ||
+ | ZBus Baudrate ---> 76800 | ||
+ | IP address: ---> z.b. 10.40.1.31 | ||
+ | Netmask: ---> z.b. 255.255.255.0 | ||
+ | Default gateway: ---> z.b. 10.40.1.1 | ||
+ | TCP support ---> on | ||
+ | ICMP support ---> on | ||
+ | I/O ---> | ||
+ | ADC input ---> on | ||
+ | ADC Reference ---> AVcc | ||
+ | HR20-style Temperature ---> on | ||
+ | LCD Displays ---> on | ||
+ | HR20-style LCD ---> on | ||
+ | Protocols ---> | ||
+ | ECMD ---> on | ||
+ | TCP/Telnet ---> on | ||
+ | TCP Port ---> 2701 | ||
+ | Disable IP Config ---> on | ||
+ | Applications ---> | ||
+ | System clock support ---> on | ||
+ | Date and Time support ---> on | ||
+ | < Exit > | ||
+ | gummi:/usr/src/ethersex/ethersex_100515_Thermy/ethersex# | ||
+ | gummi:/usr/src/ethersex/ethersex_100515_Thermy/ethersex# | ||
+ | gummi:/usr/src/ethersex/ethersex_100515_Thermy/ethersex# touch thermy.diff | ||
+ | gummi:/usr/src/ethersex/ethersex_100515_Thermy/ethersex# | ||
+ | gummi:/usr/src/ethersex/ethersex_100515_Thermy/ethersex# patch -p1 < thermy.diff.txt | ||
+ | patching file hardware/adc/Makefile | ||
+ | patching file hardware/lcd/Makefile | ||
+ | patching file hardware/lcd/hr20-ecmd.c | ||
+ | patching file hardware/lcd/hr20.c | ||
+ | patching file hardware/lcd/hr20.h | ||
+ | patching file protocols/zbus/zbus.c | ||
+ | patching file services/clock/Makefile | ||
+ | patching file services/clock/clock.c | ||
+ | patching file services/clock/clock_ecmd.c | ||
+ | gummi:/usr/src/ethersex/ethersex_100515_Thermy/ethersex# | ||
+ | gummi:/usr/src/ethersex/ethersex_100515_Thermy/ethersex# | ||
+ | gummi:/usr/src/ethersex/ethersex_100515_Thermy/ethersex# echo 'C6_SOURCE = $(TOPDIR)/control6/Thermy.src' > config.mk | ||
+ | gummi:/usr/src/ethersex/ethersex_100515_Thermy/ethersex# | ||
+ | gummi:/usr/src/ethersex/ethersex_100515_Thermy/ethersex# ln -s Thermy.src control6/Thermy.c | ||
+ | gummi:/usr/src/ethersex/ethersex_100515_Thermy/ethersex# | ||
+ | gummi:/usr/src/ethersex/ethersex_100515_Thermy/ethersex# make clean && make | ||
+ | gummi:/usr/src/ethersex/ethersex_100515_Thermy/ethersex# | ||
+ | gummi:/usr/src/ethersex/ethersex_100515_Thermy/ethersex# cd .. | ||
+ | gummi:/usr/src/ethersex/ethersex_100515_Thermy# | ||
+ | gummi:/usr/src/ethersex/ethersex_100515_Thermy# git clone http://git.brokenpipe.de/gitroot/bricolage/zbusloader | ||
+ | gummi:/usr/src/ethersex/ethersex_100515_Thermy# | ||
+ | gummi:/usr/src/ethersex/ethersex_100515_Thermy# | ||
+ | gummi:/usr/src/ethersex/ethersex_100515_Thermy# cd zbusloader | ||
+ | gummi:/usr/src/ethersex/ethersex_100515_Thermy/zbusloader# | ||
+ | gummi:/usr/src/ethersex/ethersex_100515_Thermy/zbusloader# | ||
+ | gummi:/usr/src/ethersex/ethersex_100515_Thermy/zbusloader# patch -p1 < ../zbusloader_thermy.diff.txt | ||
+ | patching file Makefile | ||
+ | patching file avr_init.S | ||
+ | patching file zbusloader | ||
+ | patching file pinconfig.h | ||
+ | patching file zbusloader.c | ||
+ | gummi:/usr/src/ethersex/ethersex_100515_Thermy/zbusloader# | ||
+ | gummi:/usr/src/ethersex/ethersex_100515_Thermy/zbusloader# | ||
+ | gummi:/usr/src/ethersex/ethersex_100515_Thermy/zbusloader# make | ||
+ | avr-gcc -std=gnu99 -Os -g -Wall -W -mmcu=atmega169 -mmcu=atmega169 -DF_CPU=8000000UL -c -o zbusloader.o zbusloader.c | ||
+ | avr-gcc -mmcu=atmega169 -DF_CPU=8000000UL -c -o avr_init.o avr_init.S | ||
+ | avr-gcc -o zbusloader -std=gnu99 -Os -g -Wall -W -mmcu=atmega169 -nostdlib -Wl,--section-start=.text=0x3C00 zbusloader.o avr_init.o | ||
+ | avr-size zbusloader | ||
+ | text data bss dec hex filename | ||
+ | 980 0 135 1115 45b zbusloader | ||
+ | avr-objcopy -O ihex -R .eeprom zbusloader zbusloader.hex | ||
+ | gummi:/usr/src/ethersex/ethersex_100515_Thermy/zbusloader# | ||
+ | gummi:/usr/src/ethersex/ethersex_100515_Thermy/zbusloader# cd ../ethersex | ||
+ | gummi:/usr/src/ethersex/ethersex_100515_Thermy/ethersex# | ||
+ | gummi:/usr/src/ethersex/ethersex_100515_Thermy/ethersex# | ||
+ | gummi:/usr/src/ethersex/ethersex_100515_Thermy/ethersex# ./compile.sh | ||
− | + | nun sollte alles super laufen :-) | |
− | |||
+ | .... | ||
+ | .... | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Version vom 14. Mai 2010, 20:45 Uhr
Mein Aufbau:
Jeweils 2 Thermy Heizkörper Thermostate an ein Pollin AVR-NET-IO Board, Verbindung mittels TTL (RS232) - ZBUS, Da bei der schaltung des Thermy's der Lichtschranken eingang auf die RS232 TX Leitung gelegt wurde, habe ich hier eine veränderung der schaltung vorgenommen, in dem ich die eine leiterbahn durchtrenne, und eine brücke löte um als Lichtschranken Eingang den PE4 Kontakt nutzen zu können. Des weiteren habe ich den 32Khz Uhrenquarz durch einen größeren 8MHz Quarz ersetzt, mit diesem gibt es keine stabilitäts probleme bei der datenübertragung durch ungenauigkeit des internen oszilators, sowie der abweichung bei temperatur veränderung.
Bilder zu der modifikation, sowie verkabelung folgenn och....
Folgende Sachen mal runterladen...
http://www.ethersex.de/images/2/27/Thermy.diff.txt
http://www.ethersex.de/images/a/a5/Zbusloader_thermy.diff.txt
http://www.ethersex.de/images/e/e4/Compile.sh.txt
http://www.ethersex.de/images/8/8f/Thermy.src.txt
gummi:/usr/src/ethersex#
gummi:/usr/src/ethersex#
gummi:/usr/src/ethersex# mkdir ethersex_100515_Thermy
gummi:/usr/src/ethersex# cd ethersex_100515_Thermy
gummi:/usr/src/ethersex/ethersex_100515_Thermy#
gummi:/usr/src/ethersex/ethersex_100515_Thermy# git clone git://github.com/ethersex/ethersex.git
gummi:/usr/src/ethersex/ethersex_100515_Thermy#
gummi:/usr/src/ethersex/ethersex_100515_Thermy# cd ethersex/
gummi:/usr/src/ethersex/ethersex_100515_Thermy/ethersex#
gummi:/usr/src/ethersex/ethersex_100515_Thermy/ethersex# git checkout --track -b wip-hr20 origin/wip-hr20
Branch wip-hr20 set up to track remote branch refs/remotes/origin/wip-hr20.
Switched to a new branch "wip-hr20"
gummi:/usr/src/ethersex/ethersex_100515_Thermy/ethersex#
gummi:/usr/src/ethersex/ethersex_100515_Thermy/ethersex# make menuconfig
Load a Default Configuration ---> Rondostat HR20/Thermotronic Basic/Thermy General Setup ---> MCU frequenc ---> 8000000 Enable Debugging ---> off control6 scripts ---> on Network ---> ZBus Support --> on ZBus usart select ---> 0 ZBus Baudrate ---> 76800 IP address: ---> z.b. 10.40.1.31 Netmask: ---> z.b. 255.255.255.0 Default gateway: ---> z.b. 10.40.1.1 TCP support ---> on ICMP support ---> on I/O ---> ADC input ---> on ADC Reference ---> AVcc HR20-style Temperature ---> on LCD Displays ---> on HR20-style LCD ---> on Protocols ---> ECMD ---> on TCP/Telnet ---> on TCP Port ---> 2701 Disable IP Config ---> on Applications ---> System clock support ---> on Date and Time support ---> on < Exit > gummi:/usr/src/ethersex/ethersex_100515_Thermy/ethersex# gummi:/usr/src/ethersex/ethersex_100515_Thermy/ethersex# gummi:/usr/src/ethersex/ethersex_100515_Thermy/ethersex# touch thermy.diff gummi:/usr/src/ethersex/ethersex_100515_Thermy/ethersex# gummi:/usr/src/ethersex/ethersex_100515_Thermy/ethersex# patch -p1 < thermy.diff.txt patching file hardware/adc/Makefile patching file hardware/lcd/Makefile patching file hardware/lcd/hr20-ecmd.c patching file hardware/lcd/hr20.c patching file hardware/lcd/hr20.h patching file protocols/zbus/zbus.c patching file services/clock/Makefile patching file services/clock/clock.c patching file services/clock/clock_ecmd.c gummi:/usr/src/ethersex/ethersex_100515_Thermy/ethersex# gummi:/usr/src/ethersex/ethersex_100515_Thermy/ethersex# gummi:/usr/src/ethersex/ethersex_100515_Thermy/ethersex# echo 'C6_SOURCE = $(TOPDIR)/control6/Thermy.src' > config.mk gummi:/usr/src/ethersex/ethersex_100515_Thermy/ethersex# gummi:/usr/src/ethersex/ethersex_100515_Thermy/ethersex# ln -s Thermy.src control6/Thermy.c gummi:/usr/src/ethersex/ethersex_100515_Thermy/ethersex# gummi:/usr/src/ethersex/ethersex_100515_Thermy/ethersex# make clean && make gummi:/usr/src/ethersex/ethersex_100515_Thermy/ethersex# gummi:/usr/src/ethersex/ethersex_100515_Thermy/ethersex# cd .. gummi:/usr/src/ethersex/ethersex_100515_Thermy# gummi:/usr/src/ethersex/ethersex_100515_Thermy# git clone http://git.brokenpipe.de/gitroot/bricolage/zbusloader gummi:/usr/src/ethersex/ethersex_100515_Thermy# gummi:/usr/src/ethersex/ethersex_100515_Thermy# gummi:/usr/src/ethersex/ethersex_100515_Thermy# cd zbusloader gummi:/usr/src/ethersex/ethersex_100515_Thermy/zbusloader# gummi:/usr/src/ethersex/ethersex_100515_Thermy/zbusloader# gummi:/usr/src/ethersex/ethersex_100515_Thermy/zbusloader# patch -p1 < ../zbusloader_thermy.diff.txt patching file Makefile patching file avr_init.S patching file zbusloader patching file pinconfig.h patching file zbusloader.c gummi:/usr/src/ethersex/ethersex_100515_Thermy/zbusloader# gummi:/usr/src/ethersex/ethersex_100515_Thermy/zbusloader# gummi:/usr/src/ethersex/ethersex_100515_Thermy/zbusloader# make avr-gcc -std=gnu99 -Os -g -Wall -W -mmcu=atmega169 -mmcu=atmega169 -DF_CPU=8000000UL -c -o zbusloader.o zbusloader.c avr-gcc -mmcu=atmega169 -DF_CPU=8000000UL -c -o avr_init.o avr_init.S avr-gcc -o zbusloader -std=gnu99 -Os -g -Wall -W -mmcu=atmega169 -nostdlib -Wl,--section-start=.text=0x3C00 zbusloader.o avr_init.o avr-size zbusloader
text data bss dec hex filename 980 0 135 1115 45b zbusloader
avr-objcopy -O ihex -R .eeprom zbusloader zbusloader.hex gummi:/usr/src/ethersex/ethersex_100515_Thermy/zbusloader# gummi:/usr/src/ethersex/ethersex_100515_Thermy/zbusloader# cd ../ethersex gummi:/usr/src/ethersex/ethersex_100515_Thermy/ethersex# gummi:/usr/src/ethersex/ethersex_100515_Thermy/ethersex# gummi:/usr/src/ethersex/ethersex_100515_Thermy/ethersex# ./compile.sh
nun sollte alles super laufen :-)
.... ....