Repository navigation
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.
Activity
vpal commentedon Mar 2, 2013
I succeeded in loading the module with debugging options enabled (insmod hso.ko.gz debug=0x01)
And this is what I get after plugging in the device and trying to communicate with it through /dev/ttyHS0 with chat:
P33M commentedon May 5, 2014
There have been other reports of HSDPA modems being functional with the Pi on recent kernels.
gcsx commentedon May 5, 2014
Hello, I'm trying to use a GlobeSurfer Icon 7.2 with this module on a Pi with ArchLinux and kernel 3.10.38-1-ARCH.
I compiled the module and got into the exact same problem :
I then tried to update the kernel to 3.12.18+ and recompile the module => same result.
Can someone put a link to the solution, if one exists ? Should I try with the Linux-latest package (3.14.x)?
Thanks
[IA64] Change default PSR.ac from '1' to '0' (Fix erratum #237)
Merge tag 'please-pull-ia64-erratum' of git://git.kernel.org/pub/scm/…
arm64: bpf: jit JMP_JSET_{X,K}
kalvdans commentedon Jul 28, 2017
I get the same error on my raspberry pi 1, Linux kernel version 4.9.28+. Option Globetrotter modem inserted in a powered USB hub, same setup works on x86 machines with 4.9 and 3.16 kernels.
JamesH65 commentedon Jul 28, 2017
Does it work if plugged directly in, not via the hub?
misc: pci_endpoint_test: Fix pci_endpoint_test_{copy,write,read}() panic
misc: pci_endpoint_test: Fix pci_endpoint_test_{copy,write,read}() panic
misc: pci_endpoint_test: Fix pci_endpoint_test_{copy,write,read}() panic
KVM: arm64: Handle kvm_arm_init failure correctly in finalize_pkvm
KVM: arm64: Handle kvm_arm_init failure correctly in finalize_pkvm
misc: pci_endpoint_test: Fix pci_endpoint_test_{copy,write,read}() panic
selftests/bpf: Add various more tcx test cases
selftests/bpf: Add selftest for bpf_task_under_cgroup() in sleepable …