Попробуй пока без пересборки выложенную r381
Code:
# megatec_usb -a Ippon -u root -DDDDD
Network UPS Tools - Megatec protocol driver 1.6 (2.4.1)
Serial-over-USB transport layer 0.10
debug level is '5'
Checking device (0000/0000) (002/001)
- VendorID: 0000
- ProductID: 0000
- Manufacturer: Linux 2.4.37.2 ehci_hcd
- Product: PCI device 14e4:471a
- Serial Number: 00:03.1
- Bus: 002
Trying to match device
Device does not match - skipping
Checking device (0424/2502) (002/002)
- VendorID: 0424
- ProductID: 2502
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 002
Trying to match device
Device does not match - skipping
Checking device (0665/5161) (002/004)
- VendorID: 0665
- ProductID: 5161
- Manufacturer: Cypress Semiconductor
- Product: USB to Serial
- Serial Number: unknown
- Bus: 002
Trying to match device
Device matches
DTR=1, RTS=0
Starting UPS detection process...
Asking for UPS information [I]...
I => FAILED [short read]
I detail: (1 bytes) => 49
Asking for UPS status [Q1]...
get_data_phoenix: got so far [(224.8 2]
get_data_phoenix: (8 bytes) => 28 32 32 34 2e 38 20 32
get_data_phoenix: got so far [(224.8 2.9 019 5]
get_data_phoenix: (16 bytes) => 28 32 32 34 2e 38 20 32 2e 39 20 30 31 39
20 35
get_data_phoenix: got so far [(224.8 2.9 019 5 25.0 00]
get_data_phoenix: (24 bytes) => 28 32 32 34 2e 38 20 32 2e 39 20 30 31 39
20 35 20 32 35 2e 30 20 30 30
Q1 => FAILED [short read]
Q1 detail: (24 bytes) => 28 32 32 34 2e 38 20 32 2e 39 20 30 31 39 20 35 20
32 35 2e 30 20 30 30
Asking for UPS status [Q1]...
ser_send_pace: Device detached? (error -1: error sending control message: Broken pipe)
==================================================
= device has been disconnected, try to reconnect =
==================================================
Checking device (0000/0000) (002/001)
- VendorID: 0000
- ProductID: 0000
- Manufacturer: Linux 2.4.37.2 ehci_hcd
- Product: PCI device 14e4:471a
- Serial Number: 00:03.1
- Bus: 002
Trying to match device
Device does not match - skipping
Checking device (0424/2502) (002/002)
- VendorID: 0424
- ProductID: 2502
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 002
Trying to match device
Device does not match - skipping
Checking device (0665/5161) (002/004)
- VendorID: 0665
- ProductID: 5161
- Manufacturer: Cypress Semiconductor
- Product: USB to Serial
- Serial Number: unknown
- Bus: 002
Trying to match device
Device matches
Successfully reconnected
get_data_phoenix: got so far [(224.3 2]
get_data_phoenix: (8 bytes) => 28 32 32 34 2e 33 20 32
get_data_phoenix: got so far [(224.3 2.5 019 5]
get_data_phoenix: (16 bytes) => 28 32 32 34 2e 33 20 32 2e 35 20 30 31 39
20 35
get_data_phoenix: got so far [(224.3 2.5 019 5 25.0 00]
get_data_phoenix: (24 bytes) => 28 32 32 34 2e 33 20 32 2e 35 20 30 31 39
20 35 20 32 35 2e 30 20 30 30
Q1 => FAILED [short read]
Q1 detail: (24 bytes) => 28 32 32 34 2e 33 20 32 2e 35 20 30 31 39 20 35 20
32 35 2e 30 20 30 30
Asking for UPS status [Q1]...
ser_send_pace: Device detached? (error -1: error sending control message: Broken pipe)
==================================================
= device has been disconnected, try to reconnect =
==================================================
Checking device (0000/0000) (002/001)
- VendorID: 0000
- ProductID: 0000
- Manufacturer: Linux 2.4.37.2 ehci_hcd
- Product: PCI device 14e4:471a
- Serial Number: 00:03.1
- Bus: 002
Trying to match device
Device does not match - skipping
Checking device (0424/2502) (002/002)
- VendorID: 0424
- ProductID: 2502
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 002
Trying to match device
Device does not match - skipping
Checking device (0665/5161) (002/004)
- VendorID: 0665
- ProductID: 5161
- Manufacturer: Cypress Semiconductor
- Product: USB to Serial
- Serial Number: unknown
- Bus: 002
Trying to match device
Device matches
Successfully reconnected
get_data_phoenix: got so far [(224.8 2]
get_data_phoenix: (8 bytes) => 28 32 32 34 2e 38 20 32
get_data_phoenix: got so far [(224.8 2.5 019 5]
get_data_phoenix: (16 bytes) => 28 32 32 34 2e 38 20 32 2e 35 20 30 31 39
20 35
get_data_phoenix: got so far [(224.8 2.5 019 5 25.0 00]
get_data_phoenix: (24 bytes) => 28 32 32 34 2e 38 20 32 2e 35 20 30 31 39
20 35 20 32 35 2e 30 20 30 30
Q1 => FAILED [short read]
Q1 detail: (24 bytes) => 28 32 32 34 2e 38 20 32 2e 35 20 30 31 39 20 35 20
32 35 2e 30 20 30 30
Asking for UPS status [Q1]...
ser_send_pace: Device detached? (error -1: error sending control message: Broken pipe)
==================================================
= device has been disconnected, try to reconnect =
==================================================
Checking device (0000/0000) (002/001)
- VendorID: 0000
- ProductID: 0000
- Manufacturer: Linux 2.4.37.2 ehci_hcd
- Product: PCI device 14e4:471a
- Serial Number: 00:03.1
- Bus: 002
Trying to match device
Device does not match - skipping
Checking device (0424/2502) (002/002)
- VendorID: 0424
- ProductID: 2502
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 002
Trying to match device
Device does not match - skipping
Checking device (0665/5161) (002/004)
- VendorID: 0665
- ProductID: 5161
- Manufacturer: Cypress Semiconductor
- Product: USB to Serial
- Serial Number: unknown
- Bus: 002
Trying to match device
Device matches
Successfully reconnected
get_data_phoenix: got so far [(224.3 2]
get_data_phoenix: (8 bytes) => 28 32 32 34 2e 33 20 32
get_data_phoenix: got so far [(224.3 2.9 019 5]
get_data_phoenix: (16 bytes) => 28 32 32 34 2e 33 20 32 2e 39 20 30 31 39
20 35
get_data_phoenix: got so far [(224.3 2.9 019 5 25.0 00]
get_data_phoenix: (24 bytes) => 28 32 32 34 2e 33 20 32 2e 39 20 30 31 39
20 35 20 32 35 2e 30 20 30 30
Q1 => FAILED [short read]
Q1 detail: (24 bytes) => 28 32 32 34 2e 33 20 32 2e 39 20 30 31 39 20 35 20
32 35 2e 30 20 30 30
Asking for UPS status [Q1]...
ser_send_pace: Device detached? (error -1: error sending control message: Broken pipe)
==================================================
= device has been disconnected, try to reconnect =
==================================================
Checking device (0000/0000) (002/001)
- VendorID: 0000
- ProductID: 0000
- Manufacturer: Linux 2.4.37.2 ehci_hcd
- Product: PCI device 14e4:471a
- Serial Number: 00:03.1
- Bus: 002
Trying to match device
Device does not match - skipping
Checking device (0424/2502) (002/002)
- VendorID: 0424
- ProductID: 2502
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 002
Trying to match device
Device does not match - skipping
Checking device (0665/5161) (002/004)
- VendorID: 0665
- ProductID: 5161
- Manufacturer: Cypress Semiconductor
- Product: USB to Serial
- Serial Number: unknown
- Bus: 002
Trying to match device
Device matches
Successfully reconnected
get_data_phoenix: got so far [(224.3 2]
get_data_phoenix: (8 bytes) => 28 32 32 34 2e 33 20 32
get_data_phoenix: got so far [(224.3 2.5 019 5]
get_data_phoenix: (16 bytes) => 28 32 32 34 2e 33 20 32 2e 35 20 30 31 39
20 35
get_data_phoenix: got so far [(224.3 2.5 019 5 25.0 00]
get_data_phoenix: (24 bytes) => 28 32 32 34 2e 33 20 32 2e 35 20 30 31 39
20 35 20 32 35 2e 30 20 30 30
Q1 => FAILED [short read]
Q1 detail: (24 bytes) => 28 32 32 34 2e 33 20 32 2e 35 20 30 31 39 20 35 20
32 35 2e 30 20 30 30
5 out of 5 detection attempts failed (minimum failures: 2).
Megatec protocol UPS not detected.
Code:
# dmesg | tail -n 20
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 3
hub.c: new USB device 00:03.1-1.1, assigned address 4
usb.c: USB device 4 (vend/prod 0x665/0x5161) is not claimed by any active driver.
Adding Swap: 524276k swap-space (priority -1)
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,2), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,3), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
usbdevfs: USBDEVFS_CONTROL failed dev 4 rqt 33 rq 9 len 8 ret -32
usbdevfs: USBDEVFS_CONTROL failed dev 4 rqt 33 rq 9 len 8 ret -32
usbdevfs: USBDEVFS_CONTROL failed dev 4 rqt 33 rq 9 len 8 ret -32
usbdevfs: USBDEVFS_CONTROL failed dev 4 rqt 33 rq 9 len 8 ret -32
usbdevfs: USBDEVFS_CONTROL failed dev 4 rqt 33 rq 9 len 8 ret -32
usbdevfs: USBDEVFS_CONTROL failed dev 4 rqt 33 rq 9 len 8 ret -32
usbdevfs: USBDEVFS_CONTROL failed dev 4 rqt 33 rq 9 len 8 ret -32
usbdevfs: USBDEVFS_CONTROL failed dev 4 rqt 33 rq 9 len 8 ret -32
usbdevfs: USBDEVFS_CONTROL failed dev 4 rqt 33 rq 9 len 8 ret -32
Т.е. получается, что работать вроде как начал, т.е. хоть что-то получить от упса получается, но посылки почему-то неполные, плюс, постоянные реконекты...