LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-09-2010, 08:46 PM   #1
slackwaredanny
Member
 
Registered: Feb 2010
Location: Sweden
Distribution: Slackware
Posts: 88
Blog Entries: 3

Rep: Reputation: 20
3g modem.


i have the huawei 1550 3g modem (prepaid) tele2 and a nokia 5800 both working on on other dists,installed vwdial
and vwdialconf finds the nokia and and recognize it as a modem.vwdial connects and hang up kppp same story.
what is the deal with the phone? i have all the settings right it should really just work.
And the usbmodem it seems like i need usb_modeswitch but i cant compile i properly and the slackbuild is broken/old.
ive googled and i cant find a solution for slackware?
 
Old 03-09-2010, 08:51 PM   #2
slackwaredanny
Member
 
Registered: Feb 2010
Location: Sweden
Distribution: Slackware
Posts: 88

Original Poster
Blog Entries: 3

Rep: Reputation: 20
bash-3.1# uname -a
Linux slack 2.6.29.6-smp #2 SMP Mon Dec 7 16:02:16 CST 2009 i686 Intel(R) Atom(TM) CPU N270 @ 1.60GHz GenuineIntel GNU/Linux
bash-3.1#
 
Old 03-10-2010, 01:55 AM   #3
vdemuth
Member
 
Registered: Oct 2003
Location: West Midlands, UK
Distribution: Slackware 14 (Server),OpenSuse 13.2 (Laptop & Desktop),, OpenSuse 13.2 on the wifes lappy
Posts: 781

Rep: Reputation: 98
# How to get the Huawei 1550 3G (Three UK) mobile # broadband dongle modem working in Slackware 13.

# This device is not currently supported directly
# yet by the kernel and when plugged in looks like
# an external drive.
# To get it to work as a modem the following steps
# will get it working.

# Thanks to all the sources I pulled this together
# from

# Prerequisites
# Need to belong to sudoers

## Step 1.

# Download usb_modeswitch from
# http://www.draisberghof.de/usb_modeswitch

# This is a Debian package, so a couple of extra
# steps are needed.

# Extract to a directory of your choice, the cd to
# that directory.

# Either trash or delete the current binary file,
# the run the usual make and make install
# (as root) to install the resulting binary to
# /usr/sbin/usb_modeswitch, and the config file to
# /etc/usb_modeswitch.conf

# Step 2

# Plug in the 3g Mobile dongle, open a konsole or
# switch to cli mode and run (as root) dmesg and
# make a note of the dongle device id. Should see
# something similar to this

usb 1-6: New USB device found, idVendor=12d1, idProduct=1446
usb 1-6: New USB device strings: Mfr=2, Product=1, SerialNumber=0
usb 1-6: Product: HUAWEI Mobile
usb 1-6: Manufacturer: HUAWEI Technology
usb-storage: device found at 7
usb-storage: waiting for device to settle before scanning
usb-storage: device found at 7
usb-storage: waiting for device to settle before scanning

# In this example, I am looking for the idVendor
# and idProduct strings. 12d1 and 1446
# respectively

# Unplug the dongle. (Be sure to eject safely if
# notified it has been detected as a usb storage
# device)

## Step 3

# Now edit and save the config file
# /etc/usb_modeswitch.conf using your favourite
# text editor and add the following line in the
# Huawei section: (well commented so quite easy)

########################################################

# Huawei E1550

DefaultVendor= 0x12d1
DefaultProduct= 0x1446
MessageEndPoint= "0x01"
MessageContent="55534243123456780000000000000011060000000000000000000000000000"


;DetachStorageOnly=1
;HuaweiMode=1

########################################################

# Replace the DefaultVendor and DefaultProduct ids
# with whatever you discovered in step 2

## Step 4

# Now create a new udev rule for the dongle to
# have it automagically switch to modem mode.
# I called mine 45-3G.rules, but you can name
# yours whatever you like, and place in the
# /etc/udev/rules.d directory. It should look like
# this:

ACTION=="add" SUBSYSTEM=="usb", SYSFS{idProduct}=="1446", SYSFS{idVendor}=="12d1", RUN+="/usr/sbin/usb_modeswitch"

# Again, use your own idProduct and idVendor codes

# Now either reboot, or issue (as root)
/etc/rc.d/rc.udev reload
# to see your new rule.

## Step 5

# Plug the dongle back in and wait around 15
# seconds then issue the dmesg command again and
# you should see this or similar:

