<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Ciao a tutti<br>
<br>
Ho recuperato un metro laser SNDWAY SW-S100 con una interfaccia USB
HID (Human Interface Device)<br>
Avete avuto esperienze in merito ? la documentazione è estremamente
scarna, si riduce ad una paginetta ed ad un software che però non
vorrei usare.<br>
<tt><br>
</tt>
<blockquote><tt>CRC:For example, receiving data as below: </tt><br>
<tt>23 02 10 01 02 00 00 00 00 CA E4 00 00 34 71 00 00 33 22 00 00
BD 00 00 </tt><br>
<tt>and </tt><br>
<tt>CRC=(0x02+0x10+0x01+0x02+0xCA+0xE4+0x34+0x71+0x33+0x22)
mod 256 =0xBD </tt><br>
<tt> </tt><br>
<tt>1. **: device ID (2bytes) + save qty (2bytes) + Unit (1byte)
+ model (1byte) + backlight time (2bytes) + auto </tt><br>
<tt> power-off time (2bytes) + sound on/off(1byte) + reference
point (1byte) + angle unit (1byte) + CRC (1byte) </tt><br>
<tt> +# (1byte) </tt><br>
<tt>2. ATR+2bytes+#: means ‘A’ + ‘T’ + ‘R’ +2bytes(total records)
+ ‘#’ </tt><br>
<tt>3. ATRxxx#: means from ATR001# to ATR099#, ATR001
means inquiring the first record, ATR099 means </tt><br>
<tt> inquiring the 99 th record. </tt><br>
<tt>4. ATD+4+4+4+crc+#: ATD+4bytes (distance) + 4bytes (angle X)
+ 4bytes (angle Y) + CRC (checksum) + # </tt><br>
<tt>5. ***: ‘#’ + “+” or “–” (half a byte higher) + measuring
steps (half a byte lower) + unit (half a byte higher) + </tt><br>
<tt> measuring model (half a byte lower) + addition/subtraction
mode (1 byte) + reference point (1byte) + </tt><br>
<tt> distance 0 (4bytes) + distance 1 (4bytes) + distance 2
(4bytes) + distance 3 (4bytes) </tt><br>
<tt>6. ****: ATI(3bytes) + distance 0 (4bytes) + distance 1
(4bytes) + distance 2 (4bytes) + measuring model (half </tt><br>
<tt> a byte) + measuring steps (half a byte) + unit
(1byte) + icon of staking-out/continuous measuring/ </tt><br>
<tt> addition/subtraction mode/+ or – (half a byte) + bluetooth
installing or not / bluetooth turn on or not </tt><br>
<tt> (half a byte) + reference point (half a byte) +
staking-out finish (half a byte) + crc + #</tt><br>
</blockquote>
<tt><br>
L'idea sarebbe di interfacciarsi in Python con una libreria HID,
ma ci stò litigando anche solo per eseguire gli esempi di prova.<br>
<br>
</tt>Qualsiasi info è ben gradita<br>
<br>
Buona giornata a tutti<br>
<br>
<div class="moz-signature"> <img alt="Antonio Cereda"
src="cid:part1.5DE913DA.B655D242@cereda.it"> <br>
<font face="Arial, Helvetica"> <small> <strong><a class="moz-txt-link-abbreviated" href="mailto:antonio@cereda.it">antonio@cereda.it</a></strong></small>
<br>
<small>338/3278959</small></font> </div>
<div class="moz-cite-prefix"><br>
</div>
<br>
<div class="moz-signature">-- <br>
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>Firma3</title>
<img alt="Antonio Cereda"
src="cid:part1.5DE913DA.B655D242@cereda.it"> <br>
<font face="Arial, Helvetica"> <small> <strong><a class="moz-txt-link-abbreviated" href="mailto:antonio@cereda.it">antonio@cereda.it</a></strong></small>
<br>
<small>338/3278959</small></font> </div>
</body>
</html>