[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: COM-port (RS-232) problems



On Mon, 26 Jul 2010 14:02:26 +0300, Max Usachev wrote:

> 26.07.2010 12:11, Camaleón пишет:

>> Most likely a problem coming from:
>>
>> 1/ NUT has wrong permissions to access serial port
>>    
> Permissions is Ok, couse I get errors when comment user = root.

You have to check udev rules.

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

>>> [fsp]
>>>      driver = apcsmart
>>>      
>>                 ^^^^^^^^
>>
>> Are you sure this driver is the correct one for your UPS? :-?
>>    
> I hope, 

No "hoping" here :-), just review the list of NUT supported devices and 
if yours is not listed, start trying with a generic one (i.e., "genericups")

> but apcupsd also doesn't work correct:
> 
> 2010-07-26 17:00:31 apctest 3.14.8 (16 January 2010) debian Checking
> configuration ...
> Attached to driver: apcsmart
> sharenet.type = DISABLE
> cable.type = CUSTOM_SMART
> 
> You are using a SMART cable type, so I'm entering SMART test mode
> mode.type = APCSMART_UPS
> Setting up the port ...
> apctest FATAL ERROR in smartsetup.c at line 184 PANIC! Cannot
> communicate with UPS via serial port. Please make sure the port
> specified on the DEVICE directive is correct, and that your cable
> specification on the UPSCABLE directive is correct. apctest error
> termination completed

I'd say "APC UPSs" are not very "generic" ("smart" models need special 
serial -pin reversed- serial cable). Try with another driver.

> I think, it is general Kernel + COM-port problem

Anything in "/var/log/syslog" supporting that thinking? :-?
     
>> Additional data for your review:
>>
>> ***
>> [Nut-upsuser] FSP UPS not listed as supported, but seems to work... at
>> least a little...
>> http://lists.alioth.debian.org/pipermail/nut-upsuser/2010-
April/006023.html
>> ***
>>    
> They use UPS with USB port.

Yep, and at least seems to be detected. BTW, you can also try asking there, 
as in NUT list you'll receive updated device support information.

Greetings,

-- 
Camaleón


Reply to: