Re: [Nut-upsuser] safenet on debian etch

2006-07-25 Thread Arjen de Korte

 Run the driver in debug mode, I already suggested this in the previous
 message. The driver will be more verbose about what the cause is that it
 won't run.
 how do I run it in debug mode?

Run (as root)

path to driver/safenet -a everpower1000 -D

 I think that the problem is that the device does not support the safenet
 protocol.

Maybe, maybe not.

 when I cat /dev/ttyS1, I get no output at all.
 is that normal for safenet?

Yes. The device will only answer when a query or a command is sent.

Regards, Arjen

PS  Keep the mailinglist CC-ed. I will not reply to private messages.


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


Re: [Nut-upsuser] safenet on debian etch

2006-07-25 Thread Omry Yadan
Here is my output:


# /lib/nut/safenet -a everpower1000 -D

Network UPS Tools - Generic SafeNet UPS driver 0.03 (2.0.2)

debug level is '5'

C : ZCADLIOPERJD
S : [empty]

C : ZCADLIOPERJD
S : [empty]

C : ZCADLIOPERJD
S : [empty]

C : ZCADLIOPERJD
S : [empty]
Communications with UPS lost: Status read failed

C : ZCADLIOPERJD
S : [empty]
Communications with UPS lost: Status read failed
SafeNet protocol compatible UPS not found on /dev/ttyS1



Arjen de Korte wrote:

 Run the driver in debug mode, I already suggested this in the previous
 message. The driver will be more verbose about what the cause is that it
 won't run.
   
 how do I run it in debug mode?
 

 Run (as root)

 path to driver/safenet -a everpower1000 -D

   
 I think that the problem is that the device does not support the safenet
 protocol.
 

 Maybe, maybe not.

   
 when I cat /dev/ttyS1, I get no output at all.
 is that normal for safenet?
 

 Yes. The device will only answer when a query or a command is sent.

 Regards, Arjen

 PS  Keep the mailinglist CC-ed. I will not reply to private messages.

   


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


Re: [Nut-upsuser] safenet on debian etch

2006-07-25 Thread Arjen de Korte
Omry Yadan wrote:

 Here is my output:
 
 
 # /lib/nut/safenet -a everpower1000 -D
 
 Network UPS Tools - Generic SafeNet UPS driver 0.03 (2.0.2)
 
 debug level is '5'
 
 C : ZCADLIOPERJD
 S : [empty]
 
 C : ZCADLIOPERJD
 S : [empty]
 
 C : ZCADLIOPERJD
 S : [empty]
 
 C : ZCADLIOPERJD
 S : [empty]
 Communications with UPS lost: Status read failed
 
 C : ZCADLIOPERJD
 S : [empty]
 Communications with UPS lost: Status read failed
 SafeNet protocol compatible UPS not found on /dev/ttyS1

Either the UPS is not connected to /dev/ttyS1 (version 0.03 of the
driver does not include hardware detection, which was added in 0.04) or
your version of the Everpower 1000 UPS is not supported.

Regards, Arjen

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


[Nut-upsuser] safenet on debian etch

2006-07-24 Thread Omry Yadan
Hi List,

I just got myself a new everpower-1000va.

according to the compatibility list, the 'safenet' driver supposed to
support it,

however, when I try, I get this in syslog:


Jul 24 15:05:22 tv upsd[26458]: Can't connect to UPS [everpower1000]
(safenet-ttyS1): No such file or directory


this is my ups.conf:


[everpower1000]
driver = safenet
port = /dev/ttyS1
desc = firefang.net



I am using nut installed via apt on debian-etch.


any suggestions?


Omry.


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


Re: [Nut-upsuser] safenet on debian etch

2006-07-24 Thread Kjell Claesson
mån 2006-07-24 klockan 15:06 +0300 skrev Omry Yadan:
 Hi List,
 
Hi Omry,
 I just got myself a new everpower-1000va.
 
 according to the compatibility list, the 'safenet' driver supposed to
 support it,
 
 however, when I try, I get this in syslog:
 
 
 Jul 24 15:05:22 tv upsd[26458]: Can't connect to UPS [everpower1000]
 (safenet-ttyS1): No such file or directory
 

As you can see, it is the upsd that need to connect. Check that you have
the /var/state/ups dirrectory, and that it is writable by the user you
run nut as.

