Обратите внимание, что разные производители имеют разные AT-команды для доступа к функциям STK.
И не все устройства поддерживают запуск приложений STK.
Пока мне удалось заставить работать ZTE MF100:
После открытия пригодятся следующие команды:
AT+ZSTM // select STK app (initialize, lists the available options in return)
AT+ZSELM=1 // select the first main menuentry (you will get the submenu options as return)
AT+ZSELI=1 // select the first submenu entry (you will get some response as well)
AT+ZINPR=2,1234567890 // this is a response, in my case i had to send a phone number. the first parameter means "numeric only", setting this to 0 will allow any characters (from the standard SMS charset)
AT+ZINPR=1,1 // this is a confirmation response (first parameter=1 means yes/no answer, second is the parameter, yes in this case)
AT+ZBK=0 // return to the main menu
Вам следует открыть неблокирующую / dev / ttyUSBx и опросить ввод данных, поскольку модем не только отвечает на ваши запросы, но и отправляет обновления статуса вашему клиенту.