Test Python PLG

ZCL frame decoder

:
"); echo( "
"); $selected_val = strip_tags($_GET['MySelectMenu']); switch ( $selected_val ) { case "0": // JSON $s = 'C:\Users\administrateur.MICREL\AppData\Local\Programs\Python\Python36\python.exe .\cgi-bin\src\Main.py -if '.escapeshellarg($user_statement).' -of json 2>&1'; echo( "Decoded frame (json) : " .$user_statement ); break; case "1": // XMLP $s = 'C:\Users\administrateur.MICREL\AppData\Local\Programs\Python\Python36\python.exe .\cgi-bin\src\Main.py -if '.escapeshellarg($user_statement).' -of xmlp 2>&1'; echo( "Decoded frame (xmlp) : " .$user_statement ); break; case "2": // XMLL $s = 'C:\Users\administrateur.MICREL\AppData\Local\Programs\Python\Python36\python.exe .\cgi-bin\src\Main.py -if '.escapeshellarg($user_statement).' -of xmll 2>&1'; echo( "Decoded frame (xmll) : " .$user_statement ); break; case "3": // STD $s = 'C:\Users\administrateur.MICREL\AppData\Local\Programs\Python\Python36\python.exe .\cgi-bin\src\Main.py -if '.escapeshellarg($user_statement).' -of std 2>&1'; echo( "Decoded frame (std) : " .$user_statement ); break; case "4": // JSON-VERIF $s = 'C:\Users\administrateur.MICREL\AppData\Local\Programs\Python\Python36\python.exe .\cgi-bin\src\Main.py -if '.escapeshellarg($user_statement).' -of json-verif 2>&1'; echo( "Decoded frame (json-verif) : " .$user_statement ); break; } echo( "
" ); $output = shell_exec( $s ); echo( "
"); echo( "" ); echo( "
"); } } ?>


Batch frame decoder

:
:  ? Format: yyyy-MM-ddTDD:mm:ss.SSSZ
:  ? tagsz "taglbl,resol,sampletype,[lblname]" "..."

ex:
3 2,10,9 1,10,7 4,30,10 3,10,4 5,10,6 6,1,4
2 2,10,9,temperature 1,10,7,pressure

Where SampleType can be:
1: Boolean
2: Unsigned int U4
3: Signed int I4
4: Unsigned int U8
5: Signed int I8
6: Unsigned int U16
7: Signed int I16
8: Unsigned int U24
9: Signed int I24
10: Unsigned int U32
11: Signed int I32
12: Float

"); echo( "
"); if(empty($_GET['timestamp'])) { $s = 'C:\Users\administrateur.MICREL\AppData\Local\Programs\Python\Python36\python.exe .\cgi-bin\br_uncompress.py -if '.escapeshellarg($user_statement_trame).' -a '.$user_statement_attributes.' 2>&1'; } else { $s = 'C:\Users\administrateur.MICREL\AppData\Local\Programs\Python\Python36\python.exe .\cgi-bin\br_uncompress.py -if '.escapeshellarg($user_statement_trame).' -t '.$user_statement_timestamp.' -a '.$user_statement_attributes.' 2>&1'; } echo( "Frame to decode (FrmPayload): " .$user_statement_trame ); echo( "
"); echo( "TimeStamp: " .$user_statement_timestamp ); echo( "
"); echo( "Batch attributes: " .$user_statement_attributes ); //$s = 'C:\Users\administrateur.MICREL\AppData\Local\Programs\Python\Python36\python.exe C:\xampp\htdocs\Intranet\Configurateur\cgi-bin\src\Main.py -if '.$user_statement.' -of json 2>&1'; echo( "
" ); //echo( "
"); $output2 = shell_exec( $s ); echo( "
"); echo( "" ); echo( "
"); } ?>

2}
Print Friendly
Aller à la barre d’outils