3g hspa


Code:
sudo usb_modeswitch -v 12d1 -p 1446 -M 55534243123456780000000000000011062000000100000000000000000000

This should switch your dongle. Please run a sudo lsusb before and after and post their output.


P.S.: the string after -M is a pretty long hexadecimal number. You can find it in /etc/usb-modeswitch.d/ or /usr/share/usb_modeswitch/ in the file for the respective device.
 
this means you cannot use the eject method to switch modes on your stick.


Then you need to proceed with usb_modemswitch first, before you can establish any connection to the Internet using the stick.


have you looked into usb-modemswitch yet? Made any progress? Need help?
I typed this in terminal usb-modemswitch and got this info:


Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


Bus 001 Device 003: ID 12d1:141b Huawei Technologies Co., Ltd
 
Last edited by a moderator:
Code:
sudo usb_modeswitch -v 12d1 -p 1446 -M 55534243123456780000000000000011062000000100000000000000000000

This should switch your dongle. Please run a sudo lsusb before and after and post their output.


P.S.: the string after -M is a pretty long hexadecimal number. You can find it in /etc/usb-modeswitch.d/ or /usr/share/usb_modeswitch/ in the file for the respective device.
Entered sudo usb_modeswitch and sudo lsusb and got this from output:


Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


Bus 001 Device 003: ID 12d1:141b Huawei Technologies Co., Ltd
 
Entered sudo usb_modeswitch and sudo lsusb and got this from output:


Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


Bus 001 Device 003: ID 12d1:141b Huawei Technologies Co., Ltd


Congratulations!


You seem to have switched your stick to modem mode!


(ID changed from :1446 to :141b - this was not the expected target ID from the page I linked to, but at least the ID changed!)


After the ID change, are you able to see and use the stick in Network Manager now?
 
Entered sudo usb_modeswitch and sudo lsusb and got this from output:


Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


Bus 001 Device 003: ID 12d1:141b Huawei Technologies Co., Ltd


Congratulations!


You seem to have switched your stick to modem mode!


(ID changed from :1446 to :141b - this was not the expected target ID from the page I linked to, but at least the ID changed!)


After the ID change, are you able to see and use the stick in Network Manager now?
No i can't see my connection in network manager.
 
But you have configured your connection already with right-clicking the network manager icon, choosing "Edit connections" and then "Mobile Broadband" and entering all necessary data?


Then, when the stick has switched its mode, and you left-click on Network Manager, you don't see that connection in the menu of available connections?


Or did you mean something different?


If so, please explain in more detail.
 
But you have configured your connection already with right-clicking the network manager icon, choosing "Edit connections" and then "Mobile Broadband" and entering all necessary data?


Then, when the stick has switched its mode, and you left-click on Network Manager, you don't see that connection in the menu of available connections?


Or did you mean something different?


If so, please explain in more detail.
Ok this is what i've done edit connections done all that and entered apn no. orangeinternet then changed gsm connection 1 to 3G Orange then apply and ok,when the stick has switched its mode which i already done,do you need set it to switch mode if you disconnect the stick and put it back in pandora.


When i press the left on the network manager nothing shows up.
 
LylaT:


>do you need set it to switch mode if you disconnect the stick and put it back in pandora


Yes, every reboot or unplug,replug event


But usb_modeswitch is supposed to change the udev rules so that it is automated


