LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-25-2013, 06:00 AM   #1
alexbrui
LQ Newbie
 
Registered: Nov 2009
Location: Ukraine
Distribution: Slackware 13.37
Posts: 27

Rep: Reputation: 0
Setup Huawei E3276 in Slackware 14.0


Anyone knows how to get Huawei E3276 4g broadband USB modem working under Slackware 14.0 with standard SMP kernel 3.2.29?

When I plug it into my notebook it detected as removable device

lsusb
Code:
Bus 002 Device 005: ID 12d1:14fe Huawei Technologies Co., Ltd.
lsusb -v
Code:
Bus 002 Device 005: ID 12d1:14fe Huawei Technologies Co., Ltd.
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x12d1 Huawei Technologies Co., Ltd.
  idProduct          0x14fe
  bcdDevice            1.02
  iManufacturer           2 HUAWEI Technology
  iProduct                1 HUAWEI Mobile
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           55
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          3 Huawei Configuration
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0000
  (Bus Powered)
usb-devices
Code:
T:  Bus=02 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  5 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=12d1 ProdID=14fe Rev=01.02
S:  Manufacturer=HUAWEI Technology
S:  Product=HUAWEI Mobile
C:  #Ifs= 2 Cfg#= 1 Atr=80 MxPwr=500mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
I:  If#= 1 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
dmesg
Code:
usb 2-2: new high-speed USB device number 5 using ehci_hcd
usb 2-2: New USB device found, idVendor=12d1, idProduct=14fe
usb 2-2: New USB device strings: Mfr=2, Product=1, SerialNumber=0
usb 2-2: Product: HUAWEI Mobile
usb 2-2: Manufacturer: HUAWEI Technology
scsi10 : usb-storage 2-2:1.0
scsi11 : usb-storage 2-2:1.1
scsi 10:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
scsi 11:0:0:0: Direct-Access     HUAWEI   TF CARD Storage  2.31 PQ: 0 ANSI: 2
sr1: scsi-1 drive
sr 10:0:0:0: Attached scsi CD-ROM sr1
sd 11:0:0:0: [sdb] Attached SCSI removable disk
When I mounted this removable device, I found sources for kernel module hw_cdc_driver. After compiling and loading this driver, when I plug modem again I see

lsusb
Code:
Bus 002 Device 010: ID 12d1:1506 Huawei Technologies Co., Ltd. E398 LTE/UMTS/GSM Modem/Networkcard
usb-devices
Code:
T:  Bus=02 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 10 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=12d1 ProdID=1506 Rev=01.02
S:  Manufacturer=HUAWEI Technology
S:  Product=HUAWEI Mobile
C:  #Ifs= 4 Cfg#= 1 Atr=80 MxPwr=500mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=02 Prot=12 Driver=option
I:  If#= 1 Alt= 1 #EPs= 3 Cls=ff(vend.) Sub=02 Prot=16 Driver=huawei_ether
I:  If#= 2 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
I:  If#= 3 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
and dmesg
Code:
usb 2-2: new high-speed USB device number 12 using ehci_hcd
usb 2-2: New USB device found, idVendor=12d1, idProduct=1506
usb 2-2: New USB device strings: Mfr=2, Product=1, SerialNumber=0
usb 2-2: Product: HUAWEI Mobile
usb 2-2: Manufacturer: HUAWEI Technology
option 2-2:1.0: GSM modem (1-port) converter detected
usb 2-2: GSM modem (1-port) converter now attached to ttyUSB0
scsi24 : usb-storage 2-2:1.2
scsi25 : usb-storage 2-2:1.3
scsi 24:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
scsi 25:0:0:0: Direct-Access     HUAWEI   TF CARD Storage  2.31 PQ: 0 ANSI: 2
sr1: scsi-1 drive
sr 24:0:0:0: Attached scsi CD-ROM sr1
sd 25:0:0:0: [sdb] Attached SCSI removable disk
I run OpenBox, NetworkManager is not installed. Any ideas what to do?
Thanks
 
