<html>
<body>
<font size=3>Peter,<br>
&nbsp;&nbsp; I have tried the Serial-over-USB thing and got the
following<br><br>
[root@neptune etc]#
/hd2/Downloads/UPS/Upsilon/NUT/trunk/drivers/megatec_usb -DDDDDD -a
eclipse -u nut<br>
Network UPS Tools - Megatec protocol driver 1.5[usb] (2.1.0)<br>
Carlos Rodrigues 
<img src="http://messenger.msn.com/MMM2004-08-11_11.52/Resource/emoticons/coffee.gif" width=19 height=19 alt="Coffee cup"> 2003-2007<br><br>
debug level is '6'<br>
comm_usb_open<br>
Checking device (0000/0000) (002/001)<br>
- VendorID: 0000<br>
- ProductID: 0000<br>
- Manufacturer: unknown<br>
- Product: unknown<br>
- Serial Number: unknown<br>
- Bus: 002<br>
Trying to match device<br>
comm_usb_match<br>
Device does not match - skipping<br>
Checking device (FFFF/0000) (001/002)<br>
- VendorID: ffff<br>
- ProductID: 0000<br>
- Manufacturer: UIS Ablerex<br>
- Product: Ablerex USB Interface 049e<br>
- Serial Number: unknown<br>
- Bus: 001<br>
Trying to match device<br>
comm_usb_match<br>
Device matches<br>
HID descriptor, method 1: (9 bytes) =&gt; 09 21 00 01 00 01 22 78 02<br>
i=0, extra[i]=09, extra[i+1]=21<br>
HID descriptor, method 2: (9 bytes) =&gt; 09 21 00 01 00 01 22 78 02<br>
HID descriptor retrieved (Reportlen = 632)<br>
Report descriptor retrieved (Reportlen = 632)<br>
Found HID device<br>
comm_usb_recv starting<br>
in get_data_ablerex<br>
in libusb_get_interrupt<br>
&nbsp;none (-2)<br>
get_data_ablerex: len: -2, error: 2, No such file or directory: buf:
<br>
Leaving get_data_ablerex: len: 0<br>
len: 0<br>
doing for loop:<br>
Starting UPS detection process...<br>
Attempting to detect the UPS...<br>
Sending &quot;Q1&quot; command...<br>
comm_usb_send starting<br>
calling va_start<br>
doing vsnprintf<br>
calling va_end: len: 3, Q1<br>
doing if test<br>
about to return<br>
in set_data_ablerex<br>
Leaving set_data_ablerex; strlen(str):
3,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Q1<br>
getting receive stuff<br>
comm_usb_recv starting<br>
in get_data_ablerex<br>
in libusb_get_interrupt<br>
&nbsp;none (-2)<br>
get_data_ablerex: len: -2, error: 2, No such file or directory: buf:
<br><br>
<br>
It would seem to be the <br><br>
ret = usb_interrupt_read(udev, 0x81, (char *)buf, bufsize,
timeout);<br><br>
line that is getting the error 2. Is there any more information on what
should be in there? Or is this the time I have to start trying different
bits, like putting the usb_get_string_simple in instead?<br><br>
Jon<br><br>
<br>
At 16:52 31/01/2007, Peter Selinger wrote:<br>
<blockquote type=cite class=cite cite="">Jon Gough wrote:<br>
&gt; <br>
&gt; Peter,<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; A bit more info. I have modified your
get_descriptor.c program to <br>
&gt; give a few more details. I have run it a few times and got the <br>
&gt; following information.<br>
&gt; <br>
...<br>
&gt;<br>
&gt; [root@neptune trunk]# ./drivers/get_descriptor 001 002 1 0 0 128 0
3<br>
&gt; usb_get_string_simple(udev, 3, buf, 204
<img src="http://messenger.msn.com/MMM2004-08-11_11.52/Resource/emoticons/75_75.gif" width=19 height=19 alt="Eye-rolling"><br>
&gt; <br>
&gt;&nbsp;&nbsp; 28 32 34 38 2e 30 20 31 34 30 2e 30 20 32 34 38 2e 30 20
30 31 32 20 35<br>
&gt;&nbsp;&nbsp; 30 2e 30 20 32 37 2e 30 20 32 35 2e 30 20 30 30 30 30 31
30 30 30 0d<br>
&gt; <br>
&gt;&nbsp;&nbsp; (248.0 140.0 248.0 012 50.0 27.0 25.0 00001000.<br><br>
This is the megatec protocol. So your device seems indeed to be an<br>
instance of the megatec-over-USB protocol that has been discussed on<br>
the nut-upsuser list in December and January. I believe I mentioned<br>
this last week; here is the excerpt from the relevant email. We are<br>
going in circles, it seems.<br><br>
On Fri, 26 Jan 2007, Peter Selinger wrote:<br>
&gt; Jon,<br>
&gt; <br>
&gt; there were some threads in December on the nut-upsdev list,
with<br>
&gt; subjects such as &quot;megatec over USB&quot;. Andrey Lelikov had
written a<br>
&gt; patch for a &quot;SVEN Pro+&quot; device, and Alexander I. Gordeev
is still<br>
&gt; continuing to work on it to support his &quot;Krauler&quot; device.
But as far<br>
&gt; as I know, this has not yet been tested much, and Alexander is
still<br>
&gt; working on it (see his most recent post on January 23).<br>
&gt; <br>
&gt; Last time I took inventory, here is the list of devices that *may*
use<br>
&gt; a similar protocol (dubbed &quot;megatec-over-USB&quot
<img src="http://messenger.msn.com/MMM2004-08-11_11.52/Resource/emoticons/wink_smile.gif" width=19 height=19 alt="Winking smiley">:<br>
&gt; <br>
&gt; * Krauler UP-M500VA (see Alexander I. Gordeev's thread on
nut-upsdev,<br>
&gt;&nbsp;&nbsp; November 2006)<br>
&gt; * Ablerex 625L (see Lau Kim Ping's thread on nut-upsuser,
October<br>
&gt;&nbsp;&nbsp; 2006)<br>
&gt; * Atlantis-Land S1501 (made by Ablerex) (see ngpost1's threads
on<br>
&gt;&nbsp;&nbsp; nut-upsuser and nut-upsdev, December 2005)<br>
&gt; * Belkin F6H500ukUNV (made by MEC?) (see the thread by
meherenow,<br>
&gt;&nbsp;&nbsp; spamwhole, and Robert Kent on nut-upsdev, September
2006)<br>
&gt; * SVEN Pro+ USB (see Andrey Lelikov's posts on nut-upsdev,
starting<br>
&gt;&nbsp;&nbsp; December 2006)<br>
&gt; <br>
&gt; I don't have any further information at this point, but you could
get<br>
&gt; in touch with Alexander to see if he has a tryable version of
Andrey's<br>
&gt; patch, or you could try Andrey's patch (which was posted on the<br>
&gt; mailing list) directly.<br>
&gt; <br>
&gt; -- Peter<br><br>
So my recommendation still stands: try Andrey's patch, and/or try to<br>
get it from Alexander.<br><br>
-- Peter</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 5:26:34 PM<BR><FONT color=gray>avast! is copyright (c) 2000-2007 ALWIL Software.</FONT></P>
<TBODY></TBODY></TABLE>
<BR>

</body>
<br>
</html>