Trouble add device ZTE MF636 3G
Marcelo Estanislau Geyer
estanisgeyer at hotmail.com
Fri Jan 30 03:26:06 PST 2009
Hi friends,
I'm trying to add my device modem ZTE MF636 3G (HSUPA) to hal, but without success, then my patch to file 10-modem.fdi:
<match key="@info.parent:usb.vendor_id" int="0x19d2">
<!-- Qualcomm: Telstra/NextG CDMA , ZTE CDMA Tech -->
<match key="@info.parent:usb.product_id" int_outof="0x0001;0xfffe">
<match key="@info.parent:usb.interface.number" int="0">
<append key="modem.command_sets" type="strlist">IS-707-A</append>
</match>
</match>
<!-- ZTE MF626 HSDPA USB dongle -->
<match key="@info.parent:usb.product_id" int="0x2000">
<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>
<!-- ZTE MF628 HSDPA USB dongle -->
<match key="@info.parent:usb.product_id" int="0x0015">
<match key="@info.parent:usb.interface.number" int="3">
<append key="modem.command_sets" type="strlist">GSM-07.07</append>
<append key="modem.command_sets" type="strlist">GSM-07.05</append>
</match>
</match>
<!-- ONDA MF632 HSDPA USB dongle -->
<match key="@info.parent:usb.product_id" int="0x0002">
<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>
<!-- ZTE MF636 HUSPA -->
+ <match key="@info.parent:usb.product_id" int="0x2000">
+ <match key="@info.parent:usb.interface.number" int="1">
+ <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>
I will post the results of commands lshal and lsusb:
lshal:
--- cut ---
udi = '/org/freedesktop/Hal/devices/usb_device_19d2_31_1234567890ABCDEF'
info.bus = 'usb_device' (string)
info.linux.driver = 'usb' (string)
info.parent = '/org/freedesktop/Hal/devices/usb_device_1d6b_2_0000_00_03_2' (string)
info.product = 'ZTE CDMA Technologies MSM' (string)
info.subsystem = 'usb_device' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_19d2_31_1234567890ABCDEF' (string)
info.vendor = 'ONDA Communication S.p.A.' (string)
linux.device_file = '/dev/bus/usb/001/004' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'usb' (string)
linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:03.2/usb1/1-4' (string)
usb_device.bus_number = 1 (0x1) (int)
usb_device.can_wake_up = true (bool)
usb_device.configuration = 'ZTE Configuration' (string)
usb_device.configuration_value = 1 (0x1) (int)
usb_device.device_class = 0 (0x0) (int)
usb_device.device_protocol = 0 (0x0) (int)
usb_device.device_revision_bcd = 0 (0x0) (int)
usb_device.device_subclass = 0 (0x0) (int)
usb_device.is_self_powered = true (bool)
usb_device.linux.device_number = 4 (0x4) (int)
usb_device.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:03.2/usb1/1-4' (string)
usb_device.max_power = 500 (0x1f4) (int)
usb_device.num_configurations = 1 (0x1) (int)
usb_device.num_interfaces = 4 (0x4) (int)
usb_device.num_ports = 0 (0x0) (int)
usb_device.product = 'ZTE CDMA Technologies MSM' (string)
usb_device.product_id = 49 (0x31) (int)
usb_device.serial = '1234567890ABCDEF' (string)
usb_device.speed = 480.0 (480) (double)
usb_device.vendor = 'ONDA Communication S.p.A.' (string)
usb_device.vendor_id = 6610 (0x19d2) (int)
usb_device.version = 2.0 (2) (double)
udi = '/org/freedesktop/Hal/devices/usb_device_19d2_31_1234567890ABCDEF_if3'
info.bus = 'usb' (string)
info.linux.driver = 'usbserial_generic' (string)
info.parent = '/org/freedesktop/Hal/devices/usb_device_19d2_31_1234567890ABCDEF' (string)
info.product = 'USB Vendor Specific Interface' (string)
info.subsystem = 'usb' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_19d2_31_1234567890ABCDEF_if3' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'usb' (string)
linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:03.2/usb1/1-4/1-4:1.3' (string)
usb.bus_number = 1 (0x1) (int)
usb.can_wake_up = true (bool)
usb.configuration = 'ZTE Configuration' (string)
usb.configuration_value = 1 (0x1) (int)
usb.device_class = 0 (0x0) (int)
usb.device_protocol = 0 (0x0) (int)
usb.device_revision_bcd = 0 (0x0) (int)
usb.device_subclass = 0 (0x0) (int)
usb.interface.class = 255 (0xff) (int)
usb.interface.number = 3 (0x3) (int)
usb.interface.protocol = 255 (0xff) (int)
usb.interface.subclass = 255 (0xff) (int)
usb.is_self_powered = true (bool)
usb.linux.device_number = 4 (0x4) (int)
usb.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:03.2/usb1/1-4/1-4:1.3' (string)
usb.max_power = 500 (0x1f4) (int)
usb.num_configurations = 1 (0x1) (int)
usb.num_interfaces = 4 (0x4) (int)
usb.num_ports = 0 (0x0) (int)
usb.product = 'USB Vendor Specific Interface' (string)
usb.product_id = 49 (0x31) (int)
usb.serial = '1234567890ABCDEF' (string)
usb.speed = 480.0 (480) (double)
usb.vendor = 'ONDA Communication S.p.A.' (string)
usb.vendor_id = 6610 (0x19d2) (int)
usb.version = 2.0 (2) (double)
udi = '/org/freedesktop/Hal/devices/usb_device_19d2_31_1234567890ABCDEF_if3_serial_usb_3'
access_control.file = '/dev/ttyUSB3' (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', 'access_control'} (string list)
info.category = 'serial' (string)
info.parent = '/org/freedesktop/Hal/devices/usb_device_19d2_31_1234567890ABCDEF_if3' (string)
info.product = 'ZTE CDMA Technologies MSM' (string)
info.subsystem = 'tty' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_19d2_31_1234567890ABCDEF_if3_serial_usb_3' (string)
linux.device_file = '/dev/ttyUSB3' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'tty' (string)
linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:03.2/usb1/1-4/1-4:1.3/ttyUSB3/tty/ttyUSB3' (string)
serial.device = '/dev/ttyUSB3' (string)
serial.originating_device = '/org/freedesktop/Hal/devices/usb_device_19d2_31_1234567890ABCDEF_if3' (string)
serial.port = 3 (0x3) (int)
serial.type = 'usb' (string)
udi = '/org/freedesktop/Hal/devices/usb_device_19d2_31_1234567890ABCDEF_if2'
info.bus = 'usb' (string)
info.linux.driver = 'usbserial_generic' (string)
info.parent = '/org/freedesktop/Hal/devices/usb_device_19d2_31_1234567890ABCDEF' (string)
info.product = 'USB Mass Storage Interface' (string)
info.subsystem = 'usb' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_19d2_31_1234567890ABCDEF_if2' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'usb' (string)
linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:03.2/usb1/1-4/1-4:1.2' (string)
usb.bus_number = 1 (0x1) (int)
usb.can_wake_up = true (bool)
usb.configuration = 'ZTE Configuration' (string)
usb.configuration_value = 1 (0x1) (int)
usb.device_class = 0 (0x0) (int)
usb.device_protocol = 0 (0x0) (int)
usb.device_revision_bcd = 0 (0x0) (int)
usb.device_subclass = 0 (0x0) (int)
usb.interface.class = 8 (0x8) (int)
usb.interface.number = 2 (0x2) (int)
usb.interface.protocol = 80 (0x50) (int)
usb.interface.subclass = 6 (0x6) (int)
usb.is_self_powered = true (bool)
usb.linux.device_number = 4 (0x4) (int)
usb.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:03.2/usb1/1-4/1-4:1.2' (string)
usb.max_power = 500 (0x1f4) (int)
usb.num_configurations = 1 (0x1) (int)
usb.num_interfaces = 4 (0x4) (int)
usb.num_ports = 0 (0x0) (int)
usb.product = 'USB Mass Storage Interface' (string)
usb.product_id = 49 (0x31) (int)
usb.serial = '1234567890ABCDEF' (string)
usb.speed = 480.0 (480) (double)
usb.vendor = 'ONDA Communication S.p.A.' (string)
usb.vendor_id = 6610 (0x19d2) (int)
usb.version = 2.0 (2) (double)
udi = '/org/freedesktop/Hal/devices/usb_device_19d2_31_1234567890ABCDEF_if2_serial_usb_2'
access_control.file = '/dev/ttyUSB2' (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', 'access_control'} (string list)
info.category = 'serial' (string)
info.parent = '/org/freedesktop/Hal/devices/usb_device_19d2_31_1234567890ABCDEF_if2' (string)
info.product = 'ZTE CDMA Technologies MSM' (string)
info.subsystem = 'tty' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_19d2_31_1234567890ABCDEF_if2_serial_usb_2' (string)
linux.device_file = '/dev/ttyUSB2' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'tty' (string)
linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:03.2/usb1/1-4/1-4:1.2/ttyUSB2/tty/ttyUSB2' (string)
serial.device = '/dev/ttyUSB2' (string)
serial.originating_device = '/org/freedesktop/Hal/devices/usb_device_19d2_31_1234567890ABCDEF_if2' (string)
serial.port = 2 (0x2) (int)
serial.type = 'usb' (string)
udi = '/org/freedesktop/Hal/devices/usb_device_19d2_31_1234567890ABCDEF_if1'
info.bus = 'usb' (string)
info.linux.driver = 'usbserial_generic' (string)
info.parent = '/org/freedesktop/Hal/devices/usb_device_19d2_31_1234567890ABCDEF' (string)
info.product = 'USB Vendor Specific Interface' (string)
info.subsystem = 'usb' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_19d2_31_1234567890ABCDEF_if1' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'usb' (string)
linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:03.2/usb1/1-4/1-4:1.1' (string)
usb.bus_number = 1 (0x1) (int)
usb.can_wake_up = true (bool)
usb.configuration = 'ZTE Configuration' (string)
usb.configuration_value = 1 (0x1) (int)
usb.device_class = 0 (0x0) (int)
usb.device_protocol = 0 (0x0) (int)
usb.device_revision_bcd = 0 (0x0) (int)
usb.device_subclass = 0 (0x0) (int)
usb.interface.class = 255 (0xff) (int)
usb.interface.number = 1 (0x1) (int)
usb.interface.protocol = 255 (0xff) (int)
usb.interface.subclass = 255 (0xff) (int)
usb.is_self_powered = true (bool)
usb.linux.device_number = 4 (0x4) (int)
usb.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:03.2/usb1/1-4/1-4:1.1' (string)
usb.max_power = 500 (0x1f4) (int)
usb.num_configurations = 1 (0x1) (int)
usb.num_interfaces = 4 (0x4) (int)
usb.num_ports = 0 (0x0) (int)
usb.product = 'USB Vendor Specific Interface' (string)
usb.product_id = 49 (0x31) (int)
usb.serial = '1234567890ABCDEF' (string)
usb.speed = 480.0 (480) (double)
usb.vendor = 'ONDA Communication S.p.A.' (string)
usb.vendor_id = 6610 (0x19d2) (int)
usb.version = 2.0 (2) (double)
udi = '/org/freedesktop/Hal/devices/usb_device_19d2_31_1234567890ABCDEF_if1_serial_usb_1'
access_control.file = '/dev/ttyUSB1' (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', 'access_control'} (string list)
info.category = 'serial' (string)
info.parent = '/org/freedesktop/Hal/devices/usb_device_19d2_31_1234567890ABCDEF_if1' (string)
info.product = 'ZTE CDMA Technologies MSM' (string)
info.subsystem = 'tty' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_19d2_31_1234567890ABCDEF_if1_serial_usb_1' (string)
linux.device_file = '/dev/ttyUSB1' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'tty' (string)
linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:03.2/usb1/1-4/1-4:1.1/ttyUSB1/tty/ttyUSB1' (string)
serial.device = '/dev/ttyUSB1' (string)
serial.originating_device = '/org/freedesktop/Hal/devices/usb_device_19d2_31_1234567890ABCDEF_if1' (string)
serial.port = 1 (0x1) (int)
serial.type = 'usb' (string)
udi = '/org/freedesktop/Hal/devices/usb_device_19d2_31_1234567890ABCDEF_if0'
info.bus = 'usb' (string)
info.linux.driver = 'usbserial_generic' (string)
info.parent = '/org/freedesktop/Hal/devices/usb_device_19d2_31_1234567890ABCDEF' (string)
info.product = 'USB Vendor Specific Interface' (string)
info.subsystem = 'usb' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_19d2_31_1234567890ABCDEF_if0' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'usb' (string)
linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:03.2/usb1/1-4/1-4:1.0' (string)
usb.bus_number = 1 (0x1) (int)
usb.can_wake_up = true (bool)
usb.configuration = 'ZTE Configuration' (string)
usb.configuration_value = 1 (0x1) (int)
usb.device_class = 0 (0x0) (int)
usb.device_protocol = 0 (0x0) (int)
usb.device_revision_bcd = 0 (0x0) (int)
usb.device_subclass = 0 (0x0) (int)
usb.interface.class = 255 (0xff) (int)
usb.interface.number = 0 (0x0) (int)
usb.interface.protocol = 255 (0xff) (int)
usb.interface.subclass = 255 (0xff) (int)
usb.is_self_powered = true (bool)
usb.linux.device_number = 4 (0x4) (int)
usb.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:03.2/usb1/1-4/1-4:1.0' (string)
usb.max_power = 500 (0x1f4) (int)
usb.num_configurations = 1 (0x1) (int)
usb.num_interfaces = 4 (0x4) (int)
usb.num_ports = 0 (0x0) (int)
usb.product = 'USB Vendor Specific Interface' (string)
usb.product_id = 49 (0x31) (int)
usb.serial = '1234567890ABCDEF' (string)
usb.speed = 480.0 (480) (double)
usb.vendor = 'ONDA Communication S.p.A.' (string)
usb.vendor_id = 6610 (0x19d2) (int)
usb.version = 2.0 (2) (double)
udi = '/org/freedesktop/Hal/devices/usb_device_19d2_31_1234567890ABCDEF_if0_serial_usb_0'
access_control.file = '/dev/ttyUSB0' (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', 'access_control'} (string list)
info.category = 'serial' (string)
info.parent = '/org/freedesktop/Hal/devices/usb_device_19d2_31_1234567890ABCDEF_if0' (string)
info.product = 'ZTE CDMA Technologies MSM' (string)
info.subsystem = 'tty' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_19d2_31_1234567890ABCDEF_if0_serial_usb_0' (string)
linux.device_file = '/dev/ttyUSB0' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'tty' (string)
linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:03.2/usb1/1-4/1-4:1.0/ttyUSB0/tty/ttyUSB0' (string)
serial.device = '/dev/ttyUSB0' (string)
serial.originating_device = '/org/freedesktop/Hal/devices/usb_device_19d2_31_1234567890ABCDEF_if0' (string)
serial.port = 0 (0x0) (int)
serial.type = 'usb' (string)
--- cut ---
and lsusb -vv
--- cut ---
Bus 001 Device 004: ID 19d2:0031 ONDA Communication S.p.A.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x19d2 ONDA Communication S.p.A.
idProduct 0x0031
bcdDevice 0.00
iManufacturer 3 ZTE,Incorporated
iProduct 2 ZTE CDMA Technologies MSM
iSerial 4 1234567890ABCDEF
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 108
bNumInterfaces 4
bConfigurationValue 1
iConfiguration 1 ZTE Configuration
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 32
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 32
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 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 32
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 32
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 2
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk (Zip)
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 3
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x84 EP 4 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 5
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x85 EP 5 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 32
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x04 EP 4 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 32
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0000
(Bus Powered)
--- cut ---
Observation: To make work this device, I'm using usb_modeswitch solution (http://www.draisberghof.de/usb_modeswitch), but I would like to contribute to this device work with hal.
Thanks for the help.
Marcelo Estanislau Geyer
Brazil.
_________________________________________________________________
Conheça o Windows Live Spaces, a rede de relacionamentos do Messenger!
http://www.amigosdomessenger.com.br/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/hal/attachments/20090130/c1479507/attachment-0001.html
More information about the hal
mailing list