Old 01-25-2013, 05:49 PM   #2
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,378

Rep: Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824
Quote:
I run OpenBox, NetworkManager is not installed. Any ideas what to do?
If this is a full Slackware 14.0 install, then NetworkManager is installed. Use it!
Code:
# chmod +x /etc/rc.d/rc.networkmanager
I do not know about OpenBox, but in Windowmaker I just run 'nm-applet'. (I needed to install wmsystemtray from Slackbuilds.org as nm-applet runs as a system tray application.) You will need to configure your connection before use.

Your other alternative is to use pppd directly. This is much more convoluted.
You could use the GUI frontend 'kppp' in OpenBox, but I have found that you need to configure kppp in KDE before it can be used in other window managers.
 
Old 01-27-2013, 02:19 AM   #3
zk1234
Member
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware, Slitaz, Mint
Posts: 112

Rep: Reputation: 7
Make sure that you have USB_ModeSwitch installed (which, in turn, depends on libusb and Tcl). When you have them, udev will do its job, meaning that /dev/ttyUSB will be created. Then your network configuration software (an example has been given above by @allend) should be able to detect and configure your modem.

Last edited by zk1234; 01-27-2013 at 03:18 PM.
 
Old 01-28-2013, 05:36 AM   #4
alexbrui
LQ Newbie
 
Registered: Nov 2009
Location: Ukraine
Distribution: Slackware 13.37
Posts: 27

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by zk1234 View Post
Make sure that you have USB_ModeSwitch installed (which, in turn, depends on libusb and Tcl). When you have them, udev will do its job, meaning that /dev/ttyUSB will be created.
I have usb_modeswitch installed and as I can see from logs, it switched device to modem
Code:
kernel: [ 2829.767049] usb 2-2: new high-speed USB device number 5 using ehci_hcd
kernel: [ 2829.896853] usb 2-2: New USB device found, idVendor=12d1, idProduct=14fe
kernel: [ 2829.896857] usb 2-2: New USB device strings: Mfr=2, Product=1, SerialNumber=0
kernel: [ 2829.896861] usb 2-2: Product: HUAWEI Mobile
kernel: [ 2829.896864] usb 2-2: Manufacturer: HUAWEI Technology
kernel: [ 2829.937586] scsi12 : usb-storage 2-2:1.0
kernel: [ 2829.937875] scsi13 : usb-storage 2-2:1.1
usb_modeswitch: switching device 12d1:14fe on 002/005
kernel: [ 2830.733518] usb 2-2: USB disconnect, device number 5
kernel: [ 2831.064071] usb 2-2: new high-speed USB device number 6 using ehci_hcd
kernel: [ 2831.178980] usb 2-2: New USB device found, idVendor=12d1, idProduct=1506
kernel: [ 2831.178984] usb 2-2: New USB device strings: Mfr=2, Product=1, SerialNumber=0
kernel: [ 2831.178988] usb 2-2: Product: HUAWEI Mobile
kernel: [ 2831.178991] usb 2-2: Manufacturer: HUAWEI Technology
kernel: [ 2831.181322] option 2-2:1.0: GSM modem (1-port) converter detected
kernel: [ 2831.181661] usb 2-2: GSM modem (1-port) converter now attached to ttyUSB0
kernel: [ 2831.181884] scsi14 : usb-storage 2-2:1.2
kernel: [ 2831.182504] scsi15 : usb-storage 2-2:1.3
logger: usb_modeswitch: switched to 12d1:1506 on 002/006
kernel: [ 2832.184773] scsi 14:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
kernel: [ 2832.185741] scsi 15:0:0:0: Direct-Access     HUAWEI   TF CARD Storage  2.31 PQ: 0 ANSI: 2
kernel: [ 2832.192125] sd 15:0:0:0: [sdb] Attached SCSI removable disk
But there is no /dev/ttyUSB0 device. Seems I need to create udev rules that will add new device, right? Any suggestions how
such rule should look?
 