usb 1-6: new high speed USB device using ehci_hcd and address 9
usb 1-6: configuration #1 chosen from 1 choice
scsi27 : SCSI emulation for USB Mass Storage devices
scsi28 : SCSI emulation for USB Mass Storage devices
usb 1-6: New USB device found, idVendor=12d1, idProduct=1446
usb 1-6: New USB device strings: Mfr=2, Product=1, SerialNumber=0
usb 1-6: Product: HUAWEI Mobile
usb 1-6: Manufacturer: HUAWEI Technology
usb-storage: device found at 9
usb-storage: waiting for device to settle before scanning
usb-storage: device found at 9
usb-storage: waiting for device to settle before scanning
usb 1-6: usbfs: process 24002 (usb_modeswitch) did not claim interface 0 before use
usb 1-6: USB disconnect, address 9
usb_storage: module is already loaded
usb_storage: module is already loaded
usb 1-6: new high speed USB device using ehci_hcd and address 10
usb 1-6: configuration #1 chosen from 1 choice
usb-storage: probe of 1-6:1.0 failed with error -5
option 1-6:1.0: GSM modem (1-port) converter detected
usb 1-6: GSM modem (1-port) converter now attached to ttyUSB0
usb-storage: probe of 1-6:1.1 failed with error -5
option 1-6:1.1: GSM modem (1-port) converter detected
usb 1-6: GSM modem (1-port) converter now attached to ttyUSB1
usb-storage: probe of 1-6:1.2 failed with error -5
option 1-6:1.2: GSM modem (1-port) converter detected
usb 1-6: GSM modem (1-port) converter now attached to ttyUSB2
scsi32 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 10
usb-storage: waiting for device to settle before scanning
scsi33 : SCSI emulation for USB Mass Storage devices
usb 1-6: New USB device found, idVendor=12d1, idProduct=1001
usb 1-6: New USB device strings: Mfr=2, Product=1, SerialNumber=0
usb 1-6: Product: HUAWEI Mobile
usb 1-6: Manufacturer: HUAWEI Technology
usb-storage: device found at 10
usb-storage: waiting for device to settle before scanning
scsi 32:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
sr0: scsi-1 drive
sr 32:0:0:0: Attached scsi CD-ROM sr0
sr 32:0:0:0: Attached scsi generic sg0 type 5
usb-storage: device scan complete
scsi 33:0:0:0: Direct-Access HUAWEI MMC Storage 2.31 PQ: 0 ANSI: 2
sd 33:0:0:0: [sda] Attached SCSI removable disk
sd 33:0:0:0: Attached scsi generic sg1 type 0
usb-storage: device scan complete

# Notice that the idPrduct string has now changed
# to 1001.
# This means that the process has been successful,
# and as can be seen, the dongle is now identified
# as a GSM modem.

## Step 6

# Use your favourite dial up tool to connect to
# the 3G (Three UK) network. The parameters are
# Device node is /dev/ttyUSB0
# Number to dial: *99#
# Login ID: Three
# Passowrd: Three

## Step 7 (optional)

# Download and install UMTSmon form
# http://umtsmon.sourceforge.net/ for an easy GUI
# interface.

END
 
1 members found this post helpful.
Old 03-10-2010, 02:32 PM   #4
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Ireland
Distribution: Slackware, Crux, NetBSD
Posts: 1,513

Rep: Reputation: 976Reputation: 976Reputation: 976Reputation: 976Reputation: 976Reputation: 976Reputation: 976Reputation: 976
Quote:
Originally Posted by vdemuth View Post
<--- snip --->
very helpful

thank you
 
Old 03-10-2010, 05:45 PM   #5
slackwaredanny
Member
 
Registered: Feb 2010
Location: Sweden
Distribution: Slackware
Posts: 88

Original Poster
Blog Entries: 3

Rep: Reputation: 20
usb modswitch seems to be what i need a working slackbuild of. or another kernel?
 
Old 03-10-2010, 06:31 PM   #6
rockslinux
Member
 
Registered: Jan 2010
Location: Orenburg
Distribution: Slackware
Posts: 35

Rep: Reputation: 18
I have the same modem, and the same core - or rather the official release of Slackware 13. I have everything working properly with usb_modeswitch.
 
Old 03-15-2010, 06:31 PM   #7
slackwaredanny
Member
 
Registered: Feb 2010
Location: Sweden
Distribution: Slackware
Posts: 88

Original Poster
Blog Entries: 3

Rep: Reputation: 20
so usb_modeswitch should do the trick anybody have a slackbuild of it?.

it seems to be outdated.
http://www.draisberghof.de/usb_modes...-1.0.7.tar.bz2
 
Old 03-15-2010, 11:16 PM   #8
rockslinux
Member
 
Registered: Jan 2010
Location: Orenburg
Distribution: Slackware
Posts: 35

