OMA电子邮件通知WAP推送麻烦

时间:2009-05-04 10:24:02

标签: email sms symbian wap

我正在尝试向移动设备发送OMA电子邮件通知(EMN)1.0 WAP-Push,以便获取给定邮箱的最新电子邮件。

我的问题是移动设备收到短信时没有任何反应。我测试了诺基亚E71,它应该根据诺基亚自己的技术规格实施规范。在设备上,我为电子邮件地址'my_email@gmail.com'设置了IMAP电子邮件帐户。

我在某处读到,还需要在“自动检索”菜单中将“电子邮件通知”设置为“自动更新”。

因此,在设置说明的情况下,这是我尝试发送的内容:

标题:

UDH=WDP+WSP
WDP=0605040B8423F0
06 - Length of WDP in octets
05 - information element identifier, application port addressing scheme, 16-bit address
04 - information element length in octets
0B84 - Destination port (2948)
23F0 - Source port (9200)

WSP=250603030A09
25 - transaction id (connectionless WSP)
06 - PDU Type: Push
03 - Length of headers in octets
030A - Content-type: application/vnd.wap.emn+wbxml
09 - Application-id: x-wap-application:emn.ua

身体:

030D6A008507036D795F656D61696C40676D61696C2E636F6D0005C30620090504121501
03 - WBXML version 1.3
0D - EMN 1.0 public identifier
6A - Encoding UTF-8
00 - String table length = 0
85 - <EMN>-tag with attributes
07 - Mailbox=mailat: (Attribute)
03 - Inline string follows
6D795F656D61696C40676D61696C2E636F6D - 'my_email@gmail.com' 
00 - End of string
05 - Timestamp (Attribute)
C3 - Opaque data follows
06 - data is 6 octets long
200905041215 - 20090504T12:15:00Z
01 - </EMN>    

我知道这是一个非常具体的问题,可能很难回答,但我希望有人能指出我做错了什么......

1 个答案:

答案 0 :(得分:0)

您是否尝试使用Wireshark监控邮件以验证其格式是否正确?

此外::

您的目标端口值不一致 - 您输入了错字还是错误?

0B84 - 目标端口(2984)

要考虑的事情

1)你有没有正确的字节顺序?例如。您的源端口0x23f0(9200)应格式化为23f0还是格式为f023

2)WDP长度指示符是否应包括长度字节本身使长度为07个八位字节的正确长度?

3)WSP是否应该有长度字段?

此致