HM-SEC-SD-2 neu

Begonnen von martinp876, 21 März 2015, 17:28:26

Vorheriges Thema - Nächstes Thema

nccfast

Zitat
Klar, USB/seriell Wandler dran und geht. Oder ESP8266 und über Wlan erreichbar.
Anleitungen findest Du inklusive Bilder hier im Forum
@ Otto: Danke.
Wenn ich das mit dem Cul nicht hinbekomme, mach ich das. Hab eh ein paar Wemos mini D1 rumliegen. Den Link zur Anleitung mit Bildern hats du nicht zufällig parat?

Hätte noch eine Idee:
Ich hab auch einen Busware Cul V3. Hätte ich mit dem eine Chance gegenüber einem nanoCul? Hat jemand ein Board.h, mit der der TSCUL funktiuoniert? oder welche Paraneter wären wichtig (#define ASKSIN_SEND_BUFS       von 3 auf 9 oder was kann man allle rausschmeissen zwecks Speichersparen, ...)

frank

ZitatHätte noch eine Idee:
Ich hab auch einen Busware Cul V3. Hätte ich mit dem eine Chance gegenüber einem nanoCul? Hat jemand ein Board.h, mit der der TSCUL funktiuoniert? oder welche Paraneter wären wichtig (#define ASKSIN_SEND_BUFS       von 3 auf 9 oder was kann man allle rausschmeissen zwecks Speichersparen, ...)
der culv3 sollte perfekt sein für die tsculfw, meine ich.
schau mal in die zip datei von noansi, da müsste bereits ein passendes hex file zum flashen drin sein.
FHEM: 6.0(SVN) => Pi3(buster)
IO: CUL433|CUL868|HMLAN|HMUSB2|HMUART
CUL_HM: CC-TC|CC-VD|SEC-SD|SEC-SC|SEC-RHS|Sw1PBU-FM|Sw1-FM|Dim1TPBU-FM|Dim1T-FM|ES-PMSw1-Pl
IT: ITZ500|ITT1500|ITR1500|GRR3500
WebUI [HMdeviceTools.js (hm.js)]: https://forum.fhem.de/index.php/topic,106959.0.html

Otto123

Hi,
klar hab mal kurz gesucht:
Zum einen gibt es dieses Projekt -> https://forum.fhem.de/index.php/topic,62651.msg540843.html#msg540843
ok ohne Bilder aber ist eigentlich simpel https://forum.fhem.de/index.php/topic,63271.0.html
Dann gibt es das Projekt -> https://forum.fhem.de/index.php/topic,56606.0.html
Google findet sogar ein Video https://www.youtube.com/watch?v=RJ8xQvJ5C9Y

Gruß Otto
Viele Grüße aus Leipzig  ⇉  nächster Stammtisch an der Lindennaundorfer Mühle
RaspberryPi B B+ B2 B3 B3+ ZeroW,HMLAN,HMUART,Homematic,Fritz!Box 7590,WRT3200ACS-OpenWrt,Sonos,VU+,Arduino nano,ESP8266,MQTT,Zigbee,deconz

nccfast

Hab jetzt den Busware als TSCUL.
Pairen klappt auf anhieb. Den rest muss ich die Tage mal testen. melde mich dann wieder.
Sieht aber erst mal wesentliuch besser aus als mit nanoCul :-)
@frank: Danke

Christian Uhlmann

Hi zusammen,

habe heute bei meinem SD-2 ein kurzes piepen gehört und seitdem finde ich folgendes reading:
smokeChamber degraded

Das gesamte List des device:
Internals:
   CFGFN
   DEF        4C6A1A
   IODev      SYS.gw.HM.lan.01
   LASTInputDev SYS.gw.HM.usb.01
   MSGCNT     11
   NAME       EG.az.RM.Decke
   NOTIFYDEV  global
   NR         744
   NTFY_ORDER 50-EG.az.RM.Decke
   STATE      off
   SYS.gw.HM.lan.01_MSGCNT 6
   SYS.gw.HM.lan.01_RAWMSG E4C6A1A,0000,04834650,FF,FFB5,86A6104C6A1A26E8D606010004
   SYS.gw.HM.lan.01_RSSI -75
   SYS.gw.HM.lan.01_TIME 2017-01-19 19:23:17
   SYS.gw.HM.usb.01_MSGCNT 5
   SYS.gw.HM.usb.01_RAWMSG E4C6A1A,0000,C97E2899,FF,FFCC,86A6104C6A1A26E8D606010004
   SYS.gw.HM.usb.01_RSSI -52
   SYS.gw.HM.usb.01_TIME 2017-01-19 19:23:17
   TYPE       CUL_HM
   lastMsg    No:86 - t:10 s:4C6A1A d:26E8D6 06010004
   peerList   SYS.xx.RM.01_virt_TeamLead,
   protLastRcv 2017-01-19 19:23:17
   protResnd  1 last_at:2017-01-17 20:33:17
   protSnd    6 last_at:2017-01-19 19:23:17
   protState  CMDs_done
   rssi_SYS.gw.HM.lan.01 avg:-69 lst:-69 cnt:1 max:-69 min:-69
   rssi_at_SYS.gw.HM.lan.01 cnt:6 lst:-75 avg:-74.5 min:-76 max:-73
   rssi_at_SYS.gw.HM.usb.01 max:-46 min:-56 cnt:5 lst:-52 avg:-50.8
   Helper:
     Dblog:
       Activity:
         Sys.dblog:
           TIME       1484681589.78608
           VALUE      alive
       Alarmtest:
         Sys.dblog:
           TIME       1484850197.26968
           VALUE      ok
       Battery:
         Sys.dblog:
           TIME       1484850197.26968
           VALUE      ok
       Level:
         Sys.dblog:
           TIME       1484850197.26968
           VALUE      0
       Smokechamber:
         Sys.dblog:
           TIME       1484850197.26968
           VALUE      degraded
       State:
         Sys.dblog:
           TIME       1484850197.26968
           VALUE      off
   Readings:
     2017-01-17 20:33:09   Activity        alive
     2016-07-22 22:30:21   CommandAccepted yes
     2016-07-22 22:30:20   D-firmware      1.0
     2016-07-22 22:30:20   D-serialNr      NEQ0449370
     2016-09-14 12:31:34   PairedTo        0x26E8D6
     2016-07-22 22:23:47   R-devRepeatCntMax 0
     2016-07-22 22:31:38   R-pairCentral   0x26E8D6
     2016-09-14 12:31:34   RegL_00.        02:01 0A:26 0B:E8 0C:D6 16:00 1F:00 00:00
     2016-07-22 22:30:21   aesCommToDev    ok
     2016-07-22 22:30:21   aesKeyNbr       02
     2017-01-19 19:23:17   alarmTest       ok
     2017-01-19 19:23:17   battery         ok
     2017-01-19 19:23:17   level           0
     2017-01-17 20:33:09   peerList        SYS.xx.RM.01_virt_TeamLead,
     2016-10-12 20:29:28   powerOn         2016-10-12 20:29:28
     2017-01-19 19:23:17   recentStateType info
     2016-07-22 22:30:26   sabotageAttackId_ErrIoId_123ABC cnt:4
     2016-07-22 22:30:26   sabotageAttack_ErrIoAttack cnt 4
     2016-09-14 12:31:34   sdRepeat        off
     2017-01-19 19:23:17   smokeChamber    degraded
     2016-07-24 17:24:11   smoke_detect    none
     2017-01-19 19:23:17   state           off
     2016-07-24 17:23:15   teamCall        from SYS.bm.01_virt:07
   Helper:
     HM_CMDNR   134
     cSnd       ,0126E8D64C6A1A010E
     mId        00AA
     rxType     6
     supp_Pair_Rep 0
     Ack:
     Expert:
       def        1
       det        1
       raw        1
       tpl        0
     Io:
       newChn     +4C6A1A,00,01,00
       nextSend   1484850197.3904
       rxt        0
       vccu       SYS.gw.HM.vccu.01
       p:
         4C6A1A
         00
         01
         00
     Mrssi:
       mNo        86
       Io:
         SYS.gw.HM.lan.01 -73
         SYS.gw.HM.usb.01 -52
     Prt:
       bErr       0
       sProc      0
       Rspwait:
     Q:
       qReqConf
       qReqStat
     Role:
       chn        1
       dev        1
     Rpt:
       IO         SYS.gw.HM.lan.01
       flg        A
       ts         1484850197.26653
       ack:
         HASH(0x558db9a34978)
         86800226E8D64C6A1A00
     Rssi:
       Sys.gw.hm.lan.01:
         avg        -69
         cnt        1
         lst        -69
         max        -69
         min        -69
       At_sys.gw.hm.lan.01:
         avg        -74.5
         cnt        6
         lst        -75
         max        -73
         min        -76
       At_sys.gw.hm.usb.01:
         avg        -50.8
         cnt        5
         lst        -52
         max        -46
         min        -56
     Shadowreg:
     Tmpl:
Attributes:
   IODev      SYS.gw.HM.lan.01
   IOgrp      SYS.gw.HM.vccu.01
   actCycle   099:00
   actStatus  alive
   autoReadReg 4_reqStatus
   devStateIcon off:general_ok *:secur_alarm
   expert     3_allReg+raw
   firmware   1.0
   group      Brandmelder
   icon       secur_smoke_detector
   model      HM-SEC-SD-2
   msgRepeat  1
   peerIDs    00000000,22119001,
   room       Arbeitszimmer,Brandmelder
   serialNr   NEQ0449370
   subType    smokeDetector
   webCmd     statusRequest:getConfig


hat jemand eine Ahnung was das bedeutet?


Grüße Christian
Host: Debian Buster als VM / XCP-NG
Gateways: DuoFern Stick, CUL433 Revolt, CUL MAX, HMLan, HM-USB 2, LaCrosseGateway
Devices: 12x Rademacher Rollos, 6x TX 29 DT-HT, 10x HM-CC-RT-DN, 14x MAX Fensterkontakte, Diverse HM Aktoren für Licht, Klingel, Gong, Eingangstür, ESPEasy, Sonoff mit Tasmota

automatisierer

Laut Bedienungsanleitung deutet das auf eine verschmutzte Rauchkammer hin und der BW-Melder soll nicht weiter benutzt werden...

http://www.eq-3.de/Downloads/eq3/downloads_produktkatalog/homematic/bda/HM-Sec-SD-2_UM_eQ-3_GE_web.pdf

nccfast

Also hier bin ich wieder: Ich verwende nun den Busware CUL V3
Ich hab alle meine sechs Rauchmelder nun am laufen :-)

