View previous topic :: View next topic |
Author |
Message |
leonchik1976 Guru
Joined: 24 Jan 2010 Posts: 336
|
Posted: Tue Oct 01, 2024 4:14 pm Post subject: UPS issue |
|
|
Hi, i have Advice UPS connected via USB, and it identified by lsusb like:
Code: | Bus 003 Device 002: ID 0665:5161 Cypress Semiconductor USB to Serial |
I'm a little bit confused what i need to enable in kernel and configure in NUT, also:
ls /dev/ttyUSB*
returns nothing.
what i do have in kernel is:
CONFIG_USB_SERIAL=m
CONFIG_USB_SERIAL_GENERIC=y
CONFIG_USB_SERIAL_CYPRESS_M8=m
CONFIG_SERIAL_8250=y
Any help would be appreciated |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 4920 Location: Bavaria
|
Posted: Tue Oct 01, 2024 5:25 pm Post subject: |
|
|
Boot this machine with an UbuntuLiveCD and check if the device is recognized correctly.
If yes, then do an “lsmod” query. Notice all modules ... ... check if there are some modules you miss in your kernel .config.
If you need further help, we need - after booting Ubuntu - the output of:
- lsmod
- lspci -nnk
- dmesg
and you current kernel .config file from your Gentoo system. Please use wgetpaste for the big files. _________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1855
|
Posted: Tue Oct 01, 2024 5:53 pm Post subject: |
|
|
A good number of UPS USB connections are a pure HID connection using usbhid driver.
Please show the output of lsusb -vd 0665:5161
An example of this type I have using a TrippLite:
Code: | Bus 002 Device 084: ID 09ae:2012 Tripp Lite Tripp Lite UPS
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 [unknown]
bDeviceSubClass 0 [unknown]
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x09ae Tripp Lite
idProduct 0x2012 Tripp Lite UPS
bcdDevice 0.09
iManufacturer 1 Tripp Lite
iProduct 2 Tripp Lite UPS
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x0022
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 0 [unknown]
bInterfaceProtocol 0
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.10
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 662
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 40
Device Status: 0x0001
Self Powered |
|
|
Back to top |
|
|
leonchik1976 Guru
Joined: 24 Jan 2010 Posts: 336
|
Posted: Tue Oct 01, 2024 6:11 pm Post subject: |
|
|
grknight wrote: | A good number of UPS USB connections are a pure HID connection using usbhid driver.
Please show the output of lsusb -vd 0665:5161
An example of this type I have using a TrippLite:
Code: | Bus 002 Device 084: ID 09ae:2012 Tripp Lite Tripp Lite UPS
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 [unknown]
bDeviceSubClass 0 [unknown]
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x09ae Tripp Lite
idProduct 0x2012 Tripp Lite UPS
bcdDevice 0.09
iManufacturer 1 Tripp Lite
iProduct 2 Tripp Lite UPS
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x0022
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 0 [unknown]
bInterfaceProtocol 0
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.10
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 662
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 40
Device Status: 0x0001
Self Powered |
|
# lsusb -vd 0665:5161
Code: |
Bus 003 Device 002: ID 0665:5161 Cypress Semiconductor USB to Serial
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 [unknown]
bDeviceSubClass 0 [unknown]
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0665 Cypress Semiconductor
idProduct 0x5161 USB to Serial
bcdDevice 0.02
iManufacturer 0
iProduct 0
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x0022
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 0 [unknown]
bInterfaceProtocol 0
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.11
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 27
Report Descriptor: (length is 27)
Item(Global): Usage Page, data= [ 0x00 0xff ] 65280
(null)
Item(Local ): Usage, data= [ 0x01 ] 1
(null)
Item(Main ): Collection, data= [ 0x01 ] 1
Application
Item(Local ): Usage, data= [ 0x02 ] 2
(null)
Item(Global): Logical Minimum, data= [ 0x00 ] 0
Item(Global): Logical Maximum, data= [ 0xff 0x00 ] 255
Item(Global): Report Size, data= [ 0x08 ] 8
Item(Global): Report Count, data= [ 0x08 ] 8
Item(Main ): Input, data= [ 0x82 ] 130
Data Variable Absolute No_Wrap Linear
Preferred_State No_Null_Position Volatile Bitfield
Item(Local ): Usage, data= [ 0x02 ] 2
(null)
Item(Global): Report Count, data= [ 0x08 ] 8
Item(Main ): Output, data= [ 0x82 ] 130
Data Variable Absolute No_Wrap Linear
Preferred_State No_Null_Position Volatile Bitfield
Item(Main ): End Collection, data=none
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 12
Device Status: 0x0000
(Bus Powered) |
|
|
Back to top |
|
|
leonchik1976 Guru
Joined: 24 Jan 2010 Posts: 336
|
Posted: Tue Oct 01, 2024 6:13 pm Post subject: |
|
|
pietinger wrote: | Boot this machine with an UbuntuLiveCD and check if the device is recognized correctly.
If yes, then do an “lsmod” query. Notice all modules ... ... check if there are some modules you miss in your kernel .config.
If you need further help, we need - after booting Ubuntu - the output of:
- lsmod
- lspci -nnk
- dmesg
and you current kernel .config file from your Gentoo system. Please use wgetpaste for the big files. |
lspci doesn't show UPS, only lsusb |
|
Back to top |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1855
|
Posted: Tue Oct 01, 2024 6:30 pm Post subject: |
|
|
leonchik1976 wrote: | # lsusb -vd 0665:5161
Code: |
Bus 003 Device 002: ID 0665:5161 Cypress Semiconductor USB to Serial
Device Descriptor:
idVendor 0x0665 Cypress Semiconductor
idProduct 0x5161 USB to Serial
Configuration Descriptor:
Interface Descriptor:
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 0 [unknown]
bInterfaceProtocol 0
iInterface 0 |
|
This looks a lot like mine. Try these options for your ups.conf (under a named section of your choosing):
Code: | driver = "usbhid-ups"
port = "auto"
vendorid = "0665"
productid = "5161"
product = "USB to Serial"
vendor = "Cypress Semiconductor" |
|
|
Back to top |
|
|
gentoo_ram Guru
Joined: 25 Oct 2007 Posts: 497 Location: San Diego, California USA
|
Posted: Tue Oct 01, 2024 11:41 pm Post subject: |
|
|
I know on my NUT ups.conf I also had to fill in the serial number field.
Code: | [apc]
driver = usbhid-ups
desc = "BackUPS-1500"
port = "auto"
vendorid = "051D"
productid = "0002"
override.battery.charge.low=35
override.batter.runtime.low=900
serial = "0B2420Lxxxxx"
|
|
|
Back to top |
|
|
|