Using K3772 GSM modem (Vodafone) with Angstrom on Beagleboard

Hi,

I have installed Ubuntu on my Beagleboard (3.0.6 kernel), and it uses my
K3772 USB GSM modem without any problem. I would like to use it on
Angstrom, but have kernel config problems. (3.0.14)

I enabled the following modules: option, usb_wwan, usbserial, cdc_acm,
qcserial, cdc_ether. I found that Ubuntu uses these modules if i connect
the modem.

On Ubuntu, it creates ttyUSB0, ttyUSB1, ttyUSB2, ttyACM0, ttyACM1
devices, but on Angstrom no such devices, even if all modules are
loaded.

The kernel log messages:

usb 1-2.3: new high speed USB device number 15 using ehci-omap
usb 1-2.3: New USB device found, idVendor=19d2, idProduct=1179
usb 1-2.3: New USB device strings: Mfr=2, Product=1, SerialNumber=3
usb 1-2.3: Product: K3772-Z
usb 1-2.3: Manufacturer: Vodafone
usb 1-2.3: SerialNumber: 1296BFEFEA4FA1C362D155E0D6CB284DC6F70C79
scsi4 : usb-storage 1-2.3:1.0
scsi 4:0:0:0: CD-ROM Vodafone USB SCSI CD-ROM 0001 PQ: 0
ANSI: 0
sr0: scsi3-mmc drive: 0x/0x caddy
sr 4:0:0:0: Attached scsi generic sg1 type 5
sr0: CDROM (ioctl) error, command: cdb[0]=0x4a 4a 01 00 00 10 00 00 00
08 00
sr: Sense Key : 0x4 [current]
sr: ASC=0x0 ASCQ=0x0
sr0: CDROM (ioctl) error, command: cdb[0]=0x51 51 00 00 00 00 00 00 00
02 00
sr: Sense Key : 0x4 [current]
sr: ASC=0x0 ASCQ=0x0
USB Serial support registered for GSM modem (1-port)
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems

Something similar is common for both systems.
The following happens on Ubuntu: (the Angstrom does not print any more)

cdc_acm 1-2.1:1.1: ttyACM0: USB ACM device
cdc_acm 1-2.1:1.3: ttyACM1: USB ACM device
usbcore: registered new interface driver cdc_acm
cdc_acm: USB Abstract Control Model driver for USB modems and ISDN
adapters
scsi 2:0:0:0: CD-ROM Vodafone USB SCSI CD-ROM 0001 PQ: 0
ANSI: 0
sr0: scsi3-mmc drive: 0x/0x caddy
sr 2:0:0:0: Attached scsi CD-ROM sr0
sr 2:0:0:0: Attached scsi generic sg1 type 5
sr0: CDROM (ioctl) error, command: Xpwrite, Read disk info 51 00 00 00
00 00 00 00 02 00
sr: Sense Key : Hardware Error [current]$
sr: Add. Sense: No additional sense information
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
USB Serial support registered for GSM modem (1-port)
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems
usb1: no IPv6 routers present
option 1-2.1:1.0: GSM modem (1-port) converter detected
usb 1-2.1: GSM modem (1-port) converter now attached to ttyUSB0
option 1-2.1:1.8: GSM modem (1-port) converter detected
usb 1-2.1: GSM modem (1-port) converter now attached to ttyUSB1

Something can be missing from my Angstrom config, but i don't know what.

Thanx in advance
Gyorgy Kovesdi

Actually you also need a user space utility called usb-modeswitch
(which my ubuntu images have installed as you found out..)

For your device:

+# Vodafone (ZTE) K3772-Z
+ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="1179",
RUN+="usb_modeswitch '%b/%k'"

It looks like you need atleast: Version 1.1.9, 2011/08/05 (version
1.2.1 is their latest)

http://launchpadlibrarian.net/76900240/usb-modeswitch-data_20110714-1_20110805-1.diff.gz

http://www.draisberghof.de/usb_modeswitch/#download

Angstrom has the package:
http://www.angstrom-distribution.org/repo/?pkgname=usb-modeswitch

but it is dated: usb-modeswitch 1.1.4-r2.6, so wouldn't have support
for your device yet..

bb script for this package, is pretty simple..
http://git.openembedded.org/openembedded/tree/recipes/usb-modeswitch/usb-modeswitch_1.1.4.bb

Regards,

Actually you also need a user space utility called usb-modeswitch

Thanx a lot, it now worx perfectly!
In addition, the modemmanager also must be updated to version 0.5 (from
0.4)

Just a small problem that it periodicaly displays "Cannot unmount
volume...", and after each disconnect opens its filefolder (vindoze
installer) but it is now not a big problem.

Thx again
Gyorgy Kovesdi