Zweil Dinge im Moment, die mich beschäftigen:
1) Um den hmkey zu übertragen, muss ich aber zweimal hintereinander pairen. Sonst geht es nicht. Seltsam.... ist aber wirklich so. Hab x Versuche gemacht, bis sich herauskristallisierte, dass ich zweimal pairen muss, bis das reading aeskeynbr den key annahm.

2) Wenn ich fhem neu starte, geht mein Stick in "CUL868_HM:ERROR-Overload,".
Wahrscheinlich, weil ich sechs Rauchmelder dran hab. Ist das zuviel? oder kann man igendeinen Buffer in der board.h noch vergrößern?
#define ASKSIN_SEND_BUFS       9 ist bereits auf neun...

Die Standard board.h für den CUL sieht so aus:

#ifndef _BOARD_H
#define _BOARD_H

//#define HAS_NO_VERSION_CHANGE_FACTORY_RESET  // define to disable factory reset of EEPROM on version change

// Feature definitions
#define MULTI_FREQ_DEVICE // available in multiple versions: 433MHz,868MHz
#define BOARD_ID_STR            "CUL868"
#define BOARD_ID_USTR           L"CUL868"

#define BOARD_ID_STR433         "CUL433"
#define BOARD_ID_USTR433        L"CUL433"

//#define BOARD_ID_STR915         "CUL915"
//#define BOARD_ID_USTR915        L"CUL915"

#if defined(CUL_V3)
#  define CUL_HW_REVISION "CUL_V3.4"  // adapt to version print on circuit board
#elif defined(CUL_V4)
#  define CUL_HW_REVISION "CUL_V4"  // adapt to version print on circuit board
#elif defined(CUL_V2_HM)
#  define CUL_HW_REVISION "CUL_V2"
#elif defined(CUL_V2_MAX)
#  define CUL_HW_REVISION "CUL_V2"
#elif defined(CUL_V2)
#  define CUL_HW_REVISION "CUL_V2"    // No more mem for this feature
#else //defined(CUL_V1)
#  define CUL_HW_REVISION "CUL_V1"  // adapt to version print on circuit board
#endif

#define HAS_SPI_SEND_INLINE             // SPI single byte send is inlined

#define HAS_PREPARE_BOOTLOADER
//#define HAS_WATCHDOG_TEST

#define HAS_USB                  1
#define USB_BUFSIZE             64      // Must be a supported USB endpoint size
#define USB_MAX_POWER          100
//#define NO_USB_SERIAL_NO                // define to not have any USB serial number, saves Flash memory


// customizable USB serial number in PROGMEM support
#ifndef USB_SERIAL_NO_USTR       // also defineable in makefile
# define USB_SERIAL_NO_USTR      L"868000"  // 6 chars serial number for 868MHz device, change it to customize, undef if feature is not wanted
#endif
#ifndef USB_SERIAL_NO_USTR433
# define USB_SERIAL_NO_USTR433   L"433000"  // 6 chars serial number for 433MHz device, change it to customize
#endif
//#ifndef USB_SERIAL_NO_USTR915
//# define USB_SERIAL_NO_USTR915   L"915000"  // 6 chars serial number for 915MHz device, change it to customize
//#endif

//#define CDCLUFA_RXDISCARDFULL // can be defined to discard incomming data, if rx buffer is full

// 2.5KB Internal SRAM for CUL V3 with atmega32u4
#define TTY_BUFSIZE             128  // 4 buffers, RAM: TTY_BUFSIZE*4
#define CMD_BUFSIZE             (2 + 4 + (2 * 50) + 1)      // maximum length of a command (without \r \n) +1 for terminating 0

#define HAS_CC_INTERRUPT_COUNTER             // cc1101 interrupt counter, read with command CC0, usefull for debbugging

#define HAS_FHT_80b                     // PROGMEM: 1374b, RAM: 90b
#define HAS_FHT_8v                      // PROGMEM:  586b  RAM: 23b
#define HAS_FHT_SEND
#define HAS_FS20_SEND
//#define HAS_RF_ROUTER                   // PROGMEM: 1248b  RAM: 44b
//#define RFR_DEBUG                     // PROGMEM:  354b  RAM: 14b
#define HAS_GET_TIMESTAMP
#define HAS_FULL_RF_ANALYZE
#define HAS_NO_WS2000_V1_1_SUPPORT    // undef to enable WS2000 V1.1 protocol support -> but more wrong receptions possible
#define HAS_RF_RECEIVE_TIMESTAMP
#define HAS_RF_RECEIVE_FILTER_ADAPTION
#define HAS_RF_RECEIVE_KEYING
#define HAS_SLOWRF_RECTO_ACTION
#define HAS_RSSI_DISPLAY_NONLCD
#define HAS_RF_RECEIVE_RECORD_LOWMEM
#define HAS_RF_RECEIVE_RECORD_SYNC          // makes only sense without HAS_RF_RECEIVE_RECORD_OVERIDE_FULL, cause we have only a very shot buffer
#define HAS_RF_RECEIVE_RECORD_OVERIDE_FULL
#define HAS_RF_RECEIVE_RECORD_APPEND_TO_DATA

#define HAS_CC1101_RX
#define HAS_CC1101_TO_STATE
#define HAS_CC1101_RX_PLL_LOCK_CHECK_TASK_WAIT
#define HAS_CC1101_REGULAR_CALIBRATION_AFTER_RX
#define HAS_CC1101_REGULAR_CALIBRATION_AFTER_RX_FUNC
#define HAS_CC1101_FORCE_CAL_MANUAL
#define HAS_CC1101_PLL_LOCK_CHECK_MSG
#define HAS_CC1101_PLL_LOCK_CHECK_MSG_RXTX
#define HAS_CC1101_PLL_LOCK_CHECK_MSG_SW
#define HAS_CC1101_PLL_LOCK_CHECK_MSG_CALSTATE

#define FHTBUF_SIZE          174      //                 RAM: 174b
#define RCV_BUCKETS            4      //                 RAM: 25b * bucket
#define FULL_CC1101_PA                // PROGMEM:  108b
#define HAS_RAWSEND                   //
#define HAS_EM_SEND                   //
#define HAS_KS_SEND                   //
#define HAS_TX3_SEND                  //
#define HAS_FASTRF                    // PROGMEM:  468b  RAM:  1b
#define HAS_ASKSIN
#define ASKSIN_SEND_BUFS       9      // ASKSIN send buffers, 58b RAM each buffer
#define HAS_MORITZ
#define HAS_RWE
#define HAS_REVOLT   // define to enable REVOLT support
#define HAS_ESA      // define to enable ESA support
#define HAS_TX3
#define HAS_IT       // define to enable IT support
#define HAS_INTERTECHNO     // define to enable IT send support
#define HAS_INTERTECHNO_V3
#define HAS_HOMEEASY
#define HAS_UNIROLL
#define HAS_HOERMANN
#define HAS_SOMFY_RTS
#define HAS_MBUS
#define HAS_MEMFN
#define HAS_MEMORY_TESTMEM              // compiles in mT extension for testing RAM


#if defined(CUL_V3)
// 2.5KB Internal SRAM
//# define TTY_BUFSIZE          128      // 4 buffers, RAM: TTY_BUFSIZE*4
//# define FHTBUF_SIZE          174      //                 RAM: 174b
//# define RCV_BUCKETS            4      //                 RAM: 25b * bucket
//# undef HAS_CC_INTERRUPT_COUNTER             // cc1101 interrupt counter, read with command CC0, usefull for debbugging
//# undef HAS_FHT_80b                     // PROGMEM: 1374b, RAM: 90b
//# undef HAS_FHT_8v                      // PROGMEM:  586b  RAM: 23b
//# undef HAS_FHT_SEND
//# undef HAS_FS20_SEND
# undef HAS_RF_ROUTER                   // PROGMEM: 1248b  RAM: 44b
# undef RFR_DEBUG                     // PROGMEM:  354b  RAM: 14b
//# undef HAS_GET_TIMESTAMP
//# undef HAS_FULL_RF_ANALYZE
//# undef HAS_NO_WS2000_V1_1_SUPPORT    // undef to enable WS2000 V1.1 protocol support -> but more wrong receptions possible
//# undef HAS_RF_RECEIVE_TIMESTAMP
//# undef HAS_RF_RECEIVE_FILTER_ADAPTION
//# undef HAS_RF_RECEIVE_KEYING
//# undef HAS_SLOWRF_RECTO_ACTION
# undef HAS_RSSI_DISPLAY_NONLCD
//# undef HAS_RF_RECEIVE_RECORD_LOWMEM
# undef HAS_RF_RECEIVE_RECORD_SYNC          // makes only sense without HAS_RF_RECEIVE_RECORD_OVERIDE_FULL, cause we have only a very shot buffer
//# undef HAS_RF_RECEIVE_RECORD_OVERIDE_FULL
//# undef HAS_RF_RECEIVE_RECORD_APPEND_TO_DATA
//# undef FULL_CC1101_PA                // PROGMEM:  108b
//# undef HAS_RAWSEND                   //
//# undef HAS_EM_SEND                   //
//# undef HAS_KS_SEND                   //
//# undef HAS_TX3_SEND                  //
# undef HAS_FASTRF                    // PROGMEM:  468b  RAM:  1b
//# undef HAS_ASKSIN
//#define ASKSIN_SEND_BUFS       9      // ASKSIN send buffers, 58b RAM each buffer
//# undef HAS_MORITZ
//# undef HAS_RWE
//# undef HAS_REVOLT   // define to enable REVOLT support
//# undef HAS_ESA      // define to enable ESA support
//# undef HAS_TX3
//# undef HAS_IT       // define to enable IT support
//# undef HAS_INTERTECHNO     // define to enable IT send support
//# undef HAS_INTERTECHNO_V3
//# undef HAS_HOMEEASY
//# undef HAS_UNIROLL
//# undef HAS_HOERMANN
//# undef HAS_SOMFY_RTS
# undef HAS_MBUS
//# undef HAS_MEMFN
# undef HAS_MEMORY_TESTMEM              // compiles in mT extension for testing RAM
#endif // CUL_V3


#if defined(CUL_V4)
// 1KB Internal SRAM
# define RFR_SHADOW                    // PROGMEM: 10b    RAM: -(TTY_BUFSIZE+3)
# undef TTY_BUFSIZE
//# undef FHTBUF_SIZE
# undef RCV_BUCKETS
# undef ASKSIN_SEND_BUFS

# define TTY_BUFSIZE           64      // RAM: TTY_BUFSIZE*4
//# define FHTBUF_SIZE          74      //                 RAM: 74b
# define RCV_BUCKETS            2      //                 RAM: 19b * RCV_BUCKETS
# undef HAS_CC_INTERRUPT_COUNTER             // cc1101 interrupt counter, read with command CC0, usefull for debbugging
# undef HAS_FHT_80b                     // PROGMEM: 1374b, RAM: 90b
# undef HAS_FHT_8v                      // PROGMEM:  586b  RAM: 23b
# undef HAS_FHT_SEND
//# undef HAS_FS20_SEND
# undef HAS_RF_ROUTER                   // PROGMEM: 1248b  RAM: 44b
# undef RFR_DEBUG                     // PROGMEM:  354b  RAM: 14b
//# undef HAS_GET_TIMESTAMP
# undef HAS_FULL_RF_ANALYZE
//# undef HAS_NO_WS2000_V1_1_SUPPORT    // undef to enable WS2000 V1.1 protocol support -> but more wrong receptions possible
# undef HAS_RF_RECEIVE_TIMESTAMP
# undef HAS_RF_RECEIVE_FILTER_ADAPTION
# undef HAS_RF_RECEIVE_KEYING
//# undef HAS_SLOWRF_RECTO_ACTION
# undef HAS_RSSI_DISPLAY_NONLCD
# undef HAS_RF_RECEIVE_RECORD_LOWMEM
# undef HAS_RF_RECEIVE_RECORD_SYNC          // makes only sense without HAS_RF_RECEIVE_RECORD_OVERIDE_FULL, cause we have only a very shot buffer
# undef HAS_RF_RECEIVE_RECORD_OVERIDE_FULL
# undef HAS_RF_RECEIVE_RECORD_APPEND_TO_DATA
//# undef FULL_CC1101_PA                // PROGMEM:  108b
//# undef HAS_RAWSEND                   //
//# undef HAS_EM_SEND                   //
//# undef HAS_KS_SEND                   //
//# undef HAS_TX3_SEND                  //
//# undef HAS_FASTRF                    // PROGMEM:  468b  RAM:  1b
//# undef HAS_ASKSIN
#define ASKSIN_SEND_BUFS       2      // ASKSIN send buffers, 58b RAM each buffer
//# undef HAS_MORITZ
//# undef HAS_RWE
# undef HAS_REVOLT   // define to enable REVOLT support
# undef HAS_ESA      // define to enable ESA support
# undef HAS_TX3
# undef HAS_IT       // define to enable IT support
//# undef HAS_INTERTECHNO     // define to enable IT send support
//# undef HAS_INTERTECHNO_V3
//# undef HAS_HOMEEASY
//# undef HAS_UNIROLL
# undef HAS_HOERMANN
# undef HAS_SOMFY_RTS
# undef HAS_MBUS
# undef HAS_MEMFN
# undef HAS_MEMORY_TESTMEM              // compiles in mT extension for testing RAM
#endif // CUL_V4


#ifdef CUL_V2
// 512 Bytes Internal SRAM, 12kB Flash available
# define HAS_RF_RECEIVE_NOINLINE         // saves Flash memory, but increases interrupt time for SlowRf
# define RFR_SHADOW                    // PROGMEM: 10b    RAM: -(TTY_BUFSIZE+3)
# undef TTY_BUFSIZE
# undef FHTBUF_SIZE
# undef RCV_BUCKETS
# undef ASKSIN_SEND_BUFS

