From 3c93192e8a2a392fe9ddf7bdcd512a7d6cceb3a9 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 9 Jan 2013 20:21:30 +1300 Subject: Fix GT06 protocol --- hex.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hex.sh') diff --git a/hex.sh b/hex.sh index a061ac18c..45f6b11bc 100755 --- a/hex.sh +++ b/hex.sh @@ -1 +1 @@ -echo 2424613133382C3031323839363030303437353439382C4141412C33352C2D362E3133383330362C3130362E3931303635352C3132313230353130333430392C412C332C31312C302C302C312C33362C343138322C33343834372C3531307C31307C303038317C344634462C303030302C303030427C303030437C303030417C303846367C303030302C2C2A44350D0A | perl -ne 's/([0-9a-f]{2})/print chr hex $1/gie' | nc -v localhost 5020 +echo 78780d0103534190360660610001e0cd0d0a | perl -ne 's/([0-9a-f]{2})/print chr hex $1/gie' | nc -v -w 10 localhost 5023 -- cgit v1.2.3