Parse the command name and see if it’s a recognized command
If the command is recognized
If it’s a execute command with parameters, parse the parameters. Each command might have different parameter number and type
Do correspondent action according to the command
At last, write final result code “OK” or “ERROR” to UART