beta
Hello developer. Login with your existing account. New to Vodafone Developer? Register your account.

+ Login or create an account

0

Hi

I'm fairly new to linux - I use a Huawei E220 USB modem (marketed by Vodafone NZ as a Vodem). I am using Linux Mint 11. The device connects correctly using the software provided by the vodafone betavine team, but I have to manually open the software and click the "connect" button. I am looking for a way to use this device on a remote PC, so won't physically be there to click the "connect" button. The Betavine team tell me there is no command-line connect/disconnect option for their piece of software. My question is, can I get linux to connect the device to the internet using some other method? Can the ifup and ifdown commands be used with a USB modem to connect/disconnect the device? These seem to work with eth0 for a wired connection - how do i make this work for a USB modem?

Thanks for any help, appreciate it

Rich

3 Answers:

0

Thanks very much lubuuser! I have been able to get ixconn to work with this device. You were right, I had to change the settings from USB2 to USB1. Yes, not sure how I'll close the connection so will investigate using pkill in a script maybe?? Steep learning curve but good fun! Thanks very much for your help.

0

Wow, thanks for that - heaps to try!

Thanks again

Rich

0

I understand that Linux Mint will successfully install and run most packages written for Ubuntu. You could therefore try this, which works in Lubuntu 11.10, using the Betavine packages for Ubuntu 11.04 together with the ixconn package available from http://www.mwconn.net/download_ixconn.html .

[A bit of explanation here. Betavine has not yet come out with a version of BCM for Ubuntu 11.10, and the version for Ubuntu 11.04 does not work in Lubuntu 11.10. However, the various Betavine packages contain drivers for the Huawei 220 which can be used by other connection software such as ixconn or the software built in to Ubuntu. Without the drivers from Betavine, those other connection managers don’t work for the Huawei 220.]

Once you have Betavine and ixconn installed, with ixconn configured for your mobile account, ixconn normally connects by a click on its icon. Alternatively, you can initiate the connection with the command:

/usr/bin/ixconn

(You must use the full path. If you just enter “ixconn” you will start the installation wizard instead of making a connection.)

That will start the connection, but I don’t know how you are going to end it remotely. Will you be able to send “Ctrl + C” from your remote computer?

A warning about configuring ixconn for the Huawei 220. If you let ixconn configure it automatically, you will have to correct one thing manually. Under the “Device” tab there is an item called “Command Port”. ixconn sets this automatically to “/dev/ttyUSB2“, but in most circumstances it ought to be “/dev/ttyUSB1“. You can check this by running dmesg. After an unusual disconnection of the modem, it will sometimes reconnect to ttyUSB2, but nearly all the time it will be ttyUSB1. If in doubt, reboot and the modem will connect to ttyUSB1 again. (This connection is usually called the “Control Port” in English. For ixconn, everything was originally written in German. On the whole, the English translation is excellent, but this particular expression “Command Port” might be a bit puzzling.)

edited 25 weeks ago
1 comment
  1. Another point, since you say you are new to Linux. When you connect with ixconn, the connection ends when ixconn stops running. Therefore, if you want to execute other commands while connected, you will have to enter them in another terminal or else make ixconn run in the background. - (5 months, 3 weeks ago) lubuuser

Login and answer the question