EzDevInfo.com

usb-modem interview questions

Top usb-modem frequently asked interview questions

HUAWEI E173 on Ubuntu 12.04

I have a HUAWEI E173 usb stick to access the internet.

It works normally on windows but I'd like to be able to use it on my Ubuntu system as well.

I plug it in, and after 25-20 seconds the status light turns green and blinks twice every 3 seconds, which according to the manual means that the stick is activated and waiting to connect to a network.

I see no changes in my system whatsoever, nothing gets installed, I don't get prompted for my PIN, no reaction at all.

How should I proceed in order to get it working?


Source: (StackOverflow)

2 internet connections on a single PC

If I have a wireless and a usb internet connection on my Ubuntu 12.04 as in:

enter image description here

At the moment, Ubuntu seems to only make use of the Wired connection which is the usb connection. Is it possible to get ubuntu to use the wireless connection without unplugging the wired connection?

So basically, as will, I would like to switch between the connections without unplugging any of them while leaving them both enabled.

Is this possible?


Source: (StackOverflow)

Advertisements

'ip-config-unavailable' error when USB modem tries to connect

I have got a ZTE MF-193E modem which worked fine before. When I bought this modem more than a year ago, it worked readily out of the box. Now, as Ubuntu is progressing in version, things are becoming more and more difficult for me.

This modem even worked a couple of months back with Ubuntu 15.04 (64-bit). Now, in Ubuntu 15.10 (64-bit), it can not connect.

I have set up a mobile broadband connection. I have tried various strings for APN, but this has not been an issue before.

(The modem works fine in Windows 10, so, this is not a hardware issue at all. Also, Modem Manager GUI nicely detects this device. SMSs can be sent and received without any problem.)

When I insert the modem, it gets detected alright, a CD icon is displayed in Unity with the name of the modem. A few seconds later, I get a message box

Mobile Broadband Network: you are registered on the home network

near the network icon.

When I try to connect, the wireless icon in network manager applet starts those centrifugal motions, but eventually it fails to connect and a message tells me that I am offline.

The line I could isolate from /var/log/syslog is this,

NetworkManager[628]: <info>  (ttyUSB1): device state change: ip-config
> -> failed (reason 'ip-config-unavailable') [70 120 5]

Though, I am not sure whether this is the relevant one.

More lines from /var/log/syslog can be found here.


Update 1 - December 06 2015

As pointed out by one kind member, tried the nf_conntrack_pptp module approach.

Executed the following commands,

$ lsmod | grep nf_conntrack_pptp | wc -l
0

$ sudo modprobe nf_conntrack_pptp
lsmod | grep nf_conntrack_pptp
nf_conntrack_pptp      20480  0
nf_conntrack_proto_gre    16384  1 nf_conntrack_pptp
nf_conntrack          106496  2 nf_conntrack_proto_gre,nf_conntrack_pptp

Then tried my modem, the same failure. No discernable change in the log either.


Update 2 - December 06 2015

Executed as root,

systemctl restart network-manager.service

No output on screen (terminal).

Corresponding log from the above point to an attempt to connect using the modem can be found here.


Update 3 - December 06 2015

Installed ofono and then tried the modem again.

Please see the log here.


Update 4 - December 06 2015

Again executed as root,

systemctl restart network-manager.service

Corresponding log from the above point to an attempt to connect using the modem can be found here.


Update 5 - December 06 2015

Changed all "deny" to "allow" in /etc/dbus-1/system.d/nm-dispatcher.conf.

Tried connecting. No luck.

A few network connect and disconnect with Ethernet connection.

Followed by sudo systemctl restart network-manager.service.

Modem plug out and plug in.

Tried connecting again. Does not connect.

The log is here.


Update 6 - December 06 2015

Executed

sudo killall ModemManager; sudo ModemManager --debug 2>&1 | tee /tmp/modem.log.txt

and

export NM_PPP_DEBUG=1
sudo NetworkManager --no-daemon 2>&1 | tee /tmp/nm.log.txt

Could not run mm-test.py due to multiple errors. Did find the file at the indicated location. Got this from, https://github.com/openshine/ModemManager/blob/master/test/mm-test.py.

The above commands are somewhat different from those in the Wiki.

The log files are here.


Update 7 - December 07 2015

Executed again (after the suggested change in /lib/udev/rules.d/40-usb_modeswitch.rules and reboot)

