M
mawei0913_green
Unregistered / Unconfirmed
GUEST, unregistred user!
现在我有这样一个字符串,它是从发送方接收到一些指令(手机指令),比如:
AT
OK
AT+CPIN?
+CPIN: READY
AT+CMGF=0
OK
AT+CNMI=2,2,0,1,1
OK
AT+CPMS="SM"
+CPMS: 0,30,0,30
OK
AT+CMGL=4
OK
AT+CMGD=1,4 AT+CPMS="SM"
ERROR
AT+CMGL=4
ERROR
AT+CMGD=1,4
ERROR
AT+CMGD=1
ERROR
AT+CMGD=2
ERROR
AT+CMGD=3
ERROR
。。。
AT+CMGD=69
ERROR
AT+CMGD=70
ERROR
AT+CMGS=33 00B10
> 00D91683163269077F7000801124F60597D002053D14EF64EBA003A00390039
+CMGS: 254
OK
+CDS: 25
0006FE0B913163269077F7705052315405237050523154152300
AT+CMGL=0
OK
AT+CMGD=0
ERROR
AT+CMGL=0
OK
AT+CMGD=1
OK
AT+CMGL=0
OK
菜鸟想实现如下功能 :把0006FE0B913163269077F7705052315405237050523154152300从中取出来,并将取出来的字符串两两对换位置,请各位大侠帮忙,谢谢!
AT
OK
AT+CPIN?
+CPIN: READY
AT+CMGF=0
OK
AT+CNMI=2,2,0,1,1
OK
AT+CPMS="SM"
+CPMS: 0,30,0,30
OK
AT+CMGL=4
OK
AT+CMGD=1,4 AT+CPMS="SM"
ERROR
AT+CMGL=4
ERROR
AT+CMGD=1,4
ERROR
AT+CMGD=1
ERROR
AT+CMGD=2
ERROR
AT+CMGD=3
ERROR
。。。
AT+CMGD=69
ERROR
AT+CMGD=70
ERROR
AT+CMGS=33 00B10
> 00D91683163269077F7000801124F60597D002053D14EF64EBA003A00390039
+CMGS: 254
OK
+CDS: 25
0006FE0B913163269077F7705052315405237050523154152300
AT+CMGL=0
OK
AT+CMGD=0
ERROR
AT+CMGL=0
OK
AT+CMGD=1
OK
AT+CMGL=0
OK
菜鸟想实现如下功能 :把0006FE0B913163269077F7705052315405237050523154152300从中取出来,并将取出来的字符串两两对换位置,请各位大侠帮忙,谢谢!