diff --git a/fhem/docs/fritzbox.html b/fhem/docs/fritzbox.html
index 9f5261181..750db989a 100644
--- a/fhem/docs/fritzbox.html
+++ b/fhem/docs/fritzbox.html
@@ -3,7 +3,7 @@
-Home of FHEM
+FHEM on the Fritz!Box
@@ -11,131 +11,99 @@
FHEM on the Fritz!Box
-Description
-
- This document describes how to install FHEM on the
- fritzbox.
-
- What works:
-
- - The basic fhem.pl server with at commands, notify, logging (tested)
- - FHZ1000 and FHZ1300 (both tested)
- - FS20, FHT and KS300-2 (tested)
- - HMS (untested, but should work)
- - SunSet/SunRise.
- - one of the Web frontends (webpgm2, the builtin one)
-
+(as of 2009-10-19)
-
- What does not work right now:
-
- - Gnuplot. No idea how to replace it, perhaps we compile a fritzbox
- version
- - EM1010PC. I tried it without batteries, and I think the USB interface
- cannot power an USB hub, an FHZ1300 and an EM1010PC together. The fritzbox
- resets when trying to initialize the devices. More experiments needed.
- - WS300PC. Untested, don't have one.
-
+Description for the Fritzbox 7170 from Achim
+
+ - Flash Fritzbox with the Freetz firmware
+
+ 7170_04.70freetz-1.1.de_20091005-165006.image (8MB) using the
+ Fritzbox web-frontend.
+
+ - Copy tgz packages apache (1MB),
+ fhem (1MB) and
+ perl (10MB) to the USB stick
+ and attach it to the box.
+
+ - Restart the box and connect to the box using telnet, e.g. with
+ telnet 192.168.178.1
+
+ - Untar the packages into a new directory on the USB stick, e.g.
+ cd /var/media/ftp/uStor01/
+ mkdir fritzext
+ cd fritzext
+ tar -xvzf ../fhem-4.6.tgz
+ tar -xvzf ../perl-5.6.2.tgz
+ tar -xvzf ../apache-1.3.41.tgz
+ For the following ascii file modifications the editor nano can be used
+ which is contained in the Freetz firmware.
+
+ - Adapt /var/flash/debug.cfg, and change the path to fhem:
+ /var/flash # more debug.cfg
+ export dTSB=1212687845
+ /bin/sleep 120
+ cd /var/media/ftp/uStor01/fritzext/fhem-4.5 && ./rc.fhem
+
+ - Adapt fhem/rc.fhem, and change the path to perl, fhem, apache:
+ #!/bin/sh
+ # "RC" script for a fhem running on the Fritz!Box from
+ # an attached usb-stick.
+
+ cd /var
+ ln -s /var/media/ftp/uStor01/fritzext/perl .
+ ln -s /var/media/ftp/uStor01/fritzext/apache-1.3.41 .
+ ln -s /var/media/ftp/uStor01/fritzext/fhem .
+
+ export LD_LIBRARY_PATH=/var/perl/lib
+ export PATH=/var/perl/bin:$PATH
+ export PERL5LIB=/var/perl/lib/:/var/perl/perl5/:/var/perl/lib/perl5/5.6.2/
+
+ mount -o remount,rw /var/media/ftp/uStor01
+
+ swapon /var/perl/swapfile
+
+ # For CUL:
+ insmod /lib/modules/2.6.13.1-ohio/kernel/drivers/usb/serial/usbserial.ko
+ vendor=0x03eb product=0x204b
+
+ # For FHZ:
+ insmod /lib/modules/2.6.13.1-ohio/kernel/drivers/usb/serial/ftdi_sio.ko
+
+ cd /var/media/ftp/uStor01/fritzext/fhem
+ perl fhem.pl fhem.cfg
+ cd /var/
+ apache-1.3.41/apache apache-1.3.41/conf/apache.conf
+
+ - Adapt your fhem.cfg. CUL can be used on /dev/ttyUSB0.
+ - Restart the box
-Howto
+Description for the Fritzbox 7270 from Volker
-Compile tips
+Links
- Note: You don't need to compile anything if you have the correct
- kernel and uclibc version.
-
- I compiled the ftdi_sio module with the help of the ds26-15.1 packages, see
- the links.
- The ftdi_sio module had to be modified, as 2.16.13 does not contain the USB
- ID's of the ELV devices.
- Compiling a working perl for the fritzbox was a nightmare. After compiling
- 5.8.8 I dicovered it has a strange bug: Appending numbers to strings won't
- work on the fritzbox. This is why I compiled an "old" (5.6.2) one, which
- seems to work perfectly.
-
-Links
-
+My
diff --git a/fhem/docs/fritzbox_old.html b/fhem/docs/fritzbox_old.html
new file mode 100644
index 000000000..1e5d9867b
--- /dev/null
+++ b/fhem/docs/fritzbox_old.html
@@ -0,0 +1,141 @@
+
+
+
+
+Home of FHEM
+
+
+
+
+
+FHEM on the Fritz!Box
+
+Description
+
+ This document describes how to install FHEM on the
+ fritzbox.
+
+ What works:
+
+ - The basic fhem.pl server with at commands, notify, logging (tested)
+ - FHZ1000 and FHZ1300 (both tested)
+ - FS20, FHT and KS300-2 (tested)
+ - HMS (untested, but should work)
+ - SunSet/SunRise.
+ - one of the Web frontends (webpgm2, the builtin one)
+
+
+
+ What does not work right now:
+
+ - Gnuplot. No idea how to replace it, perhaps we compile a fritzbox
+ version
+ - EM1010PC. I tried it without batteries, and I think the USB interface
+ cannot power an USB hub, an FHZ1300 and an EM1010PC together. The fritzbox
+ resets when trying to initialize the devices. More experiments needed.
+ - WS300PC. Untested, don't have one.
+
+
+
+Howto
+
+ Tested on the fritzbox 7170, with Firmware 29.04.49.
+ Note:The kernel modules are for kernel 2.6.13.1, and perl is compiled
+ for uCLibc 0.9.28.
+
+ Prerequisites:
+
+ - You need a fritzbox with an USB host port. Check your kernel version.
+ If it won't match the version above, see the "Compile tips" in this
+ document.
+ - an USB hub (a small passive one is enough).
+ - an FHZ1000 or FHZ1300
+ - a USB stick, at least 64MB. As the fritzbox is USB 1.1 only,
+ the slowest is fast enough.
+ - telnet access for the fritzbox. See the links on how to enable it.
+
- the complete fhem package from the links section.
+
+
+ Installation:
+
+ - Connect the USB stick to a PC, and unpack the content of the
+ fb_fhem_x.y.tar.gz in the root directory of the USB stick. You'll
+ get a perl 5.6.2 installation with just those modules wich are needed
+ by fhem, an empty 32MB swapfile with a swapon/swapoff command,
+ the fhem server with an empty configuration file, and an rc.fhem
+ script which should start everything.
+ - Connect the USB stick and the FHZ1x00 via the USB hub to the
+ fritzbox.
+ - Log in via telnet to the fritzbox.
+ - Change into the directory /var/media/ftp/*Partition*/usr/fhem .
+ - Execute the command rc.fhem.
+ - Now you can either use a Web browser:
+
+ with the online help, or choose the command-line via:
+
+ telnet fritz.box 7072
+
+ to define your devices.
+ - To enable automatic startup after reboot of the fritzbox enter the
+ following at the end of the /var/flash/debug.cfg:
+
+ /bin/sleep 120
+ cd /var/media/ftp/*Partition*/usr/fhem && ./rc.fhem
+
+
+
+ Tips:
+
+ - The installation creates the link /var/usr to the USB disk
+ (/var/media/ftp/*Partition*/usr)
+ - In the beginning only the most necessary (in my opinion, anyway :-)
+ modules are installed: FHZ/FS20/HMS/KS300/SUNRISE_EL. If you want to
+ use other modules, they are in the /var/usr/fhem/FHEM/unused directory,
+ just move the needed module in the parent directory, and do a
+ "reload module" (without the .pm suffix).
+ - If you use webpgm2, and unsure about an attribute, then just define it,
+ you'll get a link to the description of the attribute in the online
+ help".
+ - If your're unsure about the parameters for a command try "?" as an
+ argument, e.g.:
+
+ ?
+ define ?
+ define ?
+ set ?
+
+
+
+
+
+Compile tips
+
+ Note: You don't need to compile anything if you have the correct
+ kernel and uclibc version.
+
+ I compiled the ftdi_sio module with the help of the ds26-15.1 packages, see
+ the links.
+ The ftdi_sio module had to be modified, as 2.6.13 does not contain the USB
+ ID's of the ELV devices.
+ Compiling a working perl for the fritzbox was a nightmare. After compiling
+ 5.8.8 I dicovered it has a strange bug: Appending numbers to strings won't
+ work on the fritzbox. This is why I compiled an "old" (5.6.2) one, which
+ seems to work perfectly.
+
+Links
+