[Nut-upsuser] Unable to detect an APC Smart protocol UPS. Windows. APC Smart protocol driver 3.04 (2.6.5-3723:3731M)
dstrr
dstrr at yandex.by
Tue Jan 14 09:12:44 UTC 2014
Hello.
Trouble to communicate with APC SmartUPS via serial port.
UPS connected to the com1 port on windows host.
Communication witch hyperterm works well.
There is a log:
YSM
^ASmart-UPS SC1000
n5S0713T63247
m03/29/07
L240.0
B27.10
apcupsd also can communicate with the UPS and works well.
running apcsmart -a ups gives the following:
com1: device reports different attributes than what were set
unable to detect an APC Smart protocol UPS on port com1
check the cabling, port name or model name and try again
ups.conf:
[ups]
driver=apcsmart
port=com1
cable=940-0095B
desc="test"
Sysinternals Portmon captures the following activity on com1:
0.00009862 apcsmart.exe IRP_MJ_WRITE Serial0 SUCCESS Length 1: 59 Y
0.00001090 apcsmart.exe IRP_MJ_READ Serial0 SUCCESS Length 1: 53 S
0.00000950 apcsmart.exe IRP_MJ_READ Serial0 SUCCESS Length 3: 4D 0D 0A M [CR] [LF]
1.48775808 apcsmart.exe IRP_MJ_READ Serial0 TIMEOUT Length 0:
0.00010029 apcsmart.exe IRP_MJ_WRITE Serial0 SUCCESS Length 1: 1B [ESC]
0.00001117 apcsmart.exe IRP_MJ_READ Serial0 SUCCESS Length 1: 4E N
0.00000950 apcsmart.exe IRP_MJ_READ Serial0 SUCCESS Length 3: 41 0D 0A A [CR] [LF]
1.49861616 apcsmart.exe IRP_MJ_READ Serial0 TIMEOUT Length 0:
0.00009862 apcsmart.exe IRP_MJ_WRITE Serial0 SUCCESS Length 1: 59
0.00001090 apcsmart.exe IRP_MJ_READ Serial0 SUCCESS Length 1: 53
0.00000922 apcsmart.exe IRP_MJ_READ Serial0 SUCCESS Length 3: 4D 0D 0A
1.49378091 apcsmart.exe IRP_MJ_READ Serial0 TIMEOUT Length 0:
0.00010225 apcsmart.exe IRP_MJ_WRITE Serial0 SUCCESS Length 1: 1B
0.00001117 apcsmart.exe IRP_MJ_READ Serial0 SUCCESS Length 1: 4E
0.00000950 apcsmart.exe IRP_MJ_READ Serial0 SUCCESS Length 3: 41 0D 0A
1.48674762 apcsmart.exe IRP_MJ_READ Serial0 TIMEOUT Length 0:
0.00009862 apcsmart.exe IRP_MJ_WRITE Serial0 SUCCESS Length 1: 59
0.00001117 apcsmart.exe IRP_MJ_READ Serial0 SUCCESS Length 1: 53
0.00000950 apcsmart.exe IRP_MJ_READ Serial0 SUCCESS Length 3: 4D 0D 0A
1.49970988 apcsmart.exe IRP_MJ_READ Serial0 TIMEOUT Length 0:
0.00011622 apcsmart.exe IRP_MJ_WRITE Serial0 SUCCESS Length 1: 1B
0.00001090 apcsmart.exe IRP_MJ_READ Serial0 SUCCESS Length 1: 4E
0.00000922 apcsmart.exe IRP_MJ_READ Serial0 SUCCESS Length 3: 41 0D 0A
1.49361804 apcsmart.exe IRP_MJ_READ Serial0 TIMEOUT Length 0:
0.00009303 apcsmart.exe IRP_MJ_WRITE Serial0 SUCCESS Length 1: 59
0.00001062 apcsmart.exe IRP_MJ_READ Serial0 SUCCESS Length 1: 53
0.00000922 apcsmart.exe IRP_MJ_READ Serial0 SUCCESS Length 3: 4D 0D 0A
1.48876184 apcsmart.exe IRP_MJ_READ Serial0 TIMEOUT Length 0:
0.00011817 apcsmart.exe IRP_MJ_WRITE Serial0 SUCCESS Length 1: 1B
0.00001117 apcsmart.exe IRP_MJ_READ Serial0 SUCCESS Length 1: 4E
0.00000950 apcsmart.exe IRP_MJ_READ Serial0 SUCCESS Length 3: 41 0D 0A
1.49970848 apcsmart.exe IRP_MJ_READ Serial0 TIMEOUT Length 0:
0.00009778 apcsmart.exe IRP_MJ_WRITE Serial0 SUCCESS Length 1: 59
0.00001062 apcsmart.exe IRP_MJ_READ Serial0 SUCCESS Length 1: 53
0.00000922 apcsmart.exe IRP_MJ_READ Serial0 SUCCESS Length 3: 4D 0D 0A
1.49474249 apcsmart.exe IRP_MJ_READ Serial0 TIMEOUT Length 0:
0.00011538 apcsmart.exe IRP_MJ_WRITE Serial0 SUCCESS Length 1: 1B
0.00001117 apcsmart.exe IRP_MJ_READ Serial0 SUCCESS Length 1: 4E
0.00000950 apcsmart.exe IRP_MJ_READ Serial0 SUCCESS Length 3: 41 0D 0A
1.48578101 apcsmart.exe IRP_MJ_READ Serial0 TIMEOUT Length 0:
0.00010476 apcsmart.exe IRP_MJ_WRITE Serial0 SUCCESS Length 1: 52 R
0.00001090 apcsmart.exe IRP_MJ_READ Serial0 SUCCESS Length 1: 42 B
0.00000922 apcsmart.exe IRP_MJ_READ Serial0 SUCCESS Length 4: 59 45 0D 0A YE [CR] [LF]
2.99769663 apcsmart.exe IRP_MJ_READ Serial0 TIMEOUT Length 0:
Thus, apcsmart sends the Escape character, which is not recognised by UPS and returns NA.
Is there a solution for this issue?
Thank You and sorry for my English.
More information about the Nut-upsuser
mailing list