Activation Codes and Methods, Hardware Details, Sniffing
Post Reply
oliver
Posts: 4
Joined: Fri Jan 16, 2015 6:53 pm

IMHO new device information: MEDION S4222

Post by oliver » Fri Jan 16, 2015 7:46 pm

Hi.

IMHO I've new information about a device:

The device is:
* It is a USB-Modem-Stick
* Company: MEDION
* Type: S4222
* Link of the product
* I use it for this telecommunication service provider: Hofer Telekom (HoT)

My system is the following:
System: Kernel: 3.13.0-37-generic x86_64 (64 bit, gcc: 4.8.2)
Desktop: Gnome Distro: Linux Mint 17.1 Rebecca
Machine: System: Hewlett-Packard (portable) product: HP Pavilion 17 Notebook PC
Mobo: Hewlett-Packard model: 226A version: 73.25
HP Pavilion 17-f151ng (K0W64EA)
Bios: American Megatrends version: F.29 date: 08/14/2014
CPU: Quad core AMD A8-6410 APU with AMD Radeon R5 Graphics

Version information of the SW packages:
* usb-modeswitch-data, Ver.: 20140327-1
* usb-modeswitch, Ver.: 2.1.1+repack0-1ubuntu1

What I did:
I used the config file 0e8d:0002:uPr=MT (from /usr/share/usb_modeswitch/configPack.tar.gz) and changed it in the following ways:
* 1.: I copied this file to /etc/usb_modeswitch.d
* 2.: I renamed it to 0e8d:0002
* 3.: I added the entries:

Code: Select all

        DefaultVendor= 0x0e8d
        DefaultProduct=0x0002
So the name of my config file is 0e8d:0002, and its content is:

Code: Select all

# MediaTek MT6276M
DefaultVendor= 0x0e8d
DefaultProduct=0x0002
TargetVendor=0x0e8d
TargetProductList="00a1,00a2"
MessageContent="555342431234567800000000000006f0010300000000000000000000000000"
With these changes it was possible that, in case the above described USB-Modem-Stick is attached to the system, the USB-Modem-Stick could be identified by my system as a modem. And with this it is possible for me to get an Internet connection.
An output of lsusb, after usb-modeswitch did its work, results in:

Code: Select all

Bus 003 Device 007: ID 0e8d:00a5 MediaTek Inc.
Attention: Since it seems that in my operating system are not the latest versions of the usb-modeswitch packages already integrated, 00a5 is not part of the TargetProductList in my config file. Although it is working as described above.

Attention: What I don't know:
In the file 0e8d:0002:uPr=MT is also stated "MediaTek MT6276M and others", but I don't know if the above described USB-Modem-Stick contains the MediaTek MT6276M chipset or an other one.

I hope this helps, and I have nothing forgotten.

Regards
Oliver.

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

Re: IMHO new device information: MEDION S4222

Post by Josh » Fri Jan 16, 2015 8:44 pm

oliver wrote:00a5 is not part of the TargetProductList in my config file. Although it is working as described above.
It was added for the previous release of the data package (version 20140529).
The name part that you removed was added because of conflicts with MediaTek phones.
See this bug report.

So you can't just remove it without reviving the bug ...

If your modem did not trigger the mode switch with the existing config file, its USB product name may be different and not contain the string "MT".

To figure out what to do you can enable logging of usb_modeswitch (see file "/etc/usb_modeswitch.conf") and post the full log here - after re-plugging your modem, of course.
oliver wrote:In the file 0e8d:0002:uPr=MT is also stated "MediaTek MT6276M and others", but I don't know if the above described USB-Modem-Stick contains the MediaTek MT6276M chipset or an other one.
USB IDs are usually more reliable when identifying the original maker and type of a device than model names are. There is so much re-branding going on that a name does not tell you much.

oliver
Posts: 4
Joined: Fri Jan 16, 2015 6:53 pm

Re: IMHO new device information: MEDION S4222

Post by oliver » Fri Jan 16, 2015 9:08 pm