sudo killall ModemManager; sudo ModemManager --debug 2>&1 | tee /tmp/modem.log.txt

and

sudo NM_PPP_DEBUG=1 /usr/sbin/NetworkManager --log-level=debug --no-daemon > /tmp/nm.log.txt

The /var/log/syslog is included as well.

The log files are here.


Update 8 - December 08 2015

The updated set of logs are here.


Update 9 - December 08 2015

Test 1

  1. This time booted the computer from an Ubuntu 14.04 32 bit DVD. As soon as the computer booted, started capturing the MM log.

  2. Inserted the modem. lsusb showed that it was being recognized as a 19d2:1232 device which needs to be swithced to a 19d2:2003 device. Since installation of usb-modeswitch requires reboot of the machine (and hence loose the installation for DVD run), I prepared a custom switch file and switched the modem from command line (sudo usb_modeswitch -I -c 19d2:2003).

  3. As soon as the switching was accomplished, I was informed that I was on Mobile Broadband Network and a New Broadband Connection appreard in network manager menu.

  4. I setup the above connection in the usual way (APN name was not an issue), and the connection was established automatically.

  5. I disconnected and ejected the modem.

  6. Stopped capturing the MM log.

The complete MM log and syslog for the session start to modem eject can be found here.

Test 2

The same test with an Ubuntu 14.04 64 bit DVD.

The logs can be found here.


Update 10 - December 09 2015

This time tested with wvdial and found that if wvdial is run as root, we get a successful connection.

The wvdial conf and log, and corresponding syslog are here

Primary conjecture: the situation might have something to do with user group of the corresponding user.

But as indicated here,

With all these tools, to establish a dialup connection, the user has to be member of the "dip" and "dialout" groups, so put all users who are supposed to connect via dialup into these groups.

But as we can find,

$ groups masroor
masroor : masroor adm dialout cdrom sudo dip plugdev lpadmin sambashare family wireshark

So, the user is already a member of the indicated groups.

Now, perhaps the issue boils down to either of these points,

  1. Which additional group does the user need to be?
  2. How do we run the mobile broadband connection setup process as root? (security issues?)

Update 11 - December 09 2015

wvdial works with USB3 and does not work with USB1.

Please find the syslog here.

Also included is the output of dmesg | grep tty > /tmp/dmesg.tty.txt. But see those four lines near start of the file?


Update 12 - December 10 2015

  1. Commented out line 4 (SUBSYSTEM!="tty", GOTO="mm_zte_port_types_end") in /lib/udev/rules.d/77-mm-zte-port-types.rules.

  2. Rebooted my machine. Soft disconnected the cable and inserted the modem.

  3. Tried to connect. Unsuccessful.

The syslog file is here.


Update 13 - December 10 2015

Out of sheer desperation, to see whether some local changes are affecting the connection, tested the machine with Ubuntu 15.04 and 15.10 DVDs.

  1. Booted the machine with Xubuntu 15.04 64 bit DVD. The connection was successful like a charm.
  2. Booted the machine with Ubuntu 15.10 64 bit DVD. The connection failed just like before.

What happened between 15.04 and 15.10?

So frustrating.


Update 14 - December 10 2015

  1. Created a new file /lib/udev/rules.d/78-mm-zte-port-types-RALPH.rules as instructed in the answer.

  2. Rebooted my machine (or executed sudo udevadm control --reload, actually tried both). Inserted the modem.

  3. The modem got recognized.

    $ lsusb
    Bus 001 Device 005: ID 19d2:2003 ZTE WCDMA Technologies MSM
    
  4. Soft disconnected the cable and tried to connect using the modem. Unsuccessful.

  5. Ejected the modem.

The machine hangs once, is that a random event? My machine does not usually hang once in year.

The syslog file and the created rule files are here.


Update 15 - December 11 2015

  1. Added the following lines to /lib/udev/rules.d/40-usb_modeswitch.rules.

    # ZTE MF193E
    ATTR{idVendor}=="19d2", ATTR{idProduct}=="1232", RUN+="usb_modeswitch '%b/%k'"
    
  2. Left the file /lib/udev/rules.d/78-mm-zte-port-types-RALPH.rules intact.

  3. Rebooted my machine. Inserted the modem.

  4. The modem got recognized.

    Bus 001 Device 005: ID 19d2:2003 ZTE WCDMA Technologies MSM
    
  5. Soft disconnected the cable and tried to connect. Unsuccessful.

  6. Ejected the modem.

  7. Removed /lib/udev/rules.d/78-mm-zte-port-types-RALPH.rules.

  8. Rebooted and tried the whole process again. Unsuccessful again.

