<html>
<body>
<font size=3>Peter,<br>
I am still trying to get more information from the
manufacturers, but they did send this through to me. I am not going to
have time to look into it before Tuesday next week. But I thought I
should post it anyway. My VendorID is -1 rather than 1,
but....................<br><br>
Regards<br>
Jon<br><br>
HID Device
*******************************************************************************<br>
<x-tab> </x-tab>VendorID
=1<br>
<x-tab> </x-tab>
ProductID=0<br><br>
<br>
Use API function
*******************************************************************************<br>
<x-tab> </x-tab>SetFeature
()<br>
<x-tab> </x-tab>GetFeature
()<br><br>
<br>
Tx Data (use SetFeature function)
*******************************************************************************<br>
<x-tab> </x-tab>
[5][0][len][ask.......]<x-tab> </x-tab><x-tab>
</x-tab>-response
data<br>
<x-tab> </x-tab>ask:
<x-tab> </x-tab>[Q][1][D13]<br>
<x-tab> </x-tab><x-tab>
</x-tab>[I][D13]<br>
<x-tab> </x-tab><x-tab>
</x-tab>[F][D13]<br>
<x-tab> </x-tab>ex:<x-tab>
</x-tab>Ask <br>
<x-tab> </x-tab><x-tab>
</x-tab>TxData=><x-tab>
</x-tab>
[5][0][3][Q][1][D13][0][0]............. ( Feature Report Byte Length )
<br>
<x-tab> </x-tab><x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab>"Q1"<br>
<br>
<x-tab> </x-tab>
[5][2][len][ask.......]<x-tab> </x-tab><x-tab>
</x-tab>-don't response
data => Control or Command<br>
<x-tab> </x-tab>ask:<x-tab>
</x-tab>[T][D13]<br>
<x-tab> </x-tab><x-tab>
</x-tab>........<br>
<x-tab> </x-tab>ex:<x-tab>
</x-tab>Ask <br>
<x-tab> </x-tab><x-tab>
</x-tab>TxData=><x-tab>
</x-tab>
[5][2][2][T][D13][0][0]................ ( Feature Report Byte Length )
<br>
<x-tab> </x-tab><x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab>"T"<br>
<br>
<br>
Rx Data (use GetFeature function)
*******************************************************************************<br>
<x-tab> </x-tab>ex:<x-tab>
</x-tab>after Tx "Q1"<br>
<x-tab> </x-tab><x-tab>
</x-tab>RxData=><x-tab>
</x-tab>
[(][2][0][8][.][4][ ][1][4][0].......... ( Feature Report Byte Length
)<br>
<x-tab> </x-tab><x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab>"(208.4
140.0 208.4 034 59.9 2.05 35.0 00110000"<br><br>
<br>
steps
*******************************************************************************<br>
<x-tab> </x-tab>1.Get HID
Device ( VendorID =1,ProductID=0).<br>
<x-tab> </x-tab>2.use
setfeature function to Tx Data.<br>
<x-tab> </x-tab>3.use
getfeature function to get data.<br><br>
<br>
%% Information consult => MegaTec Communication Protocols for UPS<br>
%% D:decimal<br><br>
<br>
At 03:42 9/02/2007, Peter Selinger wrote:<br>
<blockquote type=cite class=cite cite="">Hi Alexander,<br><br>
thanks for your good work on the megatec_usb driver. I have made a
few<br>
more (cosmetic) changes.<br><br>
Is the driver now working stably for your device? In particular, do<br>
the instant commands (and particularly "upsdrvctl -k"
<img src="http://messenger.msn.com/MMM2004-08-11_11.52/Resource/emoticons/wink_smile.gif" width=19 height=19 alt="Winking smiley"> work
properly? <br>
In this case, we could hopefully mark the device as "supported"
and<br>
merge the driver to the main branch. <br><br>
There is still the question of whether to keep separate code for<br>
Ablerex and Krauler. From what I understand, each of these
subdrivers<br>
works for each of the devices. But the Krauler driver is now more<br>
advanced (with the retry feature), so we could remove the Ablerex<br>
subdriver (provided Jon tests the Krauler one to make sure it still<br>
works for the Ablerex device).<br><br>
If I understand correctly, the only change needed would be to
change<br><br>
{0xffff, 0x0000, get_data_ablerex,
set_data_ablerex},<br><br>
to <br><br>
{0xffff, 0x0000, get_data_krauler,
set_data_krauler},<br><br>
is that correct? -- 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): 000712-1, 08/02/2007<BR>Tested on: 9/02/2007 5:06:39 AM<BR><FONT color=gray>avast! is copyright (c) 2000-2007 ALWIL Software.</FONT></P>
<TBODY></TBODY></TABLE>
<BR>
</body>
<br>
</html>