[SOLVED] Having difficulties to connect to the internet with a USB-UMTS-Modem
SlackwareThis Forum is for the discussion of Slackware Linux.
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.
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
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
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.