FHEM und FritzBox 7240: Unterschied zwischen den Versionen

Aus FHEMWiki
(Kleinere Korrekturen)
Zeile 1: Zeile 1:
= CUL =
Instructions and recommendations for running '''Fhem on a FritzBox 7240'''.
* flash CUL_V3.hex (from <nowiki>[http://www.atmel.com/ Atmel]</nowiki> page)
== CUL ==
* flash CUL_V3.hex (from [http://www.atmel.com/ Atmel] page)
* attach CUL to Fritz!Box (with a USB Hub to have USB-Memory stick and CUL running at the same time)
* attach CUL to Fritz!Box (with a USB Hub to have USB-Memory stick and CUL running at the same time)
<nowiki>Note: to check if CUL works enable in FritzBox settings USB-Fernanschluss.  
 
Now it gets recognized as CUL868.
'''Note''': to check if CUL works, in FritzBox settings enable ''USB-Fernanschluss''.  
Remember to disable it again.  
Now it gets recognized as CUL868. Remember to disable it again.  
The CUL should be recognized as "Es handelt sich um ein nicht unterstütztes USB-Gerät."
The CUL should be recognized as <code>Es handelt sich um ein nicht unterstütztes USB-Gerät</code>. This is OK!
This is OK!</nowiki>
 
= Fritz!Box 7240 =
== Fritz!Box 7240 ==
* Update Fritz!Box to Firmware-Version &gt;= 73.05.05
* Update Fritz!Box to Firmware-Version &gt;= 73.05.05
* download <nowiki>[http://www.fhem.de http://www.fhem.de]</nowiki>
* download [http://www.fhem.de Fhem]
* unzip and store at root of your USB-Memory stick in the folder "fhem" (this will be "<code>/var/InternerSpeicher/&lt;yourUsbStickName&gt;/fhem/</code>" on you Fritz!Box later on.
* unzip and store at root of your USB-Memory stick in the folder "fhem" (this will be <code>/var/InternerSpeicher/&lt;yourUsbStickName&gt;/fhem/</code> on you Fritz!Box lateron.
* adapt in this folder the file "startfhem" if you use more then 1 storage device (e.g. USB memory stick and "1&amp;1 Online Speicher") with hardcoded destination folder for your fhem path:
* in this folder, adapt the file "startfhem" if you use more than one storage device (e.g. USB memory stick and 1&amp;1 Online Speicher") with hardcoded destination folder for your fhem path:
*: <code>home=/var/InternerSpeicher/SanDisk-Cruzer-01/fhem</code>
*: <code>home=/var/InternerSpeicher/SanDisk-Cruzer-01/fhem</code>
* Alternatively disable "1&amp;1 Online Speicher" and use USB memory stick only. This way you don't have to adapt startfhem.
* Alternatively, disable "1&amp;1 Online Speicher" and use USB memory stick only. This way you don't have to adapt startfhem.
* to use telnet enable with phone dialing #96*7*. To login use same password as for Fritz!Box webfrontend. Now you can edit all of your files using vi in telnet.
* to use telnet, it needs to be enabled via phone by dialing #96*7*. To login, use the same password as for Fritz!Box webfrontend. Now you can edit all of your files using vi in telnet.
* Now define your "fhem.cfg" to match your configuration, e.g. starting with your housecode:
* Now define your "fhem.cfg" to match your configuration, e.g. starting with your housecode:
*: <code> define myCUL CUL /dev/ttyACM0 1234 </code>
*: <code> define myCUL CUL /dev/ttyACM0 1234 </code>
Zeile 21: Zeile 22:
*: <code>/var/InternerSpeicher/SanDisk-Cruzer-01/fhem/startfhem</code>
*: <code>/var/InternerSpeicher/SanDisk-Cruzer-01/fhem/startfhem</code>
* or use autostart =&gt; see [#Autostart_fhem #Autostart fhem]
* or use autostart =&gt; see [#Autostart_fhem #Autostart fhem]
= Open issues =
 
== Open issues ==
Daily resets with big log files
Daily resets with big log files


After 1 week running perfectly I was seeing regular/daily resets. The problem in my setting is that I am using several [[FS20 STR Raumthermostat|FS20-STR]]. These devices send every 2-3 minutes off-for-timer or on-for-timers signals. These events get logged in the monthly log file. After this log was bigger then 1MB I have seen these resets. After I emptied/deleted the file the box is running stable again.--[[Benutzer:Madu99]]
After 1 week running perfectly I was seeing regular/daily resets. The problem in my setting is that I am using several [[FS20 STR Raumthermostat|FS20-STR]]. These devices send every 2-3 minutes off-for-timer or on-for-timers signals. These events get logged in the monthly log file. After this log was bigger then 1MB I have seen these resets. After I emptied/deleted the file the box is running stable again.  
<!-- [[Benutzer:Madu99]] -->


After looking more into this, it seems that the 7240 gets a memory problem when log files gets bigger then ~800KB. I changed the logging from monthly files to weekly files (using <code>./log/fhem-%Y-%m-%V.log</code>). This way files should never get this big. Since then 7240 runs stable without any problems.--[[Benutzer:Madu99]] 01:44, 29. Dez. 2011 (CET)
After looking into the details, it seems that the 7240 gets a memory problem when log files get bigger than ~800KB. I changed the logging from monthly files to weekly files (using <code>./log/fhem-%Y-%m-%V.log</code>). This way, files should no longer get that big. Since then, 7240 runs stable without any problems.
<!-- [[Benutzer:Madu99]] 01:44, 29. Dez. 2011 (CET) -->


see also [http://groups.google.com/group/fhem-users/browse_thread/thread/8acca4c2a63e1dce GoogleGroups:FHEM auf Fritzbox - Logfile - info wenn wenig Speicher]
See also [http://groups.google.com/group/fhem-users/browse_thread/thread/8acca4c2a63e1dce GoogleGroups:FHEM auf Fritzbox - Logfile - Info wenn wenig Speicher]


[[Kategorie:FritzBox]]
[[Kategorie:FritzBox]]

Version vom 1. Oktober 2013, 15:56 Uhr

Instructions and recommendations for running Fhem on a FritzBox 7240.

CUL

  • flash CUL_V3.hex (from Atmel page)
  • attach CUL to Fritz!Box (with a USB Hub to have USB-Memory stick and CUL running at the same time)

Note: to check if CUL works, in FritzBox settings enable USB-Fernanschluss. Now it gets recognized as CUL868. Remember to disable it again. The CUL should be recognized as Es handelt sich um ein nicht unterstütztes USB-Gerät. This is OK!

Fritz!Box 7240

  • Update Fritz!Box to Firmware-Version >= 73.05.05
  • download Fhem
  • unzip and store at root of your USB-Memory stick in the folder "fhem" (this will be /var/InternerSpeicher/<yourUsbStickName>/fhem/ on you Fritz!Box lateron.
  • in this folder, adapt the file "startfhem" if you use more than one storage device (e.g. USB memory stick and 1&1 Online Speicher") with hardcoded destination folder for your fhem path:
    home=/var/InternerSpeicher/SanDisk-Cruzer-01/fhem
  • Alternatively, disable "1&1 Online Speicher" and use USB memory stick only. This way you don't have to adapt startfhem.
  • to use telnet, it needs to be enabled via phone by dialing #96*7*. To login, use the same password as for Fritz!Box webfrontend. Now you can edit all of your files using vi in telnet.
  • Now define your "fhem.cfg" to match your configuration, e.g. starting with your housecode:
    define myCUL CUL /dev/ttyACM0 1234
    ...
  • finally start fhem in telnet:
    /var/InternerSpeicher/SanDisk-Cruzer-01/fhem/startfhem
  • or use autostart => see [#Autostart_fhem #Autostart fhem]

Open issues

Daily resets with big log files

After 1 week running perfectly I was seeing regular/daily resets. The problem in my setting is that I am using several FS20-STR. These devices send every 2-3 minutes off-for-timer or on-for-timers signals. These events get logged in the monthly log file. After this log was bigger then 1MB I have seen these resets. After I emptied/deleted the file the box is running stable again.

After looking into the details, it seems that the 7240 gets a memory problem when log files get bigger than ~800KB. I changed the logging from monthly files to weekly files (using ./log/fhem-%Y-%m-%V.log). This way, files should no longer get that big. Since then, 7240 runs stable without any problems.

See also GoogleGroups:FHEM auf Fritzbox - Logfile - Info wenn wenig Speicher