You are not logged in.

#1 2014-01-08 02:01:31

loonies
Member
Registered: 2009-04-24
Posts: 5

[SOLVED] Help with netctl UMTS modem configuration

Hi,

I been trying to configure netctl for use with GPRS modem. Nothing worked so far.

Using modem with Xubuntu and Network Manger works fine.

Installed usb_modeswitch, ppp, wvdial. PIN is disabled.

I'm running out of ideas. Any help appreciated.


Looks like device is properly recognized.

$ lsusb
...
Bus 001 Device 021: ID 1e0e:f000 Qualcomm / Option iCON 210 UMTS Surfstick
...

# dmesg
...
[ 5943.578453] usb 1-2: new high-speed USB device number 23 using xhci_hcd
[ 5943.597343] usb-storage 1-2:1.0: USB Mass Storage device detected
[ 5943.597547] scsi8 : usb-storage 1-2:1.0
[ 5944.600618] scsi 8:0:0:0: CD-ROM            Hyundai  MMC Storage      2.31 PQ: 0 ANSI: 0
[ 5944.603032] sr0: scsi-1 drive
[ 5944.603280] sr 8:0:0:0: Attached scsi CD-ROM sr0

$ eject /dev/sr0

$ lsusb
...
Bus 001 Device 024: ID 1e0e:9000 Qualcomm / Option 
...

# dmesg
...
[ 6001.625727] sr0: CDROM (ioctl) error, command: cdb[0]=0x52 52 01 00 00 00 01 00 00 08 00
[ 6001.625749] sr: Sense Key : 0x4 [current] 
[ 6001.625752] sr: ASC=0x0 ASCQ=0x0
[ 6001.681445] usb 1-2: USB disconnect, device number 23
[ 6001.684369] scsi 8:0:0:0: rejecting I/O to offline device
[ 6001.684390] scsi 8:0:0:0: killing request
[ 6002.034797] usb 1-2: new high-speed USB device number 24 using xhci_hcd
[ 6002.056383] usb-storage 1-2:1.2: USB Mass Storage device detected
[ 6002.056574] scsi9 : usb-storage 1-2:1.2
[ 6002.075319] usbcore: registered new interface driver usbserial
[ 6002.075338] usbcore: registered new interface driver usbserial_generic
[ 6002.075354] usbserial: USB Serial support registered for generic
[ 6002.078320] usbcore: registered new interface driver option
[ 6002.078333] usbserial: USB Serial support registered for GSM modem (1-port)
[ 6002.078502] option 1-2:1.0: GSM modem (1-port) converter detected
[ 6002.078625] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB0
[ 6002.078667] option 1-2:1.1: GSM modem (1-port) converter detected
[ 6002.078718] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB1
[ 6002.078765] option 1-2:1.3: GSM modem (1-port) converter detected
[ 6002.078818] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB2
[ 6003.060349] scsi 9:0:0:0: Direct-Access     Hyundai  MMC Storage      2.31 PQ: 0 ANSI: 2
[ 6003.062616] sd 9:0:0:0: [sdc] Attached SCSI removable disk
[ 6005.384202] sd 9:0:0:0: [sdc] 8026112 512-byte logical blocks: (4.10 GB/3.82 GiB)
[ 6005.385092] sd 9:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 6005.388910]  sdc: sdc1

netctl

$ cat /etc/netctl/mobile-xx
Description='XX mobile broadband'
Interface=ttyUSB1
Connection=mobile_ppp
AccessPointName=xxx.yyy.zzz
Mode=None

# netctl start mobile-xx

