Author Message

<  Device Information  ~  ZTE MF192 19d2:0146

PostPosted: Tue Apr 10, 2012 10:54 am
Posts: 8Joined: Tue Apr 10, 2012 10:44 am
What should I do to make Ubuntu 11.10 recognize the modem?
Please provide idiot-proof instructions.


Offline Profile
PostPosted: Thu Apr 12, 2012 7:09 pm
Site AdminPosts: 3685Joined: Sat Nov 03, 2007 12:30 am
Put this file in "/etc/usb_modeswitch.d".

Duplicate one of the existing ZTE lines in
"/lib/udev/rules.d/40-usb_modeswitch.rules" and edit the new line to reflect the product ID of your device
(... ATTRS{idProduct}=="0146" ...).


Offline Profile
PostPosted: Thu Apr 12, 2012 11:39 pm
Posts: 8Joined: Tue Apr 10, 2012 10:44 am
Changed both, no effect.

Why is 0x0143 also in the file you sent? Do I need it?

Do I have to continue with some painful sniffing like this to get the MessageContent too?

Many thanks for the help!


Offline Profile
PostPosted: Fri Apr 13, 2012 8:13 am
Site AdminPosts: 3685Joined: Sat Nov 03, 2007 12:30 am
You might want to have a look at the device reference text file. All parameters are explained extensively there.
See paragraph "Download" on the main doc page.

As to "no effect", please enable logging as described in paragraph "Troubleshooting" (also on the doc page). Post the resulting log here.



Offline Profile
PostPosted: Mon Apr 16, 2012 9:30 am
Posts: 8Joined: Tue Apr 10, 2012 10:44 am
Here is the log:
Code:
USB_ModeSwitch log from Mon Apr 16 09:09:27 2012

Using global config file: /etc/usb_modeswitch.conf

Raw args from udev: /1-1.1:1.0

Bus ID for device not given by udev.
 Trying to determine it from kernel name (1-1.1:1.0) ...

USB dir exists: /sys/bus/usb/devices/1-1.1

SCSI dir exists: /sys/bus/usb/devices/1-1.1
Warning: SCSI attribute "vendor" not readable.
Warning: SCSI attribute "model" not readable.
Warning: SCSI attribute "rev" not readable.
----------------
USB values from sysfs:
  idVendor   19d2
  idProduct   0146
  manufacturer   ZTE
  product   MF192
  serial   8F53484B1C53F78EC17182DB615F0636CF166DA6
  bNumConfigurations   1
----------------
bNumConfigurations is 1 - don't check for active configuration
Found packed config collection /usr/share/usb_modeswitch/configPack.tar.gz
Searching entries named: /usr/share/usb_modeswitch/19d2:0146*
Searching overriding entries named: /etc/usb_modeswitch.d/19d2:0146*
SCSI attributes not needed, moving on.

Aargh! Config file missing for 19d2:0146! Exiting.


Does "Config file missing for 19d2:0146!" mean that I have messed up something? Or what should I do?


Offline Profile
PostPosted: Mon Apr 16, 2012 7:53 pm
Site AdminPosts: 3685Joined: Sat Nov 03, 2007 12:30 am
Did you put the file linked in my earlier post into the folder "/etc/usb_modeswitch.d" ?


Offline Profile
PostPosted: Mon Apr 16, 2012 8:00 pm
Posts: 8Joined: Tue Apr 10, 2012 10:44 am
Ooops, my mistake, sorry. I copied those lines into /etc/usb_modeswitch.conf.

However I already have a directory /etc/usb_modeswitch.d and I failed to create a file with the same name (distro: Ubuntu 11.10).

What should I do now?


Offline Profile
PostPosted: Mon Apr 16, 2012 8:39 pm
Site AdminPosts: 3685Joined: Sat Nov 03, 2007 12:30 am
Put the file linked in my earlier post into the existing folder.

Folder == Directory


Offline Profile
PostPosted: Mon Apr 16, 2012 9:00 pm
Posts: 8Joined: Tue Apr 10, 2012 10:44 am
I put the linked file as /etc/usb_modeswitch.d/19d2:0146.conf

After that, I got the following log:

Code:
USB_ModeSwitch log from Mon Apr 16 20:46:45 2012

Using global config file: /etc/usb_modeswitch.conf

Raw args from udev: /1-1.1:1.0

Bus ID for device not given by udev.
 Trying to determine it from kernel name (1-1.1:1.0) ...

USB dir exists: /sys/bus/usb/devices/1-1.1

SCSI dir exists: /sys/bus/usb/devices/1-1.1
Warning: SCSI attribute "vendor" not readable.
Warning: SCSI attribute "model" not readable.
Warning: SCSI attribute "rev" not readable.
----------------
USB values from sysfs:
  idVendor   19d2
  idProduct   0146
  manufacturer   ZTE
  product   MF192
  serial   8F53484B1C53F78EC17182DB615F0636CF166DA6
  bNumConfigurations   1
----------------
bNumConfigurations is 1 - don't check for active configuration
Found packed config collection /usr/share/usb_modeswitch/configPack.tar.gz
Searching entries named: /usr/share/usb_modeswitch/19d2:0146*
Searching overriding entries named: /etc/usb_modeswitch.d/19d2:0146*
SCSI attributes not needed, moving on.

Aargh! Config file missing for 19d2:0146! Exiting.


Offline Profile
PostPosted: Mon Apr 16, 2012 9:24 pm
Site AdminPosts: 3685Joined: Sat Nov 03, 2007 12:30 am
Why do you add ".conf" to the file name? I did not tell you to.


Offline Profile
PostPosted: Mon Apr 16, 2012 10:40 pm
Posts: 8Joined: Tue Apr 10, 2012 10:44 am
OK, now it is clear how you meant it.

I can unlock the device, and connect to Orange.at. However, ifconfig -a gives this:

Code:
usb0      Link encap:Ethernet  HWaddr 02:53:f7:8e:c1:71 
          inet addr:94.245.255.225  Bcast:94.245.255.225  Mask:255.255.255.255
          inet6 addr: fe80::53:f7ff:fe8e:c171/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:133 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:583 (583.0 B)  TX bytes:12516 (12.5 KB)


Is the device properly recognized? Why do all the RX and TX packages have errors?

Is it a problem with my internet settings?

Many thanks for your help and patience!


Offline Profile
PostPosted: Tue Apr 17, 2012 8:16 am
Site AdminPosts: 3685Joined: Sat Nov 03, 2007 12:30 am
You don't have any errors.

RX = received
TX = transmitted

packets:8
errors:0
dropped:0
overruns:0
frame:0



Offline Profile
PostPosted: Tue Apr 17, 2012 10:48 am
Posts: 8Joined: Tue Apr 10, 2012 10:44 am
Excellent. Then it must be a problem with the connection settings because the address resolution does not work (it works on Win7).

Thank you for your help and patience!


Offline Profile
PostPosted: Tue Apr 17, 2012 10:34 pm
Posts: 8Joined: Tue Apr 17, 2012 9:56 pm
I have the similar modem, and I have to run DHCP client manually to start the connection. Without it I can not reach any server.

So, after connection is established, try to do the command:
> sudo dhclient usb0


Offline Profile
PostPosted: Wed Apr 18, 2012 11:27 pm
Posts: 8Joined: Tue Apr 10, 2012 10:44 am
Many thanks, it works! :)


Offline Profile

Display posts from previous:  Sort by:

All times are UTC + 1 hour [ DST ]
Page 1 of 1
15 posts
Users browsing this forum: No registered users and 0 guests
Search for:
Post new topic  Reply to topic
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 post attachments in this forum