Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 20 Apr 2014, 16:40
All times are UTC - 4
 Forum index » Advanced Topics » Hardware » Networking » Dialup
Huawei 3G Surf Sticks come with Linux drivers
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [3 Posts]  
Author Message
Karl Godt


Joined: 20 Jun 2010
Posts: 3860
Location: Kiel,Germany

PostPosted: Wed 27 Feb 2013, 15:48    Post subject:  Huawei 3G Surf Sticks come with Linux drivers  

Today I decided to get me a second BB 3G USB-Surf-Stick just to have a second one
in case the first one that I use all of the time fails or gets missing .

*
The old one is a K3715 Huawei ft. Vodafone ,
that works well with the standard kernel driver
bash-3.00# modinfo option
filename: /lib/modules/3.5.0-KRG-iCore2-smp-pae-srv1000gz/kernel/drivers/usb/serial/option.ko
license: GPL
version: v0.7.2
description: USB Driver for GSM modems
author: Matthias Urlichs <smurf@smurf.noris.de>
srcversion: EE77CA59D5868481899CD32

that has a bunch of
bash-3.00# modinfo option | grep alias | wc -l
644
aliases .

The Stick has a compartment to add a micro-SD card and has a ROM-chip formatted iso9660 that contains three files for the windows GUI and driver .

The lsusb command is listing the K3715 as
Bus 001 Device 015: ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem

and the dmesg command shows when it is plugged in

[ 3038.187391] usb 1-1.4: Product: HUAWEI Mobile
[ 3038.187395] usb 1-1.4: Manufacturer: HUAWEI Technology
[ 3038.190156] option 1-1.4:1.0: GSM modem (1-port) converter detected
[ 3038.190310] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB0
[ 3038.190619] option 1-1.4:1.1: GSM modem (1-port) converter detected
[ 3038.190749] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB1
[ 3038.191671] option 1-1.4:1.2: GSM modem (1-port) converter detected
[ 3038.191816] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB2
[ 3038.195305] scsi41 : usb-storage 1-1.4:1.3
[ 3038.195472] usb-storage 1-1.4:1.3: waiting for device to settle before scanning
[ 3038.199524] scsi42 : usb-storage 1-1.4:1.4
[ 3038.199685] usb-storage 1-1.4:1.4: waiting for device to settle before scanning
[ 3039.196050] usb-storage 1-1.4:1.3: starting scan
[ 3039.199546] scsi 41:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
[ 3039.200021] usb-storage 1-1.4:1.4: starting scan
[ 3039.203637] scsi 42:0:0:0: Direct-Access HUAWEI MMC Storage 2.31 PQ: 0 ANSI: 2
[ 3039.204589] sd 42:0:0:0: Attached scsi generic sg3 type 0
[ 3039.208559] sd 42:0:0:0: [sdb] 3911680 512-byte logical blocks: (2.00 GB/1.86 GiB)
[ 3039.211648] sd 42:0:0:0: [sdb] Write Protect is off
[ 3039.211652] sd 42:0:0:0: [sdb] Mode Sense: 0f 0e 00 00
[ 3039.213637] sr3: scsi-1 drive
[ 3039.213910] sr 41:0:0:0: Attached scsi CD-ROM sr3
[ 3039.214228] sr 41:0:0:0: Attached scsi generic sg4 type 5
[ 3039.214521] sd 42:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 3039.215454] usb-storage 1-1.4:1.4: scan complete
[ 3039.220682] usb-storage 1-1.4:1.3: scan complete
[ 3039.235993] sdb: sdb1
[ 3039.250512] sd 42:0:0:0: [sdb] Attached SCSI removable disk

*

Now the E532s-5 Huawei ft. T-mobile web'n'walk Stick Fusion III :
No driver seems to feel responsible even after
Code:
ls -1 /lib/modules/3.5.0-KRG-iCore2-smp-pae-srv1000gz/kernel/drivers/usb/serial/* |while read line;do echo $line;insmod $line;done
inserting all the usb/serial/* drivers .

lsusb names it
Bus 001 Device 018: ID 12d1:14fe Huawei Technologies Co., Ltd.

and dmesg is printing
[ 7339.565387] usb 1-1.1: new high-speed USB device number 18 using ehci_hcd
[ 7339.928329] usb 1-1.1: New USB device found, idVendor=12d1, idProduct=14fe
[ 7339.928332] usb 1-1.1: New USB device strings: Mfr=2, Product=1, SerialNumber=0
[ 7339.928335] usb 1-1.1: Product: HUAWEI Mobile
[ 7339.928337] usb 1-1.1: Manufacturer: HUAWEI
[ 7339.930213] scsi45 : usb-storage 1-1.1:1.0
[ 7339.930356] usb-storage 1-1.1:1.0: waiting for device to settle before scanning
[ 7339.930805] scsi46 : usb-storage 1-1.1:1.1
[ 7339.930932] usb-storage 1-1.1:1.1: waiting for device to settle before scanning
[ 7340.932038] usb-storage 1-1.1:1.1: starting scan
[ 7340.932041] usb-storage 1-1.1:1.0: starting scan
[ 7340.933054] scsi 45:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
[ 7340.933703] scsi 46:0:0:0: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2
[ 7340.934821] sd 46:0:0:0: Attached scsi generic sg5 type 0
[ 7340.935248] sr5: scsi-1 drive
[ 7340.936411] sr 45:0:0:0: Attached scsi CD-ROM sr5
[ 7340.936605] sr 45:0:0:0: Attached scsi generic sg6 type 5
[ 7340.937263] sd 46:0:0:0: [sdc] Attached SCSI removable disk
[ 7340.938101] usb-storage 1-1.1:1.0: scan complete
[ 7340.938168] usb-storage 1-1.1:1.1: scan complete

When I mount the new sr5 i get this
bash-3.00# mount /dev/sr5
mount: blockorientiertes Gerät /dev/sr5 ist schreibgeschützt, wird eingehängt im Nur-Lese-Modus
which is german saying blockdevice is write-protected, mounted read-only .

Now when I do a ls -F /mnt/sr5/* it is giving me
/mnt/sr5/AutoRun.exe* /mnt/sr5/Startup.ico*
/mnt/sr5/AUTORUN.INF* /mnt/sr5/SysConfig.dat*

/mnt/sr5/Internet Manager:
data.bin* Setup.exe*

/mnt/sr5/LinuxDriver:
Linux Driver 4.19.00.00.tar.gz*

/mnt/sr5/LinuxUserManual:
Linux Driver Tool User Guide .pdf*

Shocked

This means that I would need to compile the driver everytime new whenever there is a new kernel install .

*

I was wondering in former times that people could not get their Huawei going, so I would like to excuse for any misleading tips that I might have given , and would like to ask if others found extra Linux Drivers on the ROM-Chip of their modems .
Back to top
View user's profile Send private message Visit poster's website 
kooliepup


Joined: 13 Jan 2012
Posts: 302
Location: Victoria, Australia

PostPosted: Wed 27 Feb 2013, 19:34    Post subject:  

This is the answer to a maiden's prayer..

http://www.huaweidevice.co.in/Products/MobileBroadband/E303-Hi-Link.php

Auto-configures itself, connects automatically.
WOW!

I'm finding retail at 29 UKpounds, and 29USD,
w.h.o.l.e.s.a.l.e at 21USD and 32USD.
Inconsistent prices all over the place.


There is no Linux stuff on my current or former Huawei sticks. Can't give model nos. ATM.
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3860
Location: Kiel,Germany

PostPosted: Mon 04 Mar 2013, 15:24    Post subject:  

Today i finally had time to look into the driver tarball and it contains the whole regular kernel usb-serial.ko source plus some precompiled usb-serial.ko for some Suse, Ubuntu and other distros . There is also a binary and a script for something and lots of scripts for power-management ie pm-tools and acpid .

Main thing is the 10-Huawei-Datacard.rules of 1000 lines for udev . Just copied that file to /etc/udev/rules.d and /lib/udev/rules.d and voilà after plugging in the stick , the normal option driver switched on also the micro-sd reader slot and created the necessary ttyUSB modem device nodes :

Code:
[ 5745.543313] usb 2-6.1: new high-speed USB device number 14 using ehci_hcd
[ 5745.876080] usb 2-6.1: New USB device found, idVendor=12d1, idProduct=1506
[ 5745.876086] usb 2-6.1: New USB device strings: Mfr=3, Product=2, SerialNumber=0
[ 5745.876090] usb 2-6.1: Product: HUAWEI Mobile
[ 5745.876094] usb 2-6.1: Manufacturer: HUAWEI
[ 5745.880181] scsi32 : usb-storage 2-6.1:1.4
[ 5745.880357] usb-storage 2-6.1:1.4: waiting for device to settle before scanning
[ 5745.881943] scsi33 : usb-storage 2-6.1:1.5
[ 5745.882110] usb-storage 2-6.1:1.5: waiting for device to settle before scanning
[ 5746.126187] usbcore: registered new interface driver option
[ 5746.126228] USB Serial support registered for GSM modem (1-port)
[ 5746.126338] option 2-6.1:1.0: GSM modem (1-port) converter detected
[ 5746.127403] usb 2-6.1: GSM modem (1-port) converter now attached to ttyUSB0
[ 5746.127455] option 2-6.1:1.2: GSM modem (1-port) converter detected
[ 5746.127637] usb 2-6.1: GSM modem (1-port) converter now attached to ttyUSB1
[ 5746.127669] option 2-6.1:1.3: GSM modem (1-port) converter detected
[ 5746.128288] usb 2-6.1: GSM modem (1-port) converter now attached to ttyUSB2
[ 5746.882033] usb-storage 2-6.1:1.4: starting scan
[ 5746.882985] scsi 32:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
[ 5746.884057] usb-storage 2-6.1:1.5: starting scan
[ 5746.884958] scsi 33:0:0:0: Direct-Access     HUAWEI   SD Storage       2.31 PQ: 0 ANSI: 2
[ 5746.885537] sr2: scsi-1 drive
[ 5746.885653] sd 33:0:0:0: Attached scsi generic sg5 type 0
[ 5746.885819] sr 32:0:0:0: Attached scsi CD-ROM sr2
[ 5746.886722] sr 32:0:0:0: Attached scsi generic sg6 type 5
[ 5746.888358] sd 33:0:0:0: [sdd] Attached SCSI removable disk
[ 5746.888772] usb-storage 2-6.1:1.4: scan complete
[ 5746.889572] usb-storage 2-6.1:1.5: scan complete


BUT unfortunately the Stick seems to be crippled, for it won't detect the SIM Card , neither in Vista nor in Puppy :
Code:
Manufacturer: huawei
Model: E352
Revision: 21.106.04.00.55
IMEI: 354234044066634
+GCAP: +CGSM,+DS,+ES
AT+CPIN?
+CME ERROR: SIM failure
AT+CGDCONT=1,"IP","internet.t-mobile"
+CME ERROR: SIM failure
el: EATH
1 ME
AT+CPIN?
+CME ERROR: SIM failure
AT+CGDCONT=1,"IP","internet.t-mobile"
+CME ERROR: SIM not inserted
ATH
OK
ATE1
OK
AT+CSQchat: \nwaiting for connect...\n
OK
 ERROR: SIM not inserted
ATXD*99#
ERROR
Script /etc/ppp/peers/gprs-connect-chatmm finished (pid 23454), status = 0x3
Connect script failed



Attached the Huawei udev-rules file for udevd -V >=0.98 .
10-Huawei-Datacard.rules.tar.gz
Description 
gz

 Download 
Filename  10-Huawei-Datacard.rules.tar.gz 
Filesize  4.16 KB 
Downloaded  432 Time(s) 
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [3 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Hardware » Networking » Dialup
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0706s ][ Queries: 12 (0.0126s) ][ GZIP on ]