#533169 nut: megatec_usb shows error "ser_send_pace: Device detached" on periodically checks

Package:
nut
Source:
nut
Submitter:
Alexey Murz Korepov
Date:
2010-03-09 15:51:05 UTC
Severity:
normal
#533169#5
Date:
2009-06-15 10:32:16 UTC
From:
To:
I have a SVEN Pro+ 625 ups that uses megatec_usb driver.
In ups.conf I describe it like:
[sven_625]
    driver = megatec_usb
    port = auto
    desc = "SVEN Pro+ 625"

When I starting the nut, I hear "beep" from the ups and nut succesfully detect it.
And I can view the UPS status:
# upsc sven_625
battery.charge: 97.5
battery.voltage: 13.60
battery.voltage.nominal: 12.0
driver.name: megatec_usb
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.version: 2.4.1
driver.version.internal: 1.6
input.frequency: 50.0
input.frequency.nominal: 50.0
input.voltage: 233.3
input.voltage.fault: 140.0
input.voltage.maximum: 233.3
input.voltage.minimum: 229.9
input.voltage.nominal: 220.0
output.voltage: 233.8
ups.beeper.status: enabled
ups.delay.shutdown: 0
ups.delay.start: 2
ups.load: 20.0
ups.mfr:
ups.model:  VT0105BG
ups.serial: unknown
ups.status: OL
ups.temperature: 30.0
ups.type: standby



But in /var/log/syslog I see the errors that adds every 5-20 seconds!
Jun 15 13:58:12 beam megatec_usb[15480]: ser_send_pace: Device detached? (error -5: could not claim interface 0: Device or
resource busy)
Jun 15 13:58:13 beam megatec_usb[15480]: Successfully reconnected
Jun 15 13:58:32 beam megatec_usb[15480]: ser_send_pace: Device detached? (error -5: could not claim interface 0: Device or
resource busy)
Jun 15 13:58:32 beam megatec_usb[15480]: Successfully reconnected
Jun 15 13:58:34 beam megatec_usb[15480]: ser_send_pace: Device detached? (error -5: error sending control message: Operation not
permitted)
Jun 15 13:58:35 beam megatec_usb[15480]: Successfully reconnected



If I try to start megatec_usb manually, I see:
# /lib/nut/megatec_usb -a sven_625 -D -u nut
Network UPS Tools - Megatec protocol driver 1.6 (2.4.1)
Serial-over-USB transport layer 0.10
debug level is '1'
Starting UPS detection process...
0 out of 5 detection attempts failed (minimum failures: 2).
Cancelling any pending shutdown or battery test.
Megatec protocol UPS detected [  VT0105BG].
12.0V battery, interval [9.7V, 13.7V].
Done setting up the UPS.
ser_send_pace: Device detached? (error -5: error sending control message: Operation not permitted)
Successfully reconnected
ser_send_pace: Device detached? (error -5: error sending control message: Operation not permitted)
Successfully reconnected
ser_send_pace: Device detached? (error -5: error sending control message: Operation not permitted)
Successfully reconnected



If I try to start it with root priveleges, I see thouse errors:
# /lib/nut/megatec_usb -a sven_625 -D -u root
Network UPS Tools - Megatec protocol driver 1.6 (2.4.1)
Serial-over-USB transport layer 0.10
debug level is '1'
Starting UPS detection process...
0 out of 5 detection attempts failed (minimum failures: 2).
Cancelling any pending shutdown or battery test.
Megatec protocol UPS detected [  VT0105BG].
12.0V battery, interval [9.7V, 13.7V].
Done setting up the UPS.
ser_send_pace: Device detached? (error -5: No error)
Successfully reconnected
ser_send_pace: Device detached? (error -5: No error)
Successfully reconnected
ser_send_pace: Device detached? (error -5: No error)
Successfully reconnected
ser_send_pace: Device detached? (error -5: No error)
Successfully reconnected


What does this error mean and how I can disable thouse messages?

#533169#10
Date:
2009-06-17 23:29:48 UTC
From:
To:
Hi Alexey,

Please post the output of 'lsusb' and
'megatec_usb -a sven_625 -u nut -DDDDD'.

#533169#15
Date:
2009-06-18 05:57:10 UTC
From:
To:
I have attached an output of 'lsusb' and 'megatec_usb -a sven_625 -u
nut -DDDDD'.

#533169#20
Date:
2010-02-25 21:14:29 UTC
From:
To:
Hi Alexander and Alexey,

2009/6/18 Alexander Gordeev:

Alexey: have you tried the blazer_usb driver?
I would be interested in the output, though I doubt the results will
be different.

Alexander: can you please produce a patch for megatec_usb (and
preferably for blazer_usb) to ignore error -5 for testing?

cheers,
Arnaud

#533169#25
Date:
2010-02-26 12:52:06 UTC
From:
To:
Well, I agree with Arjen. It's a bit too soon.

BTW maybe we should somehow mark megatec_usb obsoleted and/or remove it?

#533169#30
Date:
2010-03-02 10:10:52 UTC
From:
To:
2010/2/26 Alexander Gordeev:

ok, please just remember to take care of this bug...

it's right that we have not made note of this in the UPGRADING and/or
NEWS file...

cheers,
Arnaud

#533169#35
Date:
2010-03-09 15:47:30 UTC
From:
To:
On Tue, 2 Mar 2010 11:10:52 +0100 Arnaud Quette <aquette.dev@gmail.com> wrote:

OK, still waiting for the response from Alexey...