Old 01-28-2013, 06:17 AM   #5
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,378

Rep: Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824
Quote:
When I mounted this removable device, I found sources for kernel module hw_cdc_driver. After compiling and loading this driver, when I plug modem again I see
What happens when you blacklist this addition?
 
Old 01-28-2013, 09:26 AM   #6
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
What I would try is:

Code:
modprobe usbserial vendor=0x12d1 product=0x14fe
Then check for the device node you mentioned.
 
Old 01-28-2013, 12:28 PM   #7
zk1234
Member
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware, Slitaz, Mint
Posts: 112

Rep: Reputation: 7
Quote:
Originally Posted by alexbrui View Post
But there is no /dev/ttyUSB0 device. Seems I need to create udev rules that will add new device, right? Any suggestions how
such rule should look?
No, you don't have to, because the corresponding udev rules are already included in the usb_modeswitch package. Go to /etc/usb_modeswitch.conf and enable logging by setting "EnableLogging" to "1". When you do this, you will find usb_modeswitch log in the /var/log directory, which should tell you where the problem is.
 
Old 01-30-2013, 02:04 AM   #8
alexbrui
LQ Newbie
 
Registered: Nov 2009
Location: Ukraine
Distribution: Slackware 13.37
Posts: 27

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by allend View Post
What happens when you blacklist this addition?
If I blacklist it, I again get in log similar info
Code:
usb_modeswitch: switching device 12d1:14fe on 002/005
kernel: usb 2-2: USB disconnect, device number 5
kernel: usb 2-2: new high-speed USB device number 6 using ehci_hcd
kernel: usb 2-2: New USB device found, idVendor=12d1, idProduct=1506
kernel: usb 2-2: New USB device strings: Mfr=2, Product=1, SerialNumber=0
kernel: usb 2-2: Product: HUAWEI Mobile
kernel: usb 2-2: Manufacturer: HUAWEI Technology
kernel: option 2-2:1.0: GSM modem (1-port) converter detected
kernel: usb 2-2: GSM modem (1-port) converter now attached to ttyUSB0
And device node created. But when I try to use this node with pppd or wvdial, all this tools report that modem is busy.

Also I tried to build 3.7.0 kernel and test device with it. Under 3.7.0 kernel it detected as wwan device
 
Old 01-30-2013, 04:08 AM   #9
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,378

Rep: Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824
From post #4
Quote:
But there is no /dev/ttyUSB0 device.
and then from post #8
Quote:
And device node created.
So it would seem that blacklisting your addition has been successful in getting your device to be detected.

Have you tried using NetworkManager rather than pppd or wvdial?

Quote:
Also I tried to build 3.7.0 kernel and test device with it. Under 3.7.0 kernel it detected as wwan device
In this case, I do not think that a kernel upgrade is going to help.
If you want to try a later kernel, perhaps you could consider upgrading to Slackware-current, which currently has the 3.7.1 kernel. When you use a kernel that you build for yourself, rather than a kernel from the official tree, it adds to the potential sources of problems.
 
Old 01-30-2013, 01:53 PM   #10
zk1234
Member
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware, Slitaz, Mint
Posts: 112

Rep: Reputation: 7
Quote:
Originally Posted by alexbrui View Post
And device node created. But when I try to use this node with pppd or wvdial, all this tools report that modem is busy.

Also I tried to build 3.7.0 kernel and test device with it. Under 3.7.0 kernel it detected as wwan device
Is /dev/ttyUSB0 the only device that has been created? Does /dev/ttyUSB1 also exist? If so, try to manually edit /etc/wvdial.conf (replace /dev/ttyUSB0 with /dev/ttyUSB1) and try to run wvdial again.
 
