LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 02-01-2013, 10:22 AM   #1
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Rep: Reputation: 83
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
 
Old 02-01-2013, 10:24 AM   #2
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Original Poster
Rep: Reputation: 83
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
 
Old 02-01-2013, 10:37 AM   #3
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Original Poster
Rep: Reputation: 83
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
 
Old 02-01-2013, 10:51 AM   #4
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Original Poster
Rep: Reputation: 83
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.
 
Old 02-01-2013, 11:14 AM   #5
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Original Poster
Rep: Reputation: 83
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
 
Old 02-01-2013, 01:53 PM   #6
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Original Poster
Rep: Reputation: 83
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.
 
  


Reply

Tags
dongle, gsm, raspberry, tty


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
airprobe/gsm-receiver ./gsm.cc no such file or directory no input data hcx23 Programming 13 09-20-2013 05:47 AM
[SOLVED] Raspberry Pi Bluetooth Dongle not automatically Pairing with BlueSmirf FritzDan Linux - Software 1 09-24-2012 08:44 PM
airprobe/gsm-receiver ./gsm.cc no such file or directory no input data hcx23 Programming 1 06-01-2012 08:50 AM
Gsm antena / Gsm / Wifi / Bluetooh dangerous? level of energy, all you should know frenchn00b General 8 07-08-2009 03:06 PM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration