Message listener TC65i | Telit Cinterion IoT Developer Community
March 25, 2015 - 11:40am, 2627 views
Dear Gemaloto.
Ihave made an adapter board to my T65i and a SIM-board. But...
In JME, there is a function called a messagelistener, along with a notify thread.
It is very difficult to write a messagelistener, using AT-commands.
In JME, the incomming SMS is automatically put in line, so I do not miss any message's.
In TC65i, when the sim-card is full, it stop receiving.
Do You have a suggestion.
Br Morten
Hello,
To be able to receive short messages you need to use ATCommand instance to configure the SMS notification with AT+CNMI command (for example AT+CNMI=2,1) and messages format with AT+CMGF command. To configure the SMS storages please use the AT+CPMS command. Afterwards you need to register the ATCommandListener to this instance (the same that you have used for configuration) and implement ATEvent() method where you should catch CNMI URC's.
Unfortunately there is no Java API for short messages.
So you will also need to read the messages with AT+CMGR command and delete them if not needed any more to keep place for new ones.
Best regards,
Bartłomiej