I've tested a GSM modem (MC-45?) with my PC. The following sequence should work:
1. Init: "at+cmgf=1\n"
This should return a OK
2. Enter edit mode: "at+cmgs=5551234567\r"
This should return the prompt ">". The i.LON should wait until the prompt was received.
3. Enter message: "My Message"
4. Send CTRL-Z: "\x1a"
Remark: "\x1a" is the hex endcoded CTRL-Z char in a C or C++ program.This can also be done in octal: "\32".