Hi Josh.

IMHO I can remove the part of the file name on my PC, cause with this it works. The more important question is what the package owner will do inside the official package. This for sure I can not decide.

Thank you for the information of the logging (I used it during my task to get the whole system running). Here are the log-file contents of usb_modeswitch.log in two cases:

1. In case I've added my config-file 0e8d:0002 to /etc/usb_modeswitch.d/ (in this case my system is working):

Code: Select all


USB_ModeSwitch log from Fri Jan 16 19:54:54 2015

Use global config file: /etc/usb_modeswitch.conf


Started via upstart
Raw args from udev: /3-2

Bus ID for device not given by udev.
 Trying to determine it from kernel name (3-2) ...
Use top device dir /sys/bus/usb/devices/3-2

USB dir exists: /sys/bus/usb/devices/3-2

SCSI dir exists: /sys/bus/usb/devices/3-2
Warning: SCSI attribute "vendor" not readable.
Warning: SCSI attribute "model" not readable.
Warning: SCSI attribute "rev" not readable.
Use interface /sys/bus/usb/devices/3-2/3-2:1.0
----------------
USB values from sysfs:
  idVendor	0e8d
  idProduct	0002
  manufacturer	MediaTek Inc
  product	Product
  serial	683694201007980
  bNumConfigurations	3
----------------
Found packed config collection /usr/share/usb_modeswitch/configPack.tar.gz
Searching entries named: /usr/share/usb_modeswitch/0e8d:0002*
Searching overriding entries named: /etc/usb_modeswitch.d/0e8d:0002*
SCSI attributes not needed, move on.

match uPr
  match string: MT
 device string: Product
Use overriden config 0e8d:0002 from collection /etc/usb_modeswitch.d
config: TargetVendor set to 0e8d
config: TargetProduct set to 00a1,00a2
Driver module is "option", ID path is /sys/bus/usb-serial/drivers/option1
! matched, now switching
Device may have an MBIM configuration, check driver ...
 driver for MBIM devices is available
Find MBIM configuration number ...
 No MBIM configuration found, switch to legacy modem mode
Command to be run:
/usr/sbin/usb_modeswitch -W -D -s 20 -c /etc/usb_modeswitch.d/0e8d:0002 (null)   -v 0e8d -p 0002 2>&1

Verbose debug output of usb_modeswitch and libusb follows
(Note that some USB errors are expected in the process)
--------------------------------

Read config file: /etc/usb_modeswitch.d/0e8d:0002

 * usb_modeswitch: handle USB devices with multiple modes
 * Version 2.1.1 (C) Josua Dietze 2014
 * Based on libusb1/libusbx

 ! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x0e8d
DefaultProduct= 0x0002
TargetVendor=   0x0e8d
TargetProductList="00a1,00a2"
MessageContent="555342431234567800000000000006f0010300000000000000000000000000"
NeedResponse=0
Success check enabled, max. wait time 20 seconds
System integration mode enabled

Look for target devices ...
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0e8d:0002
   vendor ID matched
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 No devices in target mode or class found
Look for default devices ...
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0e8d:0002
   vendor ID matched
   product ID matched
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 Found devices in default mode (1)
Access device 008 on bus 003
Current configuration number is 1
Use interface number 0
Use endpoints 0x01 (out) and 0x81 (in)

USB description data (for identification)
-------------------------
Manufacturer: MediaTek Inc
     Product: Product
  Serial No.: 683694201007980
-------------------------
Looking for active driver ...
 OK, driver detached
Set up interface 0
Use endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
 OK, message successfully sent
Reset response endpoint 0x81
Reset message endpoint 0x01
 Device is gone, skip any further commands