# define TTY_BUFSIZE           48      // RAM: TTY_BUFSIZE*4
# define FHTBUF_SIZE           74      //                 RAM: 174b
# define RCV_BUCKETS            2      //                 RAM: 19b * RCV_BUCKETS
# undef HAS_CC_INTERRUPT_COUNTER             // cc1101 interrupt counter, read with command CC0, usefull for debbugging
# undef HAS_FHT_80b                     // PROGMEM: 1374b, RAM: 90b
# undef HAS_FHT_8v                      // PROGMEM:  586b  RAM: 23b
# undef HAS_FHT_SEND
//# undef HAS_FS20_SEND
# undef HAS_RF_ROUTER                   // PROGMEM: 1248b  RAM: 44b
# undef RFR_DEBUG                     // PROGMEM:  354b  RAM: 14b
//# undef HAS_GET_TIMESTAMP
# undef HAS_FULL_RF_ANALYZE
//# undef HAS_NO_WS2000_V1_1_SUPPORT    // undef to enable WS2000 V1.1 protocol support -> but more wrong receptions possible
# undef HAS_RF_RECEIVE_TIMESTAMP
//# undef HAS_RF_RECEIVE_FILTER_ADAPTION
//# undef HAS_RF_RECEIVE_KEYING
# undef HAS_SLOWRF_RECTO_ACTION
# undef HAS_RSSI_DISPLAY_NONLCD
# undef HAS_RF_RECEIVE_RECORD_LOWMEM
# undef HAS_RF_RECEIVE_RECORD_SYNC          // makes only sense without HAS_RF_RECEIVE_RECORD_OVERIDE_FULL, cause we have only a very shot buffer
# undef HAS_RF_RECEIVE_RECORD_OVERIDE_FULL
# undef HAS_RF_RECEIVE_RECORD_APPEND_TO_DATA
# undef FULL_CC1101_PA                // PROGMEM:  108b
//# undef HAS_RAWSEND                   //
# undef HAS_EM_SEND                   //
# undef HAS_KS_SEND                   //
# undef HAS_TX3_SEND                  //
# undef HAS_FASTRF                    // PROGMEM:  468b  RAM:  1b
# undef HAS_ASKSIN
//#define ASKSIN_SEND_BUFS       2      // ASKSIN send buffers, 58b RAM each buffer
# undef HAS_MORITZ
# undef HAS_RWE
# undef HAS_REVOLT   // define to enable REVOLT support
# undef HAS_ESA      // define to enable ESA support
# undef HAS_TX3
# undef HAS_IT       // define to enable IT support
# undef HAS_INTERTECHNO     // define to enable IT send support
# undef HAS_INTERTECHNO_V3
# undef HAS_HOMEEASY
# undef HAS_UNIROLL
# undef HAS_HOERMANN
# undef HAS_SOMFY_RTS
# undef HAS_MBUS
# undef HAS_MEMFN
# undef HAS_MEMORY_TESTMEM              // compiles in mT extension for testing RAM
#endif // CUL_V2

#ifdef CUL_V2_HM
// 512 Bytes Internal SRAM, 12kB Flash available
#error "no memory to do that"
# define CUL_V2
# define HAS_RF_RECEIVE_NOINLINE         // saves Flash memory, but increases interrupt time for SlowRf
# define RFR_SHADOW                    // PROGMEM: 10b    RAM: -(TTY_BUFSIZE+3)
# undef TTY_BUFSIZE
# undef FHTBUF_SIZE
# undef RCV_BUCKETS
# undef ASKSIN_SEND_BUFS

# define TTY_BUFSIZE           64      // RAM: TTY_BUFSIZE*4
# define FHTBUF_SIZE           74      //                 RAM: 174b
# define RCV_BUCKETS            2      //                 RAM: 19b * RCV_BUCKETS
# undef HAS_CC_INTERRUPT_COUNTER             // cc1101 interrupt counter, read with command CC0, usefull for debbugging
# undef HAS_FHT_80b                     // PROGMEM: 1374b, RAM: 90b
# undef HAS_FHT_8v                      // PROGMEM:  586b  RAM: 23b
# undef HAS_FHT_SEND
# undef HAS_FS20_SEND
# undef HAS_RF_ROUTER                   // PROGMEM: 1248b  RAM: 44b
# undef RFR_DEBUG                     // PROGMEM:  354b  RAM: 14b
//# undef HAS_GET_TIMESTAMP
# undef HAS_FULL_RF_ANALYZE
//# undef HAS_NO_WS2000_V1_1_SUPPORT    // undef to enable WS2000 V1.1 protocol support -> but more wrong receptions possible
# undef HAS_RF_RECEIVE_TIMESTAMP
# undef HAS_RF_RECEIVE_FILTER_ADAPTION
# undef HAS_RF_RECEIVE_KEYING
# undef HAS_SLOWRF_RECTO_ACTION
# undef HAS_RSSI_DISPLAY_NONLCD
# undef HAS_RF_RECEIVE_RECORD_LOWMEM
# undef HAS_RF_RECEIVE_RECORD_SYNC          // makes only sense without HAS_RF_RECEIVE_RECORD_OVERIDE_FULL, cause we have only a very shot buffer
# undef HAS_RF_RECEIVE_RECORD_OVERIDE_FULL
# undef HAS_RF_RECEIVE_RECORD_APPEND_TO_DATA
# undef FULL_CC1101_PA                // PROGMEM:  108b
# undef HAS_RAWSEND                   //
# undef HAS_EM_SEND                   //
# undef HAS_KS_SEND                   //
# undef HAS_TX3_SEND                  //
# undef HAS_FASTRF                    // PROGMEM:  468b  RAM:  1b
//# undef HAS_ASKSIN
#define ASKSIN_SEND_BUFS       2      // ASKSIN send buffers, 58b RAM each buffer
# undef HAS_MORITZ
# undef HAS_RWE
# undef HAS_REVOLT   // define to enable REVOLT support
# undef HAS_ESA      // define to enable ESA support
# undef HAS_TX3
# undef HAS_IT       // define to enable IT support
# undef HAS_INTERTECHNO     // define to enable IT send support
# undef HAS_INTERTECHNO_V3
# undef HAS_HOMEEASY
# undef HAS_UNIROLL
# undef HAS_HOERMANN
# undef HAS_SOMFY_RTS
# undef HAS_MBUS
# undef HAS_MEMFN
# undef HAS_MEMORY_TESTMEM              // compiles in mT extension for testing RAM