What upsd is looking for is the socket named safenet-ttyS1. This 
should be created in /var/state/ups.

This is how it looks on my computer running bcmxcp-usb driver.

ls -al /var/state/ups/
totalt 8
drwxrwx--- 2 nut  nut  144 24 jul 08.39 .
drwxr-xr-x 3 root root  96 23 feb 15.52 ..
srw-rw 1 nut  nut0 24 jul 08.39 bcmxcp_usb-auto
-rw-r--r-- 1 nut  nut5 24 jul 08.39 bcmxcp_usb-auto.pid
-rw-r--r-- 1 nut  nut5 24 jul 08.39 upsd.pid


 
 this is my ups.conf:
 
 
 [everpower1000]
 driver = safenet
 port = /dev/ttyS1
 desc = firefang.net
 
Ok.

Regards
Kjell



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


Re: [Nut-upsuser] safenet on debian etch

2006-07-24 Thread Arjen de Korte


 I just got myself a new everpower-1000va.

 according to the compatibility list, the 'safenet' driver supposed to
support it,

That depends. The hardware this driver is written for is usually OEM
equipment and vendors tend to shop for the lowest bidder. So quite often
they change the internals of the UPS, without changing the typenumber or
even the box it is packaged in. If your UPS came with 'SafeNet v1.0'
software for Windows (either in the box or via download) it should be
supported by this driver. If something else is bundled, you'll have to
continue your search as it probably won't be supported by this driver.

 however, when I try, I get this in syslog:

 Jul 24 15:05:22 tv upsd[26458]: Can't connect to UPS [everpower1000]
(safenet-ttyS1): No such file or directory

This usually means the safenet driver isn't running. You may want to run
the driver from the commandline with '-D' added to make it more
verbose. Chances are that it will be telling you why it can't be started.
This can be  as trivial as a serial port without the proper permissions.

[...]

 I am using nut installed via apt on debian-etch.

This isn't very helpful for people not running Debian. Please list version
number of kernel and NUT.

Regards, Arjen
-- 
Eindhoven - The Netherlands
Key fingerprint - 66 4E 03 2C 9D B5 CB 9B  7A FE 7E C1 EE 88 BC 57



-- 
Eindhoven - The Netherlands
Key fingerprint - 66 4E 03 2C 9D B5 CB 9B  7A FE 7E C1 EE 88 BC 57


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


Re: [Nut-upsuser] safenet on debian etch

2006-07-24 Thread Omry Yadan
first of all, I am using version 2.0.2 on kernel 2.6.15

I played with the init.d startup script, and figured it was indeed a
permissions problem accessing the port file.

now I have, as you anticipated, a new problem : the protocol does not
seem to match.

this is what I get when I try:



# /etc/init.d/nut start
Starting Network UPS Tools:Network UPS Tools - UPS driver controller 2.0.2
Network UPS Tools - Generic SafeNet UPS driver 0.03 (2.0.2)

Communications with UPS lost: Status read failed
Communications with UPS lost: Status read failed
SafeNet protocol compatible UPS not found on /dev/ttyS1
Driver failed to start (exit status=1)
 (upsdrvctl failed).




any suggestions?


Omry.



Arjen de Korte wrote:

 I just got myself a new everpower-1000va.

 according to the compatibility list, the 'safenet' driver supposed to
 support it,
 

 That depends. The hardware this driver is written for is usually OEM
 equipment and vendors tend to shop for the lowest bidder. So quite often
 they change the internals of the UPS, without changing the typenumber or
 even the box it is packaged in. If your UPS came with 'SafeNet v1.0'
 software for Windows (either in the box or via download) it should be
 supported by this driver. If something else is bundled, you'll have to
 continue your search as it probably won't be supported by this driver.

   
 however, when I try, I get this in syslog:

 Jul 24 15:05:22 tv upsd[26458]: Can't connect to UPS [everpower1000]
 (safenet-ttyS1): No such file or directory
 

 This usually means the safenet driver isn't running. You may want to run
 the driver from the commandline with '-D' added to make it more
 verbose. Chances are that it will be telling you why it can't be started.
 This can be  as trivial as a serial port without the proper permissions.

 [...]

   
 I am using nut installed via apt on debian-etch.
 

 This isn't very helpful for people not running Debian. Please list version
 number of kernel and NUT.
   


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