Sending SMS AT commands to 3G modem using PHP

寵の児 提交于 2019-12-03 08:33:19
David cameron

You need to append a \r to the end of each command rather than an "OK". The "OK" is the response you expect to be returned by the phone. Use a terminal program

1 second delay
+++
1 second delay
The modem should respond with "OK"
Type AT+CMGF=1
press enter key
Modem will repond with "OK"

Etc... It is possible your phone does not support SMS text mode only pdu mode

Type at+CMGF=?

Type enter key, if the response is at+CMGF (0,1) it supports both if (0) then pdu only. You will have to enter the SMS message in pdu mode.
There are plenty of examples on how to do this.

You need to append a \r to the end of each command rather than an "OK". The "OK" is the response you expect to be returned by the phone. Use a terminal program

1 second delay +++ 1 second delay The modem should respond with "OK" Type AT+CMGF=1 press enter key Modem will repond with "OK"

Etc... It is possible your phone does not support SMS text mode only pdu mode

Type at+CMGF=?

Type enter key, if the response is at+CMGF (0,1) it supports both if (0) then pdu only. You will have to enter the SMS message in pdu mode. There are plenty of examples on how to do this.

CAN U GIVE ME THE CODE

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!