Facebook   Twitter    e-mail newsletter    YouTube    RSS Feed    Android App    iPhone and iPad App     BlackBerry App    


Page 1 of 3 1 23 LastLast
Results 1 to 15 of 43

Thread: How to check bundle balance with USSD (gsm-ussd)

  1. #1

    Default How to check bundle balance with USSD (gsm-ussd)

    How can i check the balance remaining on my data bundle WITHOUT moving the SIM to a cellphone and running the USSD command *141#?

    Using: MTN prepaid, Huawei E220 3G modem on Ubuntu/Kubuntu linux

    I heard that minicom can do it, apparently it can execute USSD commands. So i downloaded it -- but i don't have a clue where to start with it.

    Any help gratefully appreciated!
    Last edited by trids; 29-09-2010 at 04:45 PM. Reason: more info in "using"

  2. #2
    Super Grandmaster cbrunsdonza's Avatar
    Join Date
    Jun 2008
    Location
    Somerset West
    Posts
    9,824

    Default

    The only thing I've ever managed to get right with minicom is to freeze up the modem. Not a problem with a local PC but my intention was to use it on remote servers.

    I also found the USSD response too random and was a hit 'n miss for me. Gave up.

    But I'm interested in a solution as I'm looking at something to auto test USSD services we host for our clients.
    Overflow error in /dev/null

  3. #3

    Default

    is there an SMS number you can send a text to to get the balance?

    you could use the vodafone mobile connect software if there is - http://www.betavine.net/bvportal/res...ards/os/ubuntu
    Do NOT construe anything I type as advice

  4. #4

    Default

    If you use the modem for browsing why not register at vodacom4me? Any reason NOT to?
    Last edited by dabbler; 10-11-2012 at 10:09 AM.

  5. #5
    Super Grandmaster ginggs's Avatar
    Join Date
    Jun 2006
    Location
    Good-w00t! Cape Town
    Posts
    7,711

    Default

    Quote Originally Posted by trids View Post
    How can i check the balance remaining on my data bundle WITHOUT moving the SIM to a cellphone and running the USSD command *141#?
    Download gsm-ussd from here.
    I have just tested in Ubuntu 10.10.

    For anyone wanting to use this with a Cell C E1820 make the following changes installing (for version 0.3.3):
    Code:
    sudo nano /usr/bin/gsm-ussd
    change line 45 to read:
    Code:
    my $modemport           = '/dev/ttyUSB3';
    change line 49 to read:
    Code:
    my @ussd_queries        = ( '*101#' );      # Prepaid account query as default
    insert the following at line 349 (important!):
    Code:
        'E1820',
    then:
    Code:
    sudo nano /usr/bin/xussd
    change line 297 to read:
    Code:
    USSD_QUERY='*101#'

  6. #6
    Super Grandmaster cbrunsdonza's Avatar
    Join Date
    Jun 2008
    Location
    Somerset West
    Posts
    9,824

    Default

    Thanks. Trying it on 10.10 but no success with my E220 (but the modem is dodgy and I'm too lazy to throw it in the bin)

    Will try tomorrow at work
    Overflow error in /dev/null

  7. #7
    Super Grandmaster cbrunsdonza's Avatar
    Join Date
    Jun 2008
    Location
    Somerset West
    Posts
    9,824

    Default

    OK, tried a different but no working in 10.10
    Overflow error in /dev/null

  8. #8
    Super Grandmaster ginggs's Avatar
    Join Date
    Jun 2006
    Location
    Good-w00t! Cape Town
    Posts
    7,711

    Default

    Quote Originally Posted by cbrunsdonza View Post
    OK, tried a different but no working in 10.10
    Can you be more specific?

    I should have mentioned, type 'gsm-ussd' for the CLI version and 'xussd' for the gui version.

  9. #9
    Resident Lead Bender Ockie's Avatar
    Join Date
    Feb 2008
    Location
    Henceforth AKA OckieMoto :-)
    Posts
    21,875

    Default

    Quote Originally Posted by dabbler View Post
    If you use the modem for browsing why noy register at vodacom4me? Any reason NOT to?
    Because these are hardened Linux geniuses. They like to take the road less traveled and challenge the Linux kernel gedoente. :-)

    But yes, registering on the vodacom.co.za would be the easy way to do it. :-)
    Now why you loer en kyk gelyk?
    Is ek miskien van goud gemake?

  10. #10
    Member
    Join Date
    Jul 2006
    Location
    Pretoria, South Africa
    Posts
    17

    Default

    Quote Originally Posted by ginggs View Post
    For anyone wanting to use this with a Cell C E1820 make the following changes installing (for version 0.3.3)
    Anyone got this working with the Cell C E1752 yet? I've tried gsm-ussd on Ubuntu 10.04, and just changed line 349 to read 'E1752' instead of 'E1820'. With that line, it times out after 20 seconds without a reply "No answer for 20 seconds!", and if I leave it out, I get the error "Broken command".

  11. #11
    Member
    Join Date
    Jul 2006
    Location
    Pretoria, South Africa
    Posts
    17

    Default

    Okay, I managed to get it working. It seems that my $modemport (line 45 in /usr/bin/gsm-ussd) keeps changing for some obscure reason (might be because I've inserted a faulty microSD card into the usb modem). Eventually I pinned it down to /dev/ttyUSB10 and could get a balance out of it, so I can confirm that gsm-ussd will work on the Cell-C Huawei E1752. Thanks for the instructions @ginggs!

  12. #12

    Default Cell C speedstick and Ubuntu

    Hi there

    I'm using the 7.2Mbps Cell C speedstick with Ubuntu 10.10 and it works lekker lekker. Only problem is, how do I check my usage? On Windows I can check it with the Cell C management software but can I get that on Ubuntu? Or does Cell C have a web interface for checking data usage?

  13. #13
    Member
    Join Date
    Jul 2006
    Location
    Pretoria, South Africa
    Posts
    17

    Default

    @carelvdm:
    Follow ginggs' post above (#5), but on line 349 where he inserts 'E1820', use 'E1752' instead. With the changes made to /usr/bin/gsm-ussd, the following works for me from the commandline:
    Code:
    gsm-ussd -m /dev/`dmesg | grep "usb 1-3" | tail -n 1 -c 8`
    You could probably just use gsm-ussd without the stuff that follows, but for me it keeps switching to a different device, and I need to use the complicated command to keep track of it.

  14. #14
    Resident Lead Bender Ockie's Avatar
    Join Date
    Feb 2008
    Location
    Henceforth AKA OckieMoto :-)
    Posts
    21,875

    Default

    Wow....thanks ginggs....this works 100% for me. Have 1.3Gig left still. Eish...gonna have to find me some lekker downloads before end of the month it seems :-)
    Now why you loer en kyk gelyk?
    Is ek miskien van goud gemake?

  15. #15

    Default

    hey, thanks ginggs, this works great!

    B

    @Home:Ubuntu 11.10 64-bit / Windows 7 Professional 64-bit
    Proud Pentax K-30 Owner!

Page 1 of 3 1 23 LastLast

Tags for this Thread

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •