#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2009
    Posts
    2
    Rep Power
    0

    Retrieving prepaid information from provider


    Hi,

    I'm currently working on a bit of C# code that uses a Siemens GSM modem to send SMS text messages to alert system administrators of network outages.

    One thing I want to do, is query my provider to make sure my prepaid quota is, lets say over €5,-.

    The problem is that the data that gets returned to me is inconsistent:

    this is taken from a simple putty session to the com port that has the modem attached:

    Code:
    AT+CUSD=1,*101#
    OK
    
    +CUSD: 2,"Uw Prepaid TeGoed ió Euro 0.x5. Geldig tot 24/03/2010.",0
    AT+CUSD=1,*101#
    OK
    
    +CUSD: 2,"Uw Prepaid TeGoed is Euro 0.85. Geldig tot 24/03/2010.",0
    As you can see, the first attempt returns a few garbled characters, and the second attempt returns a correct string.

    All other communication coming back from the GSM device is consistent, except for this.

    Is this something I should talk to my service provider about ?

    Regards

    Jeroen
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2009
    Posts
    2
    Rep Power
    0
    Nevermind.

    Handshaking mismatch between hardware device and Terminal emulator was causing this.
  4. #3
  5. Retired
    Devshed Supreme Being (6500+ posts)

    Join Date
    Feb 2002
    Location
    Finland
    Posts
    9,143
    Rep Power
    2493
    Glad you cracked it. Welcome to the Shed - and good luck.

    Cheers,
    Jamie

    >_ skiFFie ? | Twitter

    __________________

    Let the might of your compassion arise to bring a quick end
    to the flowing stream of the blood and tears .....
    Please hear my anguished words of truth.

    __________________

IMN logo majestic logo threadwatch logo seochat tools logo