首页 > 解决方案 > 如何摆脱移远 m66 中的 CMS ERROR 2051

问题描述

我在 gsm shield 工作,有时(1 周后)我在发送 SMS 时收到 CMS ERROR 2051。我该如何解决这个问题。在数据表中它说ILLEGAL MS

什么是 MS,它是如何非法的?

这是我在尝试发送短信之前的设置。我正在使用移远 m66、树莓派和 python。我需要做一些额外的初始化吗?

serialPrintf(fd,"AT+IFC=1,1\n");                    // Set TE-TA Control Character Framing
delay(300);
serialPrintf(fd,"AT+CMGF=1\n");                     //Select sms format
delay(300);
serialPrintf(fd, "AT+CPMS=\"SM\",\"SM\",\"SM\"\n");
delay(300);
serialPrintf(fd,"AT+CLIP=1\n");                     //Calling Line Identification Presantation
delay(300);
serialPrintf(fd,"ATE0\n");//?
delay(5000);
serialPrintf(fd,"AT+COLP=1\n");                     // Connected Line Identification Presentation
delay(300);
serialPrintf(fd,"AT+CSCS=\"IRA\"\n");               //Select TE Character Set
delay(300);
serialPrintf(fd,"AT+QCCID\n");                      //Show ICCID
delay(300); 

标签: smsgsmquectel

解决方案


推荐阅读