The syslog file (complete, I did not take the risk of missing any important part) and the mentioned rule file (40) are here.


Update 16 - December 11 2015

  1. Left only one 1232 rule in /lib/udev/rules.d/40-usb_modeswitch.rules, removed the other one.

  2. Executed sudo udevadm control --reload.

  3. Inserted the modem.

  4. The modem got recognized.

    Bus 001 Device 005: ID 19d2:2003 ZTE WCDMA Technologies MSM
    
  5. Soft disconnected the cable and tried to connect. Unsuccessful.

  6. Ejected the modem.

But did not we test the default system above? Did you mean to leave /lib/udev/rules.d/78-mm-zte-port-types-RALPH.rules in its place?

The syslog file (complete, I did not take the risk of missing any important part) and the mentioned rule file (40) are here


Update 17 - December 11 2015

  1. Commented out the 1232 rule in /lib/udev/rules.d/40-usb_modeswitch.rules, added one for 2003.

    # ZTE MFxxx
    # Added on December 11 2015
    ATTR{idVendor}=="19d2", ATTR{idProduct}=="2003", RUN+="usb_modeswitch '%b/%k'"
    
  2. Executed sudo udevadm control --reload.

  3. Inserted the modem.

  4. The modem got recognized as a 1232 device. I am not offered to try connecting (as far as my knowledge goes, it will not be registered to broadband network unless switching has happened to 2003)

    Bus 001 Device 008: ID 19d2:1232 ZTE WCDMA Technologies MSM
    
  5. Ejected the modem.

The syslog file and the mentioned rule file (40) are here


Update 18 - December 11 2015

  1. Put all the rule files in their original form.

  2. Watched lsusb output every one second using a shell script. Captured output in time stamped files.

  3. Inserted the modem. (The modem first appears in the file lssuboutouput.Fri Dec 11 16:56:29 BDT 2015.txt). As we can find from the captures, it is clear that it switches from a 1232 device to a 2003 one.

  4. Tried to connect. Unsuccessful.

  5. Ejected the modem.

The syslog file, time stamped lsusb outputs and the mentioned rule files are here.

Now, you may want to match the syslog outputs with the time stamps.


Update 19 - December 11 2015

Performed this test in a completley new direction with the wish that I could isolate the issues.

  1. Saved in a portable media /lib/udev/rules.d/40-usb-media-players.rules and /lib/udev/rules.d/77-mm-zte-port-types.rules (from the Ubuntu 15.10 machine).

  2. Booted the machine using Xubuntu 15.04 64 bit DVD.

  3. Executed diff 77-mm-zte-port-types.rules /lib/udev/rules.d/77-mm-zte-port-types.rules > diff15.10and15.04_77-mm.txt. The first file is from the one saved from 15.10.

    Examination of the diff file shows no idProduct 1232 or 2003.

  4. Executed diff 40-usb_modeswitch.rules /lib/udev/rules.d/40-usb_modeswitch.rules > diff15.10and15.04_40-usb.txt. Again, the first file is from the one saved from 15.10.

    Again, examination of the diff file shows no idProduct 1232 or 2003.

  5. Inserted the modem. The modem got recognized as a modem.

    $ lsusb
    Bus 001 Device 008: ID 19d2:2003 ZTE WCDMA Technologies MSM
    
  6. Could connect readily after setting up a mobile broadband connection.

  7. Ejected the modem.

  8. Installed the latest USB_ModeSwitch.

    diff 40-usb_modeswitch.rules /lib/udev/rules.d/40-usb_modeswitch.rules
    

    Now returns NULL, as expected.

  9. Executed sudo udevadm control --reload-rules.

  10. Inserted the modem. The modem got recognized as a modem.

    $ lsusb
    Bus 001 Device 008: ID 19d2:2003 ZTE WCDMA Technologies MSM
    
  11. Could connect readily.

I could have tried upgrading MM and NM to that of Ubuntu 15.10, just to see where it breaks. I actually tried but gave up due to endless dependency problems.

All the above mentioned diff files are here.


Update 20 - December 12 2015

Test 1

  1. The /lib/udev/rules in original condition.

  2. The modem device has not been inserted yet in this session.

  3. Setup ModemManager for debugging and setup udevadm capture.

    sudo udevadm monitor --e |& tee udevadm.update20.WITHOUT78.log
    sudo killall ModemManager; sudo ModemManager --debug 2>&1 | tee MM.update20.WITHOUT78.log
    
  4. Plugged in the modem and waited till it says that it is registered in broadband network.

  5. Tried to connect unsuccessfully.

  6. Ejected the modem.

  7. Packed up log files.

Test 2

Repeated the above test with /lib/udev/rules.d/78-mm-zte-port-types-RALPH.rules in place.

The log file names are self-explanatory.

All the above log files plus syslog and the 78 rule files are here.

I wish all the log files came with time stamps, making matching easier.


Update 21 - December 15 2015

  1. Changed the rule file as suggested.
  2. Rebooted my machine.
  3. Inserted the modem and tried connecting. It did not work.

The rule file and the syslog are here.


Update 22 - December 16 2015

As advised in one comment, installed various kernels from http://kernel.ubuntu.com/~kernel-ppa/mainline/ and tried connecting using the modem after booting in each.

  1. 4.2.8-040208-generic, failure.

  2. 4.1.15-040115-generic, failure.

  3. 4.0.9-040009-generic, failure.

So, perhaps, we can rule out the kernel issue.


Update 23 - February 16 2016

The modem has started functioning in Ubuntu 16.04. This version is still in Alpha 1, but works fine in my laptop.


Source: (StackOverflow)

connect to internet through 3g dongle in ubuntu server

As the title says, can i connect to internet through 3g dongle in ubuntu server fresh installation Any terminal / manual way? My purpose is to get connection using dongle in ubuntu server minimal install and i don't have any other device to connect to.

Any input is appreciated, Thank you.


Source: (StackOverflow)

USB tethering from Android 2.3

I used a friend's Android (2.3) phone that allows USB tethering, subheading: "share phone's mobile network with PC."

Android lets me set 2 tethering settings, under "USB tethering type":

  • Windows
  • Mac OS X

Naturally, Linux isn't officially supported, but I suspect someone has run into this before. What do I need to on my Ubuntu 12.04 setup to get it to recognize either of these connection types for USB tethering?


Source: (StackOverflow)

3G USB Modem Not Working in 12.04

When I connect my 3G USB Modem to my laptop with 12.04, nothing shows up in Network-Manager. This modem is working in 11.10 and the modem is shown in Network-Manager but not in 12.04 !!

Here are the outputs of lsusb and usb-devices on two machines , one with 11.10 and the other with 12.04 :

Ubuntu-11.10 :

$ lsusb
    Bus 002 Device 009: ID 1c9e:6061  

$ usb-devices
    T:  Bus=02 Lev=02 Prnt=02 Port=03 Cnt=01 Dev#=  9 Spd=12  MxCh= 0
    D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
    P:  Vendor=1c9e ProdID=6061 Rev=00.00
    S:  Manufacturer=3G USB Modem        ￴￴
    S:  SerialNumber=000000000002
    C:  #Ifs= 4 Cfg#= 1 Atr=a0 MxPwr=500mA
    I:  If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
    I:  If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
    I:  If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
    I:  If#= 3 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage

Ubuntu-12.04 :

$ lsusb
    Bus 002 Device 003: ID 1c9e:6061 OMEGA TECHNOLOGY WL-72B 3.5G MODEM

$ usb-devices
    T:  Bus=02 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  3 Spd=12  MxCh= 0
    D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
    P:  Vendor=1c9e ProdID=6061 Rev=00.00
    S:  Manufacturer=Qualcomm, Incorporated
    S:  Product=USB MMC Storage
    S:  SerialNumber=000000000002
    C:  #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=100mA
    I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none)

As the output of the above commands show, the device is detected as a modem in 11.10 but in 12.04 it is detected as a USB storage (the device is both a 3G Modem and a SD-card USB adapter).

Any help ?!


Source: (StackOverflow)

Problem with building/compiling a driver for Edimax wireless adapter EW-7822UAC in Kubuntu 13.10 64-bit

I have a USB wireless adapter EW-7822UAC from Edimax, and I used to be able to build/compile a Linux driver from the source that the vendor provided just by installing build-essential package on a fresh installation of Ubuntu, even without updating the system.

Now, I have installed Kubuntu 13.10 64-bit, and when I try to build the driver, I get a bunch of repeated errors and warnings and eventually the build process fails.

