LinuxQuestions.org

LinuxQuestions.org (http://www.linuxquestions.org/questions/index.php)
-   Linux - Hardware (http://www.linuxquestions.org/questions/forumdisplay.php?f=18)
-   -   raspberry pi - gsm dongle (http://www.linuxquestions.org/questions/showthread.php?t=4175448183)

eantoranz 02-01-2013 10:22 AM

raspberry pi - gsm dongle
 
Hi!

I'm wondering if GSM dongles are supported with raspberry pi. I just connected my own dongle on my raspberry pi running raspbian wheezy (working through ssh, not GUI at the time) and didn't see changes on tty ports available (though I do see reaction on syslog).

I did this same thing on a beagleboard and I did get a new tty port I could use so how does it work on rp?

Thanks in advance

eantoranz 02-01-2013 10:24 AM

Code:

$ sudo lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 005: ID 12d1:1446 Huawei Technologies Co., Ltd. E1552/E1800/E173 (HSPA modem)

Code:

Feb  1 16:19:06 raspberrypi kernel: [ 5108.038357] usb 1-1.2: new high-speed USB device number 5 using dwc_otg
Feb  1 16:19:06 raspberrypi kernel: [ 5108.149564] usb 1-1.2: New USB device found, idVendor=12d1, idProduct=1446
Feb  1 16:19:06 raspberrypi kernel: [ 5108.149593] usb 1-1.2: New USB device strings: Mfr=3, Product=2, SerialNumber=0
Feb  1 16:19:06 raspberrypi kernel: [ 5108.149611] usb 1-1.2: Product: HUAWEI Mobile
Feb  1 16:19:06 raspberrypi kernel: [ 5108.149623] usb 1-1.2: Manufacturer: HUAWEI Technology
Feb  1 16:19:06 raspberrypi kernel: [ 5108.168484] scsi2 : usb-storage 1-1.2:1.0
Feb  1 16:19:06 raspberrypi kernel: [ 5108.169789] scsi3 : usb-storage 1-1.2:1.1
Feb  1 16:19:07 raspberrypi kernel: [ 5109.173042] scsi 2:0:0:0: CD-ROM            HUAWEI  Mass Storage    2.31 PQ: 0 ANSI: 2
Feb  1 16:19:07 raspberrypi kernel: [ 5109.175834] scsi 3:0:0:0: Direct-Access    HUAWEI  MMC Storage      2.31 PQ: 0 ANSI: 2
Feb  1 16:19:07 raspberrypi kernel: [ 5109.210338] sr0: scsi-1 drive
Feb  1 16:19:07 raspberrypi kernel: [ 5109.211085] sr 2:0:0:0: Attached scsi CD-ROM sr0
Feb  1 16:19:08 raspberrypi kernel: [ 5109.247469] sd 3:0:0:0: [sda] Attached SCSI removable disk


eantoranz 02-01-2013 10:37 AM

When I connect the usb dongle to my computer I get this:

Code:

/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/6p, 480M
    |__ Port 5: Dev 6, If 0, Class=vend., Driver=option, 480M
    |__ Port 5: Dev 6, If 1, Class=comm., Driver=cdc_ether, 480M
    |__ Port 5: Dev 6, If 2, Class=data, Driver=cdc_ether, 480M
    |__ Port 5: Dev 6, If 3, Class=vend., Driver=option, 480M
    |__ Port 5: Dev 6, If 4, Class=vend., Driver=option, 480M
    |__ Port 5: Dev 6, If 5, Class=stor., Driver=usb-storage, 480M
    |__ Port 5: Dev 6, If 6, Class=stor., Driver=usb-storage, 480M

On the rp I get this:
Code:

/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M                                                                                                                 
    |__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/3p, 480M                                                                                                                       
        |__ Port 1: Dev 3, If 0, Class=vend., Driver=smsc95xx, 480M                                                                                                               
        |__ Port 2: Dev 6, If 0, Class=stor., Driver=usb-storage, 480M                                                                                                             
        |__ Port 2: Dev 6, If 1, Class=stor., Driver=usb-storage, 480M

Why the difference? No support for cdc_ether? This is from rp:

Code:

$ modinfo cdc_ether                                                                                                                                         
filename:      /lib/modules/3.2.27+/kernel/drivers/net/usb/cdc_ether.ko                                                                                                           
license:        GPL                                                                                                                                                               
description:    USB CDC Ethernet devices                                                                                                                                           
author:        David Brownell                                                                                                                                                     
srcversion:    20A838D5FC3916AE5E3B7FD                                                                                                                                           
alias:          usb:v12D1p*d*dc*dsc*dp*ic02isc06ipFF*                                                                                                                             
alias:          usb:v*p*d*dc*dsc*dp*ic02isc0Aip00*
alias:          usb:v*p*d*dc*dsc*dp*ic02isc06ip00*
alias:          usb:v1410pB001d*dc*dsc*dp*ic02isc06ip00*
alias:          usb:v046DpC11Fd*dc*dsc*dp*ic02isc0Aip00*
alias:          usb:v1004p61AAd*dc*dsc*dp*ic02isc06ip00*
alias:          usb:v07B4p0F02d*dc*dsc*dp*ic02isc06ip00*
alias:          usb:v04DDp9050d*dc*dsc*dp*ic02isc06ip00*
alias:          usb:v04DDp9032d*dc*dsc*dp*ic02isc06ip00*
alias:          usb:v04DDp9031d*dc*dsc*dp*ic02isc06ip00*
alias:          usb:v04DDp8007d*dc*dsc*dp*ic02isc06ip00*
alias:          usb:v04DDp8006d*dc*dsc*dp*ic02isc06ip00*
alias:          usb:v04DDp8005d*dc*dsc*dp*ic02isc06ip00*
alias:          usb:v04DDp8004d*dc*dsc*dp*ic02isc06ip00*
depends:       
intree:        Y
vermagic:      3.2.27+ preempt mod_unload modversions ARMv6


eantoranz 02-01-2013 10:51 AM

Well, this is lovely. I didn't know anything about usb-modeswitch. I'm looking into it and if it gets solved, I'll let you know.

eantoranz 02-01-2013 11:14 AM

I think the problem is a missing mapping in modules.usbmap between the device and usb-serial. I'll remove usb-modeswitch from the raspberry to make sure it all works by loading the module like this (for my dongle):

Code:

sudo modprobe usbserial vendor=0x12d1 product=0x1446

eantoranz 02-01-2013 01:53 PM

It's interesting... I think all you need to have installed is usb_modeswitch so that it can take care of initializing the device correctly. Without usb_modeswitch using modprobe as before didn't work.


All times are GMT -5. The time now is 12:22 PM.