Re: [Nut-upsdev] RS-232 Port with Nut

2015-12-01 Thread Kjell Claesson
tisdagen den 1 december 2015 09.14.59 skrev  Marks, Connor:

Hi Marks.
> Yes I do have Linux. I have assigned the ups.conf file as seen below..
> 
> [testups]
>   Driver = usbhid-ups
>   Port = /dev/ttyUSB0
> 
You need to change the driver to mge-shut (hid over serial).

Regards
Kjell Claesson


___
Nut-upsdev mailing list
Nut-upsdev@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsdev


Re: [Nut-upsdev] RS-232 Port with Nut

2015-12-01 Thread Gernot Zander
Hi,

am  1 Dez schrieb Kjell Claesson:
>> [testups]
>>  Driver = usbhid-ups
>>  Port = /dev/ttyUSB0
>> 
> You need to change the driver to mge-shut (hid over serial).

Just for fun/good-to-know I tried my Eaton 5SC with different
connections today:
- UPS's USB-Port
   - driver usbhid-ups - startup time 5.2 seconds.
- UPS's serial port, real ttyS0
   - driver mge-shut - 19.7 seconds.
- UPS's serial port, real ttyS0
   - driver newmge-shut - 21.1 seconds.
- UPS's serial port, prolific 2303 serial converter, ttyUSB2
   - driver newmge-shut or mge-shut - "Unable to get HID Descriptor" or
 "No communication with UPS"

Seems the Eatons won't work behind serial USB adaptors.
I found almost the same with two different "Yunto-Q":
- The older model with serial port only workes both with pl2303 serial
  converter and at a real serial port (driver blazer_ser).
- The newer model, coming with USB and serial port, doesn't work like
  the Eaton with a USB serial adaptor (same pl2303), works at a real
  serial port only, driver blazer_ser (or using the UPS's USB port, of
  course, driver blazer_usb).
  
Some time ago I tried other serial USB adaptors (CP2102 and Moship),
both didn't work at all because they lack IRQ driven handshake lines
resp. the handshake lines at all. Maybe the FTDI chip is a little bit
better than the prolific, but I can't give one a test 'cause I don't
have one available for testing.

So I believe UPS do weird things at the serial port lines, so that
adaptors hardly (but only sometimes) work.

For the OP: Connect the UPS via USB-USB without adaptor or use a real
serial port, if you've still got one at your computer.

CU,
Gernot



___
Nut-upsdev mailing list
Nut-upsdev@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsdev


Re: [Nut-upsdev] RS-232 Port with Nut

2015-12-01 Thread Jim Klimov
1 декабря 2015 г. 15:14:59 CET, "Marks, Connor" <connor.ma...@emc.com> пишет:
>Yes I do have Linux. I have assigned the ups.conf file as seen below..
>
>[testups]
>   Driver = usbhid-ups
>   Port = /dev/ttyUSB0
>
>When I try to start the ups driver I get the following error...
>
>$ sudo upsdrvctl start
>
>Network Ups Tools - UPS driver controller 2.7.1
>Network Ups Tools - Generic HID driver 0.38 (2.7.1)
>USB communication driver 0.32
>No matching HID UPS found
>Driver failed to start (exit status=1)
>
>Thanks for the help!
>
>-Original Message-
>From: Jim Klimov [mailto:jimkli...@cos.ru] 
>Sent: Monday, November 30, 2015 6:43 PM
>To: Marks, Connor; nut-upsdev@lists.alioth.debian.org
>Subject: Re: [Nut-upsdev] RS-232 Port with Nut
>
>30 ноября 2015 г. 19:25:38 CET, "Marks, Connor" <connor.ma...@emc.com>
>пишет:
>>Hello All,
>>
>>I am trying to read my Eaton 5P 1550 with the Rs-232 port but I cannot
>
>>get nut to read the driver from my Rs-232 to USB adaptor.
>>When I perform lsusb -t it says my B electronics adaptor uses driver
>
>>ftdi_sio
>>
>>How do I get the nut to read information coming from that??
>>
>>Thanks,
>>Connor
>>
>>
>>---
>>-
>>
>>___
>>Nut-upsdev mailing list
>>Nut-upsdev@lists.alioth.debian.org
>>http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsdev
>
>Assuming you have Linux, can you use /dev/ttyUSB0 or somesuch as the
>port name?
>--
>Typos courtesy of K-9 Mail on my Samsung Android

HID is an USB protocol. If you use a USB-RS232 converter then this /dev/ttyUSB0 
is just a serial port for vendor-specific serial driver, not for usbhid-ups.

Jim
--
Typos courtesy of K-9 Mail on my Samsung Android

___
Nut-upsdev mailing list
Nut-upsdev@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsdev