Given:

  1. Linux machine.
  2. Huawei USB modem (the model is not important - with the same success can be any other).
  3. The modem is connected as several USB COM ports (ttyUSB0, ttyUSB1, ttyUSB2)

I ask you to help implement the algorithm for sending SMS - obviously you need to use AT commands ... Which ones? In what order?

  • Not the answer, but maybe you should use ready services? And it will be cheaper, and more universal + office, statistics and all that. - Vladimir Gamalyan
  • It is necessary to clarify the question: do you plan long sms (consisting of several parts), in what encoding will the text be sent (ASCII || UTF), because the algorithm will change based on the answers to these questions: Used commands, text encoding - Bald
  • @VladimirGamalian only hardcore - only on their own. - gecube
  • @Bald - thanks, let's consider different options. UTF is most likely needed (90% is needed in Cyrillic) - gecube
  • if UTF is needed then it will be necessary to form a PDU packet - Bald

1 answer 1

Material in the article

Example:

AT+CMGF=1 [Enter] AT+CMGS=+79261234567 [Enter] hello habr, this is test message [Ctrl+Z] 

For command modem recommend minicom at the time of debugging

enter image description here

And then you can write the code in your favorite language