CMGS command

The subVI sends a mobile phone to GSM modem. Figure 1 shows the block diagram of the subVI.

Fig. 1 Sending mobile phone number

Message format is: AT + CMGS = "0628869066 *" <CR> or AT + CMGS = "+381628869066" <CR>. If the modem answer is <CR> <LF>> SP the program can send the the text of the S message. SP is a blankcharacter. This is the unique answer when the GSM modem does not send control characters <CR> <LF> at the end of its answer. This fact makes subVI for reading data from serial port a little bit more complex.