<div dir="ltr">Ok, Thanks for explaining the differences between the USB HID and hiddev - the hiddev0 device does indeed disappear as you said.<br><br>I will do my homework (sort of doing it now too :] ) if the decision of which UPS to purchase falls into my hands in the future. Thanks for the explanation.<br>
<br>I can definitely try to recompile the driver as you said,<br><br>I have just a couple questions on how to do this:<br><br>Should I be using th latest trunk tripplite_usb.c?<br><br>Does changing the, <br><br>#define MAX_SEND_TRIES 3<br>
<br>line to:<br><br>#define MAX_SEND_TRIES 10<br><br>and recompiling the driver do the trick? Does the # cause the line to be commented out??<br><br>I will give this a go on Friday - THANK YOU SO MUCH!<br><br>- Jonathan<br>
<br><br><br><div class="gmail_quote">On Wed, Aug 13, 2008 at 10:22 PM, Charles Lepple <span dir="ltr"><<a href="mailto:clepple@gmail.com">clepple@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style=""><div><div class="Ih2E3d"><div>On Aug 13, 2008, at 10:14 AM, Jon Bougher wrote:</div><br></div><div class="Ih2E3d"><blockquote type="cite"><span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">send_cmd(msg_len=2, type='B')<br>
send_cmd: sending 3a 42 bd 0d 00 00 00 00 '.B......'<br>send_cmd: received 53 31 34 30 31 00 30 0d 'S1401.0.' (bad)<br>send_cmd: send_try = 3, recv_try = 10<br><br>Error reading B value: Device detached? (error 0: No error)</span></blockquote>
</div></div><div><br></div><div>What if you increase MAX_SEND_TRIES? Under normal operation, this should not slow things down, but increasing it to 5, 10 or 20 might help if the UPS is busy and can't respond immediately.</div>
<div><br></div><div>I think remember where the "error 0" part came from. The USB-to-serial converter always returns 8 bytes if it can, but those bytes may be stale (see above - we sent the 'B' command, but got the leftover 'S' status result).</div>
<div><br></div><div>Arjen had some suggestions about how to rework the reconnection scheme, and based on the error above, it's not going to be simple.</div><br><div> <span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div>
-- </div><div>Charles Lepple</div><div>clepple@gmail</div><div><br></div></span><br> </div><br></div></blockquote></div><br></div>