<html>
<body>
<font size=3>Peter,<br>
Some more info from the get_descriptor.c program. When run
using 'usb_get_string_simple' varying the arg_ind from 0 to14 I
get.<br><br>
code<x-tab> </x-tab>response<x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab>meaning (what
happens)<br>
0<x-tab> </x-tab>?<br>
1<x-tab> </x-tab>UIS
Ablerex<x-tab> </x-tab><x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab>Manufacturers
name<br>
2<x-tab> </x-tab>Ablerex USB
Interface
049e<x-tab> </x-tab><x-tab>
</x-tab><x-tab>
</x-tab>Product<br>
3<x-tab> </x-tab> (246.5 140.0
246.5 024 50.0 27.0 25.0
00001000.<x-tab> </x-tab>
Volt_in ?? Vol_out %cap
Hz<x-tab> </x-tab>?? ?? ??<br>
4<x-tab> </x-tab>USB No
Ack<x-tab> </x-tab><x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab>Test for 10
secs<br>
5<x-tab> </x-tab>USB No
Ack<x-tab> </x-tab><x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab>Test disconnect
from mains<br>
6<x-tab> </x-tab>USB No
Ack<x-tab> </x-tab><x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab>Disconnect
mains<br>
7<x-tab> </x-tab>USB No
Ack<x-tab> </x-tab><x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab>Toggle beep
on/off ?<br>
8<x-tab> </x-tab>USB No
Ack<x-tab> </x-tab><x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab>Toggle beep on
?<br>
9<x-tab> </x-tab>USB No
Ack<x-tab> </x-tab><x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab>Toggle beep on
?<br>
10<x-tab> </x-tab>USB No
Ack<x-tab> </x-tab><x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab>?<br>
11<x-tab> </x-tab>USB No
Ack<x-tab> </x-tab><x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab>Reconnect
mains<br>
12<x-tab> </x-tab> JP
01053T<x-tab> </x-tab><x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab>?<br>
13<x-tab> </x-tab>#240.0 0.0 024.0
50.0.<x-tab> </x-tab><x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab>Volt_in<br>
14<x-tab> </x-tab><x-tab>
</x-tab>breaks the
pipe<br><br>
So it would seem that it is responding to 'some' commands what ever they
are.<br><br>
Regards<br>
Jon<br><br>
At 14:29 31/01/2007, Peter Selinger wrote:<br>
<blockquote type=cite class=cite cite="">Hi Jon,<br><br>
this doesn't look as good as I had hoped. Although you don't get any<br>
more error messages, notice that the "Value:" for every
single<br>
variable shows 0.000000.<br><br>
The lines starting with "Report[r]" show the actual raw data
read from<br>
the UPS, and indeed, it is all zeros (except some bytes towards the<br>
end that are unfortunately not used). For each feature, the<br>
"ReportID", "Offset" and "Size" (in bits)
tell you which parts of the<br>
raw data that variables corresponds to. <br><br>
This looks buggy to me. Did anything else happen after "Waiting
for<br>
notifications..."? Like, for example, did the device receive any
data<br>
notifications? This could happen infrequently, like once per<br>
minute. But there is a chance that the device would send correct
data<br>
voluntarily (on the interrupt pipeline), whereas it is apparently<br>
sending incorrect data when asked for it.<br>
<br>
-- Peter<br>
</font></blockquote>
<BR><BR>
<TABLE width=400><HR>
<P style="FONT: 9pt/11pt verdana"><a href="http://www.avast.com">avast! Antivirus</a>: Outbound message clean.
<P style="FONT: 8pt/11pt verdana">Virus Database (VPS): 000709-0, 30/01/2007<BR>Tested on: 31/01/2007 4:13:16 PM<BR><FONT color=gray>avast! is copyright (c) 2000-2007 ALWIL Software.</FONT></P>
<TBODY></TBODY></TABLE>
<BR>
</body>
<br>
</html>