Check for mode switch (max. 20 times, once per second) ...
 Search for target devices ...
  found USB ID 0e8d:00a5
   vendor ID matched
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 Search for target devices ...
  found USB ID 0e8d:00a5
   vendor ID matched
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 Search for target devices ...
  found USB ID 0e8d:00a5
   vendor ID matched
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 Search for target devices ...
  found USB ID 0e8d:00a5
   vendor ID matched
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 Search for target devices ...
  found USB ID 0e8d:00a5
   vendor ID matched
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 Search for target devices ...
  found USB ID 0e8d:00a5
   vendor ID matched
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 Search for target devices ...
  found USB ID 0e8d:00a5
   vendor ID matched
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 Search for target devices ...
  found USB ID 0e8d:00a5
   vendor ID matched
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 Search for target devices ...
  found USB ID 0e8d:00a5
   vendor ID matched
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 Search for target devices ...
  found USB ID 0e8d:00a5
   vendor ID matched
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 Search for target devices ...
  found USB ID 0e8d:00a5
   vendor ID matched
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 Search for target devices ...
  found USB ID 0e8d:00a5
   vendor ID matched
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 Search for target devices ...
  found USB ID 0e8d:00a5
   vendor ID matched
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 Search for target devices ...
  found USB ID 0e8d:00a5
   vendor ID matched
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 Search for target devices ...
  found USB ID 0e8d:00a5
   vendor ID matched
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 Search for target devices ...
  found USB ID 0e8d:00a5
   vendor ID matched
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 Search for target devices ...
  found USB ID 0e8d:00a5
   vendor ID matched
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 Search for target devices ...
  found USB ID 0e8d:00a5
   vendor ID matched
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 Search for target devices ...
  found USB ID 0e8d:00a5
   vendor ID matched
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 Search for target devices ...
  found USB ID 0e8d:00a5
   vendor ID matched
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 No new devices in target mode or class found

Mode switch has failed. Bye!

fail:
--------------------------------
(end of usb_modeswitch output)

USB dir exists: /sys/bus/usb/devices/3-2
Warning: USB attribute "serial" not readable.

All done, exit
2. In case I've removed my config-file 0e8d:0002 from /etc/usb_modeswitch.d/ (in this case my system is not working):

Code: Select all


USB_ModeSwitch log from Fri Jan 16 19:57:03 2015

Use global config file: /etc/usb_modeswitch.conf


Started via upstart
Raw args from udev: /3-2

Bus ID for device not given by udev.
 Trying to determine it from kernel name (3-2) ...
Use top device dir /sys/bus/usb/devices/3-2

USB dir exists: /sys/bus/usb/devices/3-2

SCSI dir exists: /sys/bus/usb/devices/3-2
Warning: SCSI attribute "vendor" not readable.
Warning: SCSI attribute "model" not readable.
Warning: SCSI attribute "rev" not readable.
Use interface /sys/bus/usb/devices/3-2/3-2:1.0
----------------
USB values from sysfs:
  idVendor	0e8d
  idProduct	0002
  manufacturer	MediaTek Inc
  product	Product
  serial	683694201007980
  bNumConfigurations	3
----------------
Found packed config collection /usr/share/usb_modeswitch/configPack.tar.gz
Searching entries named: /usr/share/usb_modeswitch/0e8d:0002*
Searching overriding entries named: /etc/usb_modeswitch.d/0e8d:0002*
SCSI attributes not needed, move on.

match uPr
  match string: MT
 device string: Product
Aargh! Config file missing for 0e8d:0002! Exiting.

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

Re: IMHO new device information: MEDION S4222

Post by Josh » Fri Jan 16, 2015 10:23 pm

Yes, this is to be expected.

Try appending your configuration name with "uPr=Product".
The full name should then be "0e8d:0002:uPr=Product".

This should work and still not affect those phones.

oliver
Posts: 4
Joined: Fri Jan 16, 2015 6:53 pm

Re: IMHO new device information: MEDION S4222

Post by oliver » Fri Jan 16, 2015 10:57 pm

I did as requested by you. It still works. The output of the log-file is more or less the same as in posting "PostPosted: Fri Jan 16, 2015 9:08 pm", point 1:

Code: Select all


USB_ModeSwitch log from Fri Jan 16 21:45:34 2015

Use global config file: /etc/usb_modeswitch.conf


