December 29th, 2009, 04:38 AM
Retrieving prepaid information from provider
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:
As you can see, the first attempt returns a few garbled characters, and the second attempt returns a correct string.
+CUSD: 2,"Uw Prepaid TeGoed ió Euro 0.x5. Geldig tot 24/03/2010.",0
+CUSD: 2,"Uw Prepaid TeGoed is Euro 0.85. Geldig tot 24/03/2010.",0
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 ?
December 30th, 2009, 04:12 AM
Handshaking mismatch between hardware device and Terminal emulator was causing this.
December 30th, 2009, 06:14 AM
Glad you cracked it. Welcome to the Shed - and good luck.
>_ My Music Blog | Losing weight @notsoheavyblog | My Tweets
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.