I\'ve been using the following format for sending AT commands from the Application processor (AP) to the modem subsystem:
cat /dev/smd7 & echo -e "ati\\r