I’m trying to extract data from Davis IP Datalogger using a PHP Script.
Connection OK.
“VER\n” command reply’s ok
The “DMP\n” give me this result after transform from binary (i think) to HEX:
0600
29141c024a014e01460100000000b8750000e00084023e5b02030c0c00000000002cffffffffffffffff00ffffffffffffffffff
2914260247014901460100000000bf750000e00084023e5b01020c0c00000000002cffffffffffffffff00ffffffffffffffffff
2914580247014801460100000000c0750000e40083023e5c00020c0c00000000002cffffffffffffffff00ffffffffffffffffff
2914620247014801470100000000c2750000e40082023e5c00020c0c00000000002cffffffffffffffff00ffffffffffffffffff
29146c0245014801440100000000c3750000e50082023e5c00020c0c00000000002cffffffffffffffff00ffffffffffffffffff
ffffffff77e3
How can i get “human Readable Data” from this.
The Script:
<?php require_once "PHPTelnet.php"; $telnet = new PHPTelnet(); $result = $telnet->Connect('mydns','',''); if ($result == 0) { $telnet->DoCommand('NVER\n', $result); echo $result; echo " "; $telnet->DoCommand('DMP\n', $result); echo bin2hex($result[0]); $telnet->Disconnect(); } ?>