[SOLVED] Having difficulties to connect to the internet with a USB-UMTS-Modem
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
simple workaround: put the sim card into a mobile phone, disable the pin.
more complicated workaround: use minicom or 'screen /dev/ttyUSB0' to talk to your modem, after initalizing and sending the pin you can issue a command like 'at+clck="sc",0,"XXXX", see here, pp. 20sq.
thanks for the link, I was searching for such a documentation, I'll try that tomorrow.
But I don't want to disable the PIN. I want to use the stick also outside my home and don't want anyone to use my data-flatrate for free
Has anyone used comgt in order to configure GSM-connections? I found it on slackbuilds.org
i'm not sure whether chat actually does anything more than 'send and wait for reply', so don't think you can really include if-else statements. man 8 chat claims that
Quote:
The expect sequence should contain only what is needed to identify the
string. Since it is normally stored on a disk file, it should not con‐
tain variable information. It is generally not acceptable to look for
time strings, network identification strings, or other variable pieces
of data as an expect string.
i believe that comgt only works on devices produced by option.
you could try playing around with udev. add a rule run after /dev/ttyUSB0 has been created that executes a shellscript. a very ugly script would include something like
Code:
echo -e "ATZ\n" > /dev/ttyUSB0; sleep 1
... possible other init strings ...
echo -e "at+cpin=xxxx\n" > /dev/ttyUSB0
maybe you will need "\r\n" instead. if you are interested in this kind of stuff, i recommend the pyserial package (the version on slackbuilds is outdated)
it works, afterwards I can connect to the internet with the above scripts.
Note that the only valuable documentation I could find for comgt is it's manpage. It is more or less a scripting-language (they say "like Basic") which is far more flexible than chat which comes with the ppp-package.
There's also umtsmon that provides a nice gui to play with that deals with pin codes etc. Available as source code from sourceforge
Does it compile on current? I tried umtsmon, but it did not compile, it's a relatively old release from 2009. I would be very interested in using this packages, as far as I understood, it can also check the datavolume.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.