Activation Codes and Methods, Hardware Details, Sniffing
baharev
Posts: 9
Joined: Tue Apr 10, 2012 10:44 am

ZTE MF192 19d2:0146

Post by baharev » Tue Apr 10, 2012 10:54 am

What should I do to make Ubuntu 11.10 recognize the modem?
Please provide idiot-proof instructions.

Josh
Site Admin
Posts: 6534
Joined: Sat Nov 03, 2007 12:30 am

Post by Josh » Thu Apr 12, 2012 7:09 pm

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" ...).

baharev
Posts: 9
Joined: Tue Apr 10, 2012 10:44 am

Post by baharev » Thu Apr 12, 2012 11:39 pm

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!

Josh
Site Admin
Posts: 6534
Joined: Sat Nov 03, 2007 12:30 am

Post by Josh » Fri Apr 13, 2012 8:13 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.


baharev
Posts: 9
Joined: Tue Apr 10, 2012 10:44 am

Post by baharev » Mon Apr 16, 2012 9:30 am

Here is the log:

Code: Select all

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?

Josh
Site Admin
Posts: 6534
Joined: Sat Nov 03, 2007 12:30 am

Post by Josh » Mon Apr 16, 2012 7:53 pm

Did you put the file linked in my earlier post into the folder "/etc/usb_modeswitch.d" ?

baharev
Posts: 9
Joined: Tue Apr 10, 2012 10:44 am

Post by baharev » Mon Apr 16, 2012 8:00 pm

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?

Josh
Site Admin
Posts: 6534
Joined: Sat Nov 03, 2007 12:30 am

Post by Josh » Mon Apr 16, 2012 8:39 pm

Put the file linked in my earlier post into the existing folder.

Folder == Directory

baharev
Posts: 9
Joined: Tue Apr 10, 2012 10:44 am

Post by baharev » Mon Apr 16, 2012 9:00 pm

I put the linked file as /etc/usb_modeswitch.d/19d2:0146.conf

After that, I got the following log:

Code: Select all

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.

Josh
Site Admin
Posts: 6534
Joined: Sat Nov 03, 2007 12:30 am

Post by Josh » Mon Apr 16, 2012 9:24 pm

Why do you add ".conf" to the file name? I did not tell you to.

baharev
Posts: 9
Joined: Tue Apr 10, 2012 10:44 am

Post by baharev » Mon Apr 16, 2012 10:40 pm

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: Select all

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!

Josh
Site Admin
Posts: 6534
Joined: Sat Nov 03, 2007 12:30 am

Post by Josh » Tue Apr 17, 2012 8:16 am

You don't have any errors.

RX = received
TX = transmitted

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


baharev
Posts: 9
Joined: Tue Apr 10, 2012 10:44 am

Post by baharev » Tue Apr 17, 2012 10:48 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!

alxorlov
Posts: 8
Joined: Tue Apr 17, 2012 9:56 pm

Post by alxorlov » Tue Apr 17, 2012 10:34 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

baharev
Posts: 9
Joined: Tue Apr 10, 2012 10:44 am

Post by baharev » Wed Apr 18, 2012 11:27 pm

Many thanks, it works! :)

Post Reply