Old 01-31-2013, 12:30 AM   #11
alexbrui
LQ Newbie
 
Registered: Nov 2009
Location: Ukraine
Distribution: Slackware 13.37
Posts: 27

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by allend View Post
From post #4

and then from post #8

So it would seem that blacklisting your addition has been successful in getting your device to be detected.

Have you tried using NetworkManager rather than pppd or wvdial?
Yes, I tried NM from official package without any success.

Also I tested this modem with latest Slax 7.0.5 (kernel 3.6.11) and NetworkManager. I tried ti connect using NetworkManager and created mobile connection. Here is snippet from /var/log/messages:
Code:
Jan 30 18:27:50 slax kernel: usb 2-2: new high-speed USB device number 6 using ehci_hcd
Jan 30 18:27:50 slax kernel: usb 2-2: New USB device found, idVendor=12d1, idProduct=14fe
Jan 30 18:27:50 slax kernel: usb 2-2: New USB device strings: Mfr=2, Product=1, SerialNumber=0
Jan 30 18:27:50 slax kernel: usb 2-2: Product: HUAWEI Mobile
Jan 30 18:27:50 slax kernel: usb 2-2: Manufacturer: HUAWEI Technology
Jan 30 18:27:50 slax kernel: scsi15 : usb-storage 2-2:1.0
Jan 30 18:27:50 slax kernel: scsi16 : usb-storage 2-2:1.1
Jan 30 18:27:51 slax usb_modeswitch: switching device 12d1:14fe on 002/006
Jan 30 18:27:51 slax kernel: usb 2-2: USB disconnect, device number 6
Jan 30 18:27:51 slax kernel: usb 2-2: new high-speed USB device number 7 using ehci_hcd
Jan 30 18:27:51 slax kernel: usb 2-2: New USB device found, idVendor=12d1, idProduct=1506
Jan 30 18:27:51 slax kernel: usb 2-2: New USB device strings: Mfr=2, Product=1, SerialNumber=0
Jan 30 18:27:51 slax kernel: usb 2-2: Product: HUAWEI Mobile
Jan 30 18:27:51 slax kernel: usb 2-2: Manufacturer: HUAWEI Technology
Jan 30 18:27:51 slax kernel: option 2-2:1.0: GSM modem (1-port) converter detected
Jan 30 18:27:51 slax kernel: usb 2-2: GSM modem (1-port) converter now attached to ttyUSB0
Jan 30 18:27:51 slax kernel: usb 2-2: MAC-Address: 0c:5b:8f:27:9a:64
Jan 30 18:27:51 slax kernel: cdc_ncm 2-2:1.1: wwan0: register 'cdc_ncm' at usb-0000:00:1d.7-2, Mobile Broadband Network Device, 0c:5b:8f:27:9a:64
Jan 30 18:27:51 slax kernel: scsi17 : usb-storage 2-2:1.2
Jan 30 18:27:51 slax kernel: scsi18 : usb-storage 2-2:1.3
Jan 30 18:27:51 slax modem-manager[2214]: <info>  (ttyUSB0) opening serial port... 
Jan 30 18:27:52 slax logger: usb_modeswitch: switched to 12d1:1506 on 002/007
Jan 30 18:27:52 slax kernel: scsi 17:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
Jan 30 18:27:52 slax kernel: scsi 18:0:0:0: Direct-Access     HUAWEI   TF CARD Storage  2.31 PQ: 0 ANSI: 2
Jan 30 18:27:52 slax kernel: sd 18:0:0:0: [sdc] Attached SCSI removable disk
Jan 30 18:27:56 slax modem-manager[2214]: <info>  (ttyUSB0) closing serial port... 
Jan 30 18:27:56 slax modem-manager[2214]: <info>  (ttyUSB0) serial port closed 
Jan 30 18:27:56 slax modem-manager[2214]: <info>  (ttyUSB0) opening serial port... 
Jan 30 18:27:56 slax modem-manager[2214]: <info>  (Huawei): GSM modem /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-2 claimed port ttyUSB0 
Jan 30 18:27:57 slax modem-manager[2214]: <info>  (ttyUSB0) closing serial port... 
Jan 30 18:27:57 slax modem-manager[2214]: <info>  (ttyUSB0) serial port closed 
Jan 30 18:27:57 slax NetworkManager[2189]: <info> WWAN now disabled by management service
Jan 30 18:27:57 slax NetworkManager[2189]: <info> (ttyUSB0): new GSM/UMTS device (driver: 'option1' ifindex: 0)
Jan 30 18:27:57 slax NetworkManager[2189]: <info> (ttyUSB0): exported as /org/freedesktop/NetworkManager/Devices/3
Jan 30 18:27:57 slax NetworkManager[2189]: <info> (ttyUSB0): now managed
Jan 30 18:27:57 slax NetworkManager[2189]: <info> (ttyUSB0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Jan 30 18:27:57 slax NetworkManager[2189]: <info> (ttyUSB0): deactivating device (reason 'managed') [2]
Jan 30 18:27:57 slax NetworkManager[2189]: <info> (ttyUSB0): device state change: unavailable -> disconnected (reason 'none') [20 30 0]
Jan 30 18:28:44 slax NetworkManager[2189]: <info> Activation (ttyUSB0) starting connection 'Мегафон - Россия'
Jan 30 18:28:44 slax NetworkManager[2189]: <info> (ttyUSB0): device state change: disconnected -> prepare (reason 'none') [30 40 0]
Jan 30 18:28:44 slax NetworkManager[2189]: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) scheduled...
Jan 30 18:28:44 slax NetworkManager[2189]: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) started...
Jan 30 18:28:44 slax NetworkManager[2189]: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) complete.
Jan 30 18:28:44 slax modem-manager[2214]: <info>  (ttyUSB0) opening serial port... 
Jan 30 18:28:44 slax modem-manager[2214]: <info>  Modem /org/freedesktop/ModemManager/Modems/1: state changed (disabled -> enabling) 
Jan 30 18:28:45 slax modem-manager[2214]: <info>  (ttyUSB0): using text mode for SMS 
Jan 30 18:28:45 slax modem-manager[2214]: <info>  Modem /org/freedesktop/ModemManager/Modems/1: state changed (enabling -> enabled) 
Jan 30 18:28:45 slax NetworkManager[2189]: <info> WWAN now enabled by management service
Jan 30 18:28:45 slax modem-manager[2214]: <info>  Modem /org/freedesktop/ModemManager/Modems/1: state changed (enabled -> registered) 
Jan 30 18:28:45 slax modem-manager[2214]: <info>  Modem /org/freedesktop/ModemManager/Modems/1: state changed (registered -> connecting) 
Jan 30 18:28:45 slax modem-manager[2214]: <info>  Modem /org/freedesktop/ModemManager/Modems/1: state changed (connecting -> connected) 
Jan 30 18:28:45 slax NetworkManager[2189]: <info> Activation (ttyUSB0) Stage 2 of 5 (Device Configure) scheduled...
Jan 30 18:28:45 slax NetworkManager[2189]: <info> Activation (ttyUSB0) Stage 2 of 5 (Device Configure) starting...
Jan 30 18:28:45 slax NetworkManager[2189]: <info> (ttyUSB0): device state change: prepare -> config (reason 'none') [40 50 0]
Jan 30 18:28:45 slax NetworkManager[2189]: <info> Activation (ttyUSB0) Stage 2 of 5 (Device Configure) successful.
Jan 30 18:28:45 slax NetworkManager[2189]: <info> Activation (ttyUSB0) Stage 3 of 5 (IP Configure Start) scheduled.
Jan 30 18:28:45 slax NetworkManager[2189]: <info> Activation (ttyUSB0) Stage 2 of 5 (Device Configure) complete.
Jan 30 18:28:45 slax NetworkManager[2189]: <info> Activation (ttyUSB0) Stage 3 of 5 (IP Configure Start) started...
Jan 30 18:28:45 slax NetworkManager[2189]: <info> (ttyUSB0): device state change: config -> ip-config (reason 'none') [50 70 0]
Jan 30 18:28:45 slax NetworkManager[2189]: <info> starting PPP connection
Jan 30 18:28:45 slax NetworkManager[2189]: <info> pppd started with pid 2684
Jan 30 18:28:45 slax NetworkManager[2189]: <info> Activation (ttyUSB0) Stage 4 of 5 (IPv6 Configure Timeout) scheduled...
Jan 30 18:28:45 slax NetworkManager[2189]: <info> Activation (ttyUSB0) Stage 3 of 5 (IP Configure Start) complete.
Jan 30 18:28:45 slax NetworkManager[2189]: <info> Activation (ttyUSB0) Stage 4 of 5 (IPv6 Configure Timeout) started...
Jan 30 18:28:45 slax NetworkManager[2189]: <info> Activation (ttyUSB0) Stage 4 of 5 (IPv6 Configure Timeout) complete.
Jan 30 18:28:45 slax pppd[2684]: Plugin /usr/lib/pppd/2.4.5/nm-pppd-plugin.so loaded.
Jan 30 18:28:45 slax pppd[2684]: pppd 2.4.5 started by root, uid 0
Jan 30 18:28:45 slax pppd[2684]: Removed stale lock on ttyUSB0 (pid 2568)
Jan 30 18:28:45 slax pppd[2684]: Using interface ppp0
Jan 30 18:28:45 slax pppd[2684]: Connect: ppp0 <--> /dev/ttyUSB0
Jan 30 18:29:06 slax NetworkManager[2189]: <info> Activation (ttyUSB0) Stage 4 of 5 (IPv4 Configure Timeout) scheduled...
Jan 30 18:29:06 slax NetworkManager[2189]: <info> Activation (ttyUSB0) Stage 4 of 5 (IPv4 Configure Timeout) started...
Jan 30 18:29:06 slax NetworkManager[2189]: <info> (ttyUSB0): device state change: ip-config -> failed (reason 'ip-config-unavailable') [70 120 5]
Jan 30 18:29:06 slax NetworkManager[2189]: <info> Activation (ttyUSB0) Stage 4 of 5 (IPv4 Configure Timeout) complete.
Jan 30 18:29:06 slax NetworkManager[2189]: <info> (ttyUSB0): device state change: failed -> disconnected (reason 'none') [120 30 0]
Jan 30 18:29:06 slax NetworkManager[2189]: <info> (ttyUSB0): deactivating device (reason 'none') [0]
Jan 30 18:29:06 slax pppd[2684]: Terminating on signal 15
Jan 30 18:29:06 slax modem-manager[2214]: <info>  Modem /org/freedesktop/ModemManager/Modems/1: state changed (connected -> disconnecting) 
Jan 30 18:29:06 slax dbus[2182]: [system] Rejected send message, 0 matched rules; type="error", sender=":1.0" (uid=0 pid=2189 comm="/usr/sbin/NetworkManager ") interface="(unset)" member="(unset)" error name="org.freedesktop.DBus.Error.UnknownMethod" requested_reply="0" destination=":1.20" (uid=0 pid=2684 comm="/usr/sbin/pppd nodetach lock nodefaultroute ttyUSB")
Jan 30 18:29:10 slax modem-manager[2214]: <info>  Modem /org/freedesktop/ModemManager/Modems/1: state changed (disconnecting -> registered) 
Jan 30 18:30:21 slax NetworkManager[2189]:    keyfile: updating /etc/NetworkManager/system-connections/Мегафон - Россия
Jan 30 18:30:28 slax NetworkManager[2189]: <info> Activation (ttyUSB0) starting connection 'Мегафон - Россия'
Jan 30 18:30:28 slax NetworkManager[2189]: <info> (ttyUSB0): device state change: disconnected -> prepare (reason 'none') [30 40 0]
Jan 30 18:30:28 slax NetworkManager[2189]: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) scheduled...
Jan 30 18:30:28 slax NetworkManager[2189]: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) started...
Jan 30 18:30:28 slax NetworkManager[2189]: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) complete.
Jan 30 18:30:31 slax NetworkManager[2189]: <info> (ttyUSB0): device state change: prepare -> failed (reason 'unknown') [40 120 1]
Jan 30 18:30:31 slax NetworkManager[2189]: <info> (ttyUSB0): device state change: failed -> disconnected (reason 'none') [120 30 0]
Jan 30 18:30:31 slax NetworkManager[2189]: <info> (ttyUSB0): deactivating device (reason 'none') [0]
Connection can't be established. Maybe this device should be used somehow as WWAN?