Started via upstart
Raw args from udev: /3-2

Bus ID for device not given by udev.
 Trying to determine it from kernel name (3-2) ...
Use top device dir /sys/bus/usb/devices/3-2

USB dir exists: /sys/bus/usb/devices/3-2

SCSI dir exists: /sys/bus/usb/devices/3-2
Warning: SCSI attribute "vendor" not readable.
Warning: SCSI attribute "model" not readable.
Warning: SCSI attribute "rev" not readable.
Use interface /sys/bus/usb/devices/3-2/3-2:1.0
----------------
USB values from sysfs:
  idVendor	0e8d
  idProduct	0002
  manufacturer	MediaTek Inc
  product	Product
  serial	683694201007980
  bNumConfigurations	3
----------------
Found packed config collection /usr/share/usb_modeswitch/configPack.tar.gz
Searching entries named: /usr/share/usb_modeswitch/0e8d:0002*
Searching overriding entries named: /etc/usb_modeswitch.d/0e8d:0002*
SCSI attributes not needed, move on.

match uPr
  match string: MT
 device string: Product
match uPr
  match string: Product
 device string: Product
Use overriden config 0e8d:0002:uPr=Product from collection /etc/usb_modeswitch.d
config: TargetVendor set to 0e8d
config: TargetProduct set to 00a1,00a2
Driver module is "option", ID path is /sys/bus/usb-serial/drivers/option1
! matched, now switching
Device may have an MBIM configuration, check driver ...
 driver for MBIM devices is available
Find MBIM configuration number ...
 No MBIM configuration found, switch to legacy modem mode
Command to be run:
/usr/sbin/usb_modeswitch -W -D -s 20 -c /etc/usb_modeswitch.d/0e8d:0002:uPr=Product (null)   -v 0e8d -p 0002 2>&1

Verbose debug output of usb_modeswitch and libusb follows
(Note that some USB errors are expected in the process)
--------------------------------

Read config file: /etc/usb_modeswitch.d/0e8d:0002:uPr=Product

 * usb_modeswitch: handle USB devices with multiple modes
 * Version 2.1.1 (C) Josua Dietze 2014
 * Based on libusb1/libusbx

 ! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x0e8d
DefaultProduct= 0x0002
TargetVendor=   0x0e8d
TargetProductList="00a1,00a2"
MessageContent="555342431234567800000000000006f0010300000000000000000000000000"
NeedResponse=0
Success check enabled, max. wait time 20 seconds
System integration mode enabled

Look for target devices ...
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0e8d:0002
   vendor ID matched
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 No devices in target mode or class found
Look for default devices ...
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0e8d:0002
   vendor ID matched
   product ID matched
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 Found devices in default mode (1)
Access device 016 on bus 003
Current configuration number is 1
Use interface number 0
Use endpoints 0x01 (out) and 0x81 (in)

USB description data (for identification)
-------------------------
Manufacturer: MediaTek Inc
     Product: Product
  Serial No.: 683694201007980
-------------------------
Looking for active driver ...
 OK, driver detached
Set up interface 0
Use endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
 OK, message successfully sent
Reset response endpoint 0x81
Reset message endpoint 0x01
 Device is gone, skip any further commands

