Ernillew / wl500g

Automatically exported from code.google.com/p/wl500g
0 stars 0 forks source link

3G Modem ZTE MF190J not Recognized #307

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Firmware RT-N16-1.9.2.7-rtn-r4051 and RT-N16-1.9.2.7-rtn-r4119
2. Plug in ZTE MF190J 3g modem 14.4Mbps
3. Insert Configuration (APN, etc.)
4. AutoDetect device (Router does not detect the modem)

What is the expected output? What do you see instead?

The router does not recognize any modem in the usb ports.

What version of the product are you using?

The newest.

Please provide any additional information below.

Jan  1 00:00:04 syslogd started: BusyBox v1.19.3
Jan  1 00:00:05 kernel: klogd started: BusyBox v1.19.3 (2012-04-18 23:09:59 
CEST)
Jan  1 00:00:05 kernel: Linux version 2.6.22.19 (root@localhost) (gcc version 
4.5.3 (GCC) ) #1 Wed Apr 18 23:09:34 CEST 2012
Jan  1 00:00:05 kernel: CPU revision is: 00019740
Jan  1 00:00:05 kernel: Determined physical RAM map:
Jan  1 00:00:05 kernel:  memory: 08000000 @ 00000000 (usable)
Jan  1 00:00:05 kernel: Built 1 zonelists.  Total pages: 32512
Jan  1 00:00:05 kernel: emf: module license 'Proprietary' taints kernel.
Jan  1 00:00:05 kernel: eth0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet 
Controller 5.60.127.5 
Jan  1 00:00:05 kernel: eth1: Broadcom BCM4329 802.11 Wireless Controller 
5.60.127.5 
Jan  1 00:00:05 kernel: vlan1: dev_set_promiscuity(master, 1)
Jan  1 00:00:05 kernel: device eth0 entered promiscuous mode
Jan  1 00:00:05 kernel: device vlan1 entered promiscuous mode
Jan  1 00:00:06 dropbear[212]: Running in background
Jan  1 00:00:06 dnsmasq[218]: started, version 2.60 cachesize 512
Jan  1 00:00:06 dnsmasq[218]: compile time options: IPv6 GNU-getopt no-RTC 
no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-scripts no-TFTP no-conntrack
Jan  1 00:00:06 dnsmasq-dhcp[218]: DHCP, IP range 192.168.1.10 -- 
192.168.1.253, lease time 1d
Jan  1 00:00:06 dnsmasq[218]: read /etc/hosts - 2 addresses
Jan  1 00:00:06 miniupnpd[220]: version 1.6 started
Jan  1 00:00:06 miniupnpd[220]: HTTP listening on port 46771
Jan  1 00:00:06 miniupnpd[220]: Listening for NAT-PMP traffic on port 5351
Jan  1 00:00:06 kernel: usbcore: registered new interface driver usbfs
Jan  1 00:00:06 kernel: usbcore: registered new interface driver hub
Jan  1 00:00:06 kernel: usbcore: registered new device driver usb
Jan  1 00:00:06 kernel: ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) 
Driver
Jan  1 00:00:06 kernel: USB20H mdio control register : 0x8000000c
Jan  1 00:00:06 kernel: ehci_hcd 0000:00:04.1: EHCI Host Controller
Jan  1 00:00:06 kernel: ehci_hcd 0000:00:04.1: new USB bus registered, assigned 
bus number 1
Jan  1 00:00:06 kernel: ehci_hcd 0000:00:04.1: irq 5, io mem 0x18004000
Jan  1 00:00:07 kernel: ehci_hcd 0000:00:04.1: USB 0.0 started, EHCI 1.00
Jan  1 00:00:07 kernel: usb usb1: configuration #1 chosen from 1 choice
Jan  1 00:00:07 kernel: hub 1-0:1.0: USB hub found
Jan  1 00:00:07 kernel: hub 1-0:1.0: 2 ports detected
Jan  1 00:00:07 kernel: ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
Jan  1 00:00:07 kernel: USB20H mdio control register : 0x8000000c
Jan  1 00:00:07 kernel: ohci_hcd 0000:00:04.0: OHCI Host Controller
Jan  1 00:00:07 kernel: ohci_hcd 0000:00:04.0: new USB bus registered, assigned 
bus number 2
Jan  1 00:00:07 kernel: ohci_hcd 0000:00:04.0: irq 5, io mem 0x18009000
Jan  1 00:00:07 kernel: usb usb2: configuration #1 chosen from 1 choice
Jan  1 00:00:07 kernel: hub 2-0:1.0: USB hub found
Jan  1 00:00:07 kernel: hub 2-0:1.0: 2 ports detected
Jan  1 00:00:07 kernel: usb 1-1: new high speed USB device using ehci_hcd and 
address 2
Jan  1 00:00:07 kernel: usb 1-1: configuration #1 chosen from 1 choice
Jan  1 00:00:07 kernel: usbcore: registered new interface driver usblp
Jan  1 00:00:07 kernel: Linux video capture interface: v2.00
Jan  1 00:00:07 kernel: usbcore: registered new interface driver uvcvideo
Jan  1 00:00:07 kernel: USB Video Class driver (v0.1.0)
Jan  1 00:00:08 kernel: SCSI subsystem initialized
Jan  1 00:00:08 kernel: Initializing USB Mass Storage driver...
Jan  1 00:00:08 kernel: scsi0 : SCSI emulation for USB Mass Storage devices
Jan  1 00:00:08 kernel: usbcore: registered new interface driver usb-storage
Jan  1 00:00:08 kernel: USB Mass Storage support registered.
Jan  1 00:00:08 kernel: NTFS driver 2.1.30 [Flags: R/O MODULE].
Jan  1 00:00:08 kernel: usbcore: registered new interface driver cdc_acm
Jan  1 00:00:08 kernel: drivers/usb/class/cdc-acm.c: v0.26:USB Abstract Control 
Model driver for USB modems and ISDN adapters
Jan  1 00:00:09 kernel: usbcore: registered new interface driver usbserial
Jan  1 00:00:09 kernel: drivers/usb/serial/usb-serial.c: USB Serial support 
registered for generic
Jan  1 00:00:09 kernel: usbcore: registered new interface driver 
usbserial_generic
Jan  1 00:00:09 kernel: drivers/usb/serial/usb-serial.c: USB Serial Driver core
Jan  1 00:00:09 kernel: drivers/usb/serial/usb-serial.c: USB Serial support 
registered for GSM modem (1-port)
Jan  1 00:00:09 kernel: usbcore: registered new interface driver option
Jan  1 00:00:09 kernel: drivers/usb/serial/option.c: USB Driver for GSM modems: 
v0.7.2
Jan  1 00:00:09 admin: modem with dataport: 1.0 not found
Jan  1 00:00:09 WAN port: cable disconnected
Jan  1 00:00:10 kernel: scsi 0:0:0:0: CD-ROM            ZTE      USB SCSI 
CD-ROM  0001 PQ: 0 ANSI: 0
Jan  1 00:00:19 admin: modem with dataport: 1.0 not found
Jan  1 00:00:29 admin: modem with dataport: 1.0 not found
Jan  1 00:00:39 admin: modem with dataport: 1.0 not found
Jan  1 00:00:49 admin: modem with dataport: 1.0 not found
Jan  1 00:00:59 admin: modem with dataport: 1.0 not found
Jan  1 00:01:09 admin: modem with dataport: 1.0 not found

