SMdata.h
上传用户:yffx2008
上传日期:2014-10-12
资源大小:12414k
文件大小:2k
源码类别:

交通/航空行业

开发平台:

Visual C++

  1. /*******************************************************/
  2. /* ShortMessage data define    */
  3. /*******************************************************/
  4. //SYSTEM ORDER
  5. #define DELETESMFIRST "AT+CMGD=1r"
  6. #define DELETESMSECOND "AT+CMGD=2r"
  7. #define DELETESMTHIRD "AT+CMGD=3r"
  8. #define DELETESMFOUR "AT+CMGD=4r"
  9. #define DELETESMFIVE "AT+CMGD=5r"
  10. #define DELETESMSIX "AT+CMGD=6r"
  11. #define DELETESMSEVEN "AT+CMGD=7r"
  12. #define READSMSECOND "AT+CMGR=2r"
  13. #define READSMFIRST "AT+CMGR=1r"
  14. #define WAVECOMINITETEXT "AT+CMGF=1r"
  15. #define WAVECOMINITEPDU "AT+CMGF=0r"
  16. #define SENDNEWMESSAGE "AT+CMGS="
  17. #define TELRECEIVED "RING"
  18. //CONTROL ORDER
  19. #define GETHELP "#0#" //取帮助信息
  20. #define SETHOSTTELNO "#1*" //设置车主手机号
  21. #define USERCHANGEPASS "#2*" //设置操作密码
  22. #define GETPOSITION "#3#" //取车况等信息
  23. #define SETLOCK "#4#" //给汽车上琐
  24. #define SHUTOIL "#5#" //断油断电
  25. #define OPENLOCK "#6#" //解琐或取消断油
  26. #define AUTOMONITOR "#8*" //自动监控
  27. #define CANCELAUTOMONITOR "#8#" //取消自动监控
  28. #define CENTERCHANGEPASS "#9*" //
  29. //syster response
  30. #define NEWSMREADONE " "SM",1A"
  31. #define NEWSMREADTWO " "SM",2A"
  32. #define NEWSMREADTHREE " "SM",3A"
  33. #define NEWSMREADFOUR " "SM",4A"
  34. #define NEWSMREADFIVE " "SM",5A"
  35. #define NEWSMREADSIX " "SM",6A"
  36. #define NEWSMREADSEVEN " "SM",7A"
  37. #define NEWSMREAEIGHT " "SM",8A"
  38. #define NEWSMREADNINE " "SM",9A"
  39. #define WAVECOMINITETEXTSUCCESS "AT+CMGF=1OK"
  40. #define WAVECOMINITETEXTFAILE "AT+CMGF=1ERROR"
  41. #define WAVECOMINITEPDUSUCCESS "AT+CMGF=0OK"
  42. #define WAVECOMINITEPDUFAILE "AT+CMGF=0ERROR"
  43. #define READFIRTSMFAILED "AT+CMGR=1ERROR"
  44. #define DELETEFIRSTSMSUCCESS "AT+CMGD=1OK"
  45. #define DELETEFIRSTSMFAILE "AT+CMGD=1ERROR"
  46. #define COMMANDTAIL "$@hOK"
  47. #define COMMANDHEAD "$@h"
  48. #define CENTERUSER 0
  49. #define NORMALUSER 1
  50. #define READONESHORTMESSAGE "AT+CMGR=XXXr"
  51. #define DELONESHORTMESSAGE "AT+CMGD=XXXr"
  52. #define NEWMESSAGEINDICATION "+CMTI"
  53. #define NEWMESSAGEISSM "SM"