-- Zaar
On Sat, Jan 3, 2009 at 2:37 PM, Arjen de Korte <[email protected]> wrote: > Citeren Hai Zaar <[email protected]>: > >> The current progress is like this: >> With help from linux-hotplug guys >> (http://thread.gmane.org/gmane.linux.hotplug.devel/13551) I've managed >> to /dev/ttyUSB0 to be registered, but: >> # /sbin/upsdrvctl start >> Network UPS Tools - UPS driver controller 2.2.2 >> Network UPS Tools - PowerCom and similars protocol UPS driver $ >> Revision: 0.5 $ (2.2.2) >> >> writing error > > Question is, what is the syslog showing? The 'writing error' message is > awkward, but in the case of the powercom driver doesn't indicate that the > UPS wasn't detected or the driver didn't load properly. I would like you to > run the driver with debugging enabled to see what is really happening: > > powercom -DDDDD -a PRPC650 2>&1 > > This will run until you kill it with ctrl-C. Post the first 30 seconds worth > of output after starting the driver and I'll take a look at it. Note that > I'm not the driver author however, so if this requires digging deeper into > the protocol, I'll step back. Hi, guys! Sorry for the delay, but finally I have time to get back to this. Here is the output of the powercom driver: sudo ./powercom -DDDDD -a PRPC650 2>&1 Network UPS Tools - PowerCom protocol UPS driver 0.12 (2.4.1) send_to_all: SETINFO driver.parameter.port "/dev/ttyUSB0" debug level is '5' DTR => 0, RTS => 1 Values of arguments: manufacturer : 'PowerCom' model name : 'Unknown' serial number : 'Unknown' line voltage : '230' type : 'Trust' number of bytes from UPS: '11' method of flow control : 'dtr0rts1' validation sequence: '{{5,0},{7,0},{8,0}}' shutdown arguments: '{{0,10},n}' frequency calculation coefficients: '{0.000210,0.000209}' load percentage calculation coefficients: '{6.134300,-0.380800,4.311000,0.181100}' battery percentage calculation coefficients: '{5.000000,0.326800,-825.000000,4.563900,-835.820007}' voltage calculation coefficients: '{0.954500,0.000000}' send_to_all: SETINFO ups.mfr "PowerCom" send_to_all: SETINFO ups.model "Unknown" send_to_all: SETINFO ups.serial "Unknown" send_to_all: SETINFO ups.model.type "Trust" send_to_all: SETINFO input.voltage.nominal "230" send_to_all: ADDCMD test.battery.start send_to_all: ADDCMD shutdown.return send_to_all: ADDCMD shutdown.stayoff writing error dstate_init: sock /var/run/nut/powercom-PRPC650 open on fd 5 send_to_all: SETINFO driver.version "2.4.1" send_to_all: SETINFO driver.version.internal "0.12" send_to_all: SETINFO driver.name "powercom" send_to_all: SETINFO driver.parameter.pollinterval "2" writing error Num of bytes requested for reading from UPS: 11 Num of bytes received from UPS: 11 Raw data from UPS: 0 0x22 (") 1 0x64 (d) 2 0x71 (q) 3 0x71 (q) 4 0x32 (2) 5 0xff (�) 6 0x32 (2) 7 0x00 ( ) 8 0x00 ( ) 9 0x00 ( ) 10 0x00 ( ) data receiving error (validation check) Num of bytes requested for reading from UPS: 11 Num of bytes received from UPS: 11 Raw data from UPS: 0 0x4b (K) 1 0x29 ()) 2 0x00 ( ) 3 0x00 ( ) 4 0x00 ( ) 5 0x21 (!) 6 0x64 (d) 7 0x71 (q) 8 0x71 (q) 9 0x32 (2) 10 0xff (�) data receiving error (validation check) Num of bytes requested for reading from UPS: 11 Num of bytes received from UPS: 11 Raw data from UPS: 0 0x32 (2) 1 0x00 ( ) 2 0x00 ( ) 3 0x00 ( ) 4 0x00 ( ) 5 0x4b (K) 6 0x29 ()) 7 0x00 ( ) 8 0x00 ( ) 9 0x00 ( ) 10 0x22 (") data receiving error (validation check) ^CSignal 2: exiting _______________________________________________ Nut-upsuser mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser

