Megválaszolatlan hozzászólások | Aktív témák Pontos idő: csüt. máj. 09, 2024 6:58



Hozzászólás a témához  [ 6 hozzászólás ] 
cannot run apcupsd on slackware 10.2 
Szerző Üzenet
vas-tag

Csatlakozott: hétf. máj. 15, 2006 18:52
Hozzászólások: 4
Hozzászólás 
thanks!
I really appreciate your input!

Aldo


szer. máj. 17, 2006 1:20
Profil Privát üzenet küldése
arany tag
Avatar

Csatlakozott: szer. márc. 24, 2004 13:43
Hozzászólások: 320
Hozzászólás 
"my problem with the current Back-UPS RS-800, is that there are no options for smart cable (only USB), and a rare "APC NetBotz USB to Serial RS-232 DB-9 Adapter Cable - 6ft/1.8m" but is not RJ45-SERIAL wich i need, its a rare USB-SERIAL..."

Your idea is right, USB-to-SERIAL isn't a valid serial port. It needs a special driver, called: usb-serial.o

then -ideally- you can see your serial port in /dev/usb/ttyUSBx. In your apcupsd.conf you can specify your port. Here you can try the /dev/usb/ttyUSBx option, and the serial mode (cable.type).

But USB-to-SERIAL converter has many problems (under Linux, BSD, Windows, ...), so I don't like/use it.

"(http://www.apcc.com/resource/include/te ... b=features) there says that it have serial or usb conectivity:
- Serial Connectivity: Provides management of the UPS via a serial port.
- USB connectivity: Provides management of the UPS via USB port.
wich is not true, it only have a rj45 port, and includes a rj45-usb cable."

Yes, but in write-off's opinion your UPS CAN handle the RJ45-SERIAL cable. Take a chance of a REAL RJ45-SERIAL cable.

"Why do you think upgrading to kernel 2.6 will work better bor usb devices?"

Because it uses udev, which is provide dinamic /dev handling, "fastest" hiddev's name reallocating, etc... 2.6 is the default now in the most of Linux dists.

"Hi, how do you recommend me to install the 2.6 kernel? i looked into my skackware 10.2 dvd and it only have one abd compiled version of 2.6:
CDROM:\kernels\test26.s\
I think it does not contain the bare version of kernel 2.6 wich will i need..."

I don't know slacky's package manager, I think, it has a package installer (like: apt, rpm, yum, ...). "Addons" to your slacky's 2.6 kernel-package, and slacky-packaged kernel2.6 images located at: http://slackware.it/en/pb/search.php?v= ... 1&q=kernel

Or, you can download the newest stable 2.6 kernel source from kernel.org.


Bye,
chx


A hozzászólást 1 alkalommal szerkesztették, utoljára chx vas. nov. 22, 2009 20:55-kor.



kedd máj. 16, 2006 11:16
Profil Privát üzenet küldése Honlap
vas-tag

Csatlakozott: hétf. máj. 15, 2006 18:52
Hozzászólások: 4
Hozzászólás 
chx írta:
Your logs (dmesg, /proc/bus/usb/drivers, /proc/bus/usb/devices) are okay, I think, your problem is a configuration error:

- if you can, switch your UPS to serial mode, and use serial cable
- check your apcupsd.conf (do you have special cable?)
try UPSCABLE apcsmart or usb or dumb
- upgrade your kernel to 2.6, this will work better with USB devices
- buy another UPS with serial control. No USB, no worry!

Bye,
chx


Hi, how do you recommend me to install the 2.6 kernel? i looked into my skackware 10.2 dvd and it only have one abd compiled version of 2.6:

CDROM:\kernels\test26.s\
I think it does not contain the bare version of kernel 2.6 wich will i need...


hétf. máj. 15, 2006 22:46
Profil Privát üzenet küldése
vas-tag

Csatlakozott: hétf. máj. 15, 2006 18:52
Hozzászólások: 4
Hozzászólás 
I really apreciate your contribution,

I also have a SmartUPS-1400 and i purchased the SMART cable instead of the current UNIX CABLE and its workin now as a charm, my problem with the current Back-UPS RS-800, is that there are no options for smart cable (only USB), and a rare "APC NetBotz USB to Serial RS-232 DB-9 Adapter Cable - 6ft/1.8m" but is not RJ45-SERIAL wich i need, its a rare USB-SERIAL... so i cannot use it, in the features page if my apc device (http://www.apcc.com/resource/include/te ... b=features) there says that it have serial or usb conectivity:
- Serial Connectivity: Provides management of the UPS via a serial port.
- USB connectivity: Provides management of the UPS via USB port.
wich is not true, it only have a rj45 port, and includes a rj45-usb cable.

I tried the dumb and smartapc options in UPSCABLE with this results:

dumb:
2006-05-15 12:48:30 apctest 3.10.18 (21 July 2005) slackware
Checking configuration ...
Attached to driver: dumb
sharenet.type = DISABLE
cable.type = USB_CABLE

You are using a USB cable type, so I'm entering USB test mode
Unknown mode.type: 1
Setting up the port ...
apctest FATAL ERROR in dumbsetup.c at line 86
Cannot open UPS port : No such file or directory
apctest FATAL ERROR in dumbsetup.c at line 86
Cannot open UPS port : No such file or directory
apctest error termination completed


apcsmart:
2006-05-15 12:49:25 apctest 3.10.18 (21 July 2005) slackware
Checking configuration ...
Attached to driver: apcsmart
sharenet.type = DISABLE
cable.type = USB_CABLE

You are using a USB cable type, so I'm entering USB test mode
Unknown mode.type: 11
Setting up the port ...
apctest FATAL ERROR in smartsetup.c at line 67
Cannot open UPS port : No such file or directory
apctest FATAL ERROR in smartsetup.c at line 67
Cannot open UPS port : No such file or directory
apctest error termination completed


*** Of course the next apc ups i purchase will be strictly a serial controlled one.... jeje.

Why do you think upgrading to kernel 2.6 will work better bor usb devices?

Thanks!!


hétf. máj. 15, 2006 20:50
Profil Privát üzenet küldése
arany tag
Avatar

Csatlakozott: szer. márc. 24, 2004 13:43
Hozzászólások: 320
Hozzászólás 
Your logs (dmesg, /proc/bus/usb/drivers, /proc/bus/usb/devices) are okay, I think, your problem is a configuration error:

- if you can, switch your UPS to serial mode, and use serial cable
- check your apcupsd.conf (do you have special cable?)
try UPSCABLE apcsmart or usb or dumb
- upgrade your kernel to 2.6, this will work better with USB devices
- buy another UPS with serial control. No USB, no worry!

Bye,
chx


hétf. máj. 15, 2006 20:28
Profil Privát üzenet küldése Honlap
vas-tag

Csatlakozott: hétf. máj. 15, 2006 18:52
Hozzászólások: 4
Hozzászólás cannot run apcupsd on slackware 10.2
Excuse that i post in english, but i only know english and spanish...
I have slackware 10.2, attached to an Back-UPS, and im trying to run the apcupsd-3.12, im getting the follow errors when running apctest

Kód:
root@nas2:/home/Bodega/apcupsd-3.12.3# apctest


2006-05-13 12:36:52 apctest 3.12.3 (26 April 2006) slackware
Checking configuration ...
Attached to driver: usb
sharenet.type = DISABLE
cable.type = USB_CABLE

You are using a USB cable type, so I'm entering USB test mode
mode.type = USB_UPS
Setting up the port ...
apctest FATAL ERROR in linux-usb.c at line 649
Cannot find UPS device --
For a link to detailed USB trouble shooting information,
please see <http://www.apcupsd.com/support.html>.
apctest FATAL ERROR in linux-usb.c at line 649
Cannot find UPS device --
For a link to detailed USB trouble shooting information,
please see <http://www.apcupsd.com/support.html>.
apctest error termination completed
root@nas2:/home/Bodega/apcupsd-3.12.3#


this it my /proc/bus/usb/devices:
Kód:

S:  Manufacturer=American Power Conversion
S:  Product=Back-UPS BR  800 FW:9.o2 .D USB FW:o2
S:  SerialNumber=QB0344331508 
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr= 24mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=00 Prot=00 Driver=hid
E:  Ad=81(I) Atr=03(Int.) MxPS=   6 Ivl=10ms
T:  Bus=04 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 0.00
S:  Product=USB UHCI-alt Root Hub
S:  SerialNumber=df80
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=255ms



this is my dmegs log:
Kód:
Linux version 2.4.31 (root@tree) (gcc version 3.3.5) #6 Sun Jun 5 19:04:47 PDT 2005
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: Found IRQ 11 for device 01:0b.2
PCI: Sharing IRQ 11 with 01:0d.0
ehci_hcd 01:0b.2: VIA Technologies, Inc. USB 2.0
ehci_hcd 01:0b.2: irq 11, pci mem d0ae1c00
usb.c: new USB bus registered, assigned bus number 1
ehci_hcd 01:0b.2: USB 2.0 enabled, EHCI 0.95, driver 2003-Dec-29/2.4
hub.c: USB hub found
hub.c: 4 ports detected
uhci.c: USB Universal Host Controller Interface driver v1.1
PCI: Found IRQ 11 for device 00:1f.2
PCI: Setting latency timer of device 00:1f.2 to 64
uhci.c: USB UHCI at I/O 0xef40, IRQ 11
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 2 ports detected
PCI: Found IRQ 10 for device 00:1f.4
PCI: Sharing IRQ 10 with 01:0b.0
PCI: Setting latency timer of device 00:1f.4 to 64
uhci.c: USB UHCI at I/O 0xef80, IRQ 10
usb.c: new USB bus registered, assigned bus number 3
hub.c: USB hub found
hub.c: 2 ports detected
PCI: Found IRQ 9 for device 01:0b.1
PCI: Sharing IRQ 9 with 00:1f.3
PCI: Sharing IRQ 9 with 00:1f.5
uhci.c: USB UHCI at I/O 0xdf80, IRQ 9
usb.c: new USB bus registered, assigned bus number 4
hub.c: USB hub found
hub.c: 2 ports detected
PCI: Found IRQ 10 for device 01:0b.0
PCI: Sharing IRQ 10 with 00:1f.4
uhci.c: USB UHCI at I/O 0xdf40, IRQ 10
usb.c: new USB bus registered, assigned bus number 5
hub.c: USB hub found
hub.c: 2 ports detected
hub.c: new USB device 01:0b.2-1, assigned address 2
usb.c: USB device 2 (vend/prod 0x4b4/0x6830) is not claimed by any active driver.
PCI: Found IRQ 9 for device 00:1f.5
PCI: Sharing IRQ 9 with 00:1f.3
PCI: Sharing IRQ 9 with 01:0b.1
PCI: Setting latency timer of device 00:1f.5 to 64
intel8x0_measure_ac97_clock: measured 42740 usecs
intel8x0: clocking to 41133
hub.c: new USB device 01:0b.0-2, assigned address 2
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
usb.c: USB device 2 (vend/prod 0x51d/0x2) is not claimed by any active driver.
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
i810_rng: RNG not detected
hw_random: RNG not detected
hub.c: new USB device 00:1f.4-2, assigned address 2
hub.c: USB hub found
hub.c: 4 ports detected

Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
scsi1 : SCSI emulation for USB Mass Storage devices
  Vendor: IC35L120  Model: AVV207-0          Rev:  0 0
  Type:   Direct-Access                      ANSI SCSI revision: 02
Attached scsi disk sda at scsi1, channel 0, id 0, lun 0
SCSI device sda: 241254720 512-byte hdwr sectors (123522 MB)
 sda: sda1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
USB Mass Storage support registered.
usb.c: registered new driver hiddev
usb.c: registered new driver hid
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
i810_rng: RNG not detected
hw_random: RNG not detected
hiddev0: USB HID v1.10 Device [American Power Conversion Back-UPS BR  800 FW:9.o2 .D USB FW:o2 ] on usb5:2.0
hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik <vojtech@suse.cz>
hid-core.c: USB HID support drivers
mice: PS/2 mouse device common for all mice



this is my /proc/bus/usb/drivers
Kód:
         usbdevfs
         hub
         usb-storage
 96-111: hiddev
         hid



Do i have to create a node or somehting?
Thanks in advance?


hétf. máj. 15, 2006 18:55
Profil Privát üzenet küldése
Hozzászólások megjelenítése:  Rendezés  
Hozzászólás a témához   [ 6 hozzászólás ] 

Ki van itt

Jelenlévő fórumozók: nincs regisztrált felhasználó valamint 6 vendég


Nem nyithatsz témákat ebben a fórumban.
Nem válaszolhatsz egy témára ebben a fórumban.
Nem szerkesztheted a hozzászólásaidat ebben a fórumban.
Nem törölheted a hozzászólásaidat ebben a fórumban.

Keresés:
Ugrás:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.
Magyar fordítás © Magyar phpBB Közösség