Description
Option Globetrotter HSDPA Modem not working with the drivers/net/usb/hso module.
Not working means that for example chat is not able communicate with the device.
For example connecting works flawlessly under Ubuntu with a command like this (I have also tried all the other ttyHS devices):
/usr/sbin/chat -s -V -f scriptfile.connect < /dev/ttyHS0 > /dev/ttyHS0
The same command gives the output "Failed" under Raspberry Pi.
Strace output during this is following:
...
setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={45, 0}}, {it_interval={0, 0}, it_value={0, 0}}) = 0
nanosleep({0, 10000000}, NULL) = 0
write(1, "A", 1) = 1
nanosleep({0, 10000000}, NULL) = 0
write(1, "T", 1) = 1
nanosleep({0, 10000000}, NULL) = 0
write(1, "Z", 1) = 1
nanosleep({0, 10000000}, NULL) = 0
write(1, "\r", 1) = 1
setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={0, 0}}, {it_interval={0, 0}, it_value={44, 948917}}) = 0
setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={45, 0}}, {it_interval={0, 0}, it_value={0, 0}}) = 0
read(0, 0xbe9c8307, 1) = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
--- SIGALRM {si_signo=SIGALRM, si_code=SI_KERNEL} ---
setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={1, 0}}, {it_interval={0, 0}, it_value={0, 0}}) = 0
rt_sigaction(SIGALRM, {0xbafc, [ALRM], SA_RESTART|0x4000000}, {0xbafc, [ALRM], SA_RESTART|0x4000000}, 8) = 0
fcntl64(0, F_GETFL) = 0x20000 (flags O_RDONLY|O_LARGEFILE)
fcntl64(0, F_SETFL, O_RDONLY|O_NONBLOCK|O_LARGEFILE) = 0
sigreturn() (mask []) = 0
read(0, 0xbe9c8307, 1) = -1 EAGAIN (Resource temporarily unavailable)
fcntl64(0, F_GETFL) = 0x20800 (flags O_RDONLY|O_NONBLOCK|O_LARGEFILE)
fcntl64(0, F_SETFL, O_RDONLY|O_LARGEFILE) = 0
setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={0, 0}}, {it_interval={0, 0}, it_value={0, 997503}}) = 0
...
I have tried this with Arch Linux with kernel 3.6.11-7-ARCH+.
(Linux version 3.6.11-7-ARCH+ (nobody@panda4) (gcc version 4.7.2 (GCC) ) #1 PREEMPT Tue Feb 19 01:50:39 UTC 2013)
And I have also tried this with Raspbian using the linux-image-3.2.0-4-rpi package.
I have also tried usb_modeswitch and modem-manager but neither of those helped.
This is what I see under Ubuntu (this is my laptop with 3.2.0-38 x86_64, 12.04 LTS, the modem is working here) when I connect the device:
[358133.688664] usb 2-1.2: new full-speed USB device number 18 using ehci_hcd
[358134.224933] usb-storage: probe of 2-1.2:1.0 failed with error -5
[358134.224985] hso 2-1.2:1.0: Not our interface
[358134.225515] usb 2-1.2: USB disconnect, device number 18
[358136.500637] usb 2-1.2: new full-speed USB device number 19 using ehci_hcd
And this is what I see under Arch (the modem is not working here) when I connect the device:
[ 942.146951] usb 1-1.3: new full-speed USB device number 8 using dwc_otg
[ 942.249343] usb 1-1.3: New USB device found, idVendor=0af0, idProduct=6971
[ 942.249376] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 942.249395] usb 1-1.3: Product: Globetrotter HSDPA Modem
[ 942.249411] usb 1-1.3: Manufacturer: Option N.V.
[ 942.249427] usb 1-1.3: SerialNumber: Serial Number
[ 942.591771] usb-storage: probe of 1-1.3:1.0 failed with error -5
[ 942.591926] hso 1-1.3:1.0: Not our interface
[ 942.616295] usb 1-1.3: USB disconnect, device number 8
[ 944.967072] usb 1-1.3: new full-speed USB device number 9 using dwc_otg
[ 945.070017] usb 1-1.3: New USB device found, idVendor=0af0, idProduct=6971
[ 945.070051] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=4
[ 945.070071] usb 1-1.3: Product: Globetrotter HSDPA Modem
[ 945.070087] usb 1-1.3: Manufacturer: Option N.V.
[ 945.070102] usb 1-1.3: SerialNumber: Serial Number
And this is the error modem manager gives under Arch when plugging in the device:
Mar 1 13:40:32 alarmpi modem-manager[286]: (ttyHS2) opening serial port...
Mar 1 13:40:32 alarmpi modem-manager[286]: (ttyHS2): port attributes not fully set
Mar 1 13:40:32 alarmpi modem-manager[286]: (ttyHS1) opening serial port...
Mar 1 13:40:32 alarmpi modem-manager[286]: (ttyHS1): port attributes not fully set
Mar 1 13:40:32 alarmpi modem-manager[286]: (ttyHS0) opening serial port...
Mar 1 13:40:32 alarmpi modem-manager[286]: (ttyHS0): port attributes not fully set
Mar 1 13:40:32 alarmpi modem-manager[286]: (Option High-Speed): GSM modem /sys/devices/platform/bcm2708_usb/usb1/1-1/1-1.3 claimed port hso0
Mar 1 13:40:41 alarmpi modem-manager[286]: (ttyHS2) closing serial port...
Mar 1 13:40:41 alarmpi modem-manager[286]: (ttyHS2) serial port closed
Mar 1 13:40:41 alarmpi modem-manager[286]: (ttyHS2) opening serial port...
Mar 1 13:40:41 alarmpi modem-manager[286]: (ttyHS1) closing serial port...
Mar 1 13:40:41 alarmpi modem-manager[286]: (ttyHS1) serial port closed
Mar 1 13:40:41 alarmpi modem-manager[286]: (ttyHS1) opening serial port...
Mar 1 13:40:41 alarmpi modem-manager[286]: (ttyHS0) closing serial port...
Mar 1 13:40:41 alarmpi modem-manager[286]: (ttyHS0) serial port closed
Mar 1 13:40:41 alarmpi modem-manager[286]: (ttyHS0) opening serial port...
Mar 1 13:40:41 alarmpi modem-manager[286]: (ttyHS2) closing serial port...
Mar 1 13:40:41 alarmpi modem-manager[286]: (ttyHS2) serial port closed
Mar 1 13:40:47 alarmpi modem-manager[286]: (ttyHS1) closing serial port...
Mar 1 13:40:47 alarmpi modem-manager[286]: (ttyHS1) serial port closed
Mar 1 13:40:47 alarmpi modem-manager[286]: (ttyHS0) closing serial port...
Mar 1 13:40:47 alarmpi modem-manager[286]: (ttyHS0) serial port closed
Mar 1 13:40:47 alarmpi modem-manager[286]: Failed to organize modem ports: (0) Failed to find primary port.
Mar 1 13:40:47 alarmpi modem-manager[286]: marshal_object: assertion `g_variant_is_object_path (path)' failed
Mar 1 13:40:47 alarmpi modem-manager[286]: failed to marshal parameter 1 for signal DeviceRemoved
Unfortunately I have no more information at the moment but I'm willing to do some debugging if someone can help me with some guidance.