CME Error 536/515

You may want to consult your modem manual for the meaning of error messages and +CMGS command details! Generally, CMS ERROR: 515 means “Please wait, init or command processing in progress”. I guess, you’re sending a character after the -z, before the SMS text is accepted and confirmed.