Check for mode switch (max. 20 times, once per second) ...
 Search for target devices ...
  found USB ID 0e8d:00a5
   vendor ID matched
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 Search for target devices ...
  found USB ID 0e8d:00a5
   vendor ID matched
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 Search for target devices ...
  found USB ID 0e8d:00a5
   vendor ID matched
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 Search for target devices ...
  found USB ID 0e8d:00a5
   vendor ID matched
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 Search for target devices ...
  found USB ID 0e8d:00a5
   vendor ID matched
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 Search for target devices ...
  found USB ID 0e8d:00a5
   vendor ID matched
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 Search for target devices ...
  found USB ID 0e8d:00a5
   vendor ID matched
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 Search for target devices ...
  found USB ID 0e8d:00a5
   vendor ID matched
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 Search for target devices ...
  found USB ID 0e8d:00a5
   vendor ID matched
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 Search for target devices ...
  found USB ID 0e8d:00a5
   vendor ID matched
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 Search for target devices ...
  found USB ID 0e8d:00a5
   vendor ID matched
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 Search for target devices ...
  found USB ID 0e8d:00a5
   vendor ID matched
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 Search for target devices ...
  found USB ID 0e8d:00a5
   vendor ID matched
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 Search for target devices ...
  found USB ID 0e8d:00a5
   vendor ID matched
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 Search for target devices ...
  found USB ID 0e8d:00a5
   vendor ID matched
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 Search for target devices ...
  found USB ID 0e8d:00a5
   vendor ID matched
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 Search for target devices ...
  found USB ID 0e8d:00a5
   vendor ID matched
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 Search for target devices ...
  found USB ID 0e8d:00a5
   vendor ID matched
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 Search for target devices ...
  found USB ID 0e8d:00a5
   vendor ID matched
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 Search for target devices ...
  found USB ID 0e8d:00a5
   vendor ID matched
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 No new devices in target mode or class found

Mode switch has failed. Bye!

fail:
--------------------------------
(end of usb_modeswitch output)

USB dir exists: /sys/bus/usb/devices/3-2
Warning: USB attribute "serial" not readable.

All done, exit
Thank you for the fast support.

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

Re: IMHO new device information: MEDION S4222

Post by Josh » Sat Jan 17, 2015 1:25 am

Now just add your target product ID to the list, and you will get a success message.

I have noted this addition for the next data package release. Thanks for reporting the device!

oliver
Posts: 4
Joined: Fri Jan 16, 2015 6:53 pm

Re: IMHO new device information: MEDION S4222

Post by oliver » Sat Jan 17, 2015 1:02 pm

As suggested by you I've added the product ID to the list, and as expected by you I get a success message in the log file:

Code: Select all


USB_ModeSwitch log from Sat Jan 17 11:46:10 2015

Use global config file: /etc/usb_modeswitch.conf


Started via upstart
Raw args from udev: /3-2

Bus ID for device not given by udev.
 Trying to determine it from kernel name (3-2) ...
Use top device dir /sys/bus/usb/devices/3-2

USB dir exists: /sys/bus/usb/devices/3-2

SCSI dir exists: /sys/bus/usb/devices/3-2
Warning: SCSI attribute "vendor" not readable.
Warning: SCSI attribute "model" not readable.
Warning: SCSI attribute "rev" not readable.
Use interface /sys/bus/usb/devices/3-2/3-2:1.0
----------------
USB values from sysfs:
  idVendor	0e8d
  idProduct	0002
  manufacturer	MediaTek Inc
  product	Product
  serial	683694201007980
  bNumConfigurations	3
----------------
Found packed config collection /usr/share/usb_modeswitch/configPack.tar.gz
Searching entries named: /usr/share/usb_modeswitch/0e8d:0002*
Searching overriding entries named: /etc/usb_modeswitch.d/0e8d:0002*
SCSI attributes not needed, move on.

match uPr
  match string: MT
 device string: Product
match uPr
  match string: Product
 device string: Product
Use overriden config 0e8d:0002:uPr=Product from collection /etc/usb_modeswitch.d
config: TargetVendor set to 0e8d
config: TargetProduct set to 00a1,00a2,00a5
Driver module is "option", ID path is /sys/bus/usb-serial/drivers/option1
! matched, now switching
Device may have an MBIM configuration, check driver ...
 no MBIM driver found, switch to legacy modem mode
Command to be run:
/usr/sbin/usb_modeswitch -W -D -s 20 -c /etc/usb_modeswitch.d/0e8d:0002:uPr=Product (null)   -v 0e8d -p 0002 2>&1

Verbose debug output of usb_modeswitch and libusb follows
(Note that some USB errors are expected in the process)
--------------------------------

