Author Message

<  Device Information  ~  EDIT ...ignore thead device has been returned to seller

PostPosted: Sun Oct 03, 2010 12:18 pm
Posts: 3Location: australiaJoined: Sun Oct 03, 2010 12:00 pm
Hi

This is my preliminary results without any windows sniffer looking at a new usb 4G dongle.

Without usb-modeswitch installed, it took over 20 seconds for this device to settle and continously pressing UP arrow to repeat lsusb command eventually gave me

Code:
lsusb
Bus 001 Device 012: ID 12d1:380b Huawei Technologies Co., Ltd
(but on next repeat of command lsusb device disappears


The log is more informative. but firstly I found this site from posting at LQ here.
http://www.linuxquestions.org/questions ... le-835856/

2) So I created an udev rule with root powers of course and its contents became

Quote:
# Part of usb-modeswitch-data, version 20100825
#
# This file is intended for USB_ModeSwitch version >= 1.1.4
# but will not break anything if used with versions >= 1.0.3
#

ACTION!="add", GOTO="modeswitch_rules_end"

# This adds a symlink "gsmmodem[n]" to ttyUSB ports with interrupt transfer;
# will work only with wrapper from 1.1.4 and above (otherwise ignored)
KERNEL=="ttyUSB*", DRIVERS=="option1|usbserial", PROGRAM="/usr/sbin/usb_modeswitch_dispatcher --symlink-name %p", SYMLINK="%c"


SUBSYSTEM!="usb", GOTO="modeswitch_rules_end"

# This adds the device ID to the "option" driver after a warm boot
# in cases when the device is yet unknown to the driver
ATTR{bInterfaceClass}=="ff", ATTR{bInterfaceNumber}=="00", RUN+="usb_modeswitch --driver-bind %p %s{idVendor} %s{idProduct} %E{PRODUCT}"

# Most known install partitions are on interface 0, one on 5, one on 9
ATTRS{bInterfaceNumber}!="0[059]", GOTO="modeswitch_rules_end"

# only storage class devices are handled; negative
# filtering here would exclude some quirky devices
ATTRS{bDeviceClass}=="08", GOTO="modeswitch_rules_begin"
ATTRS{bInterfaceClass}=="08", GOTO="modeswitch_rules_begin"
GOTO="modeswitch_rules_end"

LABEL="modeswitch_rules_begin"

# Huawei BM358
ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="380b", RUN+="usb_modeswitch '%b/%k'"


###########EXAMPLES BELOW

# Huawei E630
ATTRS{idVendor}=="1033", ATTRS{idProduct}=="0035", RUN+="usb_modeswitch '%b/%k'"

# Vodafone (Huawei) K3806
ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="14ad", RUN+="usb_modeswitch '%b/%k'"

LABEL="modeswitch_rules_end"


3) Bearing in mind I already knew I had ZERO linux support from the ISP for this device, here is the latest log ....which does cycle with a few attempts to stay cdc

Quote:
Oct 3 17:45:19 sid kernel: usb 1-8: config 1 interface 1 altsetting 0 bulk endpoint 0x1 has invalid maxpacket 256
Oct 3 17:45:19 sid kernel: usb 1-8: New USB device found, idVendor=12d1, idProduct=380b
Oct 3 17:45:19 sid kernel: usb 1-8: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Oct 3 17:45:19 sid kernel: usb 1-8: Product: HUAWEI WiMAX USB Stick
Oct 3 17:45:19 sid kernel: usb 1-8: Manufacturer: HUAWEI Communications
Oct 3 17:45:19 sid kernel: usb 1-8: SerialNumber: 08FF0004
Oct 3 17:45:19 sid kernel: cdc_ether 1-8:1.0: eth1: register 'cdc_ether' at usb-0000:00:1d.7-8, CDC Ethernet Device, 00:16:08:ff:00:04
Oct 3 17:45:20 sid kernel: usb 1-8: USB disconnect, address 15
Oct 3 17:45:20 sid kernel: cdc_ether 1-8:1.0: eth1: unregister 'cdc_ether' usb-0000:00:1d.7-8, CDC Ethernet Device
Oct 3 17:45:20 sid kernel: usb 1-8: new high speed USB device using ehci_hcd and address 16
Oct 3 17:45:20 sid kernel: usb 1-8: config 1 interface 0 altsetting 0 bulk endpoint 0x81 has invalid maxpacket 64
Oct 3 17:45:20 sid kernel: usb 1-8: config 1 interface 0 altsetting 0 bulk endpoint 0x1 has invalid maxpacket 64
Oct 3 17:45:20 sid kernel: usb 1-8: New USB device found, idVendor=12d1, idProduct=380b
Oct 3 17:45:20 sid kernel: usb 1-8: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Oct 3 17:45:20 sid kernel: usb 1-8: Product: HUAWEI WiMAX USB Stick
Oct 3 17:45:20 sid kernel: usb 1-8: Manufacturer: HUAWEI Communications
Oct 3 17:45:20 sid kernel: usb 1-8: SerialNumber: 08FF0004
Oct 3 17:45:20 sid kernel: scsi11 : usb-storage 1-8:1.0
Oct 3 17:45:21 sid kernel: scsi 11:0:0:0: CD-ROM HUAWEI Mass Storage 1.00 PQ: 0 ANSI: 2
Oct 3 17:45:21 sid kernel: sr1: scsi3-mmc drive: 0x/0x caddy
Oct 3 17:45:21 sid kernel: sr 11:0:0:0: Attached scsi generic sg2 type 5
Oct 3 17:45:21 sid kernel: usb 1-8: reset high speed USB device using ehci_hcd and address 16
Oct 3 17:45:21 sid kernel: usb 1-8: reset high speed USB device using ehci_hcd and address 16
Oct 3 17:45:22 sid kernel: usb 1-8: reset high speed USB device using ehci_hcd and address 16
Oct 3 17:45:22 sid kernel: usb 1-8: reset high speed USB device using ehci_hcd and address 16
Oct 3 17:45:22 sid kernel: usb 1-8: reset high speed USB device using ehci_hcd and address 16
Oct 3 17:45:22 sid kernel: usb 1-8: reset high speed USB device using ehci_hcd and address 16
Oct 3 17:45:23 sid kernel: usb 1-8: reset high speed USB device using ehci_hcd and address 16
Oct 3 17:45:23 sid kernel: usb 1-8: reset high speed USB device using ehci_hcd and address 16
Oct 3 17:45:23 sid kernel: usb 1-8: USB disconnect, address 16