# undef  BOARD_ID_STR
# define BOARD_ID_STR            "CUL_HM"
# undef  BOARD_ID_USTR
# define BOARD_ID_USTR           L"CUL_HM"
#endif // CUL_V2_HM

#ifdef CUL_V2_MAX
// 512 Bytes Internal SRAM, 12kB Flash available
# define CUL_V2
# define HAS_RF_RECEIVE_NOINLINE         // saves Flash memory, but increases interrupt time for SlowRf
# define RFR_SHADOW                    // PROGMEM: 10b    RAM: -(TTY_BUFSIZE+3)
# undef TTY_BUFSIZE
# undef FHTBUF_SIZE
# undef RCV_BUCKETS
# undef ASKSIN_SEND_BUFS

# define TTY_BUFSIZE           64      // RAM: TTY_BUFSIZE*4
# define FHTBUF_SIZE           74      //                 RAM: 174b
# define RCV_BUCKETS            2      //                 RAM: 19b * RCV_BUCKETS
# undef HAS_CC_INTERRUPT_COUNTER             // cc1101 interrupt counter, read with command CC0, usefull for debbugging
# undef HAS_FHT_80b                     // PROGMEM: 1374b, RAM: 90b
# undef HAS_FHT_8v                      // PROGMEM:  586b  RAM: 23b
# undef HAS_FHT_SEND
# undef HAS_FS20_SEND
# undef HAS_RF_ROUTER                   // PROGMEM: 1248b  RAM: 44b
# undef RFR_DEBUG                     // PROGMEM:  354b  RAM: 14b
//# undef HAS_GET_TIMESTAMP
# undef HAS_FULL_RF_ANALYZE
//# undef HAS_NO_WS2000_V1_1_SUPPORT    // undef to enable WS2000 V1.1 protocol support -> but more wrong receptions possible
# undef HAS_RF_RECEIVE_TIMESTAMP
# undef HAS_RF_RECEIVE_FILTER_ADAPTION
# undef HAS_RF_RECEIVE_KEYING
# undef HAS_SLOWRF_RECTO_ACTION
# undef HAS_RSSI_DISPLAY_NONLCD
# undef HAS_RF_RECEIVE_RECORD_LOWMEM
# undef HAS_RF_RECEIVE_RECORD_SYNC          // makes only sense without HAS_RF_RECEIVE_RECORD_OVERIDE_FULL, cause we have only a very shot buffer
# undef HAS_RF_RECEIVE_RECORD_OVERIDE_FULL
# undef HAS_RF_RECEIVE_RECORD_APPEND_TO_DATA
# undef FULL_CC1101_PA                // PROGMEM:  108b
# undef HAS_RAWSEND                   //
# undef HAS_EM_SEND                   //
# undef HAS_KS_SEND                   //
# undef HAS_TX3_SEND                  //
# undef HAS_FASTRF                    // PROGMEM:  468b  RAM:  1b
# undef HAS_ASKSIN
//#define ASKSIN_SEND_BUFS       2      // ASKSIN send buffers, 58b RAM each buffer
//# undef HAS_MORITZ
# undef HAS_RWE
# undef HAS_REVOLT   // define to enable REVOLT support
# undef HAS_ESA      // define to enable ESA support
# undef HAS_TX3
# undef HAS_IT       // define to enable IT support
# undef HAS_INTERTECHNO     // define to enable IT send support
# undef HAS_INTERTECHNO_V3
# undef HAS_HOMEEASY
# undef HAS_UNIROLL
# undef HAS_HOERMANN
# undef HAS_SOMFY_RTS
# undef HAS_MBUS
# undef HAS_MEMFN
# undef HAS_MEMORY_TESTMEM              // compiles in mT extension for testing RAM

# undef  BOARD_ID_STR
# define BOARD_ID_STR            "CUL_MX"
# undef  BOARD_ID_USTR
# define BOARD_ID_USTR           L"CUL_MX"
#endif // CUL_V2_MAX



// No features to define below

//************************************************

#include <avr/eeprom.h>
#ifndef eeprom_update_byte
#define eeprom_update_byte eeprom_write_byte
#pragma message "!!! eeprom_update_byte not available !!! Replacing with eeprom_write_byte !"
#endif

#if !defined(USB_SERIAL_NO_USTR) && !defined(USB_SERIAL_NO_USTR433) && !defined(USB_SERIAL_NO_USTR915)
# ifndef LUFA
#  define LUFA                           // define for the Atmel USB serial number
# endif
#endif

#if defined(NO_USB_SERIAL_NO)
# ifndef NO_INTERNAL_SERIAL
#  define NO_INTERNAL_SERIAL
# endif
# ifdef USB_SERIAL_NO_USTR
#  undef USB_SERIAL_NO_USTR
# endif
# ifdef USB_SERIAL_NO_USTR433
#  undef USB_SERIAL_NO_USTR433
# endif
# ifdef USB_SERIAL_NO_USTR915
#  undef USB_SERIAL_NO_USTR915
# endif
#endif

#if !defined(USB_SERIAL_NO_USTR) && (defined(USB_SERIAL_NO_USTR433) || defined(USB_SERIAL_NO_USTR915))       // also defineable in makefile
# define USB_SERIAL_NO_USTR      L"868000"  // 6 chars serial number for 868MHz device, change it to customize, undef if feature is not wanted
#endif

#ifdef USB_SERIAL_NO_USTR
# ifndef NO_INTERNAL_SERIAL
#  define NO_INTERNAL_SERIAL  // we need to disable LUFA internal serial no, as we have our own
# endif
#endif
#ifdef USB_SERIAL_NO_USTR433
# ifndef NO_INTERNAL_SERIAL
#  define NO_INTERNAL_SERIAL  // we need to disable LUFA internal serial no, as we have our own
# endif
#endif
#ifdef USB_SERIAL_NO_USTR915
# ifndef NO_INTERNAL_SERIAL
#  define NO_INTERNAL_SERIAL  // we need to disable LUFA internal serial no, as we have our own
# endif
#endif

