https://bugzilla.novell.com/show_bug.cgi?id=449988
User cthiel@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=449988#c6
--- Comment #6 from Christoph Thiel 2008-12-01 03:42:50 MST ---
I'm currently using:
<match key="@serial.originating_device:info.linux.driver" string="hso">
<match key="@info.parent:usb.product_id" int_outof="0x7011">
<match key="@info.parent:usb.interface.number" int="0">
<append key="modem.command_sets"
type="strlist">GSM-07.07</append>
<append key="modem.command_sets"
type="strlist">GSM-07.05</append>
</match>
</match>
</match>
<match key="@serial.originating_device:info.linux.driver"
string="option">
<match key="@info.parent:usb.product_id" int_outof="0x7011">
<match key="@info.parent:usb.interface.number" int="2">
<append key="modem.command_sets"
type="strlist">GSM-07.07</append>
<append key="modem.command_sets"
type="strlist">GSM-07.05</append>
</match>
</match>
</match>
But I'm getting /dev/HS0 and /dev/HS1 in lshal with GSM command_sets:
udi =
'/org/freedesktop/Hal/devices/usb_device_af0_7011_Serial_Number_if0_serial_unknown_1'
access_control.file = '/dev/ttyHS1' (string)
access_control.type = 'modem' (string)
info.callouts.add = {'hal-acl-tool --add-device'} (string list)
info.callouts.remove = {'hal-acl-tool --remove-device'} (string list)
info.capabilities = {'serial', 'modem', 'access_control'} (string list)
info.category = 'serial' (string)
info.parent =
'/org/freedesktop/Hal/devices/usb_device_af0_7011_Serial_Number_if0' (string)
info.product = 'Serial Port' (string)
info.subsystem = 'tty' (string)
info.udi =
'/org/freedesktop/Hal/devices/usb_device_af0_7011_Serial_Number_if0_serial_unknown_1'
(string)
linux.device_file = '/dev/ttyHS1' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'tty' (string)
linux.sysfs_path =
'/sys/devices/pci0000:00/0000:00:1e.0/0000:15:00.0/0000:16:00.0/usb7/7-1/7-1:1.0/tty/ttyHS1'
(string)
modem.command_sets = {'GSM-07.07', 'GSM-07.05'} (string list)
serial.device = '/dev/ttyHS1' (string)
serial.originating_device =
'/org/freedesktop/Hal/devices/usb_device_af0_7011_Serial_Number_if0' (string)
serial.port = 1 (0x1) (int)
serial.type = 'unknown' (string)
[...]
udi =
'/org/freedesktop/Hal/devices/usb_device_af0_7011_Serial_Number_if0_serial_unknown_0'
access_control.file = '/dev/ttyHS0' (string)
access_control.type = 'modem' (string)
info.callouts.add = {'hal-acl-tool --add-device'} (string list)
info.callouts.remove = {'hal-acl-tool --remove-device'} (string list)
info.capabilities = {'serial', 'modem', 'access_control'} (string list)
info.category = 'serial' (string)
info.parent =
'/org/freedesktop/Hal/devices/usb_device_af0_7011_Serial_Number_if0' (string)
info.product = 'Serial Port' (string)
info.subsystem = 'tty' (string)
info.udi =
'/org/freedesktop/Hal/devices/usb_device_af0_7011_Serial_Number_if0_serial_unknown_0'
(string)
linux.device_file = '/dev/ttyHS0' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'tty' (string)
linux.sysfs_path =
'/sys/devices/pci0000:00/0000:00:1e.0/0000:15:00.0/0000:16:00.0/usb7/7-1/7-1:1.0/tty/ttyHS0'
(string)
modem.command_sets = {'GSM-07.07', 'GSM-07.05'} (string list)
serial.device = '/dev/ttyHS0' (string)
serial.originating_device =
'/org/freedesktop/Hal/devices/usb_device_af0_7011_Serial_Number_if0' (string)
serial.port = 0 (0x0) (int)
serial.type = 'unknown' (string)
in total, there are /dev/ttyHS0 /dev/ttyHS1 /dev/ttyHS2 /dev/ttyHS3.
/dev/ttyHS0 is the only tty that should have the GSM command_set set. What's
wrong with hal / the fdi here?
lsusb output on the device:
Bus 007 Device 005: ID 0af0:7011 Option
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 255 Vendor Specific Class
bDeviceSubClass 255 Vendor Specific Subclass
bDeviceProtocol 255 Vendor Specific Protocol
bMaxPacketSize0 64
idVendor 0x0af0 Option
idProduct 0x7011
bcdDevice 0.00
iManufacturer 1 Option N.V.
iProduct 2 Globetrotter HSUPA Modem
iSerial 4 Serial Number
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 95
bNumInterfaces 3
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 3 Data Interface
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x85 EP 5 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0010 1x 16 bytes
bInterval 128
INTERFACE CLASS: 03 24 03
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 3 Data Interface
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x84 EP 4 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x04 EP 4 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 2
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 3 Data Interface
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0010 1x 16 bytes
bInterval 128
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Device Status: 0x0000
(Bus Powered)
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.