4) Before I try to investigate it with wine and the sniffer .....I wish to point out some obvious points in my mind.....in case it matters

a) lsusb shows the device and then kills it very quickly....making it hard for me to get the PID
I am unable to issue command eject sr1.....the device is killed too quickly for my typing skills

b) the log shows the cdc device becomes active for one second before dropping back to storage device......

c) But with my previous experience of manully udev rules for a 3G device.....it should be the other way around.....it should be a storage device and then flip to modem

d) the USB disconnect is an issue for me......its stopping my attempt to use ifconfig eth1 commands to try and "internet" it

e) I attempted to use downloaded exe thru WINE but it crashed

f) unlike my previous experience with a 3G device, I have never got this modem to show up in a automount cd system that I am using which is Debian Sid.

I do not have strong networking skills as I have been spoilt with an normal ethernet router that is wired.

Questions if I may

Does anyone thing I am going about this the right way?

Does anyone know how to use a CDC ethernet device.....google has not been kind to me on this matter

thanks


Last edited by aus9 on Fri Oct 08, 2010 11:36 am, edited 1 time in total.

Offline Profile
PostPosted: Tue Oct 05, 2010 9:19 pm
Site AdminPosts: 4855Joined: Sat Nov 03, 2007 12:30 am
Do you have a kernel of the 2.6.31 series? There were some problems with Huawei not following the standards regarding certain storage commands which was exposed in one of these versions; this results in a constant resetting which often throws the device back in the pre-switch state, thus cycling it over and over again.

The cdc_ether driver seems to be binding o.k., but I have no idea how to use the interface ...



Offline Profile
PostPosted: Wed Oct 06, 2010 12:34 am
Posts: 3Location: australiaJoined: Sun Oct 03, 2010 12:00 pm
hi

I have tried it on 2 different distros

the one posted is a 2.6.35 kernel and tinycore uses a 2.6.33

2) I have got the windows sniffer program running thru wine.....but at no stage do I see any info at all.

3) As kernels may be an issue I shall try a few though.

4) I have done something a bit different as well.

I wrote down a start time to insert usb device....then insert it....then read log after one minute.

The cycling appears.....not much I can do about that....but I created an udev rule with no modeswitch udev rule....to try and bring up eth1.....without knowing what I was doing.

so far that is a fail as well.

5) I have cross posted in a few forums hoping to find out how to use a cdc device because that will be an issue if I ever solve the cycling issue.

regards


Offline Profile
PostPosted: Fri Oct 08, 2010 11:37 am
Posts: 3Location: australiaJoined: Sun Oct 03, 2010 12:00 pm
hi

device has been refunded so pls ignore thread.

PS the sales guy claims ubuntu users using wine have been able to connect ...but my version of wine crashed.


Offline Profile

Display posts from previous:  Sort by:

All times are UTC + 1 hour [ DST ]
Page 1 of 1
4 posts
Users browsing this forum: Google [Bot] and 1 guest
Search for:
Post new topic  Reply to topic
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum