Author Message

<  Device Information  ~  Huawei e1612

PostPosted: Tue Nov 17, 2009 12:41 pm Reply with quote
Posts: 1Location: BarcelonaJoined: Tue Nov 17, 2009 11:57 am
In order to make the e1612 work properly I have added the following entry in the usb_modeswitch.conf file (I am using the 1.0.5 version of the usb_modeswitch):

########################################################
# Huawei E1612
#
# Contributor: Genar Codina

DefaultVendor= 0x12d1
DefaultProduct= 0x1446

TargetVendor= 0x12d1
TargetProduct= 0x1446

# only for reference and 0.x versions
# MessageEndpoint=0x01

MessageContent="55534243123456780000000000000011060000000000000000000000000000"

On one hand, in order to make work the E1612 modem in Debian Lenny, connect the e1612 modem to the computer and execute (as root):
/usr/sbin/usb_modeswitch -W -c /etc/usb_modeswitch.conf
After few seconds, you will be able to see the entries /dev/ttyUSB0 /dev/ttyUSB1 and /dev/ttyUSB2, and you will see, executing lsusb, that the product id has changed from 0x1446 to 0x1406.
If you restart the computer with the modem e1612 attached to it, then you will have to execute the same command again.

On the other hand, in order to make work the E1612 modem in Debian Etch, connect the e1612 to the computer and execute (as root):

1) rmmod usbserial
2) modprobe usbserial vendor=0x12d1 product=0x1446
3) /usr/sbin/usb_modeswitch -W -c /etc/usb_modeswitch.conf
4) Wait few seconds and if you execute "lsusb" you will be able to see that the product Id has changed from 0x1446 to 0x1406
5) rmmod usbserial
6) modprobe usbserial vendor=0x12d1 product=0x1406 (and then the entries /dev/ttyUSB0 /dev/ttyUSB1 and /dev/ttyUSB2 will be created).

If you restart the computer (Debian Etch) with the modem attached to it (and you have already executed the previous 6 setps), it is not necessary to repeat the previous steps again, it is only necessary to execute:
1) rmmod usbserial
2) modprobe usbserial vendor=0x12d1 product=0x1406


Offline Profile
PostPosted: Tue Nov 17, 2009 9:35 pm Reply with quote
Site AdminPosts: 6269Joined: Sat Nov 03, 2007 12:30 am
Thanks!
I suppose the differences between the distributions are connected to resets (or not!) of devices or hosts during reboot.

But note that I don't recommend "usbserial" anymore.
Take the better modem driver "option" and tell it your IDs via the "sys" facility:
Code:
# modprobe -v option
# echo "12d1 1446" >/sys/bus/usb-serial/drivers/option1/new_id


Offline Profile

Display posts from previous:  Sort by:

All times are UTC + 1 hour [ DST ]
Page 1 of 1
2 posts
Users browsing this forum: No registered users and 2 guests
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