Posted: Thu Feb 02, 2012 17:11 Post subject: UMTS Modem MF652 (drei.at)
Hallo,
wärs evtl. möglich den Support für das ZTE MF652 zu implementieren?
default
VID 19d2
PID 1520
target
VID 19d2
PID 1522
dmesg wrote:
<6>[ 58.580000] usb 1-1: new high speed USB device using ar71xx-ehci and address 2
<6>[ 58.730000] scsi0 : usb-storage 1-1:1.0
<5>[ 59.740000] scsi 0:0:0:0: CD-ROM ZTE Datacard CD-ROM 0001 PQ: 0 ANSI: 0
<4>[ 59.750000] sr0: scsi3-mmc drive: 0x/0x caddy
<6>[ 59.750000] Uniform CD-ROM driver Revision: 3.20
<7>[ 59.760000] sr 0:0:0:0: Attached scsi CD-ROM sr0
<5>[ 59.770000] scsi 0:0:0:1: Direct-Access ZTE Storage 0001 PQ: 0 ANSI: 0
<5>[ 59.780000] sd 0:0:0:1: [sda] Attached SCSI removable disk
Ich weiß net ob des hier'n Problem machen könnt, aber im Moment hab ich noch keinen AT-Befehl gefunden das CD-Rom zu deaktivieren.
Auf meinem Rechner macht das zumindest keine Probleme.
Beim händischen verbinden bekomm ich zumindest einen Fehler:
Looking for target devices ...
No devices in target mode or class found
Looking for default devices ...
No devices in default mode or class found. Nothing to do. Bye.
Looking for target devices ...
No devices in target mode or class found
Looking for default devices ...
No devices in default mode or class found. Nothing to do. Bye.
Your problem may be the modeswitch string surrounded by a ` instead of a " or may be due to wrong target id.
latest usb_modeswitch data definitions has 19d2:1520 included but the switched id is 19d2:0142.
19d2:1522 is unknown to the usb_modeswitch but may be an id the stick can get using a different switch method/message.
Did you get that id from a Windows machine?
The ticket which Sash opened is currently useless, Brainslayer can not add support for the stick because not all needed info is given.
Here is an outline of steps you have to go through in order to gather all the needed info:
1. Make sure that usb core support is enabled in the router gui.
2. Check in dmesg that the OS has found the stick, it may be in storage mode or in modem mode.
3. If the stick is in storage mode then look for the usb_modeswitch entry in dmesg and check that the OS afterwards has found the new id.
If the modeswitch is not automatically invoked (that will happen if i is not yet supported by dd-wrt) , then invoke it manually and check in dmesg that the stick has switched to a new id.
The last step is dependent on success of those 3 steps!!
4. Find what interfaces the stick presents to the system now when it is in modem mode.
lsusb seems to be excluded in some builds/platforms (why Brainslayer?) but the info can be found by doing a
# cat /proc/bus/usb/devices
paste the whole output from the part relevant to the modem stick! _________________ Kernel panic: Aiee, killing interrupt handler!
Thx for your fast reply.
The string I posted at first was that string I used with my ubuntu befor I added it to usb_modeswitch. Now I replaced the ' with " there where no change anywhere.
I know the missmatch of the pid thats a little bit strange because under windows I get pid 0x1521 in modem mode under my ubuntu system I get pid 0x1522. As far as I know, you can get the MF652 with differen FW versions. That MF652 stick from the provider drei.at does have the pid I wrote.
LOM wrote:
1. Make sure that usb core support is enabled in the router gui.
Is done, now I just activated all usb points (core, printer, storage, mount drive)
LOM wrote:
2. Check in dmesg that the OS has found the stick, it may be in storage mode or in modem mode.
3. If the stick is in storage mode then look for the usb_modeswitch entry in dmesg and check that the OS afterwards has found the new id.
If the modeswitch is not automatically invoked (that will happen if i is not yet supported by dd-wrt) , then invoke it manually and check in dmesg that the stick has switched to a new id.
Thats allready my problem, the system doesn't switch the mode. Unfortunately there's now device found.
LOM wrote:
# cat /proc/bus/usb/devices
I can't find a subfolders at /proc/bus.
If I plug the stick in, there must be anywhere a usb-device, isn't it? Can I install lsusb later or must it be activated at the compiling process?
Some news. After installing the latest rev.
Now my router can handle the UMTS-modem, but not correctly at all. After plugging in the modem, it wouldn't be switched correctly, I've to do it by cli.
So I can see my modem. So I switch it by myself and there's the correct change to modem mode. Moreover there are the 2 serials ports I need, ttyACM0 and ttyACM1.
Looking for target devices ...
No devices in target mode or class found
Looking for default devices ...
Found devices in default mode or class (1)
Accessing device 002 on bus 001 ...
Using endpoints 0x01 (out) and 0x81 (in)
Using endpoints 0x01 (out) and 0x81 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
OK, driver found ("dummy")
OK, driver "dummy" detached
SCSI inquiry data (for identification)
-------------------------
Vendor String: ZTE
Model String: Datacard CD-ROM
Revision String: 0001
-------------------------
USB description data (for identification)
-------------------------
Manufacturer: ZTE
Product: MF652
Serial No.: B0361AC8F9A1068AE2DBDF0A5864C81E1E959704
-------------------------
Setting up communication with interface 0 ...
Using endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
OK, message successfully sent
Resetting response endpoint 0x81
Resetting message endpoint 0x01
Error resetting endpoint: -99
Device is gone, skipping any further commands
-> Run lsusb to note any changes. Bye.
Quote:
root@WaSe:~# dmesg
<3>[ 729.520000] sr0: CDROM (ioctl) error, command: cdb[0]=0x51 51 00 00 00 00 00 00 00 02 00
<6>[ 729.520000] sr: Sense Key : 0x4 [current]
<6>[ 729.530000] sr: ASC=0x0 ASCQ=0x0
<4>[ 729.550000] usb 1-1: usbfs: process 6335 (usb_modeswitch) did not claim interface 0 before use
<6>[ 729.600000] usb 1-1: USB disconnect, device number 2
<6>[ 737.470000] usb 1-1: new high-speed USB device number 3 using ar71xx-ehci
<6>[ 737.620000] cdc_acm 1-1:1.1: ttyACM0: USB ACM device
<6>[ 737.640000] cdc_acm 1-1:1.3: ttyACM1: USB ACM device
<6>[ 737.670000] scsi1 : usb-storage 1-1:1.7
<5>[ 738.670000] scsi 1:0:0:0: CD-ROM ZTE Datacard CD-ROM 0001 PQ: 0 ANSI: 0
<4>[ 738.680000] sr0: scsi3-mmc drive: 0x/0x caddy
<7>[ 738.680000] sr 1:0:0:0: Attached scsi CD-ROM sr0
<5>[ 738.690000] scsi 1:0:0:1: Direct-Access ZTE Storage 0001 PQ: 0 ANSI: 0
<5>[ 738.700000] sd 1:0:0:1: [sda] Attached SCSI removable disk
<3>[ 738.900000] sr0: CDROM (ioctl) error, command: cdb[0]=0x51 51 00 00 00 00 00 00 00 02 00
<6>[ 738.900000] sr: Sense Key : 0x4 [current]
<6>[ 738.910000] sr: ASC=0x0 ASCQ=0x0
Now my problem is I can't connect, whether automatically nor with the connect button at the WAN page (status-> WAN). That's the output there:
Quote:
Connection Type 3G/UMTS
Login Status Disconnected
Signal Status -40 DBm
Connection Uptime Not available
IP Address 0.0.0.0
Subnet Mask 0.0.0.0
Gateway 0.0.0.0
DNS 1
DNS 2
DNS 3
Is there anything I can check? Under Ubuntu I use ttyACM0 for connecting, can I force it via cli?
I know the missmatch of the pid thats a little bit strange because under windows I get pid 0x1521 in modem mode under my ubuntu system I get pid 0x1522. As far as I know, you can get the MF652 with differen FW versions. That MF652 stick from the provider drei.at does have the pid I wrote.
Some sticks gives a slightly different pid in switched mode depending on if there is a TF card inserted in the slot or not..
I have updated the ticket which Sash created with a pointer to this thread and have also "bumped" the ticket so Brainslayer notices the addition.
It needs to be added in the dd-wrt 3G lib in order to get an automatic usb_modeswitch and to get the right device assigned to the dial/connect script.
The device name is stored in the nvram variable 3gdata, check if it is pointing to your ttyACM device.
Default for unsupported modems is /dev/usb/tts/0 which you in such case have to change to /dev/ttyACM0 or maybe /dev/ttyACM1. _________________ Kernel panic: Aiee, killing interrupt handler!
Joined: 06 Jun 2006 Posts: 7463 Location: Dresden, Germany
Posted: Wed Mar 14, 2012 20:54 Post subject:
i implemented now the device as ACM device as described here _________________ "So you tried to use the computer and it started smoking? Sounds like a Mac to me.." - Louis Rossmann https://www.youtube.com/watch?v=eL_5YDRWqGE&t=60s
Do you need anymore logs for looking if all works correct?
lg Sir
Thanks but that is not needed, I just wanted to know that the stick can be put on the known working stick list. _________________ Kernel panic: Aiee, killing interrupt handler!
Posted: Sun Aug 19, 2012 7:19 Post subject: Connection lost
Hello,
i want to use a Buffalo WZR-HP-AG300H in connection with a ZTE MF652. I used the latest dd-wrt build and i got internet connection.
Sometimes the internet connection is lost, but the LED's on the stick show connected. This sometimes happens after some hours, sometimes some seconds after router reboot. The internet connection can only be repaired by rebooting the router.
I never lost the connection during downloading...