NE | Voisine | Relation | Profondeur | LQI |
".$voisine['NE']." | ".$voisine['Voisine']." | ".$voisine['Relationship']." | ".$voisine['Depth']." | ".$voisine['LinkQualityDec']." | "; - - echo "|" . $voisine['NE'] . "|" . $voisine['NE_Name'] . "|" . $voisine['Voisine'] . "|" . "|" . $voisine['Voisine_Name'] . "|" . $voisine['Relationship'] . "|" . $voisine['Depth'] . "|" . $voisine['LinkQualityDec'] . "\n"; - - // echo "
0x0501
- 0x0B05
- 0x0500
- AO($ob-VkWM4g5h?**C}TPuN_BC^P+LWknB*_3{JH^c%_Q zqL)9+20YVmlvG{&M;MEK;GqHu9i`NpDDjgqz)OrztNlq|lrivZ|5>l7f2v?4)xvTx64w4xkd>S(_NNS7E@l8f@EKfxwY;+H9TaTE`n`nuy(+hku +|qmtdR<) diff --git a/resources/archives/Zigate_Module/ReadJN5168/EEPROMRead3SetMask17.bin b/resources/archives/Zigate_Module/ReadJN5168/EEPROMRead3SetMask17.bin deleted file mode 100644 index 2d86083515b88f0144f6b7b2d11b342e3228877b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4032 zcmey!#%Pkpz`z(`8xg?(1&qi5CWwRnz`!V8!N9=uMLX06T?vyw2LmIzAR7MzBNKxX z(0&n?;0Vf(-K<+oy zXOkgTKeG2eGB8Sj(oeQr=n4i<*fEn9h94POpy|hP0m$6{|Ns93k{~7+5aI*%gZ=-7 z+3^Y?wb a2Ak_6Nr!XFs${~spA zrxzsmk(mt~ev)i~9|)<%CJ)pP4!@slK`Pkf35fyqgTwD9dl0<*A*2Uc9;hFf0~r{9 zas>4tixbNR>SqD#=L|YPtR7@_K>gtI$5JVXto-|t1sZ?SfjPi5fdP>1!p8o{3MqfY z*#ZSH 7ulNz)JN|0M(6A11?s*?t2xtO)b~k=*}+68Fctg@1wQf2>Zb|3U4S qNO7R^!R?p3KS 4{iX*<(GLIsLNTNO diff --git a/resources/archives/Zigate_Module/ReadJN5168/EEPROMRead4SetMask23.bin b/resources/archives/Zigate_Module/ReadJN5168/EEPROMRead4SetMask23.bin deleted file mode 100644 index 6c2a963186e6b2d6ea38a0b64e6dc62b23076585..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4032 zcmey!#%Pkpz`z(`8xg?(1&o*gCWS$NU| L}@@%^nr lTpRq++0cU<@!Yer0EUL8@MmdZ2y{ko!&b z*<^^-kL ^ph zn05bRg|NsAhB!~$Hg!n-HVE=z% zcDzDJEjD?eekM@(eP(mwAjMvoSwQ_Ppzt&2aKgwxFhAg ^GsWM%`0pCnu02SRGG$piI+!|x|skP0?=LSjJu;PCs&9t1Cc2 $E;>5Cn`dPsGIfD)ms|Q&fP(Qf*u~Z5oEB}6EfySS7U=A=%U;t#hu(3a~LdqX; zwm<<4c| !=6|m(VHptp z7p8*Bkx?)j0;3@?8UmvsK-&-imEXz0^8Zw;)dEQQo0>sN`3q~my($i`f#@#?B~?GD z{`g!R-T~4t&P VMMght+?wN5a=Y{J&@^ss0DG ze^Yja?||rkHJeoZpzzye8-4_$-(H?n{UG~y+lF5N=@(=sO+P67LH6g!hTp+Rsi1}x z5#bMY{|idoAL|zW1)~44I;s8#*&itmOg=#W^E2Q5L8^XG_z69Y;DP9$ag0>`Ap1Am Ni;#fmH$6a#egG2pTvh-8 diff --git a/resources/archives/Zigate_Module/ReadJN5168/EEPROMRead5SetMask24StartNetworkAddXiaomiTempRond.bin b/resources/archives/Zigate_Module/ReadJN5168/EEPROMRead5SetMask24StartNetworkAddXiaomiTempRond.bin deleted file mode 100644 index f25680910fe7790f6e18e45b05e383e527163619..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4032 zcmbuCU2F_d6vywKnf+)qs;sop4^2}cM0~ZVDE$x*qS0>c-tm>tTH5TA;)NjL0VO;T zqKFWQ@X$yleUOTT5D{J^JR%hz5g)OeR;Y)LbLQ?{V|Kbbw`Q~5JNMk*J@@?YJ!hr~ zFRk202-RzJog^ B+KG>;Ai0atLAu%-SXD(5`-4w`H7Z>ZW7c^mD4am zHLkxW)Q9sLhA{$vQ!cXI18>GZq}IL6HrB}wyn^}-dh7i%e#KnCYpCBMe|=j1q=LxM zNGLSW3jEr<<|bn#{gVMTO$pU&>Nm$1if0?^WCz~VZ`d2GaI$CX1K!kc*cVLIpKOfP z4m@Nap~L>*No&8`Ht?Fs=LGM&Wvt_XH|tMzd2memo6wT`SJWJXGm&;#eL1xg9$tTD z`@$>I?0?fB&180f9r#>4e^r6zbl#czrx){gALQ@;((p!1yFA(aP3HfqzHmF|pP$1z z;`WMrlJ&pBJCG)xrDL@DfH&)B!0+ubtA~Yg)5Q8y4pr;zdGY*Qc9^Ucz#=f zzumgzDw+z_8w g z5)kG;>i@Jt*MBT*=y`DFdwb)p4eu|UI98SgH6K@^ehf@w6UM|R^SARLD;DvKJrr>W zJ)C}pe!CB_8JPctYEz>OkNc1B5Buh_N|=94`;YvKD66&mcUrH#5BCr2-;N@-+HP~T zf64m!EXs6V|Nh2rpU>$Y^~3e6U2H4ok9P?DoW|Sxg#H6ZStsWs?Xo=j|GbAC;CyFD zmPh>t_pmPH3sgB?{QnWX#Ln7dBZpk%Pf|Zv|JDClf5{`(!})91W#dQvw)V3-od0}D zmPh^iYuF>sFP|#QqyM`#>^buJsvIxQf2@SPO4DC)r+;$&pZ;h4n^v+R&cB;38$bGA lSD>5qFi(B`OO{9dCVtR!x&Q9RvON0leWMq0zUsaV{|8_`TV((M diff --git a/resources/archives/Zigate_Module/ReadJN5168/EEPROMRead6ProductionJeedomZwave.bin b/resources/archives/Zigate_Module/ReadJN5168/EEPROMRead6ProductionJeedomZwave.bin deleted file mode 100644 index 2566f3cbc9960edd9eede5e1c3e22a1e1ad82857..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4032 zcmbVPU2Icj82-*VJ*8}PR5M{3mEzB+xR_mNqKI01VbTa#y@0r^QbvXu8N1j54mM`z zhWmkm!7U=$mMUhaaa)$5+=xPB)EJi#C1Q+_r6fks-L%Gp#EX7D?{|K7TGy`YS)P3T z&N$lIOdI$<6b>=QIr9R3AOb{z7?1#xoJ$Pw0)8L@L^)3>GVw1QyF`5P z1zK`159f7FZw4A0Uu bYeg+so-e}4XyZ{hI6L7pl0FRi$h zDi+_g=XPB*GqSnK5`51PldgTUkOol_Sk`;qY|4b_@ z-^DXQ&tGYW!$JJ{KH_tp`S$61h0Fs(uZZ>c9aG}nEjynzbU7#1$rrqIU)Nu|(iW)u zMCec79lCg*c&8ZsCE@?KFTSJu-?XdP75d9E)1u@3y8dLtN-prBf!19zUvWFYpVBUr zsK4U&!2cb$-dloCv0u*rl4lj<_i85>`LI8OOt4&7XrEG5vj6y3ZQ+m !U&VbD_f xehT6Pz!VC#y{K (r3Hh0M+O4Enpl@73Nn^v}_6xjX=$ z@^|5<1zo r{-DyCGo{Be7G%RbRR&7L@a z!|1(hHdBv8{9VxhsA<2+Ep`PT`4@lif$4Cs=(#;J9cFJA>&uh-#cK9%l211E%q-A- z%rENyt@G{3A51OrZtbJfVhy@4i`AS78+Ub!{m{8GOFvnz0l#PAd>;Q ^9z$CUjx%x zT+kmwryLxK-(gY)d64gN7~dsbpg+~`;XiHjQ|M^)f{dB}h?R(;S${@M!Ke727?!Di z{M*=2j;)8Xd!dN2O+JJ7;lHlA?$YuvCCT?g|BmZtm* }GMyhQBlXQzZIX}w zcYdqr6!y;sv(9fRCap*O`rNxApLpk=c*N{mvZo*6k@WMQSp&IzheGy8zkIjE`gKZA z?qk|%e#Nps0GYNcUl!>15kI|u8uQa0dwOHJeM*)p8!$ir9kt|V3nZTuIDeylDSwWP zH ^&I&_ z|9@1sovr`1r1O*FrupAxKYwOBu<#E0Q~z$CK>i?F*2_!jy3}* v;GUvbm< zuUk8wC;pa3OaFlX$p3>S&mYM{=jQ|0ehY`P&RDfMv!XTU4ECM=+=!pAZ8Tg{V*Jp- b;? AbeilleParser 2018-09-21 16:13:57[DEBUG]Abeille i: 3; ID : 32; Short Addr : 36a6; IEEE Addr: 000B57fffe952a69; Power Source (0:battery - 1:AC): 01; Link Quality: 67 - - Short Not Found (T7) => AbeilleParser 2018-09-21 16:13:57[DEBUG]Abeille i: 4; ID : 33; Short Addr : 2096; IEEE Addr: 000B57fffe490C2a (2 fois); Power Source (0:battery - 1:AC): 01; Link Quality: 36 - - Short Not Found (Lampe Bureau) => AbeilleParser 2018-09-21 16:13:57[DEBUG]Abeille i: 5; ID : 34; Short Addr : a714; IEEE Addr: 00158d0001dedc72 (3 fois); Power Source (0:battery - 1:AC): 01; Link Quality: 188 - - AbeilleParser 2018-09-21 16:13:57[DEBUG]Abeille i: 6; ID : 35; Short Addr : c9f9; IEEE Addr: 000B57fffe88af72; Power Source (0:battery - 1:AC): 01; Link Quality: 112 - AbeilleParser 2018-09-21 16:13:57[DEBUG]Abeille i: 7; ID : 36; Short Addr : 70fb; IEEE Addr: 000B57fffe3a0E7c; Power Source (0:battery - 1:AC): 01; Link Quality: 44 - AbeilleParser 2018-09-21 16:13:57[DEBUG]Abeille i: 8; ID : 37; Short Addr : e4c0; IEEE Addr: 000B57fffed2af6a; Power Source (0:battery - 1:AC): 01; Link Quality: 80 - AbeilleParser 2018-09-21 16:13:57[DEBUG]Abeille i: 9; ID : 38; Short Addr : db83; IEEE Addr: 00158d000183afeb; Power Source (0:battery - 1:AC): 01; Link Quality: 68 - AbeilleParser 2018-09-21 16:13:57[DEBUG]Abeille i: 10; ID : 39; Short Addr : a0da; IEEE Addr: 000B57fffe3a563b; Power Source (0:battery - 1:AC): 01; Link Quality: 47 - AbeilleParser 2018-09-21 16:13:57[DEBUG]Abeille i: 11; ID : 3a; Short Addr : 41c0; IEEE Addr: 00158d000183af7b; Power Source (0:battery - 1:AC): 01; Link Quality: 76 - AbeilleParser 2018-09-21 16:13:57[DEBUG]Abeille i: 12; ID : 3b; Short Addr : d204; IEEE Addr: 000B57fffec53819; Power Source (0:battery - 1:AC): 01; Link Quality: 42 - AbeilleParser 2018-09-21 16:13:57[DEBUG]Abeille i: 13; ID : 3c; Short Addr : 82a6; IEEE Addr: 000B57fffe4bab6a; Power Source (0:battery - 1:AC): 01; Link Quality: 149 - AbeilleParser 2018-09-21 16:13:57[DEBUG]Abeille i: 14; ID : 3d; Short Addr : 60fb; IEEE Addr: 000B57fffe8dbb1a; Power Source (0:battery - 1:AC): 01; Link Quality: 67 - AbeilleParser 2018-09-21 16:13:57[DEBUG]Abeille i: 15; ID : 3e; Short Addr : 6766; IEEE Addr: 000B57fffe3025ad; Power Source (0:battery - 1:AC): 01; Link Quality: 36 - AbeilleParser 2018-09-21 16:13:57[DEBUG]Abeille i: 16; ID : 3f; Short Addr : b807; IEEE Addr: 000B57fffe8e083c; Power Source (0:battery - 1:AC): 01; Link Quality: 34 - */ - -$EEPROM = array(); - -$handle = @fopen("EEPROMRead6ProductionJeedomZwave.bin", "r"); -if ($handle) { - while (!feof($handle)) { - $hex = bin2hex(fread ($handle , 1 )); - array_push($EEPROM, $hex); - print $hex."\n"; - } - fclose($handle); - -} - echo "\n--------------------\n"; - echo "First Octet: "; echo $EEPROM[0x00]; echo "\n"; - - $i = 0x00D8; echo "IEEE: "; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo "\n"; // 404C - - $i = 0x00F0; echo "IEEE: "; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo "\n"; // 8c09 - $i = 0x0198; echo "IEEE: "; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo "\n"; // 404C - $i = 0x01B0; echo "IEEE: "; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo "\n"; // 8c09 - $i = 0x01B0; echo "IEEE: "; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo "\n"; // 8c09 - $i = 0x0418; echo "IEEE: "; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo "\n"; // 404C - $i = 0x0670; echo "IEEE: "; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo "\n"; // 8c09 - - $i = 0x06B4; echo "IEEE: "; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo "\n"; // 2096 - - $i = 0x0768; echo "IEEE: "; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo "\n"; // 873a - $i = 0x06AC; echo "IEEE: "; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo "\n"; // - $i = 0x06B4; echo "IEEE: "; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo "\n"; // - $i = 0x0850; echo "IEEE: "; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo "\n"; // 2096 - $i = 0x0C70; echo "IEEE: "; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo "\n"; // 8c09 - $i = 0x0D58; echo "IEEE: "; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo "\n"; // 404C - $i = 0x0D70; echo "IEEE: "; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo "\n"; // 8c09 - $i = 0x0F18; echo "IEEE: "; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo "\n"; // 404C - $i = 0x0F30; echo "IEEE: "; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo "\n"; // 8c09 - - $i = 0x0952; echo "Short: "; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo "\n"; // 873A - $i = 0x0962; echo "Short: "; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo "\n"; // 8C09 - $i = 0x0A4E; echo "Short: "; echo $EEPROM[$i++]; echo $EEPROM[$i++]; echo "\n"; // 404C - - -?> - diff --git a/resources/archives/addParameterToAllTemplates.php b/resources/archives/addParameterToAllTemplates.php deleted file mode 100644 index 715b35c5ec..0000000000 --- a/resources/archives/addParameterToAllTemplates.php +++ /dev/null @@ -1,73 +0,0 @@ -assertSame( 1, count($output) ); - $this->assertSame( 0, $retval ); - } - - function test_proper_parse_str() { - $str = "X=x&Y=y&Z=z"; - $result = '{"X":"x","Y":"y","Z":"z"}'; - $this->assertSame( $result, json_encode(AbeilleCmdPrepare::proper_parse_str($str)) ); - } - - function prepareCmdTest() { - $message = (object) array( - "topic" => "CmdAbeille1/81F6/OnOff", - "payload" => "Action=On&EP=01", - "priority" => 3, - ); - - $result = '{"onoff":"1","dest":"Abeille1","priority":3,"addressMode":"02","address":"81F6","destinationEndpoint":"01","action":"01"}'; - - $this->assertSame( $result, json_encode(AbeilleCmdPrepare::prepareCmd(1, $message, 1)) ); - } - -} - - -?> - diff --git a/resources/archives/core/class/AbeilleCmdProcessTest.class.php b/resources/archives/core/class/AbeilleCmdProcessTest.class.php deleted file mode 100644 index 06f88dccdc..0000000000 --- a/resources/archives/core/class/AbeilleCmdProcessTest.class.php +++ /dev/null @@ -1,101 +0,0 @@ -result = array( $priority, $net, $cmd, $payload, $addr, $addrMode); - } -} - - - -class AbeilleCmdProcessTest extends TestCase { - - function test_phpSyntax() { - fwrite(STDOUT, "\n\n" . __METHOD__ ); - exec('php AbeilleCmdProcess.class.php', $output, $retval); - $this->assertSame( 1, count($output) ); - $this->assertSame( 0, $retval ); - } - - function test_checkRequiredParams() { - fwrite(STDOUT, "\n\n" . __METHOD__ ); - $required = ['addr']; - $Command_Ok = array( 'addr'=>'1234' ); - $Command_NOk = array( 'zozo'=>'1234' ); - - $this->assertSame( true , AbeilleCmdProcess::checkRequiredParams($required, $Command_Ok) ); - $this->assertSame( false, AbeilleCmdProcess::checkRequiredParams($required, $Command_NOk) ); - } - - function test_sliderToHex() { - // Called to convert '#sliderXX#' - $sliderVal = "#slider34#"; - $type = '28'; - $abeilleCmdProcess = new AbeilleCmdProcess; - $this->assertSame( '22', $abeilleCmdProcess->sliderToHex($sliderVal, $type)); - } - - function test_processCmd() { - $test = new AbeilleCmdProcessKiwi; - - // Test initial checks - $Command = null; - $this->assertSame( null, $test->processCmd($Command)); - - $Command = "Why not"; - $this->assertSame( null, $test->processCmd($Command)); - - $Command = array(); - - // Test commands - $Command = array( "dest" => "Abeille1", 'PDM' =>"", 'req' => "E_SL_MSG_PDM_HOST_AVAILABLE_RESPONSE"); - $test->processCmd($Command); - $this->assertSame( '[4,"Abeille1","8300","00","",null]', json_encode($test->result) ); - - $Command = array( "dest" => "Abeille1", 'PDM' =>"", 'req' => "E_SL_MSG_PDM_EXISTENCE_RESPONSE", 'recordId'=>"" ); - $test->processCmd($Command); - $this->assertSame( '[4,"Abeille1","8208","000000","",null]', json_encode($test->result) ); - - $Command = array( "dest" => "Abeille1", 'abeilleList' => ""); - $test->processCmd($Command); - $this->assertSame( '[4,"Abeille1","0015","","",null]', json_encode($test->result) ); - - $Command = array( "dest" => "Abeille1", 'name' => 'setZgLed', 'value' => 1) ; - $test->processCmd($Command); - $this->assertSame( '[4,"Abeille1","0018","01","",null]', json_encode($test->result) ); - - $Command = array( "dest" => "Abeille1", 'name' => 'setZgLed', 'value' => 0) ; - $test->processCmd($Command); - $this->assertSame( '[4,"Abeille1","0018","00","",null]', json_encode($test->result) ); - - $Command = array( "dest" => "Abeille1", 'setCertificationCE' => "") ; - $test->processCmd($Command); - $this->assertSame( '[4,"Abeille1","0019","01","",null]', json_encode($test->result) ); - - $Command = array( "dest" => "Abeille1", 'setCertificationFCC' => "") ; - $test->processCmd($Command); - $this->assertSame( '[4,"Abeille1","0019","02","",null]', json_encode($test->result) ); - - $Command = array( "dest" => "Abeille1", 'TxPower' => "11") ; - $test->processCmd($Command); - $this->assertSame( '[4,"Abeille1","0806","11","",null]', json_encode($test->result) ); - - // ..... need to continue ..... - - } -} - - -?> - diff --git a/resources/archives/core/class/AbeilleCmdTest.class.php b/resources/archives/core/class/AbeilleCmdTest.class.php deleted file mode 100644 index 363470342b..0000000000 --- a/resources/archives/core/class/AbeilleCmdTest.class.php +++ /dev/null @@ -1,23 +0,0 @@ -assertSame( 1, count($output) ); - $this->assertSame( 0, $retval ); - } - -} - - -?> - diff --git a/resources/archives/core/class/AbeilleParserTest.class.php b/resources/archives/core/class/AbeilleParserTest.class.php deleted file mode 100644 index 4b63c47922..0000000000 --- a/resources/archives/core/class/AbeilleParserTest.class.php +++ /dev/null @@ -1,125 +0,0 @@ -assertSame( 0, count($output) ); - $this->assertSame( 0, $retval ); - } - - // function test_deviceAnnounce() { - // fwrite(STDOUT, "\n\n" . __METHOD__ ); - - // global $log; - - // $net = 'Abeille1'; - // $addr = '81F6'; - // $ieee = '14B457FFFE79EBA9'; - // $capa = '8E'; - // $rejoin = '00'; - - // $abeilleParser = new AbeilleParser; - - // // Standard - // $log = []; - // $abeilleParser->deviceAnnounce($net, $addr, $ieee, $capa, $rejoin); - - // $logExpected = '[" EQ new to parser"," Requesting active end points list"]'; - // $this->assertSame( $logExpected, json_encode($log) ); - - // // Change Addr - // $addr = '8888'; - // $log = []; - // $abeilleParser->deviceAnnounce($net, $addr, $ieee, $capa, $rejoin); - - // $logExpected = '[" EQ already known: Addr updated from 81F6 to 8888"," EQ already known: Status=identifying"," Device identification already ongoing"]'; - // $this->assertSame( $logExpected, json_encode($log) ); - - // // New ieee - // $ieee = 'FFB457FFFE79EBFF'; - // $log = []; - // $abeilleParser->deviceAnnounce($net, $addr, $ieee, $capa, $rejoin); - - // $logExpected = '[" ERROR: There is a different EQ (ieee=14B457FFFE79EBA9) for addr 8888"]'; - // $this->assertSame( $logExpected, json_encode($log) ); - // } - - - // function test_deviceUpdate() { - // fwrite(STDOUT, "\n\n" . __METHOD__ ); - - // global $log; - // global $msgToCmd; - // unset($GLOBALS['eqList']); - - // $net = 'Abeille1'; - // $addr = '81F6'; - // $ep = '01'; - - // $abeilleParserDebug = new AbeilleParserDebug; - - // // No update - // $log = []; $msgToCmd = []; - // $abeilleParserDebug->deviceUpdate($net, $addr, $ep, $updType = null, $value = null); - // $logExpected = '[" deviceUpdate(\'\', \'\'): Unknown device detected"," Requesting IEEE"]'; - // $this->assertSame( $logExpected, json_encode($log) ); - // $cmdExpected = '[["CmdAbeille1\/81F6\/getIeeeAddress","priority=5"]]'; - // $this->assertSame( $cmdExpected, json_encode($msgToCmd) ); - - // $log = []; $msgToCmd = []; - // $abeilleParserDebug->deviceUpdate($net, $addr, $ep, $updType = null, $value = null); - // $logExpected = '[" Requesting IEEE"]'; - // $this->assertSame( $logExpected, json_encode($log) ); - // $cmdExpected = '[["CmdAbeille1\/81F6\/getIeeeAddress","priority=5"]]'; - // $this->assertSame( $cmdExpected, json_encode($msgToCmd) ); - - // $GLOBALS['eqList'][$net][$addr]['ieee'] = '14B457FFFE79EBA9'; - - // // update Ep List - // $updType='epList'; - // $value='07'; - // $log = []; $msgToCmd = []; - // $abeilleParserDebug->deviceUpdate($net, $addr, $ep, $updType, $value); - // $this->assertSame( $value, $GLOBALS['eqList'][$net][$addr]['epList'] ); - // $cmdExpected = '[["CmdAbeille1\/81F6\/readAttribute","ep=07&clustId=0000&attrId=0004,0005,0010"]]'; - // $this->assertSame( $cmdExpected, json_encode($msgToCmd) ); - - // // Check status - // $GLOBALS['eqList'][$net][$addr]['status'] = "identifying"; - // $log = []; $msgToCmd = []; - // $return = $abeilleParserDebug->deviceUpdate($net, $addr, $ep, $updType, $value); - // $this->assertSame( false, $return ); - - // } - -} - - -?> - diff --git a/resources/archives/core/class/AbeilleParserTestDB.class.php b/resources/archives/core/class/AbeilleParserTestDB.class.php deleted file mode 100644 index 4f908a2221..0000000000 --- a/resources/archives/core/class/AbeilleParserTestDB.class.php +++ /dev/null @@ -1,93 +0,0 @@ -run(); - sleep(2); - $abeilleParser = new AbeilleParser; - - $group = '4343'; - - $msg = array( - 'src' => 'parser', - 'type' => 'attributeReport', - 'net' => 'Abeille1', - 'addr' => '81F6', - 'ep' => '01', - 'name' => 'Group-Membership', - 'value' => $group, - 'time' => time(), - 'lqi' => '00', - ); - - $abeilleParser->msgToAbeille2($msg); - - sleep(2); - $cmdInfoGroup = cmd::byId(27303); - - $this->assertSame( $group, $cmdInfoGroup->execCmd() ); - } - - // function test_deviceCreate() { - // fwrite(STDOUT, "\n\n" . __METHOD__ ); - - // global $log; - // global $msgToCmd; - // unset($GLOBALS['eqList']); - - // $net = "Abeille1"; - // $addr = "AAAA"; - // $GLOBALS['eqList'][$net] = array(); - // $GLOBALS['eqList'][$net][$addr] = array(); - - // $eq = &$GLOBALS['eqList'][$net][$addr]; - - // // $eq['ieee'] = "FFB457FFFE79EBFF"; - // // $eq['epFirst'] = "01"; - // // $eq['modelIdentifier'] = ""; - // // $eq['manufacturer'] = ""; - // // $eq['jsonId'] = ""; - // // $eq['jsonLocation'] = ""; - // // $eq['capa'] = ""; - - // $abeilleParser = new AbeilleParser; - - // $net = "Abeille1"; - // $addr = "AAAA"; - // $abeilleParser->deviceCreate($net, $addr); - - // sleep(2); - // $eq = Abeille::byLogicalId($net.'/'.$addr, 'Abeille'); - - // $this->assertSame( true, is_object($eq) ); - - // } -} - - -?> - diff --git a/resources/archives/core/class/AbeilleTemplateCmd.class.php b/resources/archives/core/class/AbeilleTemplateCmd.class.php deleted file mode 100644 index 88cc932009..0000000000 --- a/resources/archives/core/class/AbeilleTemplateCmd.class.php +++ /dev/null @@ -1,137 +0,0 @@ -getId(); - return AbeilleCmd::byEqLogicIdAndLogicalId( $eqLogicalId, $logicalId, false )->getConfiguration('uniqId', '-1'); - } - - /** - * Will collect all Cmd with a specific template (uniqId) - * - * @return Return all Cmd with a specific template (uniqId) - */ - public static function getCmdByTemplateUniqId( $uniqId ) { - $return = array(); - $allCmdWithUniqId = AbeilleCmd::searchConfiguration( 'uniqId' ); - - foreach ( $allCmdWithUniqId as $key=>$cmdWithUniqId ) { - if ( $cmdWithUniqId->getConfiguration('uniqId', '') == $uniqId ) { - $return[] = $cmdWithUniqId; - } - } - - return $return; - } - - /** - * Will return the 'main' parameter for the device stored in the template - * @param uniqId Id du template que l selectionne - * @param param un des paramatres principaux comme: name, isVisible, order, type, subtype, invertBinary, template... - * - * @return Return the 'main' parameter for the device stored in the template - */ - public static function getMainParamFromTemplate( $uniqId, $param ) { - $jsonArray = AbeilleTemplateCommon::getJsonForUniqId( $uniqId ); - if ($jsonArray == -1) return -1; - $keys = array_keys ( $jsonArray ); - if (count($keys)!=1) return 0; - if (!isset($jsonArray[$keys[0]][$param])) return 0; - return $jsonArray[$keys[0]][$param]; - } - - /** - * Will return the configuration item for the device stored in the template - * @param uniqId of the template that we want to use - * @param item in the configuration that we want - * - * @return Return return the configuration item for the device stored in the template if exist otherwise '' - */ - public static function getConfigurationFromTemplate( $uniqId, $item ) { - $configurationArray = self::getMainParamFromTemplate( $uniqId, 'configuration' ); - - if (isset($configurationArray[$item])) return $configurationArray[$item]; - else return ''; - } - - - - /** - * - * - */ - public static function compareAllCmdWithTemplateHtmlEnteteTable() { - echo " "; - echo "
\n"; - } - - /** - * - * - */ - public static function compareAllCmdWithTemplateHtmlPiedTable() { - echo " Cmd Name Param Jeedom Vaule Template Value
"; - } - - /** - * Will compare cmd from Abeille to their template - * - * @return Return no, Will compare cmd from Abeille to their template and will echo the result during execution in html format. - */ - public static function compareAllCmdWithTemplate($abeille) { - $items = array( 'isVisible'=>'getIsVisible', - 'name'=>'getName', - 'isHistorized'=>'getIsHistorized', - 'Type'=>'getType', - 'subType'=>'getSubType', - ); - - // 'order'=>'getOrder' - // invertBinary setDisplay('invertBinary' - // 'template'=>'getTemplate', - - // Take Abeile and check if Template value is identical - self::compareAllCmdWithTemplateHtmlEnteteTable(); - - foreach ( $abeille->getCmd() as $cmd ) { - - $uniqId = $cmd->getConfiguration( 'uniqId', -1 ); - - if ( $uniqId == -1 ) { - echo "\n"; - return; - } - - if (AbeilleTemplateCommon::getJsonFileNameForUniqId($uniqId)==-1) { - echo " ".$cmd->getName().": This cmd doesn t have a uniqId, I can t identify it s template ! \n"; - return; - } - - foreach ( $items as $item=>$fct ) { - $templateValue = AbeilleTemplateCmd::getMainParamFromTemplate($uniqId, $item); - if ( $templateValue == -1 ) { - echo " ".$cmd->getName().": This uniqId (".$uniqId."), doesn t correspond to any template ! \n"; - continue; - } - if ($cmd->$fct() != $templateValue) { - echo " ".$cmd->getName().": Error template not found for this parameter (".$uniqId."->".$item.") ! \n"; - // var_dump(AbeilleTemplateCommon::getJsonFileNameForUniqId( $uniqId )); - } - } - - } - self::compareAllCmdWithTemplateHtmlPiedTable(); - } - -} - - -?> diff --git a/resources/archives/core/class/AbeilleTemplateCommon.class.php b/resources/archives/core/class/AbeilleTemplateCommon.class.php deleted file mode 100644 index ceb558bc87..0000000000 --- a/resources/archives/core/class/AbeilleTemplateCommon.class.php +++ /dev/null @@ -1,98 +0,0 @@ -"; - } - - /** - * - * - */ - public static function compareTemplateHtmlPiedDePage() { - echo " ".$cmd->getName()." ".$item." ".$cmd->$fct().' '.$templateValue."