The kernel is 3.11.0-12-generic and I didn't need to install anything other than build-essential in (K)ubuntu 12.04.

The following are the block of repeated warning and error that I got after I invoked make command:

/home/xxx/build/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:601:8: warning: assignment makes pointer from integer without a cast [enabled by default]
entry = create_proc_read_entry("bw_mode", S_IFREG | S_IRUGO,
      ^
/home/xxx/build/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:607:7: error: dereferencing pointer to incomplete type
entry->write_proc = proc_set_bw_mode;  

Any help will be greatly appreciated, but please go easy on the jargon. Thanks.


Source: (StackOverflow)

Configuring Tata Photon + USB Modem Huawei EC156

The version that I have now on my machine is Ubuntu 11.10 Desktop dual booted with Windows XP.

The problem that I face is that I have a USB modem of Huawei Model No: EC 156. It's a Tata Photon + modem (for fellow Indian readers). When I plug that device into a USB port, it's supposed to autoplay and take me to the installer which would install the drivers and the dialer (that's what the Customer Care of Tata Photon + has told me). But, it doesn't autoplay or install anything.

But, the network manager detects the device. I tried setting it up from the network manager. The connection is set up but it doesn't connect to the network. There's no error message or anything (it just says than I am not connected to the network). I read the Ask Ubuntu threads and tried to install the following drivers:

  • usb modeswitch
  • usb modswitch data

But, those two didn't install from the Ubuntu Software Center.


Source: (StackOverflow)

How to install wvdial without getting the following error?

When I ran the command:

sudo apt-get install wvdial

I got this error message :

error
p@p:~$ sudo apt-get install wvdial
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package wvdial is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package wvdial has no installation candidate
p@p:~$

So how can I install wvdial?

BSNL EVDO Rev A USB Data Card Model No.:T-U500

I don't have access to internet from Ubuntu for direct installation.

After I posted this question I got how to install wvdial and I installed it. Now I am facing another problem. I first took terminal and typed in lsusb after plugging my modem (bsnl evdo data card). Then I typed wvdialconf and I got the following:

at@at-Presario-V3700-Notebook-PC:~$ lsusb

Bus 005 Device 002: ID 15eb:7153
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

at@at-Presario-V3700-Notebook-PC:~$ wvdialconf
Editing `/etc/wvdial.conf'.
Scanning your serial ports for a modem.
ttyS0<Info>: Permission denied
Modem Port Scan<*1>: S0
ttyS1<Info>: Permission denied
Modem Port Scan<*1>: S1
ttyS2<Info>: Permission denied
Modem Port Scan<*1>: S2
ttyS31<Info>: Permission denied
Modem Port Scan<*1>: S31
Sorry, no modem was detected!  Is it in use by another program?
Did you configure it properly with setserial?
Please read the FAQ at http://alumnit.ca/wiki/?WvDial

Can you help me in this? I want to install my modem.


Source: (StackOverflow)

Huawei e303c data-card not working for Ubuntu 11.04?

Cheers to you. I got a problem in making a Mobile-BroadBand connection in Ubuntu 11.04, using 'Huawei e303c' usb data-card. I'm using Tata Docomo 3G sim-card (India, circle: Maharastra).

My observations:

  1. I installed the device's driver 'Mobile-Partner For Linux'(which came up with the device). But it is not detecting my device.

  2. In Network Manager, Adding a Mobile-BroadBand connection is not able to detect the device (with or without the device's driver installed).

  3. I tried softwares like usb_modeswitch, gnomeppp, wvdial, sakis3G and followed their guidelines. These too didn't work.

  4. Without the driver, the system is able to identify the device (Mobile-Partner icon comes-up, that leads to driver setup files). But after installing the driver, nothing comes-up there.

  5. In all the above cases, when 'lsusb' cmd is fired, the prompt shows the connected data card (as 'DEVICE_ID:VENDOR_ID Huawei Technologies Ltd.,').

This is my problem. Give a solution to get my device connected.

-Umash


Source: (StackOverflow)

Huawei E3272 Ubuntu

I have a problem with Huawei E3272 modem. Ubuntu 14.04 does not detect it as a mobile broadband modem. If I put my SIM card into my old modem(E3131) everything works, E3272 is just not detected. I have checked lsusb, and here I can see the system detects it as 12d1:14fe Huawei Technologies Co., Ltd. but I cannot choose it in my Network Connections.

I tried adding usbserial vendor=0x12d1 product=0x14fe in /etc/modules, but it did not change anything. The same goes for adding

# Huawei E3272 ATTR{idVendor}=="12d1", ATTR{idProduct}=="157c", RUN +="usb_modeswitch '%b/%k'"

in /lib/udev/rules.d/40-usb_modeswitch.rules. I also tried installing Modem Manager, but it did not help.

Have you got any idea what could I do, so my system would detect my new modem? I would like to be able to use LTE. :)


Source: (StackOverflow)

How to get Bus and Device relationship for a /dev/ttyUSB

I need to write an script for restart USB dongles. I have all tools but I can't link my /dev/ttyUSBx to physical BUS and DEVICE. An issue is that I have three dongles with the same id vendor and id product.

If I do lsusb the output is:

Bus 001 Device 004: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E270 HSDPA/HSUPA Modem
Bus 001 Device 006: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E270 HSDPA/HSUPA Modem
Bus 001 Device 007: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E270 HSDPA/HSUPA Modem
Bus 001 Device 002: ID 80ee:0021
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

And I have attached it to:

/dev/ttyUSB0
/dev/ttyUSB3
/dev/ttyUSB5

But I want to know which device is related with which Bus Device. By example I need to get the following:

/dev/ttyUSB0 -> Bus 001 Device 006
/dev/ttyUSB3 -> Bus 001 Device 004
/dev/ttyUSB5 -> Bus 001 Device 007

I'm using Ubuntu Server 10.04 and I tested the tools:

lsusb
hal
lsmod

But I can't get the relationship.


Source: (StackOverflow)

Balance of GSM USB Modem using USSD

Are there some tools or commands I can use to send USSD codes for checking balance and data balance of the GSM SIM Card in my USB modem (Mobile broadband dongle)?


Source: (StackOverflow)

How to configure TATA Photon+ EC1261 HUAWEI

I'm running ubuntu 10.04. I have a newly purchased TATA Photon+ Internet connection which supports Windows and Mac. On the Internet I found a article saying that it could be configured on Linux. I followed the steps to install it on Ubuntu from this link. I am still not able to get online, and need some help.

Also, it is very slow, but I was told that I would see speeds up to 3.1MB.

I dont have wvdial installed and cannot install it from apt as I'm not connected to internet

Booting from windows I dowloaded "wvdial" .deb package and tried to install on ubuntu but it's ended with dependency problem. Automatically, don't know how, I got connected to internet only for once. Immediately I installed wvdial package after this I followed the tutorials(I could not browse and upload the files here) . From then it's showing that the device is connected in the network connections but no internet connection. Once I disable the device, it won't show as connected again and I'll have to restart my system. Sometimes the device itself not detected(wondering if there is any command to re-read the all devices).

output of wvdialconf /etc/wvdial.cof:

#wvdialconf /etc/wvdial.conf

Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: S1   S2   S3   
WvModem<*1>: Cannot get information for serial port.
ttyUSB0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
WvModem<*1>: Cannot get information for serial port.
ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
WvModem<*1>: Cannot get information for serial port.
ttyUSB2<*1>: ATQ0 V1 E1 -- OK
ttyUSB2<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB2<*1>: Modem Identifier: ATI -- Manufacturer: +GMI: HUAWEI TECHNOLOGIES CO., LTD
ttyUSB2<*1>: Speed 9600: AT -- OK
ttyUSB2<*1>: Max speed is 9600; that should be safe.
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK

Found a modem on /dev/ttyUSB2.
Modem configuration written to /etc/wvdial.conf.
ttyUSB2<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"

output of wvdial:

#wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Sending: AT+CRM=1
AT+CRM=1
OK
--> Modem initialized.
--> Sending: ATDT#777
--> Waiting for carrier.
ATDT#777
CONNECT
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Sat Oct 16 15:30:47 2010
--> Pid of pppd: 5681
--> Using interface ppp0
--> pppd: (u;[08]@s;[08]`{;[08]
--> pppd: (u;[08]@s;[08]`{;[08]
--> pppd: (u;[08]@s;[08]`{;[08]
--> pppd: (u;[08]@s;[08]`{;[08]
--> pppd: (u;[08]@s;[08]`{;[08]
--> pppd: (u;[08]@s;[08]`{;[08]
--> local  IP address 14.96.147.104
--> pppd: (u;[08]@s;[08]`{;[08]
--> remote IP address 172.29.161.223
--> pppd: (u;[08]@s;[08]`{;[08]
--> primary   DNS address 121.40.152.90
--> pppd: (u;[08]@s;[08]`{;[08]
--> secondary DNS address 121.40.152.100  
--> pppd: (u;[08]@s;[08]`{;[08]

Output of log message /var/log/messages:

Oct 16 15:29:44 avyakta-desktop pppd[5119]: secondary DNS address 121.242.190.180
Oct 16 15:29:58 desktop pppd[5119]: Terminating on signal 15
Oct 16 15:29:58 desktop pppd[5119]: Connect time 0.3 minutes.
Oct 16 15:29:58 desktop pppd[5119]: Sent 0 bytes, received 177 bytes.
Oct 16 15:29:58 desktop pppd[5119]: Connection terminated.
Oct 16 15:30:47 desktop pppd[5681]: pppd 2.4.5 started by root, uid 0
Oct 16 15:30:47 desktop pppd[5681]: Using interface ppp0
Oct 16 15:30:47 desktop pppd[5681]: Connect: ppp0 <--> /dev/ttyUSB2
Oct 16 15:30:47 desktop pppd[5681]: CHAP authentication succeeded
Oct 16 15:30:47 desktop pppd[5681]: CHAP authentication succeeded
Oct 16 15:30:48 desktop pppd[5681]: local  IP address 14.96.147.104
Oct 16 15:30:48 desktop pppd[5681]: remote IP address 172.29.161.223
Oct 16 15:30:48 desktop pppd[5681]: primary   DNS address 121.40.152.90
Oct 16 15:30:48 desktop pppd[5681]: secondary DNS address 121.40.152.100

EDIT 1 :

I tried the following

sudo stop network-manager
sudo killall modem-manager

sudo /usr/sbin/modem-manager --debug > ~/mm.log 2>&1 &

sudo /usr/sbin/NetworkManager --no-daemon > ~/nm.log 2>&1 &

Output of mm.log:

#vim ~/mm.log:

** Message: Loaded plugin Option High-Speed

** Message: Loaded plugin Option

** Message: Loaded plugin Huawei

** Message: Loaded plugin Longcheer

** Message: Loaded plugin AnyData

** Message: Loaded plugin ZTE

** Message: Loaded plugin Ericsson MBM

** Message: Loaded plugin Sierra

** Message: Loaded plugin Generic

** Message: Loaded plugin Gobi

** Message: Loaded plugin Novatel

** Message: Loaded plugin Nokia

** Message: Loaded plugin MotoC

Output of nm.log:

#vim ~/nm.log:

NetworkManager: <info>  starting...

NetworkManager: <info>  modem-manager is now available

NetworkManager:    SCPlugin-Ifupdown: init!

NetworkManager:    SCPlugin-Ifupdown: update_system_hostname

NetworkManager:    SCPluginIfupdown: guessed connection type (eth0) = 802-3-ethernet

NetworkManager:    SCPlugin-Ifupdown: update_connection_setting_from_if_block:     

name:eth0, type:802-3-ethernet, id:Ifupdown (eth0), uuid: 681b428f-beaf-8932-dce4-678ed5bae28e

NetworkManager:    SCPlugin-Ifupdown: addresses count: 1

NetworkManager:    SCPlugin-Ifupdown: No dns-nameserver configured in /etc/network/interfaces

NetworkManager: nm-ifupdown-connection.c.119 - invalid connection read from /etc/network/interfaces: (1) addresses

NetworkManager:    SCPluginIfupdown: management mode: unmanaged

NetworkManager:    SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:14.4/0000:02:02.0/net/eth1, iface: eth1)

NetworkManager:    SCPlugin-Ifupdown: device added (path: /sys/devices/pci0000:00/0000:00:14.4/0000:02:02.0/net/eth1, iface: eth1): no ifupdown configuration found.

NetworkManager:    SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/lo, iface: lo)

@

Source: (StackOverflow)

How to connect to internet using Reliance NetConnect data card?

I have a Reliance NetConnect Data card. I have plugged the datacard to my PC but it doesn't autorun or asks for installation as it does on Windows. Without it being installed I cannot connect to the internet. I am using Ubuntu 12.10 32-bit in case it matters.

How to connect to internet using Reliance NetConnect data card?


Source: (StackOverflow)