AT指令之通信录PDU编码

SMS相关的AT命令及其PDU格式的编码过程.docx SMS相关的AT命令及其PDU格式的编码过程 通信相关开发及测试使用 立即下载

AT命令手册上有详细的PB PDU编码格式

 

Appendix:Phonebook detail parameters

PDU:

Type

Length

Name

Description

basic_number_st

variable

basic_number_info

basic number info including alpha name, BCD number and called party sub Address.

Group_st

variable

all_group_info

the information of all the group

name_element_st

name_len + 1

second_name

second name

email_st

variable

all_email_address

E-mail address

additional_number_st

variable

all_additiontal_number_info

all additional number info

Uint8

1 byte

hidden_flag

0x00: phonebook entry not hidden

other value: phonebook entry hidden

 

name_element_st:

Type

Length

Name

Description

Uint8

1

name_len

the length of the name.

Uint8

name_len

pb_name[name_len]

the name element of this phone book entry.

This field is mandatory only if name_len is not 0, and its length is name_len.

 

 

Phone_number_st:

Type

Length

Name

Description

Uint8

1

bcd_len

Length of BCD number/SSC contents., including ton_npi field and phone_number field.

Uint8

1

ton_npi

TON and NPI , This field is mandatory

Uint8

bcd_len-1

phone_number[bcd_len-1]

The actual phone number (in digits) and some additional information.

This field is mandatory

 

sub_address_st:

Type

Length

Name

Description

Uint8

1

subadd_len

the length of the subaddress

Uint8

subadd_len

subadd_name[subadd_len]

the subaddress element of this phone book entry.

This field is mandatory only if subadd_len is not 0, and its length is subadd_len. 

 

Basic_number_st

Type

Length

Name

Description

name_element_st

name_len +1

alpha name

Number alpha name

phone_number_st

bcd_len + 1

BCD number

BCD number including additional number

sub_address_st

subadd_len + 1

subadd

Called party sub address

 

group_st:

Type

Length

Name

Description

Uint8

1

group_num

the number of the group , the max value is 10.

Uint8

group_num

group_id[group_num]

group id list

This field is mandatory only if group_num is Not 0.

 

Email_st:

Type

Length

Name

Description

Uint8

1

email_address_num

The number of the EMAIl file.

Email_address_st

variable

email_info[email_address_number]

email information.

This field is mandatory only if email_address_num is not 0.

 

Email_address_st:

Type

Length

Name

Description

Uint8

1

email_address_len

the length of the e-mail address

Uint8

email_address_len

email_add[email_address_len]

e-mail address

This field is mandatory only if email_address_len is not 0, and its length is email_address_len.

Additional_number_st

Type

Length

Name

Description

Uint8

1

anr_num

The number of ANR file

Additional_basic_number_st

variable

Additional_basic_number[anr_num]

All additional number info including name, number and called party sub address.

 

Additional_basic_number_st

Type

Length

Name

Description

Uint8

1

anr_id

additional name identifier

phone_number_st

bcd_len + 1

BCD number

BCD number including additional number

sub_address_st

subadd_len + 1

Subadd

Called party sub address

 

 

Notes: AT+CSCS does not effect on AT^DPBR, AT^DPBW,in addition the upper layer should organize and parse data ,and check thevalidity of data coding scheme.

This alpha‑tagging shall useither:

  1. -       the SMS default 7‑bit coded alphabet as defined in TS 23.038 [5] with bit 8 set to 0. The alpha identifier shall be left justified. Unused bytes shall ‘e ’et to ‘FF’.

or:

  • one of the UCS2 coded options as defined in the annex of TS 31.101 [11]
GSM之非常详细的AT指令文档和PDU模式以及手机短信发送格式 GSM之非常详细的AT指令文档和PDU模式以及手机短信发送格式... 立即下载

相关推荐

java串口通讯 短信测试 comm编程 PDU编码 进制转换 AT命令

13751069146 Saro Modem 短信测试.txt Java Comm API编程指南.doc Javax.comm简介.doc KEIL中如何用虚拟串口调试串口程序.doc Message PDU编码规则.doc QHDQ-29DDDAD3A0.LOG SMSLib串口通信.doc 串口常用参数.doc 关于java使用javacomm20.doc 常见的进制转换方法.doc 浅谈Java串行端口技术协议.doc 短信 AT 命令参考.doc 短信PDU编码解码.doc 通过串口收发短消息.doc

SMS短信的C语言代码摘抄

一消息编码与解码用C实现7-bit编码和解码的算法如下:// 7-bit编码// pSrc: 源字符串指针// pDst: 目标编码串指针// nSrcLength: 源字符串长度// 返回: 目标编码串长度int gsmEncode7bit(const char* pSrc, unsigned char* pDst, int nSrcLength){    int nSrc;        //

SAP BLOG--Jack Wu 4190

AT命令编码工具

