10 years, 5 months ago.

check credit balance with VodafoneUSBModem library?

Is there a method in the VodafoneUSBModem library to check the credit balance on the SIM card? I would be using it to send a message to remind the user to top up when the credit is going low. The AT command AT+CUSD can be used to check credit balance. I can't find the command in any of the libraries though. Is there a method that uses the command or its equivalent? If not, how would one write a method to use the AT command.

1 Answer

10 years, 4 months ago.

Yes there is. Use command *#134#

See my SMS LEDMatrixx printer application as this responds to SMS message that requests the balance to be displayed. I've also used these commands to obtain own number, set the time and to perform top-ups.

Code is at https://mbed.org/users/SomeRandomBloke/code/SMS_LEDMatrixPrinter/

Hope it helps

Andrew

Accepted Answer

Hey is it also possible to get the list of all USSD codes for the modem?

posted by David Fofana 03 Oct 2014