Haus & Smart Home
›
Thread
Sende Codes für Mumbi m-FS306
A
Andre
Gast
02.04.2017 17:04
#4960333
Hi,
ich hab mir die Funksteckdose Mumbi m-FS306 zugelegt in der Hoffnung,
dass sie mit einer der bekannten Arduino Bibliotheken schaltbar ist.
Doch leider habe ich keinerlei Codes erhalten durch RcSwitch,
NewRemoteSwitch und FlamingoSwitch. Auch der Chip in dem Handsender ist
nicht identifizierbar.
Hat jemand eine Idee oder vielleicht da schonmal diese Codes auslesen
können?
Schönen Gruß und Danke
André
Hallo,
die Frage ist zwar ein bisschen her falls jemand wie ich durch Google
drauf kommt hilft es ihn oder ihr vielleicht.
1: Arduino RC-Switch Bibliothek installieren
2: RCSwitch.cpp in den Editor seiner Wahl öffnen (Windows Pfad wenn man
die Bibliothek durch Arduino den Library Manger installiert hat)
%userprofile%\documents\Arduino\libraries\rc-switch\)
3: Folgenden Code abändern: 1 #ifdef ESP8266
2 static const RCSwitch :: Protocol proto [] = {
3 #else
4 static const RCSwitch :: Protocol PROGMEM proto [] = {
5 #endif
6 { 350 , { 1 , 31 }, { 1 , 3 }, { 3 , 1 }, false }, // protocol 1
7 { 650 , { 1 , 10 }, { 1 , 2 }, { 2 , 1 }, false }, // protocol 2
8 { 100 , { 30 , 71 }, { 4 , 11 }, { 9 , 6 }, false }, // protocol 3
9 { 380 , { 1 , 6 }, { 1 , 3 }, { 3 , 1 }, false }, // protocol 4
10 { 500 , { 6 , 14 }, { 1 , 2 }, { 2 , 1 }, false }, // protocol 5
11 { 450 , { 23 , 1 }, { 1 , 2 }, { 2 , 1 }, true } // protocol 6 (HT6P20B)
12
13 };
nach
1 #ifdef ESP8266
2 static const RCSwitch :: Protocol proto [] = {
3 #else
4 static const RCSwitch :: Protocol PROGMEM proto [] = {
5 #endif
6 { 350 , { 1 , 31 }, { 1 , 3 }, { 3 , 1 }, false }, // protocol 1
7 { 650 , { 1 , 10 }, { 1 , 2 }, { 2 , 1 }, false }, // protocol 2
8 { 100 , { 30 , 71 }, { 4 , 11 }, { 9 , 6 }, false }, // protocol 3
9 { 380 , { 1 , 6 }, { 1 , 3 }, { 3 , 1 }, false }, // protocol 4
10 { 500 , { 6 , 14 }, { 1 , 2 }, { 2 , 1 }, false }, // protocol 5
11 { 450 , { 23 , 1 }, { 1 , 2 }, { 2 , 1 }, true }, // protocol 6 (HT6P20B)
12 { 280 , { 1 , 36 }, { 1 , 3 }, { 3 , 1 }, false } // protocol 7 (Mumbi m-FS306)
13
14 };
4. Mit der setProtocol(7) Funktion kann nun das richtige Protokoll für
die Munbi m-FS306 Funksteckdosen ausgewählt werden 1 mySwitch . setProtocol ( 7 );
Beispiel Code mit den entsprechenden Codes für die einzelnen Kanäle: 1 #include <RCSwitch.h>
2
3 RCSwitch mySwitch = RCSwitch ();
4
5 void setup () {
6
7 Serial . begin ( 9600 );
8
9 // Transmitter is connected to Arduino Pin #10
10 mySwitch . enableTransmit ( 10 );
11
12
13 // Optional set protocol (default is 1, will work for most outlets)
14 mySwitch . setProtocol ( 7 ); // Hier waehlen unser neues Protokoll aus fuer die Mumbi FS306 Funksteckdosen
15 }
16
17 void loop () {
18
19 delay ( 10000 );
20 mySwitch . send ( "011000010111000100001111001000000" ); // 1 On
21 delay ( 1000 );
22 mySwitch . send ( "011000010111000100001101001000110" ); // 2 On
23 delay ( 1000 );
24 mySwitch . send ( "011000010111000100001011001001110" ); // 3 On
25 delay ( 1000 );
26 mySwitch . send ( "011000010111000100000111001011110" ); // 4 On
27 delay ( 3000 );
28 mySwitch . send ( "011000010111000100001110001000010" ); // 1 Off
29 delay ( 1000 );
30 mySwitch . send ( "011000010111000100001100001000100" ); // 2 Off
31 delay ( 1000 );
32 mySwitch . send ( "011000010111000100001010001001100" ); // 3 Off
33 delay ( 1000 );
34 mySwitch . send ( "011000010111000100000110001011100" ); // 4 Off
35 delay ( 2000 );
36 mySwitch . send ( "011000010111000100000100001011000" ); // All On
37 delay ( 1000 );
38 mySwitch . send ( "011000010111000100001000001001000" ); // All Off
39 delay ( 1000 );
40 mySwitch . send ( "011000010111000100000100001011000" ); // All On
41 delay ( 1000 );
42 mySwitch . send ( "011000010111000100001000001001000" ); // All Off
43 }
Gruß,
Jonas
Antwort schreiben
Bitte melde dich an, um einen Beitrag zu schreiben.
Noch kein Account?
Die Registrierung ist kostenlos und dauert nur eine Minute.
Jetzt registrieren