Discussion:
[Nut-upsdev] nut driver for SMS (brazil) UPS
Thiago Tiedtke dos Reis
2014-02-18 22:55:52 UTC
Permalink
Hi,

Recently I got three units of this nobreak [0]:

The intention is connect it with some file server and/or web server.

I found the NUT via FreeNAS [1] , and the contribuition [2] of Ulisses and
Rodrigo about this vendor SMS, in Brazil.

But, initially, i'm trying to apply the Ulisses patch (for smsbrasil
driver) in a Debian Server, with no success.

Can anyone help me about the patch in these two link [3] or [4]?

I'm using Debian GNU/Linux 7.4 (wheezy), in a 64bit machine.

If you want, I can do some testing with my nobreaks for improve the driver.
I have some knowledge about C programming, eletronic devices, linux
(debian), but no much about debian packages lol ..ok

Thanks on advance!

Best Regards,

Thiago Tiedtke dos Reis
www.sensormap.com.br

[0] http://www.sms.com.br/produtos/Nobreak-SMS/Manager-III-Senoidal
[1] http://doc.freenas.org/index.php/UPS
[2]
https://lists.alioth.debian.org/pipermail/nut-upsdev/2013-January/006374.html
[3] http://www2.dem.inpe.br/ulisses/nut-2.6.5-smsbrasil.diff.txt
[4] http://www2.dem.inpe.br/ulisses/smsbrasil-0.0.5.tar.gz
Charles Lepple
2014-02-19 03:15:18 UTC
Permalink
Post by Thiago Tiedtke dos Reis
Hi,
...
Post by Thiago Tiedtke dos Reis
[0] http://www.sms.com.br/produtos/Nobreak-SMS/Manager-III-Senoidal
According to the HCL, for the Manager III, you might want to try the blazer_ser (or in 2.7.1, nutdrv_qx):

http://www.networkupstools.org/stable-hcl.html
--
Charles Lepple
***@gmail
Charles Lepple
2014-02-19 03:18:34 UTC
Permalink
Post by Charles Lepple
Post by Thiago Tiedtke dos Reis
Hi,
...
Post by Thiago Tiedtke dos Reis
[0] http://www.sms.com.br/produtos/Nobreak-SMS/Manager-III-Senoidal
http://www.networkupstools.org/stable-hcl.html
For reference, can you post the output of 'lsusb -vvv' for this UPS?
Thiago Tiedtke dos Reis
2014-02-19 12:52:48 UTC
Permalink
Hi Charles,

I'll try the blazer_ser and the nutdrv_qx with version 2.7.1 later.

Below, the result of 'lsusb -vvv' requested:

Bus 004 Device 002: ID 04b4:5500 Cypress Semiconductor Corp. HID->COM RS232
Adapter
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x04b4 Cypress Semiconductor Corp.
idProduct 0x5500 HID->COM RS232 Adapter
bcdDevice 0.00
iManufacturer 1
iProduct 2
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 41
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 4
bmAttributes 0x80
(Bus Powered)
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 0 No Subclass
bInterfaceProtocol 0 None
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.00
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 37
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 1


When I try to use blazer_ser, the command: sudo upsdrvctl start

Result the below message:

Network UPS Tools - UPS driver controller 2.6.4
Network UPS Tools - Megatec/Q1 protocol serial driver 1.55 (2.6.4)

Unable to open /dev/ttyUSB0: Input/output error

Current user id: nut (116)
Serial port owner: root (0)
Serial port group: nut (122)
Mode of port: 1660

Things to try:

- Use another port (with the right permissions)

- Fix the port owner/group or permissions on this port

- Run this driver as another user (upsdrvctl -u or 'user=...' in ups.conf).
See upsdrvctl(8) and ups.conf(5).

Fatal error: unusable configuration
Driver failed to start (exit status=1)


If I try to access the port /dev/ttyUSB0 using minicon (minicom -D
/dev/ttyUSB0) or cat ( cat /dev/ttyUSB0 ), the access to device is denied.

Then, I try these instructions [0], but nothing changes when I try to open
the serial port:


# /etc/udev/rules.d/99_nut-serialups.rules
KERNEL=="ttyUSB0", GROUP="nut"

[0]
http://blog.shadypixel.com/monitoring-a-ups-with-nut-on-debian-or-ubuntu-linux

My /etc/ups/ups.conf has the following configuration:

[ups]
driver = blazer_ser
port = /dev/ttyUSB0


Any tips about that?

Thanks!!

Thiago Tiedtke dos Reis
www.sensormap.com.br
vv
Charles Lepple
2014-02-19 14:36:46 UTC
Permalink
This post might be inappropriate. Click to display it.
Rodrigo Vigna
2014-02-19 14:41:24 UTC
Permalink
For sms ups with USB connection you should use smsbrasil from Ulisses.

The driver should be considered alpha, due to some unexpected behavior. It
works, somehow. I can't recall which version was the best one, but it
wasn't the last ones (some of them didn't properly report online->battery
changes and etc)

Loading...