短信猫AT命令编码 工具 unicode

短信猫软件的实现(C#)<三>PDU格式短信解析

AT指令收发短信主要有两种模式:Text模式和PDU(Protocol Data Unit,协议数据单元)模式。使用Text模式收发短信代码简单,很容易实现,最大缺点不支持中文短信。PDU模式不仅能发送中文短信,也能发送英文短信。PDU收发短信有三种编码可用:7-bit、8-bit和UCS2编码。7-bit编码用于发送普通的ASCII字符,即英文短信,最多可发送160字符。8- bit编码通常...

weixin_30914981的博客 620

AT指令发送PDU短信详解

AT指令发送PDU短信详解

LangGraph的容错机制:从节点失败到图级回滚

核心概念铺垫:讲解LLM应用容错与事务性的核心概念(幂等性、重试策略、降级策略、快照、回滚、原子性、一致性、隔离性、持久性、最终一致性),对比LangGraph容错机制与传统数据库ACID事务、Apache Airflow/Kubernetes Workflow/Kubeflow Pipelines容错机制的异同;LangGraph容错机制的演进历史:用markdown表格梳理LangGraph从0.0.1到1.5.0(截止202X年X月)的容错机制发展历程;节点级别的容错:重试与降级。

AI Python 编程之道的博客 182

AT指令发送接收短信(Text/Pdu模式)

AT指令收发短信主要有两种模式:Text模式和PDU(Protocol Data Unit,协议数据单元)模式。使用Text模式收发短信代码简单,很容易实现,最大缺点不支持中文短信。PDU模式不仅能发送中文短信,也能发送英文短信。PDU收发短信有三种编码可用:7-bit、8-bit和UCS2编码。7-bit编码用于发送普通的ASCII字符,即英文短信,最多可发送160字符。8- bit编码通常

supergame111的专栏 5941

告别单一帧:在CFD-POST中完整加载Fluent瞬态计算结果的实战指南

本文详细介绍了在CFD-POST中完整加载Fluent瞬态计算结果的实战指南,解决工程师常见的只能看到最后一帧数据的问题。通过Fluent端的正确设置和CFD-POST端的完整加载技巧,帮助用户高效处理瞬态数据,提升后处理效率。文章还提供了常见问题排查、性能优化和高级后处理技巧,适用于Workbench环境下的流体流动分析。

weixin_29284657的博客 548

基于Python3.7,AT指令,进行PDU编码及解码,并通过串口发送短信。

PDU Mode被所有手机支持,可以使用任何字符集,这也是手机默认的编码方式。网上C语言的编码实例很多,基于python写的不多,特基于python3.7实现AT指令发送短信,以及PDU编码,串口操作。 PDU编码规则网上资源很多,在线编码地址: 在线PDU 可以用于比对调试。 直接上代码。 # 处理收件人 “8613800280500” -> “683108200805F0” def deal_iphonenum(demo): # 收件人 "8613800280500" -> "683108

weixin_43046726的博客 2672

newman的使用

Newman是一个基于Node.js的postman命令行工具,用于运行和测试PostmanAPI 请求的集合。它允许用户在命令行环境中执行Postman的JSON文件,从而实现接口自动化测试和持续集成,同时支持用户进行自动化测试、批量执行请求、生成报告等操作。

m0_62825058的博客 1623

SpringBoot文件上传实战:MultipartFile重复读取的3种方法(附避坑指南)

本文详细介绍了SpringBoot中处理MultipartFile重复读取的3种实用方法,包括字节数组缓存法、临时文件法和流重置法,并提供了避坑指南和性能优化技巧。特别适合需要多次读取上传文件内容的开发者,帮助解决InputStream流只能读取一次的问题。

weixin_28710999的博客 400

通过短信猫群发短信

通过短信猫发送短信 通过短信猫发送短信分为两部分,底层和高层的。底层通信模块主要实现利用系统API函数实现计算机和短信猫间的串口通信,利用AT指令实现对短信猫的各种控制和短信的收发操作,并对发送和接收短信的PDU(Protocol Data Unit)格式进行了分析。高层管理模块是系统功能的体现,主要包括短信的单发、群发、重发、回复功能;短信猫短信读取和清理功能。此外还包括通信录管理...

diding0623的博客 269

AVEVA PDMS 二次开发之PML实战:从宏到自定义窗体的效率提升

本文详细介绍了AVEVA PDMS二次开发中PML语言的应用,从基础宏编写到高级窗体开发,全面提升工程设计效率。通过实战案例展示如何利用PML实现批量操作、流程自动化和交互优化,帮助工程师快速掌握这一强大工具。

weixin_42549451的博客 353

AT指令表(中文详解)

一 . 一 般 命 令 1.AT+CGMI 给出模块厂商的标识。 2.AT+CGMM 获得模块标识。这个命令用来得到支持的频带(GSM 900,DCS 1800 或PCS 1900)。当 模块有多频带时,回应可能是不同频带的结合。 3.AT+CGMR 获得模块的软件版本。 4.AT+CGSN 获得 GSM 模块的 IMEI(国际移动设备标识)序列号。 5.AT+...

Terrys0518的专栏 5646

华为MetaERP在财务模块(GL/AP/AR/FA)及子账模块效率优化、月末关账加速、与外部系统对账方面,已形成一套**“并行+实时+智能化”**的完整技术方案

华为MetaERP推出"并行+实时+智能化"技术方案,显著提升财务模块效率:1)采用三级并行策略和内存计算,使子账模块单任务处理时间从142分钟降至9分钟;2)通过并行关账架构将月末关账时间从68小时压缩至7.2小时;3)运用AI智能对账提升效率50%,并支持异步流程和区块链审计。典型场景测试显示月结耗时下降89%,CPU利用率提升116%。方案建议分阶段实施,注意依赖分析、任务粒度设计和性能监控,避免过度并行。该方案已有效解决大型集团财务处理效率低、关账慢、对账难等痛点。

金牌架构师 563

华为OD机试双机位C卷:补种未成活胡杨 (C/C++/Py/Java/Js/Go)

华为OD机试双机位C卷 补种未成活胡杨,提供C语言、Java、C++、Python、Go、JavaScript源码实现,并提供完整思路讲解。华为OD机试 - 补种未成活胡杨。

qq_45776114的博客 4027

手机发短信常用AT指令

手机发短信常用AT指令 [精华]  -------------------------------------------------------------------------------- 【原文地址】 http://www.01cn.net/cgi-bin/topic_show.cgi?id=345&pg=1&h=1#10321    实用的AT指令   单片机和GSM引擎之间采用AT指

2516

用 ABAP CDS 把树建起来:Hierarchy 的建模、调试与消费全流程

CDS Hierarchy 将树形数据结构作为一等公民引入 ABAP 开发,通过定义父子关联、根节点条件和兄弟排序规则,让数据库原生支持层级查询。相比传统递归处理方式,它能避免性能瓶颈,提供$node系统字段描述节点结构信息,并支持与SAP UI框架无缝集成。这种方法简化了组织架构、成本中心等业务场景的层级数据处理,使开发人员能够专注于业务逻辑而非底层实现。

2007 年 ~ 2025 年,深耕 SAP 技术 18 年 220

PDU短信发送之一

AT指令收发短信主要有两种模式:Text模式和PDU(Protocol DataUnit,协议数据单元)模式。使用Text模式收发短信代码简单,很容易实现,最大缺点不支持中文短信。PDU模式不仅能发送中文短信,也能发送英文短信。PDU收发短信有三种编码可用:7-bit、8-bit和UCS2编码。7-bit编码用于发送普通的ASCII字符,即英文短信,最多可发送160字符。8- bit编码通

luoyouren的专栏 7472

文档:亲测可用解决vnc灰屏,黑屏,鼠标大黑叉情况

主要解决vnc-viewer灰屏,黑屏,鼠标大黑叉等现象,详细见文档。

全球国家地区城市数据

MySQL全球国家地区城市数据报。。。。。。。。。。。。

AT指令发送PDU短信

AT指令发送PDU短信详解 0 推荐 本文以一个实例来解说AT指令发送PDU短信的全过程,假如我要发送下面的短信: 接收号码:+8613602433649 短信内容:工...

weixin_30838873的博客 292

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

使用AT指令发送PDU短信的全过程

本文以一个实例来解说AT指令发送PDU短信的全过程,假如我要发送下面的短信: 接收号码:+8615215029639 短信内容:工作愉快! 短信中心号码:+8613800230500 一、短信中心号码处理:用字符串 addr 表示 1、将短信息中心号码去掉+号,看看长度是否为偶数,如果不是,最后添加F 即 addr = :+8613800230500" =&...

weixin_33939843的博客 817

pscad IEEE标准系统搭建说明

pscad IEEE标准系统搭建说明,包含典型的IEEE 9节点、14节点、30节点、39节点和118节点系统。内含标准测试系统的原始数据和潮流结果。

AT指令发送PDU短信详解(支持发送到小灵通)

AT指令发送PDU短信详解(支持发送到小灵通) 为了完成公司的短信收发程序,我找遍了所有资料,最后在很多网友的支持下 基本上完成了这个程序,为了使后来的人免走我同样的弯路,我将AT指令发送PDU 短信的全过程及函数整理出来,希望能给大家帮助,欢迎大家与我一起探讨: QQ :69944601 E_Mail :[url=mailto:cg19820811@163.com]cg198...

anjie0131的博客 261
上一篇: Android dumpstate 工具解析
下一篇: 个人vim使用记录
卫天
博客等级 码龄19年 37粉丝 14原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值