Read config file: /etc/usb_modeswitch.d/0e8d:0002:uPr=Product

 * usb_modeswitch: handle USB devices with multiple modes
 * Version 2.1.1 (C) Josua Dietze 2014
 * Based on libusb1/libusbx

 ! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x0e8d
DefaultProduct= 0x0002
TargetVendor=   0x0e8d
TargetProductList="00a1,00a2,00a5"
MessageContent="555342431234567800000000000006f0010300000000000000000000000000"
NeedResponse=0
Success check enabled, max. wait time 20 seconds
System integration mode enabled

Look for target devices ...
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0e8d:0002
   vendor ID matched
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 No devices in target mode or class found
Look for default devices ...
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0e8d:0002
   vendor ID matched
   product ID matched
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002
 Found devices in default mode (1)
Access device 003 on bus 003
Current configuration number is 1
Use interface number 0
Use endpoints 0x01 (out) and 0x81 (in)

USB description data (for identification)
-------------------------
Manufacturer: MediaTek Inc
     Product: Product
  Serial No.: 683694201007980
-------------------------
Looking for active driver ...
 OK, driver detached
Set up interface 0
Use endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
 OK, message successfully sent
Reset response endpoint 0x81
Reset message endpoint 0x01
 Device is gone, skip any further commands

Check for mode switch (max. 20 times, once per second) ...
 Search for target devices ...
  found USB ID 0e8d:00a5
   vendor ID matched
   product ID matched
  found USB ID 04f2:b40e
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 0bda:b001
  found USB ID 0438:7900
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 0461:4d0f
  found USB ID 1d6b:0002

Found target device, open it

Found target device 004 on bus 003

Target device description data
-------------------------
Manufacturer: MediaTek Inc
     Product: Product
  Serial No.: not provided
-------------------------
 Found correct target device

Mode switch succeeded. Bye!

ok:no_data
--------------------------------
(end of usb_modeswitch output)
Check success of mode switch for max. 20 seconds ... Read attributes ...
USB dir exists: /sys/bus/usb/devices/3-2
Warning: USB attribute "serial" not readable.
 All attributes matched
Mode switching was successful, found 0e8d:00a5 (MediaTek Inc: Product)Now check for bound driver ...
 no driver has bound to interface 0 yet
Device not in "bind_list" yet, bind it now
Module loader is /sbin/modprobe
Module is active already
Try to add ID to driver "option"
 ID added to driver; check for new devices in /dev
 driver binding failed
Check for AVOID_RESET_QUIRK kernel attribute
 AVOID_RESET_QUIRK activated

All done, exit
Thank you again!

AadenrsSceehrr
Posts: 1
Joined: Tue Jun 30, 2015 10:02 am

Re: IMHO new device information: MEDION S4222

Post by AadenrsSceehrr » Tue Jun 30, 2015 10:29 am

Dear Oliver and Josua,

thanks a lot for your fine work. It helped to get the webstick working, including the SMS section. Here in Germany, the item is commonly sold as 'ALDI TALK Webstick' and the provider 'ALDI TALK/MedionMobile' can be selected in the NetworkManager configuration.
oliver wrote: Version information of the SW packages:
* usb-modeswitch-data, Ver.: 20140327-1
* usb-modeswitch, Ver.: 2.1.1+repack0-1ubuntu1
On my notebook (Samsung R50 as of 2005) with Kubuntu 12.04.5 LTS, I use the system packages
* usb-modeswitch, 1.2.3+repack0-1ubuntu2
* usb-modeswitch-data, 20120120-0ubuntu1
augmented with the relevant lines/file from your description resp. from
* usb-modeswitch-data, 20150115
(The current usb-modeswitch 2.2.1 compiled fine, but I didn't replace the binaries/scripts yet.)

After plugging in the device it takes about 30 seconds for the PIN dialog to show up. Then I can actvate 'Mobile Breitbandverbindungen' and start 'ALDI TALK/MedionMobile' at APN 'internet.eplus.de' with the 30 days XL flatrate. The whole process works without problems repeatedly.

Cheers, Andreas

Post Reply