华为MG323-B模块PDU短信猫开发

本文描述了在调试PDU码过程中遇到的问题及华为文档存在的不足。详细记录了尝试使用特定PDU码进行短信内容编码的过程,并探讨了如何根据不同发送方调整编码格式。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

开始调试PDU码,怎么也不对,总是返回error,

华为的文档现在真够差劲的,错误百出,真不知道现在华为的狼性哪去了,估计是老员工升官的升官,套现的套现,招点研究生本科生凑乎干。

 

 
/// 函数说明:
        ///           11000D91和000800  0008B0(这个码可能要试试才行) 
        ///           10086发送数据为11000DA1  这里也很重要
        /// </summary>
        public string smsDecodedsms(string strCenterNumber, string strNumber, string strSMScontent)
        {
            string cmc = smsPDUEncoded(strSMScontent);
            string s = "";
            if (strNumber == "10086")
            {
                s = String.Format("{0}110005A1{1}0008B0{2}", smsDecodedCenterNumber(strCenterNumber), smsDecodedNumber(strNumber), cmc);

            }
            else
            {
                s = String.Format("{0}11000D91{1}0008B0{2}", smsDecodedCenterNumber(strCenterNumber), smsDecodedNumber(strNumber), cmc);
            }
            //string s = String.Format("{0}11000D91{1}{2}", smsDecodedCenterNumber(strCenterNumber), smsDecodedNumber(strNumber), cmc);

            nLength = String.Format("{0:D2}", (s.Length - smsDecodedCenterNumber(strCenterNumber).Length) / 2);   //获取短信内容加上手机号码长度
            // nLength =String.Format("{0:D2}",(cmc.Length));
            return s;
        }


 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值