使用GSM调制解调器发送超过160个字符 [英] Send more than 160 characters using GSM modem

查看:79
本文介绍了使用GSM调制解调器发送超过160个字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我为GSM调制解调器发送短信软件。它工作正常。但我现在的问题是它不能发送超过160个字符。



错误如下:

文本长两个。最多允许160个生成的septets。当前输入结果为288个septets(由我给出)。





当我点击我的发送按钮时,我的代码如下:

Hi all,

I make a software for sending SMS for GSM Modem. It works fine. But my problem is now that it couldn't send more than 160 character.

The error is given below:
" Text is two long. A maximum of 160 resulting septets is allowed. The current input result in 288 septets(given by me)."


My code is given below when I click on my send button:

// port connected successfully
pdu = new SmsSubmitPdu(message, cell, "");
comm.SendMessage(pdu);





请帮我快速找到解决方案。因为我已经试了两天。但没有解决方案。



提前谢谢。



Please help me to find the solution immediate in a short way. Because I have tried it for last two days. But got no solution.

Thanks in advance.

推荐答案

你的代码没什么。 SMS的最大长度为160个字符。它是GSM网络的内置价值,你无法做任何事情。在SMSC上可能有一些配置将长短信分成较小的部分(最大长度为160),然后作为多个短信发送给收件人,但你又无法做任何事情。

见这里: http://en.wikipedia.org/wiki/Short_Message_Service [< a href =http://en.wikipedia.org/wiki/Short_Message_Servicetarget =_ blanktitle =New Window> ^ ]
It is nothing with your code. SMS has max length of 160 chars. It is built-in value for the GSM network and you can't do anything about it. there may be some configuration on SMSC to split a long SMS into smaller parts (with max length of 160) then send to the recipient as multiple SMSs, but again you can't do anything about it.
see here: http://en.wikipedia.org/wiki/Short_Message_Service[^]


这篇关于使用GSM调制解调器发送超过160个字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