sim868 建立tcp链接时的步骤所对应hex码

这里用的是移动卡为例子

[08:49:12.562]发→◇AT


[08:49:12.562]收←◆AT
OK


[11:30:18.950]发→◇41 54 0D 0A □   //(41 45表示AT,0D 0A表示回车换行,4F 4B表示OK)
[11:30:18.950]收←◆41 54 0D 0D 0D 0A 4F 4B 0D 0A 
-------------------------------------------------------------
[08:51:04.663]发→◇AT+CPIN?

[08:51:04.663]收←◆AT+CPIN?
+CPIN: READY


OK


[13:41:57.297]发→◇41 54 2B 43 50 49 4E 3F 0D 0A □
[13:41:57.302]收←◆41 54 2B 43 50 49 4E 3F 0D 0D 0A 2B 43 50 49 4E 3A 20 52 45 41 44 59 0D 0A 0D 0A 4F 4B 0D 0A 
--------------------------------------------------------------
[08:51:17.258]发→◇AT+CSQ

[08:51:17.273]收←◆AT+CSQ
+CSQ: 31,0


OK


[13:55:11.527]发→◇41 54 2B 43 53 51 0D 0A □
[13:55:11.533]收←◆41 54 2B 43 53 51 0D 0D 0A 2B 43 53 51 3A 20 33 31 2C 30 0D 0A 0D 0A 4F 4B 0D 0A 
--------------------------------------------------------------
[08:51:49.074]发→◇AT+CREG?

[08:51:49.074]收←◆AT+CREG?
+CREG: 0,1


OK




[13:57:27.574]发→◇41 54 2B 43 52 45 47 3F 0D 0A □
[13:57:27.580]收←◆41 54 2B 43 52 45 47 3F 0D 0D 0A 2B 43 52 45 47 3A 20 30 2C 31 0D 0A 0D 0A 4F 4B 0D 0A 
--------------------------------------------------------------
[08:52:05.520]发→◇AT+CGREG?

[08:52:05.535]收←◆AT+CGREG?
+CGREG: 0,1


OK




[13:58:49.558]发→◇41 54 2B 43 47 52 45 47 3F 0D 0A □
[13:58:49.564]收←◆41 54 2B 43 47 52 45 47 3F 0D 0D 0A 2B 43 47 52 45 47 3A 20 30 2C 31 0D 0A 0D 0A 4F 4B 0D 0A 
----------------------------------------------------------------
[08:56:48.376]发→◇AT+CMGF=0

[08:56:48.376]收←◆AT+CMGF=0
OK


[14:05:58.302]发→◇41 54 2B 43 4D 47 46 3D 30 0D 0A □
[14:05:58.306]收←◆41 54 2B 43 4D 47 46 3D 30 0D 0D 0A 4F 4B 0D 0A 
---------------------------------------------------------------
[08:57:35.293]发→◇AT+CNMI=2,1,0,0,0

[08:57:35.293]收←◆AT+CNMI=2,1,0,0,0
OK


[14:07:21.677]发→◇41 54 2B 43 4E 4D 49 3D 32 2C 31 2C 30 2C 30 2C 30 0D 0A □
[14:07:21.684]收←◆41 54 2B 43 4E 4D 49 3D 32 2C 31 2C 30 2C 30 2C 30 0D 0D 0A 4F 4B 0D 0A 
------------------------------------------------------------------
[08:58:16.855]发→◇AT+CGATT=1

[08:58:16.855]收←◆AT+CGATT=1
OK


[14:07:56.773]发→◇41 54 2B 43 47 41 54 54 3D 31 0D 0A □
[14:07:56.778]收←◆41 54 2B 43 47 41 54 54 3D 31 0D 0D 0A 4F 4B 0D 0A 
-------------------------------------------------------------------
[08:58:41.326]发→◇AT+CIPMODE=1

[08:58:41.326]收←◆AT+CIPMODE=1
OK


[14:09:08.582]发→◇41 54 2B 43 49 50 4D 4F 44 45 3D 31 0D 0A □
[14:09:08.587]收←◆41 54 2B 43 49 50 4D 4F 44 45 3D 31 0D 0D 0A 4F 4B 0D 0A 
---------------------------------------------------------------------
[08:59:20.315]发→◇AT+CSTT="CMNET"

[08:59:20.315]收←◆AT+CSTT="CMNET"
OK


[08:59:20.315]发→◇41 54 2B 43 53 54 54 3D 22 43 4D 4E 45 54 22 20 0D 0A □
[08:59:20.315]收←◆41 54 2B 43 53 54 54 3D 22 43 4D 4E 45 54 22 20 0D 0D 0A 4F 4B 0D 0A 
---------------------------------------------------------------------
[08:59:36.473]发→◇AT+CIICR

[08:59:36.488]收←◆AT+CIICR
[08:59:37.004]收←◆
OK


[15:11:48.105]发→◇41 54 2B 43 49 49 43 52 0D 0A □
[15:11:48.110]收←◆41 54 2B 43 49 49 43 52 0D 
[15:11:48.920]收←◆0D 0A 4F 4B 0D 0A 
-----------------------------------------------------------------------------
[08:59:56.206]发→◇AT+CIFSR

[08:59:56.206]收←◆AT+CIFSR
10.37.219.156


[08:59:56.206]发→◇41 54 2B 43 49 46 53 52 0D 0A □
[08:59:56.206]收←◆41 54 2B 43 49 46 53 52 0D 0D 0A 31 30 2E 33 37 2E 32 31 39 2E 31 35 36 0D 0A 
------------------------------------------------------------------------
[09:02:09.158]发→◇AT+CIPSTART="TCP","lohas.f3322.net","1231"

[09:02:09.173]收←◆AT+CIPSTART="TCP","lohas.f3322.net","1231"
OK


[09:02:14.322]收←◆
CONNECT


[15:14:16.242]发→◇41 54 2B 43 49 50 53 54 41 52 54 3D 22 54 43 50 22 2C 22 6C 6F 68 61 73 2E 66 33 33 32 32 2E 6E 65 74 22 2C 22 31 32 33 31 22 0D 0A □
[15:14:16.249]收←◆41 54 2B 43 49 50 53 54 41 52 54 3D 22 54 43 50 22 2C 22 6C 6F 68 61 73 2E 66 33 33 32 32 2E 6E 65 74 22 2C 22 31 32 33 31 22 0D 0D 0A 4F 4B 0D 0A 
[15:14:24.157]收←◆0D 0A 43 4F 4E 4E 45 43 54 0D 0A 
--------------------------------------------------------------------------
[09:03:29.723]收←◆
+CMTI: "SM",4


+CMTI: "SM",5

你可能感兴趣的:(stm32)