AT+CUSD command | Telit Cinterion IoT Developer Community
October 25, 2019 - 6:55am, 1468 views
I want to check the balance by sensing message to gsm and the gsm send to my phone number the account balance
we use "AT+CUSD=1,\"*101#\""
but when I use receive string blocks the string show me OK only
but in reality, it contains +CUSD "your balance is.... " after one line
How can I extract that line contain +CUSD .... ??
Hello,
Are you sending this from Java MIDlet or just over a standard interface?
If you send the command in Java you get the replu which is OK in this case. And then '+CUSD: 2,...' comes as URC. On standard interface you get URC when it comes. Under Java you need to set the listener to catch URCs. Please check ATCommandListener interface and ATEvent(String Event) method for more details.
Best regards,
Bartłomiej
Hi
Good work.
thanks a lot