After run the next command: usb_modeswitch -v 19d2 -p 1542 -V 19d2 -P 1544 -M 
"5553424312345679000000000000061b000000020000000000000000000000" 

the router recognize the modem but it does connect, all configuration APN, 
Dial, are OK, and the system log return:

Jan  1 00:01:38 kernel: usb 1-1: new high speed USB device using ehci_hcd and 
address 3
Jan  1 00:01:38 kernel: usb 1-1: configuration #1 chosen from 1 choice
Jan  1 00:01:38 kernel: cdc_acm 1-1:1.1: ttyACM0: USB ACM device
Jan  1 00:01:38 kernel: cdc_acm 1-1:1.3: ttyACM1: USB ACM device
Jan  1 00:01:38 kernel: cdc_acm 1-1:1.5: ttyACM2: USB ACM device
Jan  1 00:01:39 kernel: option 1-1:1.0: GSM modem (1-port) converter detected
Jan  1 00:01:39 kernel: usb 1-1: GSM modem (1-port) converter now attached to 
ttyUSB0
Jan  1 00:01:40 pppd[809]: pppd 2.4.5 started by admin, uid 0
Jan  1 00:01:51 pppd[809]: Connect script failed

The PPP chat log returns also:

Failed
Script /tmp/ppp/peers/wan0_chat.sh finished (pid 810), status = 0x1
Connect script failed
Failed
Script /tmp/ppp/peers/wan0_chat.sh finished (pid 813), status = 0x1
Connect script failed
Failed
Script /tmp/ppp/peers/wan0_chat.sh finished (pid 816), status = 0x1
Connect script failed
Failed  

As I can see the Usb_modeswitch does not have any support (config file) for 
this modem, it support the MF190 not the MF190J.

Thanks for your help and for this wonderful firmware!

Original issue reported on code.google.com by mdun...@portugalmail.pt on 19 Apr 2012 at 11:21

GoogleCodeExporter commented 9 years ago
The are two stages of the modem installation. The first stage is switching off 
the zerocd mode. You made it using usb_modeswitch.
It is possible to select "UserDefined" Zero CD Configuration and store your 
data into the  /usr/local/etc/usb_modeswitch.conf (do not forget commands 
flashfs enable && flashfs save && flashfs commit). Or insert your command into 
the "Device initial script" line.

