Linux中使用简单AT指令打接电话和收发短信

打电话

	ATD10086; //Dialing out the party‟s number
	OK

发短信

	AT+CMGF=1 //Set SMS message format as text mode
	OK
	AT+CSCS="GSM" //Set character set as GSM which is used by the TE
	OK
	AT+CMGS="10086"
	> 101 //Enter in text. Use <CTRL+Z> to send message, or <ESC> to quit without sending.
	+CMGS: 77
	OK	

收短信

	+CMTI: "SM",0 //Indicates that new message has been received and saved to <index>=3 of “SM”
	AT+CSDH=1
	OK
	AT+CMGR=0 //Read message
	+CMGR: "REC UNREAD","10658678",,"19/04/26,14:18:27+32",128,100,0,8,"+8613800280548",145,66
	56DB5DDD624B673A62A5FF1A4E70554694FAFF0C00310035002E00374E075B9A91D153D8670D52A18D39FF018BFB80056885597358EB57287B8096336EE86C5F65B057CE4E70554694FA88AB5751FF0C8FD97B148D39752891CC540465B963D062109AD88FBE00310031002E00364E07FF0C751A81F3530562EC529E516C801767508D39
	OK	

其他待扩展

 

猜你喜欢

转载自blog.csdn.net/TSZ0000/article/details/89597765