Rep: Reputation: 18
Welcome!
Please excuse me for bad English skills.
Please you more detailed account of their problems. Given that I'm not telepathic, and I have bad English skills, I am very difficult to understand.
But mostly, it is clear. You can not compile the package. But you do not have errors encountered during compilation.
There http://slackbuilds.org/repository/13...sb_modeswitch/ date
I corrected him, and he should meet with the modern version of usb-modeswitch-1.1.0 http://www.draisberghof.de/usb_modes...-1.1.0.tar.bz2
Therefore, you will need:
1. Download http://slackbuilds.org/slackbuilds/1...eswitch.tar.gz
2. Unpack usb_modeswitch.tar.gz, and replace usb_modeswitch.SlackBuild my.

Code:
#!/bin/sh

# Slackware build script for usb_modeswitch.

# Written by David Somero <dsomero@hotmail.com>
# Derived from Slackware's Slackbuilds.
#
# Copyright 2008, 2009  Patrick J. Volkerding, Sebeka, Minnesota, USA
# Copyright 2010  David Somero (dsomero@hotmail.com) Athens, TN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
#
#  THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
#  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
#  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO
#  EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
#  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
#  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
#  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
#  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
#  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
#  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

PRGNAM=usb_modeswitch
VERSION=${VERSION:-1.1.0}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
DESTDIR=$PKG

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"
fi

set -e

rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/usb-modeswitch-$VERSION.tar.bz2
cp -r usb-modeswitch-$VERSION usb_modeswitch-$VERSION
rm -r usb-modeswitch-$VERSION
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
 \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
 -exec chmod 755 {} \; -o \
 \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
 -exec chmod 644 {} \;

# build usb_modeswitch
make

# install in $PKG
mkdir -p $PKG/lib/udev
mkdir -p $PKG/share/man/man1
make install

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
  COPYING README \
  $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
3. Download http://www.draisberghof.de/usb_modes...-1.1.0.tar.bz2
<Rest, as they normally>

---

I would have tried to do without usb_modeswitch.
Here: http://blog.ufsoft.org/zte-mf622-usb-modem-under-linux describes the essence of the case. Need only slightly change the record.

all change:
Code:
ACTION!="add", GOTO="Huawei_End"

# Is this the ZeroCD device?
SUBSYSTEM=="usb", SYSFS{idProduct}=="1446",
SYSFS{idVendor}=="12d1", GOTO="Huawei_ZeroCD"

# Is this the actual modem?
SUBSYSTEM=="usb", SYSFS{idProduct}=="1001",
SYSFS{idVendor}=="12d1", GOTO="Huawei_Modem"

LABEL="Huawei_ZeroCD"
# This is the ZeroCD part of the card, remove
# the usb_storage kernel module so
# it does not get treated like a storage device
RUN+="/sbin/rmmod usb_storage"

LABEL="Huawei_Modem"
# This is the Modem part of the card, let's
# load usbserial with the correct vendor
# and product ID's so we get our usb serial devices
RUN+="/sbin/modprobe usbserial vendor=0x12d1 product=0x1001",
# Make users belonging to the dialout group
# able to use the usb serial devices.
MODE="E1550", GROUP="dialout"

LABEL="Huawei_End"
Good luck! If that still does not understand - ask. Can by email.

Last edited by rockslinux; 03-15-2010 at 11:18 PM.
 
1 members found this post helpful.
Old 03-16-2010, 12:26 AM   #9
slackwaredanny
Member
 
Registered: Feb 2010
Location: Sweden
Distribution: Slackware
Posts: 88

Original Poster
Blog Entries: 3

Rep: Reputation: 20
Thanks i will try this and i have no problem understanding you my friend.
 
Old 03-16-2010, 01:17 AM   #10
slackwaredanny
Member
 
Registered: Feb 2010
Location: Sweden
Distribution: Slackware
Posts: 88

Original Poster
Blog Entries: 3

Rep: Reputation: 20
Well usb_modeswitch sucessfully installed and the rest ill figure out/thanks for all the help!!
 
  


Reply


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
problem with configuring my usb edge modem (wvdialconf can not detect modem):fedora 9 Asif Akter Linux - Hardware 1 01-10-2011 06:06 AM
installing z55i phone as usb modem or bluetooth modem in fedora manoharan Linux - Hardware 1 10-17-2006 06:42 PM
SUSE 9.2 detect my [B]ADSL USB-Ethernet Modem-Router [/B] as a [B]Dial up modem[/B]. myprecius Linux - Hardware 0 06-27-2005 09:21 AM
modem suddenly not working, slackware 10, netcomm in5699 56k modem ludeKing Linux - Hardware 0 07-27-2004 09:44 PM
USR 56k ext modem in RH9/Gnome - finds wrong modem . . . . emuub Linux - Networking 1 10-22-2003 02:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration