# Check credit

**URL:** <https://forum.sierrawireless.com/t/check-credit/3287>\
**Category:** Open AT\
**Created:** [June 2, 2009, 9:28am UTC](https://forum.sierrawireless.com/t/check-credit/3287 "2009-06-02T09:28:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fakulatus](https://avatars.discourse-cdn.com/v4/letter/f/b782af/32.png) [@fakulatus](https://forum.sierrawireless.com/u/fakulatus)\
**Post date:** [June 2, 2009, 9:28am UTC](https://forum.sierrawireless.com/t/check-credit/3287/1 "2009-06-02T09:28:22Z")

</div>

Hi all,

i’m using the Q2686-Modem with a prepaid-SIM-Card.  
Now i have the problem, that i don’t know how to find out my credit left on SIM-Card.  
Here [http://www.wavecom.com/modules/movie/scenes/forums/viewtopic.php?f=3&t=671&p=2370&hilit=credit#p2370](http://www.wavecom.com/modules/movie/scenes/forums/viewtopic.php?f=3&t=671&p=2370&hilit=credit#p2370) the problem is described, but only solved with AT-Commands, is there no ADL-Command?

---

<div class="post-metadata">

**Author:** ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://forum.sierrawireless.com/u/awneil)\
**Post date:** [June 2, 2009, 9:51am UTC](https://forum.sierrawireless.com/t/check-credit/3287/2 "2009-06-02T09:51:48Z")

</div>

> [@fakulatus](#):
>
> Now i have the problem, that i don’t know how to find out my credit left on SIM-Card.

As I said in the post you quoted,

> [@I](#):
>
> Note that this is specific to the particular operator - some operators don’t provide this service, and others may use adifferent code  
> (Vodafone UK uses “\*#1345#”)

So, if you don’t know how to find your remaining credit, you are going to have to ask your specific Service Provider how to do it - it has nothing to do with Wavecom or Open-AT.

> [@](#):
>
> but only solved with AT-Commands, is there no ADL-Command?

See above - there is no standard way to do this, so there obviously can’t be an ADL API specifically to do it!

But, of course, you can handle AT Commands & responses with ADL…

If your specific Service Provider uses SMS, you can, of course, use the ADL SMS Service to do the same thing.

---

<div class="post-metadata">

**Author:** ![fakulatus](https://avatars.discourse-cdn.com/v4/letter/f/b782af/32.png) [@fakulatus](https://forum.sierrawireless.com/u/fakulatus)\
**Post date:** [June 2, 2009, 10:41am UTC](https://forum.sierrawireless.com/t/check-credit/3287/3 "2009-06-02T10:41:37Z")

</div>

Hi awneil,

the code is known (Switzerland Swisscom \*130#), i hoped for an adl-command in the style

```auto
ascii* adl_getServiceData(ascii* serviceCode);
```

I use at-commands then

thank you

---

<div class="post-metadata">

**Author:** ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://forum.sierrawireless.com/u/awneil)\
**Post date:** [June 2, 2009, 2:07pm UTC](https://forum.sierrawireless.com/t/check-credit/3287/4 "2009-06-02T14:07:50Z")

</div>

> [@fakulatus](#):
>
> i hoped for an adl-command in the style
> 
> ```auto
> ascii* adl_getServiceData(ascii* serviceCode);
> ```

Yes - wouldn’t that be great! 😃

But, as already noted, there is no such thing as a standard “Service Data” applicable to any and all GSM operators:

- Some don’t provide the facility at all;
- Some use USSD (as here);
- Some use SMS;
- Some probably use other things

So, unfortunately, there would be no way to provide such and ADL facility. ☹

And, of course, it would only be meaningful on pre-pay services…
