The subVI checks whether the GSM modem has received the SMS message. Figure 1 shows the block diagram of the subVI.
Fig. 1 Checking the SMS arrival
The format of the GSM modem response is: + CMTI: <SP> "SM", <index>, where the "index" is the number of the message, and "SM" is the area where the messages are stored.
If the received string does not contain the string "+ CMTI:" SMS message will not be read. If the received string is correct this subVI will forward a separated index of SMS message to a subVI that will read SMSmessage.
+ CMTI: "SM", 20