(see http://www.draisberghof.de/usb_modeswitch/ )


That is why (for my friend) I 1st put eject /dev/sdb in rc.local


and later put option in modules.conf (and restored rc.local to original file)


At that time usb_modeswitch was still beta


As I said a few letters back, sudo modprobe option ,,may do the same switch


Pandora has the module option
 
Sadly I've never managed to get udev to work ._. It somehow just doesn't execute the rule even though it recognizes the new device. Or it does execute the rule but the rule is wrong?
 
Sadly I've never managed to get udev to work ._. It somehow just doesn't execute the rule even though it recognizes the new device. Or it does execute the rule but the rule is wrong?
After all the help i got from everyone inc. you was excellent.


After all this i couldn't see the my connection in network manager,will i ever see the connection.
 
Okay, directly below my old howto is one by milkshake:


http://www.gp32x.de/board/index.php?/topic/54318-guide-mobile-broadband-usb-stick-usage/page__view__findpost__p__939350


This is actually a similar model to yours, if not the same.


This should enable your modem in networkmanager. I'm trying it right now with my modem and will report back if it works.


Well it works partially for me, so:


Install usb-modeswitch-data:



Code:
sudo opkg install usb-modeswitch-data



Edit the file /etc/udev/rules.d/usb_modeswitch.rules:



Code:
sudo mousepad /etc/udev/rules.d/usb_modeswitch.rules

and copypaste the following into it:



Code:
SUBSYSTEM=="usb", SYSFS{idProduct}=="1446", SYSFS{idVendor}=="12d1", RUN+="/usr/sbin/usb_modeswitch -c /etc/usb_modeswitch.d/12d1:1446"

then edit /etc/usb_modeswitch.conf:



Code:
sudo mousepad /etc/usb_modeswitch.conf

and copypaste the following into it and save:



Code:
DefaultVendor=0x12d1

DefaultProduct=0x1446


TargetVendor=0x12d1

TargetProduct=0x141b


MessageContent="55534243123456780000000000000011062000000100000000000000000000"

MessageEndpoint=0x01

CheckSuccess=5

Then execute:



Code:
sudo udevadm control --reload-rules

sudo update-modules

and plug in your modem. Networkmanager should recognize it now, just right click on the tray-icon and click "enable mobile broadband"


Now edit your network setting like you did before and everything should work.
 
Last edited by a moderator:
Okay, directly below my old howto is one by milkshake: http://www.gp32x.de/board/index.php?/topic/54318-guide-mobile-broadband-usb-stick-usage/page__view__findpost__p__939350 This is actually a similar model to yours, if not the same. This should enable your modem in networkmanager. I'm trying it right now with my modem and will report back if it works. Well it works partially for me, so: Install usb-modeswitch-data:

Code:
 sudo opkg install usb-modeswitch-data
Edit the file /etc/udev/rules.d/usb_modeswitch.rules:

Code:
 sudo mousepad /etc/udev/rules.d/usb_modeswitch.rules
and copypaste the following into it:

Code:
 SUBSYSTEM=="usb", SYSFS{idProduct}=="1446", SYSFS{idVendor}=="12d1", RUN+="/usr/sbin/usb_modeswitch -c /etc/usb_modeswitch.d/12d1:1446"
then edit /etc/usb_modeswitch.conf:

Code:
 sudo mousepad /etc/usb_modeswitch.conf
and copypaste the following into it and save:

Code:
 DefaultVendor=0x12d1 DefaultProduct=0x1446 TargetVendor=0x12d1 TargetProduct=0x141b MessageContent="55534243123456780000000000000011062000000100000000000000000000" MessageEndpoint=0x01 CheckSuccess=5
Then execute:

Code:
 sudo udevadm control --reload-rules sudo update-modules
and plug in your modem. Networkmanager should recognize it now, just right click on the tray-icon and click "enable mobile broadband" Now edit your network setting like you did before and everything should work.
Your first line for installing sudo opkg install usb-modeswitch-data it won't install.
I did the rest of your installation everything was fine but the first line was the only problem.


He you told me to do this and copypaste the following into it:SUBSYSTEM=="usb", SYSFS{idProduct}=="1446", SYSFS{idVendor}=="12d1", RUN+="/usr/sbin/usb_modeswitch -c /etc/usb_modeswitch.d/12d1:1446" am i suppose to save this before i carry on.
 
Last edited by a moderator:
yes.


Edit: What error are you getting when it won't install?
 
Last edited by a moderator:
Run



Code:
sudo mkdir -p /etc/usb_modeswitch.d/

Then copypaste the following:



Code:
########################################################

# Huawei, newer modems


DefaultVendor= 0x12d1

DefaultProduct=0x1446


TargetVendor=  0x12d1

TargetProductList="1001,1406,140b,140c,1412,141b,14ac"


CheckSuccess=20


MessageContent="55534243123456780000000000000011060000000000000000000000000000"

into /etc/usb_modeswitch.d/12d1:1446 with:



Code:
sudo mousepad /etc/usb_modeswitch.d/12d1:1446

and save. You won't need usb-modeswitch-data now, except if you try to use another modem.
 
Run



Code:
sudo mkdir -p /etc/usb_modeswitch.d/

Then copypaste the following:



Code:
########################################################

# Huawei, newer modems


DefaultVendor= 0x12d1

DefaultProduct=0x1446


TargetVendor=  0x12d1

TargetProductList="1001,1406,140b,140c,1412,141b,14ac"


CheckSuccess=20


MessageContent="55534243123456780000000000000011060000000000000000000000000000"

into /etc/usb_modeswitch.d/12d1:1446 with:



Code:
sudo mousepad /etc/usb_modeswitch.d/12d1:1446

and save. You won't need usb-modeswitch-data now, except if you try to use another modem.
I really couldn't understand the way you explained it to me.


Please explain it step by step.
 
It already is a step-by-step explanation oO


You create the directory with



Code:
sudo mkdir -p /etc/usb_modeswitch.d/

Then open the file /etc/usb_modeswitch.d/12d1:1446 with:



Code:
sudo mousepad /etc/usb_modeswitch.d/12d1:1446

and copypaste this into it and save.



Code:
########################################################

# Huawei, newer modems


DefaultVendor= 0x12d1

DefaultProduct=0x1446


TargetVendor=  0x12d1

TargetProductList="1001,1406,140b,140c,1412,141b,14ac"


CheckSuccess=20


MessageContent="55534243123456780000000000000011060000000000000000000000000000"

Now you don't need to install usb-modeswitch-date and can follow through my post from March 1.


Actually, as the only problem you had was installing usb-modeswitch-data you should now be able to plug in your modem and it should be recognized by networkmanager. If so you should configure your modem in networkmanager and everything should work.
 
Last edited by a moderator:
It already is a step-by-step explanation oO


You create the directory with



Code:
sudo mkdir -p /etc/usb_modeswitch.d/

Then open the file /etc/usb_modeswitch.d/12d1:1446 with:



Code:
sudo mousepad /etc/usb_modeswitch.d/12d1:1446

and copypaste this into it and save.



Code:
########################################################

# Huawei, newer modems


DefaultVendor= 0x12d1

DefaultProduct=0x1446


TargetVendor=  0x12d1

TargetProductList="1001,1406,140b,140c,1412,141b,14ac"


CheckSuccess=20


MessageContent="55534243123456780000000000000011060000000000000000000000000000"

Now you don't need to install usb-modeswitch-date and can follow through my post from March 1.


Actually, as the only problem you had was installing usb-modeswitch-data you should now be able to plug in your modem and it should be recognized by networkmanager. If so you should configure your modem in networkmanager and everything should work.
I've Done all this but still doesn't show up network manager.


Why is this still happening.
 
Last edited by a moderator:
Lylat Wars: Could you post the results of this command for reference please?



Code:
cat /etc/usb_modeswitch.d/12d1:1446

-Neelix
 
Lylat Wars: Could you post the results of this command for reference please?



Code:
cat /etc/usb_modeswitch.d/12d1:1446

-Neelix
Here it is:


########################################################


# Huawei, newer modems


DefaultVendor= 0x12d1


DefaultProduct=0x1446


TargetVendor= 0x12d1


TargetProductList="1001,1406,140b,140c,1412,141b,14ac"


CheckSuccess=20


MessageContent="55534243123456780000000000000011060000000000000000000000000000
 
Back
Top