[Nut-upsdev] Support for SMS (Brazil) usb models

Peter Senna Tschudin peter.senna at gmail.com
Wed Oct 31 08:59:24 UTC 2012


On Tue, Oct 30, 2012 at 11:43 PM, Arnaud Quette <aquette.dev at gmail.com> wrote:
>
>
> 2012/10/30 Peter Senna Tschudin <peter.senna at gmail.com>
>>
>> On Mon, Oct 29, 2012 at 9:37 PM, Arnaud Quette <aquette.dev at gmail.com> wrote:
>> > Hi Rodrigo and Peter,
>> Hi Arnaud!
>
>
> Hi Peter,
>
>>
>> >
>> > 2012/10/28 Rodrigo Vigna <skrull at gmail.com>
>> >>
>> >> Hi,
>> >>
>> >> NUT does not support SMS (www.sms.com.br) usb models. I found a simple
>> >> piece of code that works. Maybe it could help you develop a driver.
>> >>
>> >> https://github.com/petersenna/nobreakSMS
>> >>
>> >> If desired, I could provide a link for the manufacturer bloated
>> >> software (26MB java)
>> >>
>> >> Thanks and sorry for my poor english!
>> >
>> >
>> > your english is good, and by all ways better than my brazilian ;)
>> >
>> > @peter: would you be interested in working with the NUT team to integrate
>> > your work in NUT?
>> Yes, how?
>
>
> great!
> in fact, this protocol is just a variation of Q1.
> check the blazer_ser driver . we may have to check for some changes though ('M' instead of 'Q' for muting buzzer, for example)
I've identified some query/reply. See:
https://github.com/petersenna/nobreakSMS/blob/master/userland/nobreakSMS.c#L322

But one known issue is that I do not know how to specify the test time. See:
https://github.com/petersenna/nobreakSMS/blob/master/userland/nobreakSMS.c#L406

This does the test for 10 seconds and I know that the time is on the
query, but I did not understood how to change the time value. Do you
know how to do it?

>
>> >
>> > note that we already have support for SMS Manager III on RS232, with the
>> > blazer_ser driver (Q1 protocol).
>> The USB version uses Cypress chip to do USB-RS232 conversion, in the
>> end the USB version is also serial...
>
>
> what are the USB vendorID and productID?
I do not know and cant reply until I'm back home in more than 30 days.
I'm in France and left my SMS UPS in Brazil.

@Rodrigo:
Can you please connect your SMS USB UPS to a Linux box and send us the
output of lsusb command? It will be something like:
[peter at ace userland]$ lsusb
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 08ff:168b AuthenTec, Inc.
Bus 001 Device 004: ID 0bda:58f5 Realtek Semiconductor Corp.
Bus 001 Device 005: ID 0930:1314 Toshiba Corp.
Bus 002 Device 003: ID 0424:2517 Standard Microsystems Corp. Hub
Bus 002 Device 007: ID 8086:0189 Intel Corp.
Bus 002 Device 008: ID 192f:0416 Avago Technologies, Pte.
Bus 002 Device 009: ID 0430:00a2 Sun Microsystems, Inc. Type 7 Keyboard
Bus 002 Device 004: ID 0d8c:0105 C-Media Electronics, Inc. CM108 Audio
Controller
Bus 002 Device 005: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 002 Device 006: ID 0430:100e Sun Microsystems, Inc. 24.1" LCD
Monitor v4 / FID-638 Mouse

Do not worry if you do not see SMS on this list. The UPS will show as
Cypress something...

>
> cheers,
> Arnaud
> --
> Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org
> Debian Developer - http://www.debian.org
> Free Software Developer - http://arnaud.quette.fr
>



--
Peter



More information about the Nut-upsdev mailing list