aboutsummaryrefslogtreecommitdiff
path: root/tools/hex.sh
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2014-09-10 23:30:11 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2014-09-10 23:30:11 +1200
commit0bf776895d82bf70a0e29c67a064024cd24a8927 (patch)
tree37b5c1aa505e9bb30214ce4f7a30ca1c076c5bd8 /tools/hex.sh
parent4f01c0906b74a9926d83befca46f8f6512730ec9 (diff)
downloadtrackermap-server-0bf776895d82bf70a0e29c67a064024cd24a8927.tar.gz
trackermap-server-0bf776895d82bf70a0e29c67a064024cd24a8927.tar.bz2
trackermap-server-0bf776895d82bf70a0e29c67a064024cd24a8927.zip
Support Wialon black box
Diffstat (limited to 'tools/hex.sh')
-rwxr-xr-xtools/hex.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/hex.sh b/tools/hex.sh
index 7571531fe..2c3faa1ab 100755
--- a/tools/hex.sh
+++ b/tools/hex.sh
@@ -1,2 +1,2 @@
-echo 504f5354202f20485454502f312e310d0a436f6e74656e742d4c656e6774683a203133330d0a436f6e74656e742d547970653a206170706c69636174696f6e2f782d7777772d666f726d2d75726c656e636f6465640d0a486f73743a2064656d6f2e747261636361722e6f72673a353035350d0a436f6e6e656374696f6e3a204b6565702d416c6976650d0a557365722d4167656e743a20416e64726f69640d0a0d0a6c61743d33342e303532323334266c6f6e3d2d3131382e3234333638322674696d657374616d703d31333936383334373930267265715f74696d657374616d703d313339363833343739302661636375726163793d312e3026616c7469747564653d36352e302669643d313233343536373839266f66667365743d25324231322533413030 | perl -ne 's/([0-9a-f]{2})/print chr hex $1/gie' | nc -v -w 10 localhost 5055
+echo 2342233038303931343b3037333233353b353032372e35303632353b4e3b30333032362e31393332313b453b302e3730303b302e3030303b4e413b343b4e413b4e413b4e413b3b4e413bd091d0b0d182d0b0d180d0b5d18f3a333a31303020257c3038303931343b3037333432303b353032372e35303834353b4e3b30333032362e31383835343b453b312e3939363b3239322e3534303b4e413b343b4e413b4e413b4e413b3b4e413bd091d0b0d182d0b0d180d0b5d18f3a333a31303020250d0a | perl -ne 's/([0-9a-f]{2})/print chr hex $1/gie' | nc -v -w 10 localhost 5039
#echo -n -e "\x0f\x00\x00\x00\x4e\x52\x30\x39\x46\x30\x34\x31\x35\x35\x00" >/dev/udp/localhost/5053