// common Flash savings
#if !defined(HAS_RF_ROUTER)
# ifdef RFR_SHADOW
#  undef RFR_SHADOW
# endif
# ifdef RFR_DEBUG
#  undef RFR_DEBUG
# endif
#endif

#if !defined(HAS_FHT_80b) && !defined(HAS_FHT_8v)
# ifdef FHTBUF_SIZE
#  undef FHTBUF_SIZE
# endif
# define FHTBUF_SIZE            0
#endif

#ifdef HAS_MBUS  // we get in Flash memory limitations...
# undef HAS_RF_RECEIVE_RECORD
# undef HAS_RF_RECEIVE_RECORD_LOWMEM
# undef HAS_RF_RECEIVE_RECORD_SYNC          // makes only sense without HAS_RF_RECEIVE_RECORD_OVERIDE_FULL, cause we have only a very shot buffer
# undef HAS_RF_RECEIVE_RECORD_OVERIDE_FULL
# undef HAS_RF_RECEIVE_RECORD_APPEND_TO_DATA
#endif

// common Flash savings for CUL_V2 types
#if defined(CUL_V2) || defined(CUL_V2_HM) || defined(CUL_V2_MAX)

#  undef  HAS_WATCHDOG_TEST
#  define HAS_SAVE_FLASH_MEM                    // save flash space by using slower but smaller functions and excluding some extra functions
#  undef  HAS_SPI_SEND_INLINE                   // SPI single byte send is inlined
#  define HAS_USE_EEPROM_ERB_EWB_EUB            // saves some bytes Flash
#  define USE_TTYDATA_LINEAR_FN_DECODE
#  undef  HAS_GET_TIMESTAMP
#  undef  HAS_CC_INTERRUPT_COUNTER
#  define CDCLUFA_LOWPROGMEM
#  define HAS_RF_RECEIVE_NOINLINE           // saves Flash memory, but increases interrupt time for SlowRf

#  undef  HAS_CC1101_RX_PLL_LOCK_CHECK_TASK_WAIT
#  undef  HAS_CC1101_RX_PLL_LOCK_CHECK_TASK_WAIT_SIMPLE
#  undef  HAS_CC1101_REGULAR_CALIBRATION_AFTER_RX
#  undef  HAS_CC1101_REGULAR_CALIBRATION_AFTER_RX_FUNC
#  undef  HAS_CC1101_FORCE_CAL_MANUAL
#  undef  HAS_CC1101_PLL_LOCK_CHECK_MSG
#  undef  HAS_CC1101_PLL_LOCK_CHECK_MSG_RXTX
#  undef  HAS_CC1101_PLL_LOCK_CHECK_MSG_SW
#  undef  HAS_CC1101_PLL_LOCK_CHECK_MSG_CALSTATE

#  undef  HAS_FULL_RF_ANALYZE
#  undef  HAS_RF_RECEIVE_TIMESTAMP
#  undef  HAS_RF_RECEIVE_FILTER_ADAPTION
#  undef  HAS_RF_RECEIVE_KEYING
#  undef  HAS_SLOWRF_RECTO_ACTION

//#  undef  HAS_CC1101_TO_STATE
//#  undef  HAS_CC1101_RX
#endif

#include <avr/io.h>
#include <avr/power.h>

#if !defined(clock_prescale_set) && __AVR_LIBC_VERSION__  < 10701UL
#  warning "avr/power.h needs patching for prescaler functions to work."
#  warning "for the m32u4 add __AVR_ATmega32U4__ for cpu types on prescale block"
#  warning "for the m32u2 add __AVR_ATmega32U2__ for cpu types on prescale block"
#endif

#if defined(CUL_V3)
#define CALCTIME_TIMER_TCNTn       TCNT3L
#define CALCTIME_TIMER_TCCRnA      TCCR3A
#define CALCTIME_TIMER_TCCRnB      TCCR3B
#define CALCTIME_TIMER_TCCRnB_CFG  _BV(CS31)
#endif  // CUL_V3

#if defined(CUL_V3)      // not sure why libc is missing those ...
#  define PB0 PORTB0
#  define PB1 PORTB1
#  define PB2 PORTB2
#  define PB3 PORTB3
#  define PB6 PORTB6
#  define PD2 PORTD2
#  define PD3 PORTD3

#  ifndef PRADC
#   define PRADC    0
#  endif

#  ifndef PRTWI
#   define PRTWI    7
#  endif

#  ifndef PRUSART1
#   define PRUSART1 0
#  endif

#  ifndef PRTIM3
#   define PRTIM3   3
#  endif

#  ifndef PRTIM4
#   define PRTIM4   4
#  endif
#endif  // CUL_V3

#define SPI_PORT PORTB
#define SPI_DDR DDRB
#define SPI_PIN PINB
#define SPI_SS PB0
#define SPI_MISO PB3
#define SPI_MOSI PB2
#define SPI_SCLK PB1

#define SPI_CC1101_READ_SPECIAL_PORT  PORTB
#define SPI_CC1101_READ_SPECIAL_DDR   DDRB
#define SPI_CC1101_READ_SPECIAL_PIN   PB4   // we missuse this unused pin as fast signaling bit for special cc1101_read_buf

#if defined(CUL_V4)
#  define CC1101_CS_DDR         SPI_DDR
#  define CC1101_CS_PORT        SPI_PORT
#  define CC1101_CS_PIN         SPI_SS
#  define CC1101_MISO_PORTIN    SPI_PIN
#  define CC1101_MISO_PIN       SPI_MISO
#  define CC1101_OUT_DDR        DDRD
#  define CC1101_OUT_PORT       PORTD
#  define CC1101_OUT_PIN        PD3
#  define CC1101_OUT_IN         PIND
#  define CC1101_IN_DDR         DDRD
#  define CC1101_IN_PORT        PORTD
#  define CC1101_IN_PIN         PD2
#  define CC1101_IN_IN          PIND
#  define CC1101_INT            INT2
#  define CC1101_INTVECT        INT2_vect
#  define CC1101_ISC0           ISC20
#  define CC1101_ISC1           ISC21
#  define CC1101_EICR           EICRA
#  define LED_DDR               DDRC
#  define LED_PORT              PORTC
#  define LED_PIN               PC5
#endif