The second stage of the modem installation is choosing of the data and user 
interface ports. We can guarantee autodetection only for modems in our base 
http://wl500g.googlecode.com/svn/trunk/cdma/files/usr/share/modem/modems.conf 
Other modems may be or not detected.
See http://code.google.com/p/wl500g/issues/detail?id=305 

Original comment by rssdev10@gmail.com on 19 Apr 2012 at 6:22

GoogleCodeExporter commented 9 years ago
Hello,
I have the same 3G modem (ZTE MF160J) from the Portuguese TMN. It does not work 
in Ubuntu 12.04. The led-light turns red, then after 5 secs to green, but no 
connection. I have also created an entry under "Mobile BroadBand" in the 
network manager (see the attached picture).

Do you have instructions for how to make this 3G-modem to work in Linux?

$ lsusb
Bus 001 Device 002: ID 19d2:1542 ZTE WCDMA Technologies MSM 

T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  2 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=19d2 ProdID=1542 Rev=00.01
S:  Manufacturer=ZTE
S:  Product=MF190J
S:  SerialNumber=9BB27BAF013DFB85103C397DCB576 <snip>
C:  #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage

The actual 3G pen from TMN: http://tinyurl.com/7v6yvh9

Original comment by osmoma on 2 May 2012 at 3:08

Attachments:

GoogleCodeExporter commented 9 years ago
Try to switch off zerocd-mode using the command above:
usb_modeswitch -v 19d2 -p 1542 -V 19d2 -P 1544 -M 
"5553424312345679000000000000061b000000020000000000000000000000"

Original comment by rssdev10@gmail.com on 2 May 2012 at 5:31

GoogleCodeExporter commented 9 years ago
For TMN PT do not put any data in the Username and Password field.
It must be blank!

Original comment by mdun...@portugalmail.pt on 4 May 2012 at 9:19

GoogleCodeExporter commented 9 years ago
Hello,
Username/password can either be blank or tmn/tmn.
I just tested these configurations on Windows.
The APN is normally set to automatic in Windows, but it can also be
"internet". This is default in Linux.
Study this picture: http://bildr.no/view/1173613

Check also this thread on Ubuntuforums.org
http://ubuntuforums.org/showthread.php?t=1971318

I have more tests to do.
Many thanks so far.

// Osmo Antero

Original comment by osmoma on 5 May 2012 at 3:49

GoogleCodeExporter commented 9 years ago
The username/password can be anything. They do not matter (at least in my
Windows test).

This command for mode switch is good. It disables automount of the
3G-modem�s internal USB-storage.
usb_modeswitch -v 19d2 -p 1542 -V 19d2 -P 1544 -M
"5553424312345679000000000000061b000000020000000000000000000000"

I was instructed to create a udev rule. It works fine too.
$ sudo gedit /etc/udev/rules.d/zte_eject.rules

ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="1542",
RUN+="/usr/bin/eject %k", OPTIONS+="last_rule"

Then re-connect the pin.

But still no internet.
The driver says CONNECT but then it cuts off after a second or two.
As said, still testing.

Original comment by osmoma on 5 May 2012 at 4:13

GoogleCodeExporter commented 9 years ago
Although it could work with or without the username/password, it is a good rule 
to use the same parameters that the operator use(in the default TMN profile in 
your software as you could see is blank) to avoid another problems as it does 
not work yet!!

As I said after with to command line I posted the router recognize the modem 
but I still can connect!

It continues returning the same error:
Script /tmp/ppp/peers/wan0_chat.sh finished (pid 810), status = 0x1
Connect script failed   

Original comment by mdun...@portugalmail.pt on 8 May 2012 at 11:45

GoogleCodeExporter commented 9 years ago
This 3G-modem (ZTE MF160J) works fine in Ubuntu if I use wvdial, gnome-ppp or 
pppd commands directly. Ubuntu's ordinary network manager (and its applet) 
fails to connect.  At the moment I'm happy to use gnome-ppp. It connects 
willingly and the line is very stable. Please see details in:
http://ubuntuforums.org/showpost.php?p=11934679&postcount=16

The setup of gnome-ppp (or wvdial) is very easy. 
Please see: http://bildr.no/view/1182904

See also the rule for mode-switch in the earlier posting.
(/etc/udev/rules.d/zte_eject.rules) 

There is also a bug report on
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/994651

Please ask me if you need further information.

Original comment by osmoma on 21 May 2012 at 6:07

GoogleCodeExporter commented 9 years ago
After r4943 this modem, ZTE MF190J, is working great!

Thanks to all, but a special thanks to vampik! !-)

Original comment by mdun...@portugalmail.pt on 21 Mar 2013 at 8:22

GoogleCodeExporter commented 9 years ago

Original comment by lly.dev on 22 Mar 2013 at 6:24