<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>[please keep the discussion on the nut-upsdev list. thanks!]</div><div><br></div><div>On Jan 30, 2014, at 10:20 AM, José Sosa wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Dear Mr. Lepple<div><br></div><div><div>I am Leonardo Sosa and I am watching this issue with Rodolfo and Ronaldo. (in copy)</div><div><br></div><div>See below our answers of your questions.</div><div><br></div>
<div>What should I do now in order to include our code sgs_command in your code blazer_usb.c?</div></div></div></blockquote><div dir="ltr"><div><div><br></div></div><div>As I mentioned to Rodolfo, there is a newer driver called "nutdrv_qx". It will eventually replace blazer_*, so we will need to port your modifications from blazer_usb.c to a new subdriver in nutdrv_qx.</div><div><br></div><div>Here is the documentation for updating nutdrv_qx:</div><div><br></div><div><a href="http://www.networkupstools.org/docs/developer-guide.chunked/ar01s04.html#nutdrv_qx-subdrivers">http://www.networkupstools.org/docs/developer-guide.chunked/ar01s04.html#nutdrv_qx-subdrivers</a></div><div><br></div><div>Dan, do you have time to help them with this? The previous email in this thread has their modified blazer_usb.c.</div><div><br></div></div><blockquote type="cite"><div dir="ltr"><div><div>Thank you very much for your cooperation.</div><div><br></div><div>Best regards</div><div class="gmail_extra">
<br></div><div class="gmail_extra">Leonardo Sosa</div><div class="gmail_extra"><a href="mailto:sosabrasil@gmail.com">sosabrasil@gmail.com</a></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014/1/29 <span dir="ltr"><<a href="mailto:rodolfo@tsshara.com.br" target="_blank">rodolfo@tsshara.com.br</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>De: "Charles Lepple" <<a href="mailto:clepple@gmail.com" target="_blank">clepple@gmail.com</a>><br>
Em: Quarta 29 de Janeiro de 2014 11:46, <br> Para: <a href="mailto:rodolfo@tsshara.com.br" target="_blank">rodolfo@tsshara.com.br</a><br>Assunto: Re: NUT and UPS TS Shara<div style="margin-left:10px;padding-left:10px;border-left-width:2px;border-left-style:solid;border-left-color:rgb(204,204,204)">
Hi Rodolfo,<br><br>[please reply to <<a href="mailto:nut-upsdev@lists.alioth.debian.org" target="_blank">nut-upsdev@lists.alioth.debian.org</a>>, not nut-upsdev-owner, and if you have large attachments, upload them to a web server and post the URL. Thanks!]<br>
<br>On Jan 29, 2014, at 7:59 AM, <a href="mailto:rodolfo@tsshara.com.br" target="_blank">rodolfo@tsshara.com.br</a> wrote:<br><br><br>Which version of NUT did you modify?<br></div></blockquote><div> <font color="#0000ff"> <span style="background-color:rgb(255,255,255)">The version is 2.6.1 or before</span></font></div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="margin-left:10px;padding-left:10px;border-left-width:2px;border-left-style:solid;border-left-color:rgb(204,204,204)">
<br>In the current version of NUT, we have an improved driver for Megatec Qx protocols called nutdrv_qx. Your modifications should work in the new driver, but we need to know what version of blazer_usb.c you started with.<br>
<font color="#0000ff">ok</font></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="margin-left:10px;padding-left:10px;border-left-width:2px;border-left-style:solid;border-left-color:rgb(204,204,204)">
> I am developing the possibility for the company I work called TS Shara, that produces nobreaks (UPS) in São Paulo, Brazil, to use your software (NUT) in order for our nobreaks (UPS) start working with a Linux platform/ environment. The objective is to achieve a control/monitoring system for our nobreaks (UPS), especially when they exchange information with a Linux platform. <br>
> <br>> We are really interested and pleased with the software results. However, it was necessary to use a driver (tsshara.tar.gz) in order to work with our nobreaks (UPS). This occurs because our USB hardware (located in our UPS) does not create a Virtual Com when the UPS is connected to the computer.<br>
<br>Correct, all of the USB sub-drivers in blazer_usb and nutdrv_qx use libusb directly, and do not need a Virtual COM (/dev/ttyUSB*) port kernel driver. <br></div></blockquote><div><font color="#0000ff"> Ok. We use libusb directly and not need a virtual com port kernel driver.</font></div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="margin-left:10px;padding-left:10px;border-left-width:2px;border-left-style:solid;border-left-color:rgb(204,204,204)">
<br>> We would like to know if it is possible to input the sub-routine "sgs_command" located in blazer_usb.c.txt in the nut code? So that any user is able to download and install the software directly from the NUT site, without any other additional file like the one attached.<br>
<br>This should not be too hard. Is the major difference from cypress_command() that the commands are transferred in 7-byte chunks instead of 8-byte?<br></div></blockquote><div><font color="#0000ff"> Correction: The chunks are up to 7 bytes. The size of chunk is indicated by the first byte. When this byte is = 0, this is end of transmission.</font><br>
</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="margin-left:10px;padding-left:10px;border-left-width:2px;border-left-style:solid;border-left-color:rgb(204,204,204)">
<br>> We would also like that the software interface displaying all the status of the UPS is fully written in Portuguese. Is that possible?<br><br>In order to keep the network protocol and drivers simple, the status is not translated. However, clients such as the Python NUT-Monitor script, the CGI programs, wmnut and WinNUT could be translated.<br>
</div></blockquote><div> <font color="#0000ff">ok </font></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div style="margin-left:10px;padding-left:10px;border-left-width:2px;border-left-style:solid;border-left-color:rgb(204,204,204)"><br>NUT-Monitor has already been translated into Italian and French: scripts/python/app/locale/<br>
<br><a href="https://github.com/networkupstools/nut/tree/master/scripts/python/app/locale/" target="_blank">https://github.com/networkupstools/nut/tree/master/scripts/python/app/locale/</a><br><br>> We are available to help in order to solve any problem that might happen.<br>
<br>Good to know, thanks! We look forward to working with you.<br><br>> <tsshara.tar.gz><br><br>I looked at these binaries, and they appear to be old (NUT v2.6.3). I think it would be better if we merged the source code.<br>
</div></blockquote><div> <font color="#0000ff">ok</font> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div style="margin-left:10px;padding-left:10px;border-left-width:2px;border-left-style:solid;border-left-color:rgb(204,204,204)"><br>Also, we do not mind if you distribute binaries of NUT, but the GPL requires you to provide a way to get the source code you used to build that version. In this case, if you are distributing tsshara.tar.gz, you could do this by:<br>
<br> * including all of the NUT source code in that archive,<br> * include a patch file, and say where to get the base version of NUT, or<br> * provide a link to the modified source code </div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div style="margin-left:10px;padding-left:10px;border-left-width:2px;border-left-style:solid;border-left-color:rgb(204,204,204)"><a href="http://www.gnu.org/licenses/gpl-faq.html#GPLRequireSourcePostedPublic" target="_blank">http://www.gnu.org/licenses/gpl-faq.html#GPLRequireSourcePostedPublic</a> </div>
</blockquote><div> <span style="color:rgb(0,0,255)">ok,</span></div><div><span style="color:rgb(136,136,136)">-- </span></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div style="margin-left:10px;padding-left:10px;border-left-width:2px;border-left-style:solid;border-left-color:rgb(204,204,204)"><span class=""><font color="#888888">Charles Lepple<br>clepple@gmail<div></div></font></span></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br><div apple-content-edited="true">
<div>-- </div><div>Charles Lepple</div><div>clepple@gmail</div><div><br></div><br class="Apple-interchange-newline">
</div>
<br></body></html>