#if defined(CUL_V3)
#  define CC1101_CS_DDR         SPI_DDR
#  define CC1101_CS_PORT        SPI_PORT
#  define CC1101_CS_PIN         SPI_SS
#  define CC1101_MISO_PORTIN    SPI_PIN
#  define CC1101_MISO_PIN       SPI_MISO
#  define CC1101_OUT_DDR        DDRD
#  define CC1101_OUT_PORT       PORTD
#  define CC1101_OUT_PIN        PD3
#  define CC1101_OUT_IN         PIND
#  define CC1101_IN_DDR         DDRD
#  define CC1101_IN_PORT        PORTD
#  define CC1101_IN_PIN         PD2
#  define CC1101_IN_IN          PIND
#  define CC1101_INT            INT2
#  define CC1101_INTVECT        INT2_vect
#  define CC1101_ISC0           ISC20
#  define CC1101_ISC1           ISC21
#  define CC1101_EICR           EICRA
#  define LED_DDR               DDRE
#  define LED_PORT              PORTE
#  define LED_PIN               6
#endif

#if defined(CUL_V2)
#  define CC1101_CS_DDR         DDRC
#  define CC1101_CS_PORT        PORTC
#  define CC1101_CS_PIN         PC5
#  define CC1101_MISO_PORTIN    SPI_PIN
#  define CC1101_MISO_PIN       SPI_MISO
#  define CC1101_IN_DDR         DDRC
#  define CC1101_IN_PORT        PORTC
#  define CC1101_IN_PIN         PC7
#  define CC1101_IN_IN          PINC
#  define CC1101_OUT_DDR        DDRC
#  define CC1101_OUT_PORT       PORTC
#  define CC1101_OUT_PIN        PC6
#  define CC1101_OUT_IN         PINC
#  define CC1101_INT            INT4
#  define CC1101_INTVECT        INT4_vect
#  define CC1101_ISC0           ISC40
#  define CC1101_ISC1           ISC41
#  define CC1101_EICR           EICRB
#  define LED_DDR               DDRC
#  define LED_PORT              PORTC
#  define LED_PIN               PC4
#endif

#define MARK433_PORT            PORTB
#define MARK433_PIN             PINB
#define MARK433_BIT             PB6

#define MARK915_PORT            PORTB
#define MARK915_PIN             PINB
#define MARK915_BIT             PB5

#endif // __BOARD_H__



Evtl. kann man hier was optimieren?

Bytechanger

Hi,

ich hatte das gleiche Problem bei 12 Rauchmeldern. Habe es mit
autoReadReg 0_off
gelöst.

Interessant, es ist auch bei mir so, dass nach dem 2. Peeren die AES Keys übertragen wurden.

Frage noch an die Experten, können die SD (also die Alten) auch mit AES kommunizieren? Ich habe es hier nicht hinbekommen, einen Key zu übertragen.

Greets

Byte

nccfast

nicht nach dem zweiten peeren, sondern nach dem zweiten pairen ....

Bytechanger

Bei mir nach dem peeren.
Komisch.

Greets

Byte

Otto123

Beide Vorgänge (pairen und peeren) lösen Datenübertragung aus. Wahrscheinlich hätte getConfig auch gereicht.

Gruß Otto
Viele Grüße aus Leipzig  ⇉  nächster Stammtisch an der Lindennaundorfer Mühle
RaspberryPi B B+ B2 B3 B3+ ZeroW,HMLAN,HMUART,Homematic,Fritz!Box 7590,WRT3200ACS-OpenWrt,Sonos,VU+,Arduino nano,ESP8266,MQTT,Zigbee,deconz

nccfast

Nein, getConfig reicht bei mir nicht.

Was anderes:
Wenn ich einen RM mit Zigarettenqualm teste, schreine alle los. Aber nach dreimla Schreine sind alle wieder ruhig. Ist das normal. Weil, evtl der Qualm auch weg ist?

nccfast

Nein, getConfig reicht bei mir nicht.

Was anderes:
Wenn ich einen RM mit Zigarettenqualm teste, schreien alle los. Aber nach dreimal Schreien sind alle wieder ruhig. Ist das normal. Weil, evtl der Qualm auch weg ist?

Bytechanger

Kann ich bestätigen. Habe gefühlte 100 mal getConfig ohne Erfolg durchgeführt. AssignHM brachte missing ack.
Durch peeren geht's jetzt.

Greetz

Byte

Christian Uhlmann

Zitat von: automatisierer am 20 Januar 2017, 14:01:23
Laut Bedienungsanleitung deutet das auf eine verschmutzte Rauchkammer hin und der BW-Melder soll nicht weiter benutzt werden...

http://www.eq-3.de/Downloads/eq3/downloads_produktkatalog/homematic/bda/HM-Sec-SD-2_UM_eQ-3_GE_web.pdf

Alles klar, hatte nur die deutsche Anleitung durchsucht ... keine Ahnung woher ich die hatte.
Der Melder ist erst ein 3/4 Jahr in Betrieb, das finde ich in einem normalen Zimmer (Arbeitszimmer, nur PC's zum arbeiten) recht früh.
Wenn jemand anderes auch so ein Problem hat bitte mal melden, damit wir ggf. eine Fehlfunktion feststellen können.

Habe den Melder nun abgenommen, ein paar mal fest reingepustet und dann ein clear all gemacht.
Danach mit einem getConfig war der Wert dann wieder auf:

smokeChamber ok


Bin mal gespannt, was da noch kommt.


Grüße

Christian
Host: Debian Buster als VM / XCP-NG
Gateways: DuoFern Stick, CUL433 Revolt, CUL MAX, HMLan, HM-USB 2, LaCrosseGateway
Devices: 12x Rademacher Rollos, 6x TX 29 DT-HT, 10x HM-CC-RT-DN, 14x MAX Fensterkontakte, Diverse HM Aktoren für Licht, Klingel, Gong, Eingangstür, ESPEasy, Sonoff mit Tasmota