# journalctl -x -n
...Jan 08 02:38:49 myhost systemd[1]: Starting Networking for netctl profile mobile-xx...
-- Subject: Unit netctl@mobile\x2dxx.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit netctl@mobile\x2dxx.service has begun starting up.
Jan 08 02:38:49 myhost network[2901]: Starting network profile 'mobile-xx'...
Jan 08 02:38:49 myhost kernel: PPP generic driver version 2.4.2
Jan 08 02:38:49 myhost pppd[2921]: pppd 2.4.5 started by root, uid 0
Jan 08 02:38:49 myhost network[2901]: Started network profile 'mobile-xx'
Jan 08 02:38:49 myhost systemd[1]: Started Networking for netctl profile mobile-xx.
-- Subject: Unit netctl@mobile\x2dxx.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit netctl@mobile\x2dxx.service has finished starting up.
-- 
-- The start-up result is done.
Jan 08 02:38:50 myhost kernel: sd 11:0:0:0: [sdc] 8026112 512-byte logical blocks: (4.10 GB/3.82 GiB)
Jan 08 02:38:50 myhost kernel: sd 11:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Jan 08 02:38:50 myhost kernel:  sdc: sdc1
Jan 08 02:39:30 myhost chat[2931]: abort on (BUSY)
Jan 08 02:39:30 myhost chat[2931]: abort on (NO CARRIER)
Jan 08 02:39:30 myhost chat[2931]: abort on (VOICE)
Jan 08 02:39:30 myhost chat[2931]: abort on (NO DIALTONE)
Jan 08 02:39:30 myhost chat[2931]: abort on (NO DIAL TONE)
Jan 08 02:39:30 myhost chat[2931]: abort on (NO ANSWER)
Jan 08 02:39:30 myhost chat[2931]: abort on (DELAYED)
Jan 08 02:39:30 myhost chat[2931]: abort on (\nRINGING\r\n\r\nRINGING\r)
Jan 08 02:39:30 myhost chat[2931]: report (CONNECT)
Jan 08 02:39:30 myhost chat[2931]: timeout set to 6 seconds
Jan 08 02:39:30 myhost chat[2931]: send (ATQ0^M)
Jan 08 02:39:30 myhost chat[2931]: expect (OK)
Jan 08 02:39:30 myhost chat[2931]: ATQ0^M^M
Jan 08 02:39:30 myhost chat[2931]: OK
Jan 08 02:39:30 myhost chat[2931]: -- got it
Jan 08 02:39:30 myhost chat[2931]: send (ATZ^M)
Jan 08 02:39:30 myhost chat[2931]: timeout set to 3 seconds
Jan 08 02:39:30 myhost chat[2931]: expect (OK)
Jan 08 02:39:30 myhost chat[2931]: ^M
Jan 08 02:39:30 myhost chat[2931]: ATZ^M^M
Jan 08 02:39:30 myhost chat[2931]: OK
Jan 08 02:39:30 myhost chat[2931]: -- got it
Jan 08 02:39:30 myhost chat[2931]: send (AT+CFUN=1^M)
Jan 08 02:39:30 myhost chat[2931]: expect (OK)
Jan 08 02:39:30 myhost chat[2931]: ^M
Jan 08 02:39:30 myhost chat[2931]: AT+CFUN=1^M^M
Jan 08 02:39:30 myhost chat[2931]: OK
Jan 08 02:39:30 myhost chat[2931]: -- got it
Jan 08 02:39:30 myhost chat[2931]: send (AT^M)
Jan 08 02:39:30 myhost chat[2931]: expect (OKd)
Jan 08 02:39:30 myhost chat[2931]: ^M
Jan 08 02:39:30 myhost chat[2931]: AT^M^M
Jan 08 02:39:30 myhost chat[2931]: OK^M
Jan 08 02:39:33 myhost chat[2931]: alarm
Jan 08 02:39:33 myhost chat[2931]: send (AT^M)
Jan 08 02:39:33 myhost chat[2931]: expect (OK)
Jan 08 02:39:33 myhost chat[2931]: AT^M^M
Jan 08 02:39:33 myhost chat[2931]: OK
Jan 08 02:39:33 myhost chat[2931]: -- got it
Jan 08 02:39:33 myhost chat[2931]: send (ATI^M)
Jan 08 02:39:33 myhost chat[2931]: expect (OK)
Jan 08 02:39:33 myhost chat[2931]: ^M
Jan 08 02:39:33 myhost chat[2931]: ATI^M^M
Jan 08 02:39:33 myhost chat[2931]: Manufacturer: Alpha^M
Jan 08 02:39:33 myhost chat[2931]: Model: Modem^M
Jan 08 02:39:33 myhost chat[2931]: Revision: I: P3.2 QCT_21_V31_0_081125_0_H1  1  [Nov 25 2008 16:45:06]^M
Jan 08 02:39:33 myhost chat[2931]: IMEI: I: 358237020036691^M
Jan 08 02:39:33 myhost chat[2931]: +GCAP: +CGSM,+DS,+ES^M
Jan 08 02:39:33 myhost chat[2931]: ^M
Jan 08 02:39:33 myhost chat[2931]: OK
Jan 08 02:39:33 myhost chat[2931]: -- got it
Jan 08 02:39:33 myhost chat[2931]: send (ATZ^M)
Jan 08 02:39:33 myhost chat[2931]: expect (OK)
Jan 08 02:39:33 myhost chat[2931]: ^M
Jan 08 02:39:33 myhost chat[2931]: ATZ^M^M
Jan 08 02:39:33 myhost chat[2931]: OK
Jan 08 02:39:33 myhost chat[2931]: -- got it
Jan 08 02:39:33 myhost chat[2931]: send (ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0^M)
Jan 08 02:39:33 myhost chat[2931]: expect (OK)
Jan 08 02:39:33 myhost chat[2931]: ^M
Jan 08 02:39:33 myhost chat[2931]: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0^M^M
Jan 08 02:39:33 myhost chat[2931]: OK
Jan 08 02:39:33 myhost chat[2931]: -- got it
Jan 08 02:39:33 myhost chat[2931]: send (AT^M)
Jan 08 02:39:33 myhost chat[2931]: expect (OK)
Jan 08 02:39:33 myhost chat[2931]: ^M
Jan 08 02:39:33 myhost chat[2931]: AT^M^M
Jan 08 02:39:33 myhost chat[2931]: OK
Jan 08 02:39:33 myhost chat[2931]: -- got it
Jan 08 02:39:33 myhost chat[2931]: send (AT+CGDCONT=1,"IP","xxx.yyy.zzz"^M)
Jan 08 02:39:34 myhost chat[2931]: expect (OK)
Jan 08 02:39:34 myhost chat[2931]: ^M
Jan 08 02:39:34 myhost chat[2931]: AT+CGDCONT=1,"IP","xxx.yyy.zzz"^M^M
Jan 08 02:39:34 myhost chat[2931]: OK
Jan 08 02:39:34 myhost chat[2931]: -- got it
Jan 08 02:39:34 myhost chat[2931]: send (ATDT*99#^M)
Jan 08 02:39:34 myhost chat[2931]: timeout set to 30 seconds
Jan 08 02:39:34 myhost chat[2931]: expect (CONNECT)
Jan 08 02:39:34 myhost chat[2931]: ^M
Jan 08 02:39:34 myhost kernel: usb 1-2: USB disconnect, device number 26
Jan 08 02:39:34 myhost kernel: option1 ttyUSB1: usb_wwan_indat_callback: resubmit read urb failed. (-19)
Jan 08 02:39:34 myhost chat[2931]: warning: read() on stdin returned 0
Jan 08 02:39:34 myhost kernel: option1 ttyUSB1: usb_wwan_indat_callback: resubmit read urb failed. (-19)
Jan 08 02:39:34 myhost kernel: option1 ttyUSB1: usb_wwan_indat_callback: resubmit read urb failed. (-19)
Jan 08 02:39:34 myhost kernel: option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
Jan 08 02:39:34 myhost kernel: option1 ttyUSB1: usb_wwan_indat_callback: resubmit read urb failed. (-19)
Jan 08 02:39:34 myhost kernel: option 1-2:1.0: device disconnected
Jan 08 02:39:34 myhost kernel: option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
Jan 08 02:39:34 myhost kernel: option 1-2:1.1: device disconnected
Jan 08 02:39:34 myhost kernel: sd 11:0:0:0: [sdc] Synchronizing SCSI cache
Jan 08 02:39:34 myhost kernel: sd 11:0:0:0: [sdc]  
Jan 08 02:39:34 myhost kernel: Result: hostbyte=0x01 driverbyte=0x00
Jan 08 02:39:34 myhost kernel: option1 ttyUSB2: option_instat_callback: error -71
Jan 08 02:39:34 myhost kernel: option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
Jan 08 02:39:34 myhost kernel: option 1-2:1.3: device disconnected
Jan 08 02:39:40 myhost kernel: usb 1-2: new high-speed USB device number 27 using xhci_hcd
Jan 08 02:39:40 myhost kernel: usb-storage 1-2:1.0: USB Mass Storage device detected
Jan 08 02:39:40 myhost kernel: scsi12 : usb-storage 1-2:1.0
Jan 08 02:39:40 myhost slim[515]: thunar-volman: Unsupported USB device type.
Jan 08 02:39:40 myhost slim[515]: thunar-volman: Unsupported USB device type.
Jan 08 02:39:41 myhost kernel: scsi 12:0:0:0: CD-ROM            Hyundai  MMC Storage      2.31 PQ: 0 ANSI: 0
Jan 08 02:39:41 myhost kernel: sr0: scsi-1 drive
Jan 08 02:39:41 myhost kernel: sr 12:0:0:0: Attached scsi CD-ROM sr0
Jan 08 02:43:21 myhost systemd[1]: Started Networking for netctl profile mobile-xx.
-- Subject: Unit netctl@mobile\x2dxx.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit netctl@mobile\x2dxx.service has finished starting up.
-- 
-- The start-up result is done.

wvdial

$ cat /etc/wvdial.conf
[Dialer Defaults]
Modem Type = Analog Modem
Phone = *99#
ISDN = 0
Modem = /dev/ttyUSB1
Baud = 460800
Stupid Mode = 1
Username = '' 
Password = ''
Init1 = ATZ
Init2 = AT+CGDCONT=1,"IP","xxx.yyy.zzz"

# wvdial
--> WvDial: Internet dialer version 1.61
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: AT+CGDCONT=1,"IP","xxx.yyy.zzz"
AT+CGDCONT=1,"IP","xxx.yyy.zzz"
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
--> Disconnecting at Wed Jan  8 02:37:31 2014

Last edited by loonies (2014-01-11 01:09:29)

Offline

#2 2014-01-11 01:08:58

loonies
Member
Registered: 2009-04-24
Posts: 5

Re: [SOLVED] Help with netctl UMTS modem configuration

I have no idea what have I done. I was using ttyUSB1, but I'm sure I also tried ttyUSB2. usb_modeswitch is not working and is not needed at all, simple eject /dev/sr0 worked for me. wvdial is also not needed for working netctl configuration.

Anyway, if anyone is interested, this is the working configuration:

wvdial

$ cat /etc/wvdial.conf

[Dialer Defaults]
Modem Type = USB 3G modem
Modem = /dev/ttyUSB2
Baud = 115200
Stupid Mode = 1 
Phone = *99#
Username = ''
Password = ''
Init1 = ATZ 
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,"IP","xxx.yyy.zzz"

netctl

$ cat /etc/netctl/mobile-xx

Description='XX mobile broadband'
Interface=ttyUSB2
Connection=mobile_ppp
AccessPointName=xxx.yyy.zzz
Mode=None

I guess I'll just write udev rule for ejecting /dev/sr0 when the modem is inserted in.

That's all folks smile

Offline

Board footer

Powered by FluxBB