Huawei Mobile Connect E170

旧时模样 提交于 2020-01-03 04:47:07

问题


I am trying to receive SMS messages with a Huawei Mobile Connect, Model: E170 device through hyper terminal but can't.

I used the below commands to initialize the modem:

AT+CMGF=1 AT+CNMI=2,2,0,0,0 (But this gives me this error: +CMS ERROR: 303)

This same commands working on my nokia N70, 6630 and many other nokia models i can't remember.

I know the modem can receive and send SMS messages, but how do i do it?


回答1:


Below worked for me in Huawe E153.

at+cmgf=1 //Set text format
at+csmp=49,167 //Enable delivery reports
at+cpms="SM","SM","SR" //Set message storage
at+cnmi=2,1,0,2 //Set message notifications

Note the order of the configuration as well. The modem may not let you enable conflicting configurations.

Also note that some modems send the notifications through different channels. In my case connecting E153 in Ubuntu created /dev/ttyUSB0, /dev/ttyUSB1, /dev/ttyUSB2, /dev/ttyUSB3. The notifications for new SMS and delivery reports were only coming through /dev/ttyUSB3 even if I sent SMS using /dev/ttyUSB0.




回答2:


I'm using this init-string in kannel: "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0" with a huawei e153 and it works in an acceptable manner (I can send sms) so you must use that one or launch wvdial and watch stdout to get the right string/command. Then provide the error message if that didn't work.




回答3:


Maybe it would be better to use software which can do this? For example Gammu or Gnokii.

And back to the question: Some phones do not like setting all CNMI parameters, check AT+CNMI=? output to see what your phone does support, most likely you need to use something like AT+CNMI=2,,,,0



来源:https://stackoverflow.com/questions/1786800/huawei-mobile-connect-e170

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!