How to parse commands at gsm?

Hi I am from Turkey.I want to ask a question.I want to gsm relay control but I dont know gsm parse code.I am trying “strtok” function in while loop but error is happening.Help me please…

You need to present more data to help you. Error can occur for hundreds of reasons.