Last edited by alexbrui; 01-31-2013 at 12:32 AM.
 
Old 01-31-2013, 12:41 AM   #12
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,378

Rep: Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824
Quote:
Jan 30 18:30:21 slax NetworkManager[2189]: keyfile: updating /etc/NetworkManager/system-connections/Мегафон - Россия
Jan 30 18:30:28 slax NetworkManager[2189]: <info> Activation (ttyUSB0) starting connection 'Мегафон - Россия'
Jan 30 18:30:28 slax NetworkManager[2189]: <info> (ttyUSB0): device state change: disconnected -> prepare (reason 'none') [30 40 0]
To me, that looks like your connection is being rejected by your ISP. Have you properly configured your connection according to your ISP's requirements?
 
Old 02-01-2013, 07:10 AM   #13
kairen
Member
 
Registered: Oct 2006
Location: Bulgaria
Distribution: Slackware64 14.1
Posts: 76

Rep: Reputation: 15
I have a 3G huawei and what I do to connect is a mix of several things.
I have a simple script which does

Quote:
modprobe -a option
echo "0x12d1 0x1c05" > /sys/bus/usb-serial/drivers/option1/new_id
wvdialconf /etc/wvdial.conf
wvdial
where "0x12d1 0x1c05" is from
Quote:
> lsusb
Bus 002 Device 004: ID 12d1:1c05 Huawei Technologies Co., Ltd.
and my wvdial .conf is:

