WAP之家:为您提供最全最新的WAP技术,CP.SP.3G等行业资讯。 WAP之家交流论坛全新开放 点击进入>>
WAP资讯 | 3G动态 | SP动态 | 运营商动态 | 内容商动态 | 制造商动态 | 论坛讨论>> 每次自动访问
WAP技术 | WAP源码 | 手机编程 | 手机源码 | 无线技术 | J2ME技术 | 手机软件 添加到收藏夹
IVR技术 | SP资料 | SMS MMS技术 | 商业方案 | IVR下载 | 书籍教程 | 工具软件 语言:繁體中文

WAP之家技术文章SMS MMSMMS技术图片格式整理(增加alcatel)

图片格式整理(增加alcatel)
作者:佚名  来源:本站整理  发布时间:2005-7-13 10:55:49
铃声图片格式
motorola
普通铃声格式
【格式】
<header><tempo value><musical data><delimiter><checksum>

【说明】

header: unsigned char 4byte (所有的铃声都是一样的header)
values: 4c 33 35 26 -->"l35&"
tempo value: unsigned char 2byte 拍子,由1或2或3或4加空格构成,缺省为2,
values: 32 20 -->"2 "
musical data:nbyte 二进制数据
delimiter: unsigned char 2 byte 分隔符 values: 26 26 -->"&&"
checksum: 2byte 对musical data进行的校验和,两个字节。方法为对musical data中的数据从前往后对每个字符进行异或运算,运算的结果假设其十六进制的表示为xy,那checksum的第一个字节的十六进制形式为3y,第二个字节的十六进制形式为3x。
计算方式:
step1: calculate one byte xor sum of the all the bytes of the musical data starting after
the space in the tempo value(not including space) till the && (not inclusive of &&). let
us say this is xy.
step 2: separate x and y into two bytes x0 and 0y.
step 3: take 0y and add hex 30. this becomes 3y. call this byte 1.
step 4: take x0 and shift right by 4 bits. this becomes 0x.
step 5: add hex 30 to 0x. this becomes 3x. call this byte 2.
step 6: two byte checksum is <byte 2><byte1>
nokia
普通铃声格式

普通图片(operator logo)
【格式】
<command><otb_bmp >
【说明】
<command> = <udh><iei><ieil><ied>< mcc> < mnc>
udhi iei ieil ied mcc mnc
06h 05h 04h 1582h 0000h 64f0 00


以上适用于china moblie

udhi: byte length of user-data header define: 06h (用户数据头)
iei: byte information element identifier define; 05h (ie info )
ieil: byte length of iei data define: 04h (ie长度)
ied: unsinge int 2 bytes , octets 4 & 5 define: 5506--> 1582h - destination port
ied: unsinge int 2 bytes , octets 6 & 7 define: 0000 - originator port
mcc: (mobile country code), octets 14 and 15, little-endian bcd, filled with f16', 460 -> 64 f0, for chinanotice: to see the logo on the phone's screen, octets 8 and 9 must be defined with the settings of the current operator. (国家代码)
mnc: mobile network code) coding, little-endian bcd, filled with f16', 00->00, for chinamobile is 00, china cugsm is 01 (网络代码)
otb-bmp:otb格式,
<ota bitmap> ::= <header> <image-data > [ <palette > ]
<header> ::= <infofield >[extfield]<width><height ><depth>
infofield 8bit 图片信息区具体表示如下:
bit info field , description
7 分割标志 1:分割图片(后面还有)0:否
6 压缩标志 1:压缩 0:没有压缩
5 扩展调色板 1:使用 0:没有使用
4 max size of icon 1:16bit ,0:8bit
3 number of animated icons, msb
2 number of animated icons
1 number of animated icons
0 number of animated icons,lst

extended infofield 8bit 图片信息区具体表示如下:
bit extfield , description
7 分割标志 1:分割图片(后面还有)0:否
6 bmp版本
5 bmp版本
4 bmp
3 保留
2 保留
1 保留
0 保留

width: 图片的宽度。对于operator log width =72 48h
height: 图片的高度。 对于operator log heigth=14 04h
depth: 图片的深度,灰度值或者颜色数。
image-data:图片点阵
,当图片的大小为72x14时候,每一个byte就表示8个点,一行有72个点,因此每行需要9bytes,由于是14行,因此需要的大小是9x14=126bytes。每一个bit,1表示黑色,0表示白色。
alcatel
普通铃声格式
【格式】
<tp-udl><tp-udhl>
<tdd-iei><tdd-length><tdd-name-length><tdd-name><tdd-data_type><tdd-data-length>
< concatenation -iei >< concatenation-length >< concatenation-reference number >]
< concatenation-maximum number >< concatenation-sequence number >
<tdd-data>

【说明】

tp-udl byte //短信长度 user data length max:-140
tp-udhl   byte //短信头长度 user data head length
-----------------------------------------------------------------------------------------------------------------
tdd-iei byte //阿尔卡特 sms标示 =80 type ”download”
tdd-length byte // ie length of the tdd_header ----end of ie
tdd-name-length byte //title/name length 标头名字长度
tdd-name unsigned char [tdd-name-length] //标头名称 {字符 }
tdd-data-type byte //tdd_data_type

注释: bit 7:
0: cannot be forwarded
1: can be forwared using ems
如果兼容ems就设置为1
bit 4-6 unused
bit 0-2
000:imelody melody
001:ialcatel melody
010:mseq melody
011:vox melody
100: alcatel picture
101:alcatel animation
110:sms template
111.unused
tdd-data-length = unsigned int 2 byte //tdd_data数据 长度
byte 1: msb
byte 2: lsb
// end of tdd header ie
// start of concatenation header ie //以下只是用于坼分短信
concatenation-iei byte //iei=00
concatenation-length byte //iedl=03
concatenation-reference number byte // 序列号??(same as all segrments)125
concatenation-maximum number byte //总条数 (same as all segrments)
concatenation-sequence number byte //当前序列号
// end of concatenation header ie
// end of user data header

tdd-data = //tdd_data 数据 二进制流

普通图片
(同铃声格式)


siemens
普通铃声格式
【格式】
<identifier><version><datasize><referenceid><actpacketnumber><numberofpackets><objectsize> <objecttype><objectname><data>
-----------------------------------------------------------------------------------

[1] [2]  下一页

[] [返回上一页] [打 印]
文章评论

用户名: 查看更多评论

分 值:100分 85分 70分 55分 40分 25分 10分 0分

内 容:

         (注“”为必填内容。) 验证码: 验证码,看不清楚?请点击刷新验证码