diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-07-14 19:58:43 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-07-14 19:58:43 +0200 |
commit | 4cfceb141c0770aa37123fde6fc26c28283314ad (patch) | |
tree | 8973da1d99561d6ede8c4c69253d528a70e197f8 /package/comgt/files/hsodata.comgt | |
parent | 3b76e79f14e279a6526809e630e45e4f760d77de (diff) | |
parent | ba4b6056da30ddb19809b72309a009a1c84a7656 (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/comgt/files/hsodata.comgt')
-rw-r--r-- | package/comgt/files/hsodata.comgt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/package/comgt/files/hsodata.comgt b/package/comgt/files/hsodata.comgt new file mode 100644 index 000000000..92d2d8e3a --- /dev/null +++ b/package/comgt/files/hsodata.comgt @@ -0,0 +1,27 @@ +opengt + set com 115200n81 + set senddelay 0.02 + waitquiet 1 0.2 + flash 0.1 + + let c=1 +:start + send "AT_OWANDATA=1^m" + waitfor 2 "ERROR" + if % = 0 goto repeat + send "AT_OWANDATA=1^m" + get 2 "^m" $s + get 2 "^m" $s + print $s + print "\n" + exit 0 + +:repeat + sleep 3 + inc c + if c > 15 goto error + goto start + +:error + exit 1 + |