Quote:
[Dialer pin]
Init1 = AT+CPIN=8427

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2
Stupid Mode = 1
Modem Type = Analog Modem
ISDN = 0
Phone = *99#
Modem = /dev/ttyUSB0
Username = globul
Dial Command = ATDT
Password = globul
Baud = 9600

[Huawei]
Init2 = ATZ
Init3 = ATQ0 V1 E1 S0=0 &C1 &D2
ISDN = 0
Modem = /dev/ttyUSB0
Modem Type = Analog Modem
Baud = 9600
BUT! the string Init1 = AT+CPIN=8427 doesn't work so I needed to configure NetworkManager to unlock the device.

It works fine for me with Slackware 14.0
 
  


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
[SOLVED] Huawei E173 can work with Slackware 13.37? Bourbon Linux - Wireless Networking 3 07-16-2012 05:10 AM
Huawei 1261 with Slackware 12.1 shivkiyer Slackware 5 10-15-2010 01:21 AM
HUAWEI E181 gsm modem slackware 13.1 usb_modeswicht not runningPisser Slackware 4 08-24-2010 05:16 AM
Huawei E 1550 3G broadband dongle on Three UK in Slackware 13 How to vdemuth LinuxAnswers Discussion 1 06-15-2010 01:51 PM
how to setup Huawei E170 HSPA USB stick modem in fedora 8 uxan Fedora 1 05-04-2009 02:17 AM


All times are GMT -5. The time now is 07:14 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