MediaTek MT7118 Wimax Usb Card?
Need help to run / configure / install MediaTek Wimax Usb card in Ubuntu 10.4.
All helping answers are warmly welcome.
All helping answers are warmly welcome.
Sorry for replying late any how jousa these are the results.Josh wrote:Let's start with running "lsusb". If you can identify your device from the compact listing, get the details with
"lsusb -v-d <your:id>".
mak@ubuntu:~$ lsusb
Bus 005 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 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 005: ID 0e8d:7109 MediaTek Inc.
Bus 002 Device 004: ID 15d9:0a33 Trust International B.V. Optical Mouse
Bus 002 Device 003: ID 03eb:0902 Atmel Corp. 4-Port Hub
Bus 002 Device 002: ID 12d1:1412 Huawei Technologies Co., Ltd.
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
mak@ubuntu:~$ lsusb -v -d 0e8d:7109
Code: Select all
Bus 002 Device 005: ID 0e8d:7109 MediaTek Inc.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0e8d MediaTek Inc.
idProduct 0x7109
bcdDevice 1.00
iManufacturer 3
iProduct 4
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk (Zip)
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
can't get device qualifier: Operation not permitted
can't get debug descriptor: Operation not permitted
cannot read device status, Operation not permitted (1)
mak@ubuntu:~$
And with as Super root command
mak@ubuntu:~$ sudo lsusb -v -d 0e8d:7109
Code: Select all
Bus 002 Device 005: ID 0e8d:7109 MediaTek Inc.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0e8d MediaTek Inc.
idProduct 0x7109
bcdDevice 1.00
iManufacturer 3 MediaTek Inc.
iProduct 4 WiMAX USB Card
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk (Zip)
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 255 Vendor Specific Class
bDeviceSubClass 255 Vendor Specific Subclass
bDeviceProtocol 255 Vendor Specific Protocol
bMaxPacketSize0 64
bNumConfigurations 0
Device Status: 0x0000
(Bus Powered)
Bus 005 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 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 005: ID 0e8d:7109 MediaTek Inc.
Bus 002 Device 004: ID 15d9:0a33 Trust International B.V. Optical Mouse
Bus 002 Device 003: ID 03eb:0902 Atmel Corp. 4-Port Hub
Bus 002 Device 002: ID 12d1:1412 Huawei Technologies Co., Ltd.
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
mak@ubuntu:~$
O.K., fine.
Basically there are two ways possible:
usb_modeswitch -I -v 0e8d -p 7109 -M "5553424312345679000000000000061b000000020000000000000000000000"
Basically there are two ways possible:
- You are able to switch with an often-used command for ejecting the "pseudo CDROM"; then you are good to go
- If number 1 does not work, you have to spy on the Windows driver and what it is doing to the device. There are links and examples on the main doc page, paragraph "Contribute".
usb_modeswitch -I -v 0e8d -p 7109 -M "5553424312345679000000000000061b000000020000000000000000000000"
Thank you Josh now the results are as superuser.
mak@ubuntu:~$ sudo usb_modeswitch -I -v 0e8d -p 7109 -M "5553424312345679000000000000061b000000020000000000000000000000"
Looking for default devices ...
Found default devices (1)
Accessing device 006 on bus 001 ...
USB description data (for identification)
-------------------------
Manufacturer: MediaTek Inc.
Product: WiMAX USB Card
Serial No.: not provided
-------------------------
Looking for active driver ...
OK, driver found ("usb-storage")
OK, driver "usb-storage" detached
Setting up communication with interface 0 ...
Trying to send the message to endpoint 0x02 ...
OK, message successfully sent
-> Run lsusb to note any changes. Bye.
mak@ubuntu:~$ lsusb
Bus 005 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 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 005: ID 15d9:0a33 Trust International B.V. Optical Mouse
Bus 002 Device 002: ID 03eb:0902 Atmel Corp. 4-Port Hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 006: ID 0e8d:7109 MediaTek Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Please Tell me next step. I also got the sniffUSB TXT file but it is to long to be in post so if u want that i can attach the file with your email.
mak@ubuntu:~$ sudo usb_modeswitch -I -v 0e8d -p 7109 -M "5553424312345679000000000000061b000000020000000000000000000000"
Looking for default devices ...
Found default devices (1)
Accessing device 006 on bus 001 ...
USB description data (for identification)
-------------------------
Manufacturer: MediaTek Inc.
Product: WiMAX USB Card
Serial No.: not provided
-------------------------
Looking for active driver ...
OK, driver found ("usb-storage")
OK, driver "usb-storage" detached
Setting up communication with interface 0 ...
Trying to send the message to endpoint 0x02 ...
OK, message successfully sent
-> Run lsusb to note any changes. Bye.
mak@ubuntu:~$ lsusb
Bus 005 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 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 005: ID 15d9:0a33 Trust International B.V. Optical Mouse
Bus 002 Device 002: ID 03eb:0902 Atmel Corp. 4-Port Hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 006: ID 0e8d:7109 MediaTek Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Please Tell me next step. I also got the sniffUSB TXT file but it is to long to be in post so if u want that i can attach the file with your email.
O.K., I received your log file. Unfortunately, the passage that you logged is not useful. It is important that you install the sniffing filter on the correct device in Windows. And you have to start logging before you plug in.
- Make sure Windows drivers are installed.
- Check the box "List Devices Not Present".
- Look for "Vid_0e8d" and "Pid_7109" in the device list.
- It probably has a name with "Mass Storage" - or no name at all.
- Remove any other filters in the list.
- "Install Filter" on this device.
- Make log empty ("Delete Log")).
- Start logging ("Resume Log").
- Plug in.
- Press "Refresh" from time to time.
- The log will most likely stop growing.
- Then finish the logging ("Pause ..." and "Close ...").
- Make sure Windows drivers are installed.
- Check the box "List Devices Not Present".
- Look for "Vid_0e8d" and "Pid_7109" in the device list.
- It probably has a name with "Mass Storage" - or no name at all.
- Remove any other filters in the list.
- "Install Filter" on this device.
- Make log empty ("Delete Log")).
- Start logging ("Resume Log").
- Plug in.
- Press "Refresh" from time to time.
- The log will most likely stop growing.
- Then finish the logging ("Pause ..." and "Close ...").
Thank you for correction. Now i am again sending you the log file of device = 0e8d:7109.
Josh i let you one thing when first time i see the result of lsusb of device it shows device ID= 0e8d:7118 then after it changed into (0e8d:7109) maybe i use some command like modeprobe or some else.
Any how for your kind review i am sending both (0e8d:7109) and (0e8d:7118) usb snoop log files.
I am very mush interested in learning of this process so be with me.
Waiting for your answer.
Josh i let you one thing when first time i see the result of lsusb of device it shows device ID= 0e8d:7118 then after it changed into (0e8d:7109) maybe i use some command like modeprobe or some else.
Any how for your kind review i am sending both (0e8d:7109) and (0e8d:7118) usb snoop log files.
I am very mush interested in learning of this process so be with me.
Waiting for your answer.
I think I could spot the right sequence.
Principally, the device after switching is not interesting, what you can sniff there is just the normal modem initialization traffic.
But your first log for 0e8d:7109 contains the moment of switching; see the time mark [38310082 ms]. There the Windows USB system is seeing a IRP_MN_SURPRISE_REMOVAL.
This is where your first device (0e8d:7109) is going away. It is not much different than being unplugged.
Now, obviously the commands immediately before that moments are suspicious. And what we find is a sequence that is known from BandLuxe devices.
See "[38310045 ms] >>> URB 138 going down >>>"
and "[38310046 ms] >>> URB 140 going down >>>".
Look at the messages: you known the one in URB 140 because you already tried that. It's the "eject" command again.
But there is annother command preceding it; in URB 138 is a message that says "06 1e" where the eject command says "06 1b". This command enables the following eject.
You can read about storage commands here:
http://www.usb.org/developers/devclass_ ... -ufi10.pdf
Coming back to your device, you can test the following configuration. Put it in a file named "0e8d:7109" into the folder "/etc/usb_modeswitch.d":First run it manually with "usb_modeswitch -I -c /etc/usb_modeswitch.d/0e8d:7109" and see what happens.
Principally, the device after switching is not interesting, what you can sniff there is just the normal modem initialization traffic.
But your first log for 0e8d:7109 contains the moment of switching; see the time mark [38310082 ms]. There the Windows USB system is seeing a IRP_MN_SURPRISE_REMOVAL.
This is where your first device (0e8d:7109) is going away. It is not much different than being unplugged.
Now, obviously the commands immediately before that moments are suspicious. And what we find is a sequence that is known from BandLuxe devices.
See "[38310045 ms] >>> URB 138 going down >>>"
and "[38310046 ms] >>> URB 140 going down >>>".
Look at the messages: you known the one in URB 140 because you already tried that. It's the "eject" command again.
But there is annother command preceding it; in URB 138 is a message that says "06 1e" where the eject command says "06 1b". This command enables the following eject.
You can read about storage commands here:
http://www.usb.org/developers/devclass_ ... -ufi10.pdf
Coming back to your device, you can test the following configuration. Put it in a file named "0e8d:7109" into the folder "/etc/usb_modeswitch.d":
Code: Select all
########################################################
# MediaTek Wimax USB Card
DefaultVendor= 0x0e8d
DefaultProduct=0x7109
TargetVendor= 0x0e8d
TargetProduct= 0x7118
MessageContent="5553424312345678000000000000061e000000000000000000000000000000"
MessageContent2="5553424312345679000000000000061b000000020000000000000000000000"
NeedResponse=1
CheckSuccess=20
Hi,
Josh as per your instruction firstly i run the command "usb_modeswitch -I -c /etc/usb_modeswitch.d/0e8d:7109" as superuser and message came like error reading file.
Then i build the file name 0e8d:7109 in ///usb_modeswitch.d and the result are as under:
mak@ubuntu:~$ sudo usb_modeswitch -I -c /etc/usb_modeswitch.d/0e8d:7109
[sudo] password for mak:
Looking for target devices ...
No devices in target mode or class found
Looking for default devices ...
Found default devices (1)
Accessing device 002 on bus 001 ...
Using endpoints 0x02 (out) and 0x81 (in)
USB description data (for identification)
-------------------------
Manufacturer: MediaTek Inc.
Product: WiMAX USB Card
Serial No.: not provided
-------------------------
Looking for active driver ...
OK, driver found ("usb-storage")
OK, driver "usb-storage" detached
Setting up communication with interface 0 ...
Trying to send the message to endpoint 0x02 ...
OK, message successfully sent
Reading the response to the message ...
OK, response successfully read (13 bytes).
Checking for mode switch (max. 20 times, once per second) ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Original device still present after the timeout
Mode switch most likely failed. Bye.
mak@ubuntu:~$ lsusb
Bus 005 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 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 004: ID 12d1:1412 Huawei Technologies Co., Ltd.
Bus 002 Device 003: ID 15d9:0a33 Trust International B.V. Optical Mouse
Bus 002 Device 002: ID 03eb:0902 Atmel Corp. 4-Port Hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 0e8d:7109 MediaTek Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
mak@ubuntu:~$
It seems that eject command works but cannot get it back to 0e8d:7118 to initialize the modem.
Looking forward for your reply on this issue now.
Josh as per your instruction firstly i run the command "usb_modeswitch -I -c /etc/usb_modeswitch.d/0e8d:7109" as superuser and message came like error reading file.
Then i build the file name 0e8d:7109 in ///usb_modeswitch.d and the result are as under:
mak@ubuntu:~$ sudo usb_modeswitch -I -c /etc/usb_modeswitch.d/0e8d:7109
[sudo] password for mak:
Looking for target devices ...
No devices in target mode or class found
Looking for default devices ...
Found default devices (1)
Accessing device 002 on bus 001 ...
Using endpoints 0x02 (out) and 0x81 (in)
USB description data (for identification)
-------------------------
Manufacturer: MediaTek Inc.
Product: WiMAX USB Card
Serial No.: not provided
-------------------------
Looking for active driver ...
OK, driver found ("usb-storage")
OK, driver "usb-storage" detached
Setting up communication with interface 0 ...
Trying to send the message to endpoint 0x02 ...
OK, message successfully sent
Reading the response to the message ...
OK, response successfully read (13 bytes).
Checking for mode switch (max. 20 times, once per second) ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Original device still present after the timeout
Mode switch most likely failed. Bye.
mak@ubuntu:~$ lsusb
Bus 005 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 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 004: ID 12d1:1412 Huawei Technologies Co., Ltd.
Bus 002 Device 003: ID 15d9:0a33 Trust International B.V. Optical Mouse
Bus 002 Device 002: ID 03eb:0902 Atmel Corp. 4-Port Hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 0e8d:7109 MediaTek Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
mak@ubuntu:~$
It seems that eject command works but cannot get it back to 0e8d:7118 to initialize the modem.
Looking forward for your reply on this issue now.
Hmm, but there seems to be only the first message sent. You should have two messages and two responses.
Are you running an older version of usb_modeswitch ?
The feature to send more than one command message was added in 1.1.2. If you have to upgrade anyway I'd recommend the latest version 1.1.5; it's already available as a Debian package:
http://packages.debian.org/experimental/usb-modeswitch
And the data package:
http://packages.debian.org/experimental ... witch-data
Are you running an older version of usb_modeswitch ?
The feature to send more than one command message was added in 1.1.2. If you have to upgrade anyway I'd recommend the latest version 1.1.5; it's already available as a Debian package:
http://packages.debian.org/experimental/usb-modeswitch
And the data package:
http://packages.debian.org/experimental ... witch-data
Ok i have updated both of them and now the results are.
mak@ubuntu:~$ lsusb
Bus 005 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 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 004: ID 12d1:1412 Huawei Technologies Co., Ltd.
Bus 002 Device 003: ID 15d9:0a33 Trust International B.V. Optical Mouse
Bus 002 Device 002: ID 03eb:0902 Atmel Corp. 4-Port Hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 0e8d:7109 MediaTek Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
mak@ubuntu:~$ sudo usb_modeswitch -I -c /etc/usb_modeswitch.d/0e8d:7109
[sudo] password for mak:
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 003 on bus 001 ...
Getting the current device configuration ...
OK, got current device configuration (1)
Using endpoints 0x02 (out) and 0x81 (in)
Using endpoints 0x02 (out) and 0x81 (in)
USB description data (for identification)
-------------------------
Manufacturer: MediaTek Inc.
Product: WiMAX USB Card
Serial No.: not provided
-------------------------
Looking for active driver ...
OK, driver found ("usb-storage")
OK, driver "usb-storage" detached
Setting up communication with interface 0 ...
Using endpoint 0x02 for message sending ...
Trying to send message 1 to endpoint 0x02 ...
OK, message successfully sent
Reading the response to the message (CSW) ...
OK, response successfully read (13 bytes).
Trying to send message 2 to endpoint 0x02 ...
OK, message successfully sent
Reading the response to message 2 ...
Device seems to have vanished after reading. Good.
Device is gone, skipping any further commands
Checking for mode switch (max. 20 times, once per second) ...
Searching for target devices ...
Found target device, now opening
Found correct target device
Mode switch succeeded. Bye.
mak@ubuntu:~$ lsusb
Bus 005 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 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 004: ID 12d1:1412 Huawei Technologies Co., Ltd.
Bus 002 Device 003: ID 15d9:0a33 Trust International B.V. Optical Mouse
Bus 002 Device 002: ID 03eb:0902 Atmel Corp. 4-Port Hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 0e8d:7118 MediaTek Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
mak@ubuntu:~$
well now the both things are working what is the next step to scan modem and to connect it to the Internet.
mak@ubuntu:~$ lsusb
Bus 005 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 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 004: ID 12d1:1412 Huawei Technologies Co., Ltd.
Bus 002 Device 003: ID 15d9:0a33 Trust International B.V. Optical Mouse
Bus 002 Device 002: ID 03eb:0902 Atmel Corp. 4-Port Hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 0e8d:7109 MediaTek Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
mak@ubuntu:~$ sudo usb_modeswitch -I -c /etc/usb_modeswitch.d/0e8d:7109
[sudo] password for mak:
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 003 on bus 001 ...
Getting the current device configuration ...
OK, got current device configuration (1)
Using endpoints 0x02 (out) and 0x81 (in)
Using endpoints 0x02 (out) and 0x81 (in)
USB description data (for identification)
-------------------------
Manufacturer: MediaTek Inc.
Product: WiMAX USB Card
Serial No.: not provided
-------------------------
Looking for active driver ...
OK, driver found ("usb-storage")
OK, driver "usb-storage" detached
Setting up communication with interface 0 ...
Using endpoint 0x02 for message sending ...
Trying to send message 1 to endpoint 0x02 ...
OK, message successfully sent
Reading the response to the message (CSW) ...
OK, response successfully read (13 bytes).
Trying to send message 2 to endpoint 0x02 ...
OK, message successfully sent
Reading the response to message 2 ...
Device seems to have vanished after reading. Good.
Device is gone, skipping any further commands
Checking for mode switch (max. 20 times, once per second) ...
Searching for target devices ...
Found target device, now opening
Found correct target device
Mode switch succeeded. Bye.
mak@ubuntu:~$ lsusb
Bus 005 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 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 004: ID 12d1:1412 Huawei Technologies Co., Ltd.
Bus 002 Device 003: ID 15d9:0a33 Trust International B.V. Optical Mouse
Bus 002 Device 002: ID 03eb:0902 Atmel Corp. 4-Port Hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 0e8d:7118 MediaTek Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
mak@ubuntu:~$
well now the both things are working what is the next step to scan modem and to connect it to the Internet.
That's much better!
There is only one more thing to do:
You need a line for your device in "/lib/udev/rules.d/40-usb_modeswitch.rules". Have a look at the other lines, it is really easy to see what has to be done. The line must contain the "7109" product ID.
Once you completed this everything should work automatically, including adding the driver to the modem.
There is only one more thing to do:
You need a line for your device in "/lib/udev/rules.d/40-usb_modeswitch.rules". Have a look at the other lines, it is really easy to see what has to be done. The line must contain the "7109" product ID.
Once you completed this everything should work automatically, including adding the driver to the modem.
Hi,
Josh as per instruction i added simply this line
/// # MediaTek MT7118 Wimax Usb Card (Qubee PK)
ATTRS{idVendor}=="0e8d", ATTRS{idProduct}=="7109", RUN+="usb_modeswitch '%b/%k'" ///
After rule file the result is as under.
mak@ubuntu:~$ sudo usb_modeswitch -I -c /etc/usb_modeswitch.d/0e8d:7109
[sudo] password for mak:
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 004 on bus 001 ...
Getting the current device configuration ...
OK, got current device configuration (1)
Using endpoints 0x02 (out) and 0x81 (in)
Using endpoints 0x02 (out) and 0x81 (in)
USB description data (for identification)
-------------------------
Manufacturer: MediaTek Inc.
Product: WiMAX USB Card
Serial No.: not provided
-------------------------
Looking for active driver ...
OK, driver found ("usb-storage")
OK, driver "usb-storage" detached
Setting up communication with interface 0 ...
Using endpoint 0x02 for message sending ...
Trying to send message 1 to endpoint 0x02 ...
OK, message successfully sent
Reading the response to the message (CSW) ...
OK, response successfully read (13 bytes).
Trying to send message 2 to endpoint 0x02 ...
OK, message successfully sent
Reading the response to message 2 ...
OK, response successfully read (13 bytes).
Resetting response endpoint 0x81
Error resetting endpoint: -19
Resetting message endpoint 0x02
Error resetting endpoint: -19
Device is gone, skipping any further commands
Checking for mode switch (max. 20 times, once per second) ...
Searching for target devices ...
Found target device, now opening
Found correct target device
Mode switch succeeded. Bye.
mak@ubuntu:~$
![Laughing :lol:](./images/smilies/icon_lol.gif)
And when device is plugged in and system boot the result are like this.
mak@ubuntu:~$ lsusb
Bus 005 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 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 005: ID 12d1:1412 Huawei Technologies Co., Ltd.
Bus 002 Device 003: ID 15d9:0a33 Trust International B.V. Optical Mouse
Bus 002 Device 002: ID 03eb:0902 Atmel Corp. 4-Port Hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 0e8d:7109 MediaTek Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
mak@ubuntu:~$ lsmod | grep usb
usbserial 33019 4 option
usbhid 36110 0
hid 67032 1 usbhid
usb_storage 39553 2
mak@ubuntu:~$ sudo modprobe usbserial vendor=0x0e8d product=0x7109
[sudo] password for mak:
mak@ubuntu:~$ lsusb
Bus 005 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 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 005: ID 12d1:1412 Huawei Technologies Co., Ltd.
Bus 002 Device 003: ID 15d9:0a33 Trust International B.V. Optical Mouse
Bus 002 Device 002: ID 03eb:0902 Atmel Corp. 4-Port Hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 0e8d:7109 MediaTek Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
mak@ubuntu:~$ sudo usb_modeswitch -I -c /etc/usb_modeswitch.d/0e8d:7109
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 ...
Getting the current device configuration ...
OK, got current device configuration (1)
Using endpoints 0x02 (out) and 0x81 (in)
Using endpoints 0x02 (out) and 0x81 (in)
USB description data (for identification)
-------------------------
Manufacturer: MediaTek Inc.
Product: WiMAX USB Card
Serial No.: not provided
-------------------------
Looking for active driver ...
OK, driver found ("usb-storage")
OK, driver "usb-storage" detached
Setting up communication with interface 0 ...
Using endpoint 0x02 for message sending ...
Trying to send message 1 to endpoint 0x02 ...
OK, message successfully sent
Reading the response to the message (CSW) ...
OK, response successfully read (13 bytes).
Trying to send message 2 to endpoint 0x02 ...
OK, message successfully sent
Reading the response to message 2 ...
Device seems to have vanished after reading. Good.
Device is gone, skipping any further commands
Checking for mode switch (max. 20 times, once per second) ...
Searching for target devices ...
Found target device, now opening
Found correct target device
Mode switch succeeded. Bye.
mak@ubuntu:~$ lsusb
Bus 005 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 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 005: ID 12d1:1412 Huawei Technologies Co., Ltd.
Bus 002 Device 003: ID 15d9:0a33 Trust International B.V. Optical Mouse
Bus 002 Device 002: ID 03eb:0902 Atmel Corp. 4-Port Hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 0e8d:7118 MediaTek Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
mak@ubuntu:~$
Please tell me in detail the next step.May be i am doing some thing wrong or may be in wrong sequence.
Josh as per instruction i added simply this line
/// # MediaTek MT7118 Wimax Usb Card (Qubee PK)
ATTRS{idVendor}=="0e8d", ATTRS{idProduct}=="7109", RUN+="usb_modeswitch '%b/%k'" ///
After rule file the result is as under.
mak@ubuntu:~$ sudo usb_modeswitch -I -c /etc/usb_modeswitch.d/0e8d:7109
[sudo] password for mak:
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 004 on bus 001 ...
Getting the current device configuration ...
OK, got current device configuration (1)
Using endpoints 0x02 (out) and 0x81 (in)
Using endpoints 0x02 (out) and 0x81 (in)
USB description data (for identification)
-------------------------
Manufacturer: MediaTek Inc.
Product: WiMAX USB Card
Serial No.: not provided
-------------------------
Looking for active driver ...
OK, driver found ("usb-storage")
OK, driver "usb-storage" detached
Setting up communication with interface 0 ...
Using endpoint 0x02 for message sending ...
Trying to send message 1 to endpoint 0x02 ...
OK, message successfully sent
Reading the response to the message (CSW) ...
OK, response successfully read (13 bytes).
Trying to send message 2 to endpoint 0x02 ...
OK, message successfully sent
Reading the response to message 2 ...
OK, response successfully read (13 bytes).
Resetting response endpoint 0x81
Error resetting endpoint: -19
Resetting message endpoint 0x02
Error resetting endpoint: -19
Device is gone, skipping any further commands
Checking for mode switch (max. 20 times, once per second) ...
Searching for target devices ...
Found target device, now opening
Found correct target device
Mode switch succeeded. Bye.
mak@ubuntu:~$
![Laughing :lol:](./images/smilies/icon_lol.gif)
And when device is plugged in and system boot the result are like this.
mak@ubuntu:~$ lsusb
Bus 005 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 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 005: ID 12d1:1412 Huawei Technologies Co., Ltd.
Bus 002 Device 003: ID 15d9:0a33 Trust International B.V. Optical Mouse
Bus 002 Device 002: ID 03eb:0902 Atmel Corp. 4-Port Hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 0e8d:7109 MediaTek Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
mak@ubuntu:~$ lsmod | grep usb
usbserial 33019 4 option
usbhid 36110 0
hid 67032 1 usbhid
usb_storage 39553 2
mak@ubuntu:~$ sudo modprobe usbserial vendor=0x0e8d product=0x7109
[sudo] password for mak:
mak@ubuntu:~$ lsusb
Bus 005 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 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 005: ID 12d1:1412 Huawei Technologies Co., Ltd.
Bus 002 Device 003: ID 15d9:0a33 Trust International B.V. Optical Mouse
Bus 002 Device 002: ID 03eb:0902 Atmel Corp. 4-Port Hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 0e8d:7109 MediaTek Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
mak@ubuntu:~$ sudo usb_modeswitch -I -c /etc/usb_modeswitch.d/0e8d:7109
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 ...
Getting the current device configuration ...
OK, got current device configuration (1)
Using endpoints 0x02 (out) and 0x81 (in)
Using endpoints 0x02 (out) and 0x81 (in)
USB description data (for identification)
-------------------------
Manufacturer: MediaTek Inc.
Product: WiMAX USB Card
Serial No.: not provided
-------------------------
Looking for active driver ...
OK, driver found ("usb-storage")
OK, driver "usb-storage" detached
Setting up communication with interface 0 ...
Using endpoint 0x02 for message sending ...
Trying to send message 1 to endpoint 0x02 ...
OK, message successfully sent
Reading the response to the message (CSW) ...
OK, response successfully read (13 bytes).
Trying to send message 2 to endpoint 0x02 ...
OK, message successfully sent
Reading the response to message 2 ...
Device seems to have vanished after reading. Good.
Device is gone, skipping any further commands
Checking for mode switch (max. 20 times, once per second) ...
Searching for target devices ...
Found target device, now opening
Found correct target device
Mode switch succeeded. Bye.
mak@ubuntu:~$ lsusb
Bus 005 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 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 005: ID 12d1:1412 Huawei Technologies Co., Ltd.
Bus 002 Device 003: ID 15d9:0a33 Trust International B.V. Optical Mouse
Bus 002 Device 002: ID 03eb:0902 Atmel Corp. 4-Port Hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 0e8d:7118 MediaTek Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
mak@ubuntu:~$
Please tell me in detail the next step.May be i am doing some thing wrong or may be in wrong sequence.
Everything looks really good.
Forget about the errors in the output, they are expected because the device is gone already which means the switch succeeded.
With a simple "dmesg" command you can check if the driver has bound to the modem. Look for messages containing "ttyUSB0" or similar. If you see them after switching, you are all set.
Forget about the errors in the output, they are expected because the device is gone already which means the switch succeeded.
With a simple "dmesg" command you can check if the driver has bound to the modem. Look for messages containing "ttyUSB